diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml new file mode 100644 index 00000000..5d851b8c --- /dev/null +++ b/.github/workflows/sdk_generation.yaml @@ -0,0 +1,32 @@ +name: Generate +permissions: + checks: write + contents: write + pull-requests: write + statuses: write +"on": + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + set_version: + description: optionally set a specific SDK version + type: string + schedule: + - cron: 0 0 * * * +jobs: + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: pr + set_version: ${{ github.event.inputs.set_version }} + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }} + java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }} + ossrh_password: ${{ secrets.OSSRH_PASSWORD }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sdk_publish.yaml b/.github/workflows/sdk_publish.yaml new file mode 100644 index 00000000..e03b3887 --- /dev/null +++ b/.github/workflows/sdk_publish.yaml @@ -0,0 +1,22 @@ +name: Publish +permissions: + checks: write + contents: write + pull-requests: write + statuses: write +"on": + push: + branches: + - main + paths: + - RELEASES.md + - '*/RELEASES.md' +jobs: + publish: + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }} + java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }} + ossrh_password: ${{ secrets.OSSRH_PASSWORD }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/speakeasy_sdk_generation.yml b/.github/workflows/speakeasy_sdk_generation.yml deleted file mode 100644 index 6b8783bf..00000000 --- a/.github/workflows/speakeasy_sdk_generation.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Generate -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - push_code_samples_only: - description: Force push only code samples from SDK generation - type: boolean - default: false - schedule: - - cron: 0 0 * * * -jobs: - generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: direct - push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only) }} - speakeasy_version: latest - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/tagging.yaml b/.github/workflows/tagging.yaml deleted file mode 100644 index 3ea4a0f0..00000000 --- a/.github/workflows/tagging.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Speakeasy Tagging -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: [] - workflow_dispatch: {} -jobs: - tag: - uses: speakeasy-api/sdk-generation-action/.github/workflows/tag.yaml@v15 - with: - registry_tags: main - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4c41b55f..0ec8736f 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,21 @@ lockVersion: 2.0.0 id: 1732900d-e173-47c1-a90d-d45182eb35d9 management: - docChecksum: e73920abd3a55e8d249592f2e3090574 + docChecksum: eae2a027b2467f033ac397a5d9f0add5 docVersion: 0.0.3 - speakeasyVersion: 1.323.0 - generationVersion: 2.356.0 - releaseVersion: 0.1.1 - configChecksum: 32d07b03c4a1b8364852e49423957f33 + speakeasyVersion: 1.392.1 + generationVersion: 2.411.9 + releaseVersion: 0.2.1 + configChecksum: dd7feeff69752107879de19912c4170f features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.26.1 + core: 3.29.5 + deprecations: 2.81.1 + downloadStreams: 0.1.1 flattening: 2.81.1 - globalSecurity: 2.82.5 + globalSecurity: 2.82.7 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.1 @@ -22,1051 +24,2028 @@ features: nameOverrides: 2.81.3 nullables: 0.1.0 sdkHooks: 0.1.0 - typeOverrides: 2.81.1 - unions: 0.0.4 + unions: 0.0.5 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 + - CONTRIBUTING.md + - USAGE.md - build.gradle + - docs/models/errors/AddPlaylistContentsErrors.md + - docs/models/errors/AddPlaylistContentsResponseBody.md + - docs/models/errors/ApplyUpdatesErrors.md + - docs/models/errors/ApplyUpdatesResponseBody.md + - docs/models/errors/CancelServerActivitiesErrors.md + - docs/models/errors/CancelServerActivitiesResponseBody.md + - docs/models/errors/CheckForUpdatesErrors.md + - docs/models/errors/CheckForUpdatesResponseBody.md + - docs/models/errors/ClearPlaylistContentsErrors.md + - docs/models/errors/ClearPlaylistContentsResponseBody.md + - docs/models/errors/CreatePlaylistErrors.md + - docs/models/errors/CreatePlaylistResponseBody.md + - docs/models/errors/DeleteLibraryErrors.md + - docs/models/errors/DeleteLibraryResponseBody.md + - docs/models/errors/DeletePlaylistErrors.md + - docs/models/errors/DeletePlaylistResponseBody.md + - docs/models/errors/EnablePaperTrailErrors.md + - docs/models/errors/EnablePaperTrailResponseBody.md + - docs/models/errors/Errors.md + - docs/models/errors/GetAllLibrariesErrors.md + - docs/models/errors/GetAllLibrariesResponseBody.md + - docs/models/errors/GetAvailableClientsErrors.md + - docs/models/errors/GetAvailableClientsResponseBody.md + - docs/models/errors/GetBandwidthStatisticsErrors.md + - docs/models/errors/GetBandwidthStatisticsResponseBody.md + - docs/models/errors/GetBannerImageErrors.md + - docs/models/errors/GetBannerImageResponseBody.md + - docs/models/errors/GetButlerTasksErrors.md + - docs/models/errors/GetButlerTasksResponseBody.md + - docs/models/errors/GetCompanionsDataErrors.md + - docs/models/errors/GetCompanionsDataResponseBody.md + - docs/models/errors/GetDevicesErrors.md + - docs/models/errors/GetDevicesResponseBody.md + - docs/models/errors/GetFileHashErrors.md + - docs/models/errors/GetFileHashResponseBody.md + - docs/models/errors/GetGeoDataErrors.md + - docs/models/errors/GetGeoDataResponseBody.md + - docs/models/errors/GetGlobalHubsErrors.md + - docs/models/errors/GetGlobalHubsResponseBody.md + - docs/models/errors/GetHomeDataErrors.md + - docs/models/errors/GetHomeDataResponseBody.md + - docs/models/errors/GetLibraryDetailsErrors.md + - docs/models/errors/GetLibraryDetailsResponseBody.md + - docs/models/errors/GetLibraryHubsErrors.md + - docs/models/errors/GetLibraryHubsResponseBody.md + - docs/models/errors/GetLibraryItemsErrors.md + - docs/models/errors/GetLibraryItemsResponseBody.md + - docs/models/errors/GetMediaProvidersErrors.md + - docs/models/errors/GetMediaProvidersResponseBody.md + - docs/models/errors/GetMetaDataByRatingKeyErrors.md + - docs/models/errors/GetMetaDataByRatingKeyResponseBody.md + - docs/models/errors/GetMetadataChildrenErrors.md + - docs/models/errors/GetMetadataChildrenResponseBody.md + - docs/models/errors/GetMyPlexAccountErrors.md + - docs/models/errors/GetMyPlexAccountResponseBody.md + - docs/models/errors/GetOnDeckErrors.md + - docs/models/errors/GetOnDeckResponseBody.md + - docs/models/errors/GetPinErrors.md + - docs/models/errors/GetPinResponseBody.md + - docs/models/errors/GetPlaylistContentsErrors.md + - docs/models/errors/GetPlaylistContentsResponseBody.md + - docs/models/errors/GetPlaylistErrors.md + - docs/models/errors/GetPlaylistResponseBody.md + - docs/models/errors/GetPlaylistsErrors.md + - docs/models/errors/GetPlaylistsResponseBody.md + - docs/models/errors/GetRecentlyAddedErrors.md + - docs/models/errors/GetRecentlyAddedResponseBody.md + - docs/models/errors/GetRefreshLibraryMetadataErrors.md + - docs/models/errors/GetRefreshLibraryMetadataResponseBody.md + - docs/models/errors/GetResizedPhotoErrors.md + - docs/models/errors/GetResizedPhotoResponseBody.md + - docs/models/errors/GetResourcesStatisticsErrors.md + - docs/models/errors/GetResourcesStatisticsResponseBody.md + - docs/models/errors/GetSearchLibraryErrors.md + - docs/models/errors/GetSearchLibraryResponseBody.md + - docs/models/errors/GetSearchResultsErrors.md + - docs/models/errors/GetSearchResultsResponseBody.md + - docs/models/errors/GetServerActivitiesErrors.md + - docs/models/errors/GetServerActivitiesResponseBody.md + - docs/models/errors/GetServerCapabilitiesResponseBody.md + - docs/models/errors/GetServerIdentityResponseBody.md + - docs/models/errors/GetServerListErrors.md + - docs/models/errors/GetServerListResponseBody.md + - docs/models/errors/GetServerPreferencesErrors.md + - docs/models/errors/GetServerPreferencesResponseBody.md + - docs/models/errors/GetServerResourcesErrors.md + - docs/models/errors/GetServerResourcesResponseBody.md + - docs/models/errors/GetSessionHistoryErrors.md + - docs/models/errors/GetSessionHistoryResponseBody.md + - docs/models/errors/GetSessionsErrors.md + - docs/models/errors/GetSessionsResponseBody.md + - docs/models/errors/GetSourceConnectionInformationErrors.md + - docs/models/errors/GetSourceConnectionInformationResponseBody.md + - docs/models/errors/GetStatisticsErrors.md + - docs/models/errors/GetStatisticsResponseBody.md + - docs/models/errors/GetThumbImageErrors.md + - docs/models/errors/GetThumbImageResponseBody.md + - docs/models/errors/GetTimelineErrors.md + - docs/models/errors/GetTimelineResponseBody.md + - docs/models/errors/GetTokenByPinIdErrors.md + - docs/models/errors/GetTokenByPinIdPlexErrors.md + - docs/models/errors/GetTokenByPinIdPlexResponseBody.md + - docs/models/errors/GetTokenByPinIdResponseBody.md + - docs/models/errors/GetTopWatchedContentErrors.md + - docs/models/errors/GetTopWatchedContentResponseBody.md + - docs/models/errors/GetTranscodeSessionsErrors.md + - docs/models/errors/GetTranscodeSessionsResponseBody.md + - docs/models/errors/GetTransientTokenErrors.md + - docs/models/errors/GetTransientTokenResponseBody.md + - docs/models/errors/GetUpdateStatusErrors.md + - docs/models/errors/GetUpdateStatusResponseBody.md + - docs/models/errors/GetUserDetailsErrors.md + - docs/models/errors/GetUserDetailsResponseBody.md + - docs/models/errors/GetUserFriendsErrors.md + - docs/models/errors/GetUserFriendsResponseBody.md + - docs/models/errors/GetWatchListErrors.md + - docs/models/errors/GetWatchListResponseBody.md + - docs/models/errors/LogLineErrors.md + - docs/models/errors/LogLineResponseBody.md + - docs/models/errors/LogMultiLineErrors.md + - docs/models/errors/LogMultiLineResponseBody.md + - docs/models/errors/MarkPlayedErrors.md + - docs/models/errors/MarkPlayedResponseBody.md + - docs/models/errors/MarkUnplayedErrors.md + - docs/models/errors/MarkUnplayedResponseBody.md + - docs/models/errors/PerformSearchErrors.md + - docs/models/errors/PerformSearchResponseBody.md + - docs/models/errors/PerformVoiceSearchErrors.md + - docs/models/errors/PerformVoiceSearchResponseBody.md + - docs/models/errors/PostUsersSignInDataErrors.md + - docs/models/errors/PostUsersSignInDataResponseBody.md + - docs/models/errors/StartAllTasksErrors.md + - docs/models/errors/StartAllTasksResponseBody.md + - docs/models/errors/StartTaskErrors.md + - docs/models/errors/StartTaskResponseBody.md + - docs/models/errors/StartUniversalTranscodeErrors.md + - docs/models/errors/StartUniversalTranscodeResponseBody.md + - docs/models/errors/StopAllTasksErrors.md + - docs/models/errors/StopAllTasksResponseBody.md + - docs/models/errors/StopTaskErrors.md + - docs/models/errors/StopTaskResponseBody.md + - docs/models/errors/StopTranscodeSessionErrors.md + - docs/models/errors/StopTranscodeSessionResponseBody.md + - docs/models/errors/UpdatePlayProgressErrors.md + - docs/models/errors/UpdatePlayProgressResponseBody.md + - docs/models/errors/UpdatePlaylistErrors.md + - docs/models/errors/UpdatePlaylistResponseBody.md + - docs/models/errors/UploadPlaylistErrors.md + - docs/models/errors/UploadPlaylistResponseBody.md + - docs/models/operations/Account.md + - docs/models/operations/Activity.md + - docs/models/operations/AddPlaylistContentsMediaContainer.md + - docs/models/operations/AddPlaylistContentsMetadata.md + - docs/models/operations/AddPlaylistContentsRequest.md + - docs/models/operations/AddPlaylistContentsResponse.md + - docs/models/operations/AddPlaylistContentsResponseBody.md + - docs/models/operations/ApplyUpdatesRequest.md + - docs/models/operations/ApplyUpdatesResponse.md + - docs/models/operations/AutoSelectSubtitle.md + - docs/models/operations/Billing.md + - docs/models/operations/ButlerTask.md + - docs/models/operations/ButlerTasks.md + - docs/models/operations/CancelServerActivitiesRequest.md + - docs/models/operations/CancelServerActivitiesResponse.md + - docs/models/operations/CheckForUpdatesRequest.md + - docs/models/operations/CheckForUpdatesResponse.md + - docs/models/operations/ClearPlaylistContentsRequest.md + - docs/models/operations/ClearPlaylistContentsResponse.md + - docs/models/operations/Connections.md + - docs/models/operations/Context.md + - docs/models/operations/Country.md + - docs/models/operations/CreatePlaylistMediaContainer.md + - docs/models/operations/CreatePlaylistMetadata.md + - docs/models/operations/CreatePlaylistQueryParamType.md + - docs/models/operations/CreatePlaylistRequest.md + - docs/models/operations/CreatePlaylistResponse.md + - docs/models/operations/CreatePlaylistResponseBody.md + - docs/models/operations/DefaultSubtitleAccessibility.md + - docs/models/operations/DefaultSubtitleForced.md + - docs/models/operations/DeleteLibraryRequest.md + - docs/models/operations/DeleteLibraryResponse.md + - docs/models/operations/DeletePlaylistRequest.md + - docs/models/operations/DeletePlaylistResponse.md + - docs/models/operations/Device.md + - docs/models/operations/Director.md + - docs/models/operations/Directory.md + - docs/models/operations/Download.md + - docs/models/operations/EnablePaperTrailResponse.md + - docs/models/operations/Feature.md + - docs/models/operations/Features.md + - docs/models/operations/Field.md + - docs/models/operations/FieldType.md + - docs/models/operations/Filter.md + - docs/models/operations/Force.md + - docs/models/operations/Friend.md + - docs/models/operations/Genre.md + - docs/models/operations/GeoData.md + - docs/models/operations/GetAllLibrariesDirectory.md + - docs/models/operations/GetAllLibrariesMediaContainer.md + - docs/models/operations/GetAllLibrariesResponse.md + - docs/models/operations/GetAllLibrariesResponseBody.md + - docs/models/operations/GetAvailableClientsMediaContainer.md + - docs/models/operations/GetAvailableClientsResponse.md + - docs/models/operations/GetAvailableClientsResponseBody.md + - docs/models/operations/GetBandwidthStatisticsAccount.md + - docs/models/operations/GetBandwidthStatisticsDevice.md + - docs/models/operations/GetBandwidthStatisticsMediaContainer.md + - docs/models/operations/GetBandwidthStatisticsRequest.md + - docs/models/operations/GetBandwidthStatisticsResponse.md + - docs/models/operations/GetBandwidthStatisticsResponseBody.md + - docs/models/operations/GetBannerImageRequest.md + - docs/models/operations/GetBannerImageResponse.md + - docs/models/operations/GetButlerTasksResponse.md + - docs/models/operations/GetButlerTasksResponseBody.md + - docs/models/operations/GetCompanionsDataResponse.md + - docs/models/operations/GetDevicesMediaContainer.md + - docs/models/operations/GetDevicesResponse.md + - docs/models/operations/GetDevicesResponseBody.md + - docs/models/operations/GetFileHashRequest.md + - docs/models/operations/GetFileHashResponse.md + - docs/models/operations/GetGeoDataGeoData.md + - docs/models/operations/GetGeoDataResponse.md + - docs/models/operations/GetGlobalHubsMediaContainer.md + - docs/models/operations/GetGlobalHubsMetadata.md + - docs/models/operations/GetGlobalHubsRequest.md + - docs/models/operations/GetGlobalHubsResponse.md + - docs/models/operations/GetGlobalHubsResponseBody.md + - docs/models/operations/GetHomeDataResponse.md + - docs/models/operations/GetHomeDataResponseBody.md + - docs/models/operations/GetLibraryDetailsDirectory.md + - docs/models/operations/GetLibraryDetailsFilter.md + - docs/models/operations/GetLibraryDetailsMediaContainer.md + - docs/models/operations/GetLibraryDetailsRequest.md + - docs/models/operations/GetLibraryDetailsResponse.md + - docs/models/operations/GetLibraryDetailsResponseBody.md + - docs/models/operations/GetLibraryDetailsType.md + - docs/models/operations/GetLibraryHubsCountry.md + - docs/models/operations/GetLibraryHubsDirector.md + - docs/models/operations/GetLibraryHubsGenre.md + - docs/models/operations/GetLibraryHubsHub.md + - docs/models/operations/GetLibraryHubsMedia.md + - docs/models/operations/GetLibraryHubsMediaContainer.md + - docs/models/operations/GetLibraryHubsMetadata.md + - docs/models/operations/GetLibraryHubsPart.md + - docs/models/operations/GetLibraryHubsRequest.md + - docs/models/operations/GetLibraryHubsResponse.md + - docs/models/operations/GetLibraryHubsResponseBody.md + - docs/models/operations/GetLibraryHubsRole.md + - docs/models/operations/GetLibraryHubsWriter.md + - docs/models/operations/GetLibraryItemsCountry.md + - docs/models/operations/GetLibraryItemsDirector.md + - docs/models/operations/GetLibraryItemsGenre.md + - docs/models/operations/GetLibraryItemsMedia.md + - docs/models/operations/GetLibraryItemsMediaContainer.md + - docs/models/operations/GetLibraryItemsMetadata.md + - docs/models/operations/GetLibraryItemsPart.md + - docs/models/operations/GetLibraryItemsRequest.md + - docs/models/operations/GetLibraryItemsResponse.md + - docs/models/operations/GetLibraryItemsResponseBody.md + - docs/models/operations/GetLibraryItemsRole.md + - docs/models/operations/GetLibraryItemsWriter.md + - docs/models/operations/GetMediaProvidersDirectory.md + - docs/models/operations/GetMediaProvidersMediaContainer.md + - docs/models/operations/GetMediaProvidersRequest.md + - docs/models/operations/GetMediaProvidersResponse.md + - docs/models/operations/GetMediaProvidersResponseBody.md + - docs/models/operations/GetMetaDataByRatingKeyCountry.md + - docs/models/operations/GetMetaDataByRatingKeyDirector.md + - docs/models/operations/GetMetaDataByRatingKeyGenre.md + - docs/models/operations/GetMetaDataByRatingKeyMedia.md + - docs/models/operations/GetMetaDataByRatingKeyMediaContainer.md + - docs/models/operations/GetMetaDataByRatingKeyMetadata.md + - docs/models/operations/GetMetaDataByRatingKeyPart.md + - docs/models/operations/GetMetaDataByRatingKeyRequest.md + - docs/models/operations/GetMetaDataByRatingKeyResponse.md + - docs/models/operations/GetMetaDataByRatingKeyResponseBody.md + - docs/models/operations/GetMetaDataByRatingKeyRole.md + - docs/models/operations/GetMetaDataByRatingKeyWriter.md + - docs/models/operations/GetMetadataChildrenDirectory.md + - docs/models/operations/GetMetadataChildrenMediaContainer.md + - docs/models/operations/GetMetadataChildrenMetadata.md + - docs/models/operations/GetMetadataChildrenRequest.md + - docs/models/operations/GetMetadataChildrenResponse.md + - docs/models/operations/GetMetadataChildrenResponseBody.md + - docs/models/operations/GetMyPlexAccountResponse.md + - docs/models/operations/GetMyPlexAccountResponseBody.md + - docs/models/operations/GetOnDeckGuids.md + - docs/models/operations/GetOnDeckMedia.md + - docs/models/operations/GetOnDeckMediaContainer.md + - docs/models/operations/GetOnDeckMetadata.md + - docs/models/operations/GetOnDeckPart.md + - docs/models/operations/GetOnDeckResponse.md + - docs/models/operations/GetOnDeckResponseBody.md + - docs/models/operations/GetOnDeckStream.md + - docs/models/operations/GetPinAuthPinContainer.md + - docs/models/operations/GetPinRequest.md + - docs/models/operations/GetPinResponse.md + - docs/models/operations/GetPlaylistContentsCountry.md + - docs/models/operations/GetPlaylistContentsDirector.md + - docs/models/operations/GetPlaylistContentsGenre.md + - docs/models/operations/GetPlaylistContentsMedia.md + - docs/models/operations/GetPlaylistContentsMediaContainer.md + - docs/models/operations/GetPlaylistContentsMetadata.md + - docs/models/operations/GetPlaylistContentsPart.md + - docs/models/operations/GetPlaylistContentsQueryParamType.md + - docs/models/operations/GetPlaylistContentsRequest.md + - docs/models/operations/GetPlaylistContentsResponse.md + - docs/models/operations/GetPlaylistContentsResponseBody.md + - docs/models/operations/GetPlaylistContentsRole.md + - docs/models/operations/GetPlaylistContentsWriter.md + - docs/models/operations/GetPlaylistMediaContainer.md + - docs/models/operations/GetPlaylistMetadata.md + - docs/models/operations/GetPlaylistRequest.md + - docs/models/operations/GetPlaylistResponse.md + - docs/models/operations/GetPlaylistResponseBody.md + - docs/models/operations/GetPlaylistsMediaContainer.md + - docs/models/operations/GetPlaylistsMetadata.md + - docs/models/operations/GetPlaylistsRequest.md + - docs/models/operations/GetPlaylistsResponse.md + - docs/models/operations/GetPlaylistsResponseBody.md + - docs/models/operations/GetRecentlyAddedMediaContainer.md + - docs/models/operations/GetRecentlyAddedMetadata.md + - docs/models/operations/GetRecentlyAddedRequest.md + - docs/models/operations/GetRecentlyAddedResponse.md + - docs/models/operations/GetRecentlyAddedResponseBody.md + - docs/models/operations/GetRefreshLibraryMetadataRequest.md + - docs/models/operations/GetRefreshLibraryMetadataResponse.md + - docs/models/operations/GetResizedPhotoRequest.md + - docs/models/operations/GetResizedPhotoResponse.md + - docs/models/operations/GetResourcesStatisticsMediaContainer.md + - docs/models/operations/GetResourcesStatisticsRequest.md + - docs/models/operations/GetResourcesStatisticsResponse.md + - docs/models/operations/GetResourcesStatisticsResponseBody.md + - docs/models/operations/GetSearchLibraryMediaContainer.md + - docs/models/operations/GetSearchLibraryMetadata.md + - docs/models/operations/GetSearchLibraryRequest.md + - docs/models/operations/GetSearchLibraryResponse.md + - docs/models/operations/GetSearchLibraryResponseBody.md + - docs/models/operations/GetSearchResultsCountry.md + - docs/models/operations/GetSearchResultsDirector.md + - docs/models/operations/GetSearchResultsGenre.md + - docs/models/operations/GetSearchResultsMedia.md + - docs/models/operations/GetSearchResultsMediaContainer.md + - docs/models/operations/GetSearchResultsMetadata.md + - docs/models/operations/GetSearchResultsPart.md + - docs/models/operations/GetSearchResultsRequest.md + - docs/models/operations/GetSearchResultsResponse.md + - docs/models/operations/GetSearchResultsResponseBody.md + - docs/models/operations/GetSearchResultsRole.md + - docs/models/operations/GetSearchResultsWriter.md + - docs/models/operations/GetServerActivitiesMediaContainer.md + - docs/models/operations/GetServerActivitiesResponse.md + - docs/models/operations/GetServerActivitiesResponseBody.md + - docs/models/operations/GetServerCapabilitiesResponse.md + - docs/models/operations/GetServerCapabilitiesResponseBody.md + - docs/models/operations/GetServerIdentityMediaContainer.md + - docs/models/operations/GetServerIdentityResponse.md + - docs/models/operations/GetServerIdentityResponseBody.md + - docs/models/operations/GetServerListMediaContainer.md + - docs/models/operations/GetServerListResponse.md + - docs/models/operations/GetServerListResponseBody.md + - docs/models/operations/GetServerListServer.md + - docs/models/operations/GetServerPreferencesMediaContainer.md + - docs/models/operations/GetServerPreferencesResponse.md + - docs/models/operations/GetServerPreferencesResponseBody.md + - docs/models/operations/GetServerResourcesRequest.md + - docs/models/operations/GetServerResourcesResponse.md + - docs/models/operations/GetSessionHistoryMediaContainer.md + - docs/models/operations/GetSessionHistoryMetadata.md + - docs/models/operations/GetSessionHistoryRequest.md + - docs/models/operations/GetSessionHistoryResponse.md + - docs/models/operations/GetSessionHistoryResponseBody.md + - docs/models/operations/GetSessionsMedia.md + - docs/models/operations/GetSessionsMediaContainer.md + - docs/models/operations/GetSessionsMetadata.md + - docs/models/operations/GetSessionsPart.md + - docs/models/operations/GetSessionsResponse.md + - docs/models/operations/GetSessionsResponseBody.md + - docs/models/operations/GetSessionsStream.md + - docs/models/operations/GetSessionsUser.md + - docs/models/operations/GetSourceConnectionInformationRequest.md + - docs/models/operations/GetSourceConnectionInformationResponse.md + - docs/models/operations/GetStatisticsDevice.md + - docs/models/operations/GetStatisticsMediaContainer.md + - docs/models/operations/GetStatisticsRequest.md + - docs/models/operations/GetStatisticsResponse.md + - docs/models/operations/GetStatisticsResponseBody.md + - docs/models/operations/GetThumbImageRequest.md + - docs/models/operations/GetThumbImageResponse.md + - docs/models/operations/GetTimelineRequest.md + - docs/models/operations/GetTimelineResponse.md + - docs/models/operations/GetTokenByPinIdAuthPinContainer.md + - docs/models/operations/GetTokenByPinIdGeoData.md + - docs/models/operations/GetTokenByPinIdRequest.md + - docs/models/operations/GetTokenByPinIdResponse.md + - docs/models/operations/GetTopWatchedContentCountry.md + - docs/models/operations/GetTopWatchedContentGenre.md + - docs/models/operations/GetTopWatchedContentGuids.md + - docs/models/operations/GetTopWatchedContentMediaContainer.md + - docs/models/operations/GetTopWatchedContentMetadata.md + - docs/models/operations/GetTopWatchedContentQueryParamType.md + - docs/models/operations/GetTopWatchedContentRequest.md + - docs/models/operations/GetTopWatchedContentResponse.md + - docs/models/operations/GetTopWatchedContentResponseBody.md + - docs/models/operations/GetTopWatchedContentRole.md + - docs/models/operations/GetTranscodeSessionsMediaContainer.md + - docs/models/operations/GetTranscodeSessionsResponse.md + - docs/models/operations/GetTranscodeSessionsResponseBody.md + - docs/models/operations/GetTransientTokenQueryParamType.md + - docs/models/operations/GetTransientTokenRequest.md + - docs/models/operations/GetTransientTokenResponse.md + - docs/models/operations/GetUpdateStatusMediaContainer.md + - docs/models/operations/GetUpdateStatusResponse.md + - docs/models/operations/GetUpdateStatusResponseBody.md + - docs/models/operations/GetUserDetailsAuthenticationResponseStatus.md + - docs/models/operations/GetUserDetailsAuthenticationStatus.md + - docs/models/operations/GetUserDetailsFeatures.md + - docs/models/operations/GetUserDetailsRequest.md + - docs/models/operations/GetUserDetailsResponse.md + - docs/models/operations/GetUserDetailsStatus.md + - docs/models/operations/GetUserDetailsSubscription.md + - docs/models/operations/GetUserDetailsUserPlexAccount.md + - docs/models/operations/GetUserFriendsResponse.md + - docs/models/operations/GetWatchListRequest.md + - docs/models/operations/GetWatchListResponse.md + - docs/models/operations/GetWatchListResponseBody.md + - docs/models/operations/Guids.md + - docs/models/operations/Hub.md + - docs/models/operations/Image.md + - docs/models/operations/IncludeCollections.md + - docs/models/operations/IncludeDetails.md + - docs/models/operations/IncludeExternalMedia.md + - docs/models/operations/IncludeGuids.md + - docs/models/operations/IncludeHttps.md + - docs/models/operations/IncludeIPv6.md + - docs/models/operations/IncludeMeta.md + - docs/models/operations/IncludeRelay.md + - docs/models/operations/InternalPaymentMethod.md + - docs/models/operations/Level.md + - docs/models/operations/LibrarySectionID.md + - docs/models/operations/Libtype.md + - docs/models/operations/Location.md + - docs/models/operations/LogLineRequest.md + - docs/models/operations/LogLineResponse.md + - docs/models/operations/LogMultiLineResponse.md + - docs/models/operations/MailingListStatus.md + - docs/models/operations/MarkPlayedRequest.md + - docs/models/operations/MarkPlayedResponse.md + - docs/models/operations/MarkUnplayedRequest.md + - docs/models/operations/MarkUnplayedResponse.md + - docs/models/operations/Media.md + - docs/models/operations/MediaContainer.md + - docs/models/operations/MediaProvider.md + - docs/models/operations/MediaReviewsVisibility.md + - docs/models/operations/Metadata.md + - docs/models/operations/MinSize.md + - docs/models/operations/MyPlex.md + - docs/models/operations/OnlyTransient.md + - docs/models/operations/Operator.md + - docs/models/operations/Part.md + - docs/models/operations/PastSubscription.md + - docs/models/operations/PathParamTaskName.md + - docs/models/operations/PerformSearchRequest.md + - docs/models/operations/PerformSearchResponse.md + - docs/models/operations/PerformVoiceSearchRequest.md + - docs/models/operations/PerformVoiceSearchResponse.md + - docs/models/operations/Pivot.md + - docs/models/operations/Player.md + - docs/models/operations/PlaylistType.md + - docs/models/operations/PlexDevice.md + - docs/models/operations/PostUsersSignInDataAuthenticationFeatures.md + - docs/models/operations/PostUsersSignInDataAuthenticationResponseStatus.md + - docs/models/operations/PostUsersSignInDataAuthenticationStatus.md + - docs/models/operations/PostUsersSignInDataAuthenticationSubscription.md + - docs/models/operations/PostUsersSignInDataAutoSelectSubtitle.md + - docs/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.md + - docs/models/operations/PostUsersSignInDataDefaultSubtitleForced.md + - docs/models/operations/PostUsersSignInDataFeatures.md + - docs/models/operations/PostUsersSignInDataMailingListStatus.md + - docs/models/operations/PostUsersSignInDataMediaReviewsVisibility.md + - docs/models/operations/PostUsersSignInDataRequest.md + - docs/models/operations/PostUsersSignInDataRequestBody.md + - docs/models/operations/PostUsersSignInDataResponse.md + - docs/models/operations/PostUsersSignInDataServices.md + - docs/models/operations/PostUsersSignInDataState.md + - docs/models/operations/PostUsersSignInDataStatus.md + - docs/models/operations/PostUsersSignInDataSubscription.md + - docs/models/operations/PostUsersSignInDataUserPlexAccount.md + - docs/models/operations/PostUsersSignInDataUserProfile.md + - docs/models/operations/PostUsersSignInDataWatchedIndicator.md + - docs/models/operations/Producer.md + - docs/models/operations/Provider.md + - docs/models/operations/QueryParamFilter.md + - docs/models/operations/QueryParamForce.md + - docs/models/operations/QueryParamOnlyTransient.md + - docs/models/operations/QueryParamSmart.md + - docs/models/operations/QueryParamType.md + - docs/models/operations/Ratings.md + - docs/models/operations/Release.md + - docs/models/operations/ResponseBody.md + - docs/models/operations/Role.md + - docs/models/operations/Scope.md + - docs/models/operations/Server.md + - docs/models/operations/Services.md + - docs/models/operations/Session.md + - docs/models/operations/Setting.md + - docs/models/operations/SharedServers.md + - docs/models/operations/SharedSources.md + - docs/models/operations/Skip.md + - docs/models/operations/Smart.md + - docs/models/operations/Sort.md + - docs/models/operations/StartAllTasksResponse.md + - docs/models/operations/StartTaskRequest.md + - docs/models/operations/StartTaskResponse.md + - docs/models/operations/StartUniversalTranscodeRequest.md + - docs/models/operations/StartUniversalTranscodeResponse.md + - docs/models/operations/State.md + - docs/models/operations/StatisticsBandwidth.md + - docs/models/operations/StatisticsMedia.md + - docs/models/operations/StatisticsResources.md + - docs/models/operations/Status.md + - docs/models/operations/StopAllTasksResponse.md + - docs/models/operations/StopTaskRequest.md + - docs/models/operations/StopTaskResponse.md + - docs/models/operations/StopTranscodeSessionRequest.md + - docs/models/operations/StopTranscodeSessionResponse.md + - docs/models/operations/Stream.md + - docs/models/operations/Subscription.md + - docs/models/operations/Tag.md + - docs/models/operations/TaskName.md + - docs/models/operations/Tonight.md + - docs/models/operations/TranscodeSession.md + - docs/models/operations/Trials.md + - docs/models/operations/Type.md + - docs/models/operations/UpdatePlayProgressRequest.md + - docs/models/operations/UpdatePlayProgressResponse.md + - docs/models/operations/UpdatePlaylistRequest.md + - docs/models/operations/UpdatePlaylistResponse.md + - docs/models/operations/UploadPlaylistRequest.md + - docs/models/operations/UploadPlaylistResponse.md + - docs/models/operations/Upscale.md + - docs/models/operations/User.md + - docs/models/operations/UserProfile.md + - docs/models/operations/WatchedIndicator.md + - docs/models/operations/Writer.md + - docs/models/shared/Security.md + - docs/sdks/activities/README.md + - docs/sdks/authentication/README.md + - docs/sdks/butler/README.md + - docs/sdks/hubs/README.md + - docs/sdks/library/README.md + - docs/sdks/log/README.md + - docs/sdks/media/README.md + - docs/sdks/playlists/README.md + - docs/sdks/plex/README.md + - docs/sdks/plexapi/README.md + - docs/sdks/search/README.md + - docs/sdks/server/README.md + - docs/sdks/sessions/README.md + - docs/sdks/statistics/README.md + - docs/sdks/updater/README.md + - docs/sdks/video/README.md + - docs/sdks/watchlist/README.md - 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 + - src/main/java/dev/plexapi/sdk/Activities.java + - src/main/java/dev/plexapi/sdk/Authentication.java + - src/main/java/dev/plexapi/sdk/Butler.java + - src/main/java/dev/plexapi/sdk/Hubs.java + - src/main/java/dev/plexapi/sdk/Library.java + - src/main/java/dev/plexapi/sdk/Log.java + - src/main/java/dev/plexapi/sdk/Media.java + - src/main/java/dev/plexapi/sdk/Playlists.java + - src/main/java/dev/plexapi/sdk/Plex.java + - src/main/java/dev/plexapi/sdk/PlexAPI.java + - src/main/java/dev/plexapi/sdk/SDKConfiguration.java + - src/main/java/dev/plexapi/sdk/Search.java + - src/main/java/dev/plexapi/sdk/SecuritySource.java + - src/main/java/dev/plexapi/sdk/Server.java + - src/main/java/dev/plexapi/sdk/Sessions.java + - src/main/java/dev/plexapi/sdk/Statistics.java + - src/main/java/dev/plexapi/sdk/Updater.java + - src/main/java/dev/plexapi/sdk/Video.java + - src/main/java/dev/plexapi/sdk/Watchlist.java + - src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/AuthException.java + - src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/Errors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetDevicesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetFileHashResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPinResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerListResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSessionsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTimelineResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/GetWatchListResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/LogLineResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/PerformSearchResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/SDKError.java + - src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StartTaskResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StopTaskResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java + - src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/Account.java + - src/main/java/dev/plexapi/sdk/models/operations/Activity.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java + - src/main/java/dev/plexapi/sdk/models/operations/Billing.java + - src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java + - src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java + - src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Connections.java + - src/main/java/dev/plexapi/sdk/models/operations/Context.java + - src/main/java/dev/plexapi/sdk/models/operations/Country.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java + - src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java + - src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Device.java + - src/main/java/dev/plexapi/sdk/models/operations/Director.java + - src/main/java/dev/plexapi/sdk/models/operations/Directory.java + - src/main/java/dev/plexapi/sdk/models/operations/Download.java + - src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Feature.java + - src/main/java/dev/plexapi/sdk/models/operations/Features.java + - src/main/java/dev/plexapi/sdk/models/operations/Field.java + - src/main/java/dev/plexapi/sdk/models/operations/FieldType.java + - src/main/java/dev/plexapi/sdk/models/operations/Filter.java + - src/main/java/dev/plexapi/sdk/models/operations/Force.java + - src/main/java/dev/plexapi/sdk/models/operations/Friend.java + - src/main/java/dev/plexapi/sdk/models/operations/Genre.java + - src/main/java/dev/plexapi/sdk/models/operations/GeoData.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyDirector.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyWriter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckGuids.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckStream.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationResponseStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsFeatures.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsSubscription.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsUserPlexAccount.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/Guids.java + - src/main/java/dev/plexapi/sdk/models/operations/Hub.java + - src/main/java/dev/plexapi/sdk/models/operations/Image.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java + - src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java + - src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java + - src/main/java/dev/plexapi/sdk/models/operations/Level.java + - src/main/java/dev/plexapi/sdk/models/operations/LibrarySectionID.java + - src/main/java/dev/plexapi/sdk/models/operations/Libtype.java + - src/main/java/dev/plexapi/sdk/models/operations/Location.java + - src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Media.java + - src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java + - src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java + - src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java + - src/main/java/dev/plexapi/sdk/models/operations/Metadata.java + - src/main/java/dev/plexapi/sdk/models/operations/MinSize.java + - src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java + - src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java + - src/main/java/dev/plexapi/sdk/models/operations/Operator.java + - src/main/java/dev/plexapi/sdk/models/operations/Part.java + - src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java + - src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Pivot.java + - src/main/java/dev/plexapi/sdk/models/operations/Player.java + - src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java + - src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationFeatures.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataFeatures.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java + - src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java + - src/main/java/dev/plexapi/sdk/models/operations/Producer.java + - src/main/java/dev/plexapi/sdk/models/operations/Provider.java + - src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java + - src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java + - src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java + - src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java + - src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java + - src/main/java/dev/plexapi/sdk/models/operations/Ratings.java + - src/main/java/dev/plexapi/sdk/models/operations/Release.java + - src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java + - src/main/java/dev/plexapi/sdk/models/operations/Role.java + - src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java + - src/main/java/dev/plexapi/sdk/models/operations/Scope.java + - src/main/java/dev/plexapi/sdk/models/operations/Server.java + - src/main/java/dev/plexapi/sdk/models/operations/Services.java + - src/main/java/dev/plexapi/sdk/models/operations/Session.java + - src/main/java/dev/plexapi/sdk/models/operations/Setting.java + - src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java + - src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java + - src/main/java/dev/plexapi/sdk/models/operations/Skip.java + - src/main/java/dev/plexapi/sdk/models/operations/Smart.java + - src/main/java/dev/plexapi/sdk/models/operations/Sort.java + - src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/State.java + - src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java + - src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java + - src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java + - src/main/java/dev/plexapi/sdk/models/operations/Status.java + - src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Stream.java + - src/main/java/dev/plexapi/sdk/models/operations/Subscription.java + - src/main/java/dev/plexapi/sdk/models/operations/Tag.java + - src/main/java/dev/plexapi/sdk/models/operations/TaskName.java + - src/main/java/dev/plexapi/sdk/models/operations/Tonight.java + - src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java + - src/main/java/dev/plexapi/sdk/models/operations/Trials.java + - src/main/java/dev/plexapi/sdk/models/operations/Type.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java + - src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java + - src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java + - src/main/java/dev/plexapi/sdk/models/operations/Upscale.java + - src/main/java/dev/plexapi/sdk/models/operations/User.java + - src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java + - src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java + - src/main/java/dev/plexapi/sdk/models/operations/Writer.java + - src/main/java/dev/plexapi/sdk/models/shared/Security.java + - src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java + - src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java + - src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java + - src/main/java/dev/plexapi/sdk/utils/Deserializers.java + - src/main/java/dev/plexapi/sdk/utils/EventStream.java + - src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java + - src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java + - src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java + - src/main/java/dev/plexapi/sdk/utils/FormMetadata.java + - src/main/java/dev/plexapi/sdk/utils/HTTPClient.java + - src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java + - src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java + - src/main/java/dev/plexapi/sdk/utils/Helpers.java + - src/main/java/dev/plexapi/sdk/utils/Hook.java + - src/main/java/dev/plexapi/sdk/utils/Hooks.java + - src/main/java/dev/plexapi/sdk/utils/JSON.java + - src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java + - src/main/java/dev/plexapi/sdk/utils/Metadata.java + - src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java + - src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java + - src/main/java/dev/plexapi/sdk/utils/Options.java + - src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java + - src/main/java/dev/plexapi/sdk/utils/QueryParameters.java + - src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java + - src/main/java/dev/plexapi/sdk/utils/RequestBody.java + - src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java + - src/main/java/dev/plexapi/sdk/utils/Response.java + - src/main/java/dev/plexapi/sdk/utils/Retries.java + - src/main/java/dev/plexapi/sdk/utils/RetryConfig.java + - src/main/java/dev/plexapi/sdk/utils/Security.java + - src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java + - src/main/java/dev/plexapi/sdk/utils/SerializedBody.java + - src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java + - src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java + - src/main/java/dev/plexapi/sdk/utils/TypedObject.java + - src/main/java/dev/plexapi/sdk/utils/Types.java + - src/main/java/dev/plexapi/sdk/utils/Utils.java +examples: + getServerCapabilities: + speakeasy-default-get-server-capabilities: + responses: + "401": + application/json: {"errors": []} + "200": {} + getServerPreferences: + speakeasy-default-get-server-preferences: + responses: + "200": + application/json: {"MediaContainer": {"size": 161, "Setting": []}} + "401": + application/json: {"errors": []} + getAvailableClients: + speakeasy-default-get-available-clients: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Server": []}} + "401": + application/json: {"errors": []} + getDevices: + speakeasy-default-get-devices: + responses: + "200": + application/json: {"MediaContainer": {"size": 151, "identifier": "com.plexapp.system.devices", "Device": []}} + "401": + application/json: {"errors": []} + get-server-identity: + speakeasy-default-get-server-identity: + responses: + "200": + application/json: {"MediaContainer": {"size": 0, "machineIdentifier": "96f2fe7a78c9dc1f16a16bedbe90f98149be16b4", "version": "1.31.3.6868-28fc46b27"}} + "408": + application/json: {"code": 408, "message": "The server timed out waiting for the request."} + getMyPlexAccount: + speakeasy-default-get-my-plex-account: + responses: + "200": + application/json: {"MyPlex": {"authToken": "Z5v-PrNASDFpsaCi3CPK7", "username": "example.email@mail.com", "mappingState": "mapped", "signInState": "ok", "publicAddress": "140.20.68.140", "publicPort": 32400, "privateAddress": "10.10.10.47", "privatePort": 32400, "subscriptionFeatures": "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", "subscriptionState": "Active"}} + "401": + application/json: {"errors": []} + getResizedPhoto: + speakeasy-default-get-resized-photo: + parameters: + query: + width: 110 + height: 165 + opacity: 100 + blur: 20 + minSize: 1 + upscale: 0 + url: "/library/metadata/49564/thumb/1654258204" + responses: + "401": + application/json: {"errors": []} + get-media-providers: + speakeasy-default-get-media-providers: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + "200": {} + getServerList: + speakeasy-default-get-server-list: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Server": []}} + "401": + application/json: {"errors": []} + markPlayed: + speakeasy-default-mark-played: + parameters: + query: + key: 59398 + responses: + "401": + application/json: {"errors": []} + markUnplayed: + speakeasy-default-mark-unplayed: + parameters: + query: + key: 59398 + responses: + "401": + application/json: {"errors": []} + updatePlayProgress: + "": + parameters: + query: + key: "" + time: 90000 + state: "played" + responses: + "401": + application/json: {"errors": []} + get-banner-image: + speakeasy-default-get-banner-image: + parameters: + path: + ratingKey: 9518 + query: + width: 396 + height: 396 + minSize: 1 + upscale: 1 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + "200": {} + get-thumb-image: + speakeasy-default-get-thumb-image: + parameters: + path: + ratingKey: 9518 + query: + width: 396 + height: 396 + minSize: 1 + upscale: 1 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + "200": {} + getTimeline: + "": + parameters: + query: + ratingKey: 23409 + key: "/library/metadata/23409" + state: "playing" + hasMDE: 1 + time: 2000 + duration: 10000 + context: "home:hub.continueWatching" + playQueueItemID: 1 + playBackTime: 2000 + row: 1 + responses: + "401": + application/json: {"errors": []} + startUniversalTranscode: + "": + parameters: + query: + hasMDE: 1 + path: "/library/metadata/23409" + mediaIndex: 0 + partIndex: 0 + protocol: "hls" + fastSeek: 0 + directPlay: 0 + directStream: 0 + subtitleSize: 100 + subtites: "burn" + audioBoost: 100 + location: "lan" + mediaBufferSize: 102400 + session: "zvcage8b7rkioqcm8f4uns4c" + addDebugOverlay: 0 + autoAdjustQuality: 0 + responses: + "401": + application/json: {"errors": []} + getServerActivities: + speakeasy-default-get-server-activities: + responses: + "401": + application/json: {"errors": []} + "200": {} + cancelServerActivities: + "": + parameters: + path: + activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e" + responses: + "401": + application/json: {"errors": []} + getButlerTasks: + speakeasy-default-get-butler-tasks: + responses: + "200": + application/json: {"ButlerTasks": {"ButlerTask": []}} + "401": + application/json: {"errors": []} + startAllTasks: + speakeasy-default-start-all-tasks: + responses: + "401": + application/json: {"errors": []} + stopAllTasks: + speakeasy-default-stop-all-tasks: + responses: + "401": + application/json: {"errors": []} + startTask: + speakeasy-default-start-task: + parameters: + path: + taskName: "CleanOldBundles" + responses: + "401": + application/json: {"errors": []} + stopTask: + speakeasy-default-stop-task: + parameters: + path: + taskName: "BackupDatabase" + responses: + "401": + application/json: {"errors": []} + getCompanionsData: + speakeasy-default-get-companions-data: + responses: + "200": + application/json: [] + "401": + application/json: {"errors": []} + getUserFriends: + speakeasy-default-get-user-friends: + responses: + "200": + application/json: [{"email": "username@email.com", "friendlyName": "exampleUser", "home": true, "id": 0, "restricted": false, "sharedServers": [], "sharedSources": [], "status": "accepted", "thumb": "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578", "title": "username123", "username": "username123", "uuid": "7d1916e0d8f6e76b"}] + "401": + application/json: {"errors": []} + getGeoData: + speakeasy-default-get-geo-data: + responses: + "200": + application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} + "401": + application/json: {"errors": []} + getHomeData: + speakeasy-default-get-home-data: + responses: + "200": + application/json: {"id": 1841489, "name": "Blindkitty38's home", "guestUserID": 58815432, "guestUserUUID": "f3df4e01bfca0787"} + "401": + application/json: {"errors": []} + get-server-resources: + speakeasy-default-get-server-resources: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + includeHttps: 1 + includeRelay: 1 + includeIPv6: 1 + responses: + "401": + application/json: {"errors": []} + "200": {} + getPin: + "": + parameters: + query: + X-Plex-Product: "Plex Web" + responses: + "200": + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} + "400": + application/json: {"errors": []} + getTokenByPinId: + "": + parameters: + path: + pinID: 408895 + query: {} + responses: + "200": + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} + "400": + application/json: {"errors": []} + "404": + application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]} + getGlobalHubs: + speakeasy-default-get-global-hubs: + responses: + "200": + application/json: {"MediaContainer": {"size": 8, "allowSync": true, "identifier": "com.plexapp.plugins.library", "Hub": []}} + "401": + application/json: {"errors": []} + getLibraryHubs: + speakeasy-default-get-library-hubs: + parameters: + path: + sectionId: "6728.76" + query: {} + responses: + "200": + application/json: {"MediaContainer": {"size": 7, "allowSync": true, "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "librarySectionTitle": "Movies", "librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30", "Hub": []}} + "401": + application/json: {"errors": []} + performSearch: + speakeasy-default-perform-search: + parameters: + query: + query: "dylan" + limit: 5 + responses: + "401": + application/json: {"errors": []} + performVoiceSearch: + speakeasy-default-perform-voice-search: + parameters: + query: + query: "dead+poop" + limit: 5 + responses: + "401": + application/json: {"errors": []} + getSearchResults: + speakeasy-default-get-search-results: + parameters: + query: + query: "110" + responses: + "200": + application/json: {"MediaContainer": {"size": 26, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": [], "Provider": []}} + "401": + application/json: {"errors": []} + getFileHash: + speakeasy-default-get-file-hash: + parameters: + query: + url: "file://C:\\Image.png&type=13" + responses: + "401": + application/json: {"errors": []} + getRecentlyAdded: + speakeasy-default-get-recently-added: + parameters: + query: + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + responses: + "200": + application/json: {"MediaContainer": {"size": 50, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} + "401": + application/json: {"errors": []} + get-all-libraries: + speakeasy-default-get-all-libraries: + responses: + "200": + application/json: {"MediaContainer": {"size": 5, "allowSync": false, "title1": "Plex Library", "Directory": []}} + "401": + application/json: {"errors": []} + get-library-details: + speakeasy-default-get-library-details: + parameters: + path: + sectionKey: 9518 + query: {} + responses: + "200": + application/json: {"MediaContainer": {"size": 29, "allowSync": false, "art": "/:/resources/movie-fanart.jpg", "content": "secondary", "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "thumb": "/:/resources/movie.png", "title1": "Movies", "viewGroup": "secondary", "viewMode": 65592, "Directory": [], "Type": [], "FieldType": []}} + "401": + application/json: {"errors": []} + deleteLibrary: + speakeasy-default-delete-library: + parameters: + path: + sectionKey: 9518 + responses: + "401": + application/json: {"errors": []} + get-library-items: + "": + parameters: + path: + sectionKey: 9518 + tag: "edition" + query: + includeGuids: 1 + includeMeta: 1 + type: 2 + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + responses: + "200": + application/json: {"MediaContainer": {"size": 70, "allowSync": true, "art": "/:/resources/movie-fanart.jpg", "identifier": "com.plexapp.plugins.library", "librarySectionTitle": "Movies", "librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "thumb": "/:/resources/movie.png", "title1": "Movies", "title2": "Recently Released", "viewGroup": "movie", "viewMode": 65592, "mixedParents": true, "Metadata": []}} + "401": + application/json: {"errors": []} + get-refresh-library-metadata: + speakeasy-default-get-refresh-library-metadata: + parameters: + path: + sectionKey: 9518 + query: + force: 0 + responses: + "401": + application/json: {"errors": []} + get-search-library: + speakeasy-default-get-search-library: + parameters: + path: + sectionKey: 9518 + query: + type: 2 + responses: + "200": + application/json: {"MediaContainer": {"size": 2, "allowSync": false, "art": "/:/resources/show-fanart.jpg", "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "nocache": true, "thumb": "/:/resources/show.png", "title1": "TV Shows", "title2": "Search for ''", "viewGroup": "season", "viewMode": 65593, "Metadata": []}} + "401": + application/json: {"errors": []} + get-meta-data-by-rating-key: + speakeasy-default-get-meta-data-by-rating-key: + parameters: + path: + ratingKey: 9518 + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "allowSync": true, "identifier": "com.plexapp.plugins.library", "librarySectionID": 1, "librarySectionTitle": "Movies", "librarySectionUUID": "cfc899d7-3000-46f6-8489-b9592714ada5", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "Metadata": []}} + "401": + application/json: {"errors": []} + getMetadataChildren: + include-stream: + parameters: + path: + ratingKey: "1539.14" + query: + includeElements: "Stream" + responses: + "200": + application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "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": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} + "401": + application/json: {"errors": []} + include-stream-otheritem: + parameters: + path: + ratingKey: "8449.64" + query: + includeElements: "Stream,OtherItem" + responses: + "200": + application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "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": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} + "401": + application/json: {"errors": []} + include-stream-otheritem-anotheritem: + parameters: + path: + ratingKey: "5800.4" + query: + includeElements: "Stream,OtherItem,AnotherItem" + responses: + "200": + application/json: {"MediaContainer": {"size": 3, "allowSync": true, "art": "/library/metadata/30072/art/1705739923", "identifier": "com.plexapp.plugins.library", "key": "30072", "librarySectionID": 2, "librarySectionTitle": "TV Shows", "librarySectionUUID": "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1701731894, "nocache": true, "parentIndex": 1, "parentTitle": "Reacher", "parentYear": 2022, "summary": "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": "/library/metadata/30072/theme/1705739923", "thumb": "/library/metadata/30072/thumb/1705739923", "title1": "TV Shows", "title2": "Reacher", "viewGroup": "season", "viewMode": 65593, "Directory": [{"leafCount": 16, "thumb": "/library/metadata/30072/thumb/1705739923", "viewedLeafCount": 16, "key": "/library/metadata/30072/allLeaves", "title": "All episodes"}], "Metadata": []}} + "401": + application/json: {"errors": []} + getTopWatchedContent: + "": + parameters: + query: + type: 2 + includeGuids: 1 + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "allowSync": true, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1698860922, "Metadata": []}} + "401": + application/json: {"errors": []} + getOnDeck: + speakeasy-default-get-on-deck: + responses: + "200": + application/json: {"MediaContainer": {"size": 16, "identifier": "com.plexapp.plugins.library", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1680021154, "Metadata": []}} + "401": + application/json: {"errors": []} + get-watch-list: + speakeasy-default-get-watch-list: + parameters: + path: + filter: "available" + query: + X-Plex-Container-Start: 0 + X-Plex-Container-Size: 50 + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "401": + application/json: {"errors": []} + "200": {} + logLine: + speakeasy-default-log-line: + parameters: + query: + level: 3 + message: "Test log message" + source: "Postman" + responses: + "401": + application/json: {"errors": []} + logMultiLine: + speakeasy-default-log-multi-line: + requestBody: + text/plain: "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman" + responses: + "401": + application/json: {"errors": []} + enablePaperTrail: + speakeasy-default-enable-paper-trail: + responses: + "401": + application/json: {"errors": []} + createPlaylist: + speakeasy-default-create-playlist: + parameters: + query: + title: "" + type: "photo" + smart: 1 + uri: "https://inborn-brochure.biz" + responses: + "200": + application/json: {"MediaContainer": {"size": 7, "Metadata": []}} + "401": + application/json: {"errors": []} + getPlaylists: + speakeasy-default-get-playlists: + responses: + "200": + application/json: {"MediaContainer": {"size": 4, "Metadata": []}} + "401": + application/json: {"errors": []} + getPlaylist: + speakeasy-default-get-playlist: + parameters: + path: + playlistID: "4109.48" + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + deletePlaylist: + speakeasy-default-delete-playlist: + parameters: + path: + playlistID: "216.22" + responses: + "401": + application/json: {"errors": []} + updatePlaylist: + speakeasy-default-update-playlist: + parameters: + path: + playlistID: "3915" + query: {} + responses: + "401": + application/json: {"errors": []} + getPlaylistContents: + speakeasy-default-get-playlist-contents: + parameters: + path: + playlistID: "5004.46" + query: + type: 2 + responses: + "200": + application/json: {"MediaContainer": {"size": 2, "composite": "/playlists/95/composite/1705717521", "duration": 282, "leafCount": 2, "playlistType": "video", "ratingKey": "95", "smart": true, "title": "Smart Movie Playlist", "Metadata": []}} + "401": + application/json: {"errors": []} + clearPlaylistContents: + speakeasy-default-clear-playlist-contents: + parameters: + path: + playlistID: "1893.18" + responses: + "401": + application/json: {"errors": []} + addPlaylistContents: + speakeasy-default-add-playlist-contents: + parameters: + path: + playlistID: "8502.01" + query: + uri: "server://12345/com.plexapp.plugins.library/library/metadata/1" + playQueueID: 123 + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "leafCountAdded": 1, "leafCountRequested": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + uploadPlaylist: + speakeasy-default-upload-playlist: + parameters: + query: + path: "/home/barkley/playlist.m3u" + force: 0 + responses: + "401": + application/json: {"errors": []} + getTransientToken: + speakeasy-default-get-transient-token: + parameters: + query: + type: "delegation" + scope: "all" + responses: + "401": + application/json: {"errors": []} + getSourceConnectionInformation: + speakeasy-default-get-source-connection-information: + parameters: + query: + source: "server://client-identifier" + responses: + "401": + application/json: {"errors": []} + getUserDetails: + speakeasy-default-get-user-details: + parameters: + query: + X-Plex-Token: "CV5xoxjTpFKUzBTShsaf" + responses: + "200": + application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f"} + "401": + application/json: {"errors": []} + post-users-sign-in-data: + speakeasy-default-post-users-sign-in-data: + requestBody: + application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123"} + responses: + "201": + application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": [], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1721154902, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": "1", "defaultSubtitleAccessibility": "1", "defaultSubtitleForced": "0", "watchedIndicator": "1", "mediaReviewsVisibility": 0}, "protected": false, "rememberExpiresAt": 1722364046, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "pastSubscriptions": [{"id": "string", "mode": "string", "renewsAt": "string", "endsAt": "1556281940", "canceled": "0", "gracePeriod": "0", "onHold": "0", "canReactivate": "0", "canUpgrade": "0", "canDowngrade": "0", "canConvert": "0", "type": "plexpass", "transfer": "string", "state": "ended", "billing": {"paymentMethodId": 569045}}], "trials": [{}]} + "401": + application/json: {"errors": []} + getStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}} + "401": + application/json: {"errors": []} + getResourcesStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}} + "401": + application/json: {"errors": []} + getBandwidthStatistics: + "": + parameters: + query: + Timespan: 4 + responses: + "200": + application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}} + "401": + application/json: {"errors": []} + getSessions: + speakeasy-default-get-sessions: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "Metadata": []}} + "401": + application/json: {"errors": []} + getSessionHistory: + viewed-at-descending: + parameters: + query: + sort: "viewedAt:desc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + viewed-at-ascending: + parameters: + query: + sort: "viewedAt:asc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + rating-descending: + parameters: + query: + sort: "rating:desc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + rating-ascending: + parameters: + query: + sort: "rating:asc" + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + "": + parameters: + query: + accountId: 1 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + ViewedAt: + parameters: + query: + accountId: 1 + filter: viewedAt>=1704862818 + librarySectionID: 12 + responses: + "200": + application/json: {"MediaContainer": {"size": 10855, "Metadata": []}} + "401": + application/json: {"errors": []} + getTranscodeSessions: + speakeasy-default-get-transcode-sessions: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "TranscodeSession": [{"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}]}} + "401": + application/json: {"errors": []} + stopTranscodeSession: + speakeasy-default-stop-transcode-session: + parameters: + path: + sessionKey: "zz7llzqlx8w9vnrsbnwhbmep" + responses: + "401": + application/json: {"errors": []} + getUpdateStatus: + speakeasy-default-get-update-status: + responses: + "200": + application/json: {"MediaContainer": {"size": 1, "canInstall": false, "checkedAt": 1705801232, "downloadURL": "https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx", "status": 0, "Release": [{"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&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx", "state": "notify"}]}} + "401": + application/json: {"errors": []} + checkForUpdates: + "": + parameters: + query: + download: 1 + responses: + "401": + application/json: {"errors": []} + applyUpdates: + "": + parameters: + query: + tonight: 1 + skip: 1 + responses: + "401": + application/json: {"errors": []} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 29d8c7e4..227dfe23 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,17 +12,17 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 0.1.1 + version: 0.2.1 additionalDependencies: [] additionalPlugins: [] artifactID: plexapi clientServerStatusCodesAsErrors: true companyEmail: lukeslakemail@gmail.com - companyName: Personal - companyURL: lukehagar.com + companyName: plexapi + companyURL: plexapi.dev flattenGlobalSecurity: true githubURL: github.com/LukeHagar/plexjava - groupID: lukehagar.plexapi + groupID: dev.plexapi imports: option: openapi paths: @@ -39,5 +39,6 @@ java: maxMethodParams: 4 ossrhURL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ outputModelSuffix: output + packageName: dev.plexapi.sdk projectName: plexapi templateVersion: v2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9c096831..dd748cd0 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,19 +1,19 @@ -speakeasyVersion: 1.323.0 +speakeasyVersion: 1.392.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:e126ecf895f7782d460cef7bfb0c3dacdcf586574063ac3ed1065a5d7ac07eef - sourceBlobDigest: sha256:dcd07a4fc95f11a14baa2d3a47d72ce6b7a405451b84d13daf439ede60668b9e + sourceRevisionDigest: sha256:893baf00932f1b8e49b2e60af272be6a9a62934af6eb3a2f96dd9f2302ef69c5 + sourceBlobDigest: sha256:f689cdc9c740f4e5120422720722d2d256d56ceb62bc13370713ec1661a433df tags: - latest targets: plexjava: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:e126ecf895f7782d460cef7bfb0c3dacdcf586574063ac3ed1065a5d7ac07eef - sourceBlobDigest: sha256:dcd07a4fc95f11a14baa2d3a47d72ce6b7a405451b84d13daf439ede60668b9e + sourceRevisionDigest: sha256:893baf00932f1b8e49b2e60af272be6a9a62934af6eb3a2f96dd9f2302ef69c5 + sourceBlobDigest: sha256:f689cdc9c740f4e5120422720722d2d256d56ceb62bc13370713ec1661a433df codeSamplesNamespace: code-samples-java-plexjava - codeSamplesRevisionDigest: sha256:0fb8877545d0754f73fb65a79ee7014d1a11f9fb044b0f2b9d14bd6eea02f4f9 + codeSamplesRevisionDigest: sha256:27e9ddcf184b3b85da657c183692c4d490f1e6887e82efdcacdb3251b5595f16 outLocation: /home/luke/github/plexjava workflow: workflowVersion: 1.0.0 @@ -21,9 +21,7 @@ workflow: 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 + - location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main targets: plexjava: target: java diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 24c93383..93d6bf05 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -3,13 +3,17 @@ 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 + - location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main targets: plexjava: target: java source: my-source + publish: + java: + ossrhUsername: J4dlHj0l + ossrhPassword: $ossrh_password + gpgSecretKey: $java_gpg_secret_key + gpgPassPhrase: $java_gpg_passphrase codeSamples: output: codeSamples.yaml registry: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d585717f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/README.md b/README.md index 8388a4ec..380e125b 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,24 @@ + +## Summary + +Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) +* [Available Resources and Operations](#available-resources-and-operations) +* [Global Parameters](#global-parameters) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Authentication](#authentication) + + ## SDK Installation @@ -19,15 +37,15 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'lukehagar.plexapi:plexapi:0.1.1' +implementation 'dev.plexapi:plexapi:0.2.1' ``` Maven: ```xml - lukehagar.plexapi + dev.plexapi plexapi - 0.1.1 + 0.2.1 ``` @@ -54,19 +72,10 @@ gradlew.bat publishToMavenLocal -Pskip.signing ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -74,7 +83,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -83,10 +92,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -111,6 +120,7 @@ public class Application { * [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 +* [getMediaProviders](docs/sdks/server/README.md#getmediaproviders) - Get Media Providers * [getServerList](docs/sdks/server/README.md#getserverlist) - Get Server List ### [media()](docs/sdks/media/README.md) @@ -118,6 +128,8 @@ public class Application { * [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 +* [getBannerImage](docs/sdks/media/README.md#getbannerimage) - Get Banner Image +* [getThumbImage](docs/sdks/media/README.md#getthumbimage) - Get Thumb Image ### [video()](docs/sdks/video/README.md) @@ -139,9 +151,13 @@ public class Application { ### [plex()](docs/sdks/plex/README.md) +* [getCompanionsData](docs/sdks/plex/README.md#getcompanionsdata) - Get Companions Data +* [getUserFriends](docs/sdks/plex/README.md#getuserfriends) - Get list of friends of the user logged in +* [getGeoData](docs/sdks/plex/README.md#getgeodata) - Get Geo Data * [getHomeData](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data +* [getServerResources](docs/sdks/plex/README.md#getserverresources) - Get Server Resources * [getPin](docs/sdks/plex/README.md#getpin) - Get a Pin -* [getToken](docs/sdks/plex/README.md#gettoken) - Get Access Token +* [getTokenByPinId](docs/sdks/plex/README.md#gettokenbypinid) - Get Access Token by PinId ### [hubs()](docs/sdks/hubs/README.md) @@ -158,17 +174,21 @@ public class Application { * [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 +* [getAllLibraries](docs/sdks/library/README.md#getalllibraries) - Get All Libraries +* [getLibraryDetails](docs/sdks/library/README.md#getlibrarydetails) - 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 +* [getRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library +* [getSearchLibrary](docs/sdks/library/README.md#getsearchlibrary) - Search Library +* [getMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey * [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 +### [watchlist()](docs/sdks/watchlist/README.md) + +* [getWatchList](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist + ### [log()](docs/sdks/log/README.md) * [logLine](docs/sdks/log/README.md#logline) - Logging a single line message. @@ -191,6 +211,8 @@ public class Application { * [getTransientToken](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token. * [getSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information +* [getUserDetails](docs/sdks/authentication/README.md#getuserdetails) - Get User Data By Token +* [postUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata) - Get User SignIn Data ### [statistics()](docs/sdks/statistics/README.md) @@ -210,10 +232,6 @@ public class Application { * [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 @@ -221,7 +239,7 @@ public class Application { 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. +For example, you can set `X-Plex-Client-Identifier` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. 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 @@ -230,7 +248,7 @@ The following global parameter is available. | Name | Type | Required | Description | | ---- | ---- |:--------:| ----------- | -| xPlexClientIdentifier | String | | The unique identifier for the client application +| xPlexClientIdentifier | java.lang.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) | @@ -241,40 +259,42 @@ This is used to track the client application and its 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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerResourcesRequest; +import dev.plexapi.sdk.models.operations.GetServerResourcesResponse; +import dev.plexapi.sdk.models.operations.IncludeHttps; +import dev.plexapi.sdk.models.operations.IncludeIPv6; +import dev.plexapi.sdk.models.operations.IncludeRelay; +import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { try { PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetPinResponse res = sdk.plex().getPin() - .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") + GetServerResourcesRequest req = GetServerResourcesRequest.builder() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .includeHttps(IncludeHttps.ONE) + .includeRelay(IncludeRelay.ONE) + .includeIPv6(IncludeIPv6.ONE) + .build(); + + GetServerResourcesResponse res = sdk.plex().getServerResources() + .request(req) .call(); - if (res.object().isPresent()) { + if (res.plexDevices().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerResourcesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -302,19 +322,10 @@ Handling errors in this SDK should largely match your expectations. All operati ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -322,7 +333,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -331,10 +342,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -356,26 +367,17 @@ You can override the default server globally by passing a server index to the `s | # | Server | Variables | | - | ------ | --------- | -| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) | +| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `https`), `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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -384,7 +386,7 @@ public class Application { PlexAPI sdk = PlexAPI.builder() .serverIndex(0) .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -393,10 +395,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -421,19 +423,10 @@ The default server can also be overridden globally by passing a URL to the `serv ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -442,7 +435,7 @@ public class Application { PlexAPI sdk = PlexAPI.builder() .serverURL("{protocol}://{ip}:{port}") .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -451,10 +444,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -472,41 +465,31 @@ The server URL can also be overridden on a per-operation basis, provided a serve ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetCompanionsDataResponse; +import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { try { PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetPinResponse res = sdk.plex().getPin() + GetCompanionsDataResponse res = sdk.plex().getCompanionsData() .serverURL("https://plex.tv/api/v2") - .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") .call(); - if (res.object().isPresent()) { + if (res.responseBodies().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetCompanionsDataResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -534,19 +517,10 @@ To authenticate with the API the `accessToken` parameter must be set when initia ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -554,7 +528,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -563,10 +537,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { diff --git a/USAGE.md b/USAGE.md index 26f5ab11..0e0d05cb 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,19 +2,10 @@ ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -22,7 +13,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -31,10 +22,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { diff --git a/build.gradle b/build.gradle index c1b13ce2..1145f8f9 100644 --- a/build.gradle +++ b/build.gradle @@ -8,9 +8,12 @@ // 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' + id 'maven-publish' + id 'signing' } compileJava.options.encoding = "UTF-8" @@ -29,15 +32,99 @@ java { withJavadocJar() } +model { + tasks.generatePomFileForMavenPublication { + destination = file("$buildDir/pom.xml") + } +} + +jar { + dependsOn(":generatePomFileForMavenPublication") + + into("META-INF/maven/dev.plexapi/plexapi") { + from("$buildDir/pom.xml") + } +} + +javadoc { + options.encoding = "UTF-8" + + if(JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } + options.addStringOption('Xdoclint:none', '-quiet') +} + tasks.withType(Javadoc) { failOnError false options.addStringOption('Xdoclint:none', '-quiet') } +group = "dev.plexapi" +version = "0.2.1" + +sourcesJar { + archiveBaseName = "plexapi" +} + +javadocJar { + archiveBaseName = "plexapi" +} + + +publishing { + + publications { + maven(MavenPublication) { + groupId = 'dev.plexapi' + artifactId = 'plexapi' + version = '0.2.1' + + from components.java + + pom { + name = 'plexapi Java SDK' + description = 'SDK enabling Java developers to easily integrate with the plexapi API.' + url = 'https://github.com/LukeHagar/plexjava' + scm { + url = 'github.com/LukeHagar/plexjava' + connection = 'scm:git:ssh://git@github.com/LukeHagar/plexjava.git' + } + licenses { + license { + name = 'The MIT License (MIT)' + url = 'https://mit-license.org/' + } + } + developers { + developer { + name = 'plexapi' + organization = 'plexapi' + email = 'lukeslakemail@gmail.com' + } + } + organization { + name = 'plexapi' + url = 'plexapi.dev' + } + } + } + } +} + +if (!project.hasProperty('skip.signing')) { + signing { + def signingKey = findProperty("signingKey") + def signingPassphrase = findProperty("signingPassphrase") + useInMemoryPgpKeys(signingKey, signingPassphrase) + sign publishing.publications.maven + } +} + 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 'com.fasterxml.jackson.core:jackson-databind:2.17.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' 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' diff --git a/codeSamples.yaml b/codeSamples.yaml index 2377e58e..aa3495ab 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -11,19 +11,10 @@ actions: source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse; + import java.lang.Exception; public class Application { @@ -31,7 +22,7 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -40,10 +31,10 @@ actions: if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -53,27 +44,18 @@ actions: } } - - target: $["paths"]["/butler/{taskName}"]["delete"] + - target: $["paths"]["/:/prefs"]["get"] update: x-codeSamples: - lang: java - label: stopTask + label: getServerPreferences source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerPreferencesResponse; + import java.lang.Exception; public class Application { @@ -81,282 +63,19 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] - update: - x-codeSamples: - - lang: java - label: clearPlaylistContents - source: |- - 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; - } - - } - } - - target: $["paths"]["/photo/:/transcode"]["get"] - update: - x-codeSamples: - - lang: java - label: getResizedPhoto - source: |- - 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; - } - - } - } - - target: $["paths"]["/hubs/search/voice"]["get"] - update: - x-codeSamples: - - lang: java - label: performVoiceSearch - source: |- - 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; - } - - } - } - - target: $["paths"]["/log"]["post"] - update: - x-codeSamples: - - lang: java - label: logMultiLine - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}/items"]["get"] - update: - x-codeSamples: - - lang: java - label: getPlaylistContents - source: |- - 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) + GetServerPreferencesResponse res = sdk.server().getServerPreferences() .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody e) { + } catch (dev.plexapi.plexapi.models.errors.GetServerPreferencesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -366,27 +85,18 @@ actions: } } - - target: $["paths"]["/status/sessions/history/all"]["get"] + - target: $["paths"]["/:/progress"]["post"] update: x-codeSamples: - lang: java - label: getSessionHistory + label: updatePlayProgress source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.UpdatePlayProgressResponse; + import java.lang.Exception; public class Application { @@ -394,580 +104,20 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .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; - } - - } - } - - target: $["paths"]["/library/sections"]["get"] - update: - x-codeSamples: - - lang: java - label: getLibraries - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: java - label: getLibrary - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}"]["get"] - update: - x-codeSamples: - - lang: java - label: getPlaylist - source: |- - 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; - } - - } - } - - target: $["paths"]["/security/resources"]["get"] - update: - x-codeSamples: - - lang: java - label: getSourceConnectionInformation - source: |- - 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") + UpdatePlayProgressResponse res = sdk.media().updatePlayProgress() + .key("") + .time(90000d) + .state("played") .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetSourceConnectionInformationResponseBody e) { + } catch (dev.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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}/items"]["put"] - update: - x-codeSamples: - - lang: java - label: addPlaylistContents - source: |- - 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; - } - - } - } - - target: $["paths"]["/security/token"]["get"] - update: - x-codeSamples: - - lang: java - label: getTransientToken - source: |- - 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; - } - - } - } - - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] - update: - x-codeSamples: - - lang: java - label: stopTranscodeSession - source: |- - 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; - } - - } - } - - target: $["paths"]["/updater/apply"]["put"] - update: - x-codeSamples: - - lang: java - label: applyUpdates - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}"]["put"] - update: - x-codeSamples: - - lang: java - label: updatePlaylist - source: |- - 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; - } - - } - } - - target: $["paths"]["/statistics/bandwidth"]["get"] - update: - x-codeSamples: - - lang: java - label: getBandwidthStatistics - source: |- - 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; - } - - } - } - - target: $["paths"]["/transcode/sessions"]["get"] - update: - x-codeSamples: - - lang: java - label: getTranscodeSessions - source: |- - 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) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -985,19 +135,10 @@ actions: source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.MarkPlayedResponse; + import java.lang.Exception; public class Application { @@ -1005,7 +146,7 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); MarkPlayedResponse res = sdk.media().markPlayed() @@ -1013,10 +154,10 @@ actions: .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.MarkPlayedResponseBody e) { + } catch (dev.plexapi.plexapi.models.errors.MarkPlayedResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -1026,27 +167,20 @@ actions: } } - - target: $["paths"]["/search"]["get"] + - target: $["paths"]["/:/timeline"]["get"] update: x-codeSamples: - lang: java - label: getSearchResults + label: getTimeline source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetTimelineRequest; + import dev.plexapi.plexapi.models.operations.GetTimelineResponse; + import dev.plexapi.plexapi.models.operations.State; + import java.lang.Exception; public class Application { @@ -1054,278 +188,31 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .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; - } - - } - } - - target: $["paths"]["/library/recentlyAdded"]["get"] - update: - x-codeSamples: - - lang: java - label: getRecentlyAdded - source: |- - 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") + 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(); - 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; - } - - } - } - - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] - update: - x-codeSamples: - - lang: java - label: getMetadataChildren - source: |- - 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; - } - - } - } - - target: $["paths"]["/log"]["get"] - update: - x-codeSamples: - - lang: java - label: logLine - source: |- - 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; - } - - } - } - - target: $["paths"]["/updater/check"]["put"] - update: - x-codeSamples: - - lang: java - label: checkForUpdates - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] - update: - x-codeSamples: - - lang: java - label: getWatchlist - source: |- - 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() + GetTimelineResponse res = sdk.video().getTimeline() .request(req) .call(); - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetWatchlistResponseBody e) { + // handle response + } catch (dev.plexapi.plexapi.models.errors.GetTimelineResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -1335,27 +222,18 @@ actions: } } - - target: $["paths"]["/myplex/account"]["get"] + - target: $["paths"]["/:/unscrobble"]["get"] update: x-codeSamples: - lang: java - label: getMyPlexAccount + label: markUnplayed source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.MarkUnplayedResponse; + import java.lang.Exception; public class Application { @@ -1363,19 +241,99 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount() + MarkUnplayedResponse res = sdk.media().markUnplayed() + .key(59398d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.MarkUnplayedResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/activities"]["get"] + update: + x-codeSamples: + - lang: java + label: getServerActivities + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerActivitiesResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerActivitiesResponse res = sdk.activities().getServerActivities() .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody e) { + } catch (dev.plexapi.plexapi.models.errors.GetServerActivitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/activities/{activityUUID}"]["delete"] + update: + x-codeSamples: + - lang: java + label: cancelServerActivities + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.CancelServerActivitiesResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities() + .activityUUID("25b71ed5-0f9d-461c-baa7-d404e9e10d3e") + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.CancelServerActivitiesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -1393,19 +351,10 @@ actions: source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.StopAllTasksResponse; + import java.lang.Exception; public class Application { @@ -1413,17 +362,2782 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StopAllTasksResponse res = sdk.butler().stopAllTasks() .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopAllTasksResponseBody e) { + } catch (dev.plexapi.plexapi.models.errors.StopAllTasksResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/butler"]["get"] + update: + x-codeSamples: + - lang: java + label: getButlerTasks + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetButlerTasksResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetButlerTasksResponse res = sdk.butler().getButlerTasks() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetButlerTasksResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/butler"]["post"] + update: + x-codeSamples: + - lang: java + label: startAllTasks + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.StartAllTasksResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + StartAllTasksResponse res = sdk.butler().startAllTasks() + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.StartAllTasksResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/butler/{taskName}"]["delete"] + update: + x-codeSamples: + - lang: java + label: stopTask + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.PathParamTaskName; + import dev.plexapi.plexapi.models.operations.StopTaskResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + StopTaskResponse res = sdk.butler().stopTask() + .taskName(PathParamTaskName.BACKUP_DATABASE) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.StopTaskResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/butler/{taskName}"]["post"] + update: + x-codeSamples: + - lang: java + label: startTask + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.StartTaskResponse; + import dev.plexapi.plexapi.models.operations.TaskName; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + StartTaskResponse res = sdk.butler().startTask() + .taskName(TaskName.CLEAN_OLD_BUNDLES) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.StartTaskResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/clients"]["get"] + update: + x-codeSamples: + - lang: java + label: getAvailableClients + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetAvailableClientsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetAvailableClientsResponse res = sdk.server().getAvailableClients() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetAvailableClientsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/companions"]["get"] + update: + x-codeSamples: + - lang: java + label: getCompanionsData + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetCompanionsDataResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetCompanionsDataResponse res = sdk.plex().getCompanionsData() + .call(); + + if (res.responseBodies().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetCompanionsDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/devices"]["get"] + update: + x-codeSamples: + - lang: java + label: getDevices + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetDevicesResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetDevicesResponse res = sdk.server().getDevices() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetDevicesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/friends"]["get"] + update: + x-codeSamples: + - lang: java + label: getUserFriends + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetUserFriendsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetUserFriendsResponse res = sdk.plex().getUserFriends() + .call(); + + if (res.friends().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetUserFriendsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/geoip"]["get"] + update: + x-codeSamples: + - lang: java + label: getGeoData + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetGeoDataResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetGeoDataResponse res = sdk.plex().getGeoData() + .call(); + + if (res.geoData().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetGeoDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/home"]["get"] + update: + x-codeSamples: + - lang: java + label: getHomeData + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetHomeDataResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetHomeDataResponse res = sdk.plex().getHomeData() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetHomeDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/hubs"]["get"] + update: + x-codeSamples: + - lang: java + label: getGlobalHubs + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetGlobalHubsResponse; + import dev.plexapi.plexapi.models.operations.OnlyTransient; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs() + .count(1262.49d) + .onlyTransient(OnlyTransient.ONE) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetGlobalHubsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/hubs/search"]["get"] + update: + x-codeSamples: + - lang: java + label: performSearch + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.PerformSearchResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + PerformSearchResponse res = sdk.search().performSearch() + .query("arnold") + .sectionId(9372.7d) + .limit(5d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.PerformSearchResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/hubs/search/voice"]["get"] + update: + x-codeSamples: + - lang: java + label: performVoiceSearch + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.PerformVoiceSearchResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + PerformVoiceSearchResponse res = sdk.search().performVoiceSearch() + .query("dead+poop") + .sectionId(4094.8d) + .limit(5d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.PerformVoiceSearchResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: java + label: getLibraryHubs + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetLibraryHubsResponse; + import dev.plexapi.plexapi.models.operations.QueryParamOnlyTransient; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs() + .sectionId(6728.76d) + .count(9010.22d) + .onlyTransient(QueryParamOnlyTransient.ZERO) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetLibraryHubsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/identity"]["get"] + update: + x-codeSamples: + - lang: java + label: identity + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerIdentityResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerIdentityResponse res = sdk.server().getServerIdentity() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetServerIdentityResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/all/top"]["get"] + update: + x-codeSamples: + - lang: java + label: getTopWatchedContent + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetTopWatchedContentQueryParamType; + import dev.plexapi.plexapi.models.operations.GetTopWatchedContentResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent() + .type(GetTopWatchedContentQueryParamType.TWO) + .includeGuids(1L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetTopWatchedContentResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/hashes"]["get"] + update: + x-codeSamples: + - lang: java + label: getFileHash + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetFileHashResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetFileHashResponse res = sdk.library().getFileHash() + .url("file://C:\Image.png&type=13") + .type(4462.17d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.GetFileHashResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] + update: + x-codeSamples: + - lang: java + label: key + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetMetaDataByRatingKeyResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey() + .ratingKey(9518L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetMetaDataByRatingKeyResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"] + update: + x-codeSamples: + - lang: java + label: image + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetBannerImageRequest; + import dev.plexapi.plexapi.models.operations.GetBannerImageResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetBannerImageRequest req = GetBannerImageRequest.builder() + .ratingKey(9518L) + .width(396L) + .height(396L) + .minSize(1L) + .upscale(1L) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .build(); + + GetBannerImageResponse res = sdk.media().getBannerImage() + .request(req) + .call(); + + if (res.responseStream().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetBannerImageResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] + update: + x-codeSamples: + - lang: java + label: getMetadataChildren + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetMetadataChildrenResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetMetadataChildrenResponse res = sdk.library().getMetadataChildren() + .ratingKey(1539.14d) + .includeElements("") + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetMetadataChildrenResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"] + update: + x-codeSamples: + - lang: java + label: image + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetThumbImageRequest; + import dev.plexapi.plexapi.models.operations.GetThumbImageResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetThumbImageRequest req = GetThumbImageRequest.builder() + .ratingKey(9518L) + .width(396L) + .height(396L) + .minSize(1L) + .upscale(1L) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .build(); + + GetThumbImageResponse res = sdk.media().getThumbImage() + .request(req) + .call(); + + if (res.responseStream().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetThumbImageResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/onDeck"]["get"] + update: + x-codeSamples: + - lang: java + label: getOnDeck + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetOnDeckResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetOnDeckResponse res = sdk.library().getOnDeck() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetOnDeckResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/recentlyAdded"]["get"] + update: + x-codeSamples: + - lang: java + label: getRecentlyAdded + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetRecentlyAddedResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded() + .xPlexContainerStart(0) + .xPlexContainerSize(50) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetRecentlyAddedResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections"]["get"] + update: + x-codeSamples: + - lang: java + label: libraries + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetAllLibrariesResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetAllLibrariesResponse res = sdk.library().getAllLibraries() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetAllLibrariesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] + update: + x-codeSamples: + - lang: java + label: list + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.Filter; + import dev.plexapi.plexapi.models.operations.GetWatchListRequest; + import dev.plexapi.plexapi.models.operations.GetWatchListResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetWatchListRequest req = GetWatchListRequest.builder() + .filter(Filter.AVAILABLE) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .xPlexContainerStart(0) + .xPlexContainerSize(50) + .build(); + + GetWatchListResponse res = sdk.watchlist().getWatchList() + .request(req) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetWatchListResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/{sectionKey}"]["delete"] + update: + x-codeSamples: + - lang: java + label: deleteLibrary + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.DeleteLibraryResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + DeleteLibraryResponse res = sdk.library().deleteLibrary() + .sectionKey(9518) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.DeleteLibraryResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/{sectionKey}"]["get"] + update: + x-codeSamples: + - lang: java + label: details + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetLibraryDetailsResponse; + import dev.plexapi.plexapi.models.operations.IncludeDetails; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetLibraryDetailsResponse res = sdk.library().getLibraryDetails() + .sectionKey(9518) + .includeDetails(IncludeDetails.ZERO) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetLibraryDetailsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"] + update: + x-codeSamples: + - lang: java + label: metadata + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.Force; + import dev.plexapi.plexapi.models.operations.GetRefreshLibraryMetadataResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata() + .sectionKey(9518) + .force(Force.ONE) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.GetRefreshLibraryMetadataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/{sectionKey}/search"]["get"] + update: + x-codeSamples: + - lang: java + label: library + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetSearchLibraryResponse; + import dev.plexapi.plexapi.models.operations.QueryParamType; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetSearchLibraryResponse res = sdk.library().getSearchLibrary() + .sectionKey(9518) + .type(QueryParamType.TWO) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetSearchLibraryResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"] + update: + x-codeSamples: + - lang: java + label: items + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetLibraryItemsRequest; + import dev.plexapi.plexapi.models.operations.GetLibraryItemsResponse; + import dev.plexapi.plexapi.models.operations.IncludeGuids; + import dev.plexapi.plexapi.models.operations.IncludeMeta; + import dev.plexapi.plexapi.models.operations.Tag; + import dev.plexapi.plexapi.models.operations.Type; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetLibraryItemsRequest req = GetLibraryItemsRequest.builder() + .sectionKey(9518) + .tag(Tag.EDITION) + .type(Type.TWO) + .includeGuids(IncludeGuids.ONE) + .includeMeta(IncludeMeta.ONE) + .xPlexContainerStart(0) + .xPlexContainerSize(50) + .build(); + + GetLibraryItemsResponse res = sdk.library().getLibraryItems() + .request(req) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetLibraryItemsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/log"]["get"] + update: + x-codeSamples: + - lang: java + label: logLine + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.Level; + import dev.plexapi.plexapi.models.operations.LogLineResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + LogLineResponse res = sdk.log().logLine() + .level(Level.THREE) + .message("Test log message") + .source("Postman") + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.LogLineResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/log"]["post"] + update: + x-codeSamples: + - lang: java + label: logMultiLine + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.LogMultiLineResponse; + import java.lang.Exception; + import java.lang.String; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + String req = "level=4&message=Test%20message%201&source=postman\nlevel=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 (dev.plexapi.plexapi.models.errors.LogMultiLineResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/log/networked"]["get"] + update: + x-codeSamples: + - lang: java + label: enablePaperTrail + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.EnablePaperTrailResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + EnablePaperTrailResponse res = sdk.log().enablePaperTrail() + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.EnablePaperTrailResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/media/providers"]["get"] + update: + x-codeSamples: + - lang: java + label: providers + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetMediaProvidersResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetMediaProvidersResponse res = sdk.server().getMediaProviders() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetMediaProvidersResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/myplex/account"]["get"] + update: + x-codeSamples: + - lang: java + label: getMyPlexAccount + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetMyPlexAccountResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/photo/:/transcode"]["get"] + update: + x-codeSamples: + - lang: java + label: getResizedPhoto + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetResizedPhotoRequest; + import dev.plexapi.plexapi.models.operations.GetResizedPhotoResponse; + import dev.plexapi.plexapi.models.operations.MinSize; + import dev.plexapi.plexapi.models.operations.Upscale; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .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 (dev.plexapi.plexapi.models.errors.GetResizedPhotoResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/pins"]["post"] + update: + x-codeSamples: + - lang: java + label: getPin + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetPinResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetPinResponse res = sdk.plex().getPin() + .strong(false) + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .xPlexProduct("Plex Web") + .call(); + + if (res.authPinContainer().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetPinResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/pins/{pinID}"]["get"] + update: + x-codeSamples: + - lang: java + label: getTokenByPinId + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetTokenByPinIdResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .pinID(408895L) + .call(); + + if (res.authPinContainer().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetTokenByPinIdResponseBody e) { + // handle exception + throw e; + } catch (dev.plexapi.plexapi.models.errors.GetTokenByPinIdPlexResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists"]["get"] + update: + x-codeSamples: + - lang: java + label: getPlaylists + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetPlaylistsResponse; + import dev.plexapi.plexapi.models.operations.PlaylistType; + import dev.plexapi.plexapi.models.operations.QueryParamSmart; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetPlaylistsResponse res = sdk.playlists().getPlaylists() + .playlistType(PlaylistType.AUDIO) + .smart(QueryParamSmart.ZERO) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetPlaylistsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists"]["post"] + update: + x-codeSamples: + - lang: java + label: createPlaylist + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.CreatePlaylistQueryParamType; + import dev.plexapi.plexapi.models.operations.CreatePlaylistRequest; + import dev.plexapi.plexapi.models.operations.CreatePlaylistResponse; + import dev.plexapi.plexapi.models.operations.Smart; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + CreatePlaylistRequest req = CreatePlaylistRequest.builder() + .title("") + .type(CreatePlaylistQueryParamType.PHOTO) + .smart(Smart.ONE) + .uri("") + .build(); + + CreatePlaylistResponse res = sdk.playlists().createPlaylist() + .request(req) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.CreatePlaylistResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/upload"]["post"] + update: + x-codeSamples: + - lang: java + label: uploadPlaylist + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.QueryParamForce; + import dev.plexapi.plexapi.models.operations.UploadPlaylistResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + UploadPlaylistResponse res = sdk.playlists().uploadPlaylist() + .path("/home/barkley/playlist.m3u") + .force(QueryParamForce.ZERO) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.UploadPlaylistResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}"]["delete"] + update: + x-codeSamples: + - lang: java + label: deletePlaylist + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.DeletePlaylistResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + DeletePlaylistResponse res = sdk.playlists().deletePlaylist() + .playlistID(216.22d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.DeletePlaylistResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}"]["get"] + update: + x-codeSamples: + - lang: java + label: getPlaylist + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetPlaylistResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetPlaylistResponse res = sdk.playlists().getPlaylist() + .playlistID(4109.48d) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetPlaylistResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}"]["put"] + update: + x-codeSamples: + - lang: java + label: updatePlaylist + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.UpdatePlaylistResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + UpdatePlaylistResponse res = sdk.playlists().updatePlaylist() + .playlistID(3915d) + .title("") + .summary("") + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.UpdatePlaylistResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] + update: + x-codeSamples: + - lang: java + label: clearPlaylistContents + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents() + .playlistID(1893.18d) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.ClearPlaylistContentsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}/items"]["get"] + update: + x-codeSamples: + - lang: java + label: getPlaylistContents + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetPlaylistContentsQueryParamType; + import dev.plexapi.plexapi.models.operations.GetPlaylistContentsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents() + .playlistID(5004.46d) + .type(GetPlaylistContentsQueryParamType.TWO) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/playlists/{playlistID}/items"]["put"] + update: + x-codeSamples: + - lang: java + label: addPlaylistContents + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.AddPlaylistContentsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .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 (dev.plexapi.plexapi.models.errors.AddPlaylistContentsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/resources"]["get"] + update: + x-codeSamples: + - lang: java + label: resources + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerResourcesRequest; + import dev.plexapi.plexapi.models.operations.GetServerResourcesResponse; + import dev.plexapi.plexapi.models.operations.IncludeHttps; + import dev.plexapi.plexapi.models.operations.IncludeIPv6; + import dev.plexapi.plexapi.models.operations.IncludeRelay; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerResourcesRequest req = GetServerResourcesRequest.builder() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .includeHttps(IncludeHttps.ONE) + .includeRelay(IncludeRelay.ONE) + .includeIPv6(IncludeIPv6.ONE) + .build(); + + GetServerResourcesResponse res = sdk.plex().getServerResources() + .request(req) + .call(); + + if (res.plexDevices().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetServerResourcesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/search"]["get"] + update: + x-codeSamples: + - lang: java + label: getSearchResults + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetSearchResultsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetSearchResultsResponse res = sdk.search().getSearchResults() + .query("110") + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetSearchResultsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/security/resources"]["get"] + update: + x-codeSamples: + - lang: java + label: getSourceConnectionInformation + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation() + .source("server://client-identifier") + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.GetSourceConnectionInformationResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/security/token"]["get"] + update: + x-codeSamples: + - lang: java + label: getTransientToken + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType; + import dev.plexapi.plexapi.models.operations.GetTransientTokenResponse; + import dev.plexapi.plexapi.models.operations.Scope; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetTransientTokenResponse res = sdk.authentication().getTransientToken() + .type(GetTransientTokenQueryParamType.DELEGATION) + .scope(Scope.ALL) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.GetTransientTokenResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/servers"]["get"] + update: + x-codeSamples: + - lang: java + label: getServerList + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetServerListResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerListResponse res = sdk.server().getServerList() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetServerListResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/statistics/bandwidth"]["get"] + update: + x-codeSamples: + - lang: java + label: getBandwidthStatistics + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics() + .timespan(4L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetBandwidthStatisticsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/statistics/media"]["get"] + update: + x-codeSamples: + - lang: java + label: getStatistics + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetStatisticsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetStatisticsResponse res = sdk.statistics().getStatistics() + .timespan(4L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetStatisticsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/statistics/resources"]["get"] + update: + x-codeSamples: + - lang: java + label: getResourcesStatistics + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics() + .timespan(4L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetResourcesStatisticsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/status/sessions"]["get"] + update: + x-codeSamples: + - lang: java + label: getSessions + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetSessionsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetSessionsResponse res = sdk.sessions().getSessions() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetSessionsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/status/sessions/history/all"]["get"] + update: + x-codeSamples: + - lang: java + label: getSessionHistory + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetSessionHistoryResponse; + import dev.plexapi.plexapi.models.operations.QueryParamFilter; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetSessionHistoryResponse res = sdk.sessions().getSessionHistory() + .sort("") + .accountId(1L) + .filter(QueryParamFilter.builder() + .build()) + .librarySectionID(12L) + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetSessionHistoryResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/transcode/sessions"]["get"] + update: + x-codeSamples: + - lang: java + label: getTranscodeSessions + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetTranscodeSessionsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] + update: + x-codeSamples: + - lang: java + label: stopTranscodeSession + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.StopTranscodeSessionResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession() + .sessionKey("zz7llzqlx8w9vnrsbnwhbmep") + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.StopTranscodeSessionResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/updater/apply"]["put"] + update: + x-codeSamples: + - lang: java + label: applyUpdates + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.ApplyUpdatesResponse; + import dev.plexapi.plexapi.models.operations.Skip; + import dev.plexapi.plexapi.models.operations.Tonight; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + ApplyUpdatesResponse res = sdk.updater().applyUpdates() + .tonight(Tonight.ONE) + .skip(Skip.ONE) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.ApplyUpdatesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/updater/check"]["put"] + update: + x-codeSamples: + - lang: java + label: checkForUpdates + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.CheckForUpdatesResponse; + import dev.plexapi.plexapi.models.operations.Download; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + CheckForUpdatesResponse res = sdk.updater().checkForUpdates() + .download(Download.ONE) + .call(); + + // handle response + } catch (dev.plexapi.plexapi.models.errors.CheckForUpdatesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/updater/status"]["get"] + update: + x-codeSamples: + - lang: java + label: getUpdateStatus + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetUpdateStatusResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetUpdateStatusResponse res = sdk.updater().getUpdateStatus() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetUpdateStatusResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/user"]["get"] + update: + x-codeSamples: + - lang: java + label: getUserDetails + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.GetUserDetailsResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetUserDetailsResponse res = sdk.authentication().getUserDetails() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .call(); + + if (res.userPlexAccount().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.GetUserDetailsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/users/signin"]["post"] + update: + x-codeSamples: + - lang: java + label: data + source: |- + package hello.world; + + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.PostUsersSignInDataRequestBody; + import dev.plexapi.plexapi.models.operations.PostUsersSignInDataResponse; + import java.lang.Exception; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .requestBody(PostUsersSignInDataRequestBody.builder() + .login("username@email.com") + .password("password123") + .build()) + .call(); + + if (res.userPlexAccount().isPresent()) { + // handle response + } + } catch (dev.plexapi.plexapi.models.errors.PostUsersSignInDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -1441,19 +3155,11 @@ actions: source: |- 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; + import dev.plexapi.plexapi.PlexAPI; + import dev.plexapi.plexapi.models.errors.SDKError; + import dev.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest; + import dev.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse; + import java.lang.Exception; public class Application { @@ -1461,7 +3167,7 @@ actions: try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder() @@ -1488,1837 +3194,10 @@ actions: .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeResponseBody e) { + } catch (dev.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; - } - - } - } - - target: $["paths"]["/log/networked"]["get"] - update: - x-codeSamples: - - lang: java - label: enablePaperTrail - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists"]["post"] - update: - x-codeSamples: - - lang: java - label: createPlaylist - source: |- - 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; - } - - } - } - - target: $["paths"]["/pins"]["post"] - update: - x-codeSamples: - - lang: java - label: getPin - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/hashes"]["get"] - update: - x-codeSamples: - - lang: java - label: getFileHash - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/{sectionId}/{tag}"]["get"] - update: - x-codeSamples: - - lang: java - label: getLibraryItems - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists/upload"]["post"] - update: - x-codeSamples: - - lang: java - label: uploadPlaylist - source: |- - 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; - } - - } - } - - target: $["paths"]["/updater/status"]["get"] - update: - x-codeSamples: - - lang: java - label: getUpdateStatus - source: |- - 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; - } - - } - } - - target: $["paths"]["/clients"]["get"] - update: - x-codeSamples: - - lang: java - label: getAvailableClients - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/onDeck"]["get"] - update: - x-codeSamples: - - lang: java - label: getOnDeck - source: |- - 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; - } - - } - } - - target: $["paths"]["/identity"]["get"] - update: - x-codeSamples: - - lang: java - label: getServerIdentity - source: |- - 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; - } - - } - } - - target: $["paths"]["/activities/{activityUUID}"]["delete"] - update: - x-codeSamples: - - lang: java - label: cancelServerActivities - source: |- - 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; - } - - } - } - - target: $["paths"]["/butler/{taskName}"]["post"] - update: - x-codeSamples: - - lang: java - label: startTask - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/{sectionId}/refresh"]["get"] - update: - x-codeSamples: - - lang: java - label: refreshLibrary - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/{sectionId}/search"]["get"] - update: - x-codeSamples: - - lang: java - label: searchLibrary - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] - update: - x-codeSamples: - - lang: java - label: getMetadata - source: |- - 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; - } - - } - } - - target: $["paths"]["/:/prefs"]["get"] - update: - x-codeSamples: - - lang: java - label: getServerPreferences - source: |- - 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; - } - - } - } - - target: $["paths"]["/devices"]["get"] - update: - x-codeSamples: - - lang: java - label: getDevices - source: |- - 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; - } - - } - } - - target: $["paths"]["/home"]["get"] - update: - x-codeSamples: - - lang: java - label: getHomeData - source: |- - 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; - } - - } - } - - target: $["paths"]["/pins/{pinID}"]["get"] - update: - x-codeSamples: - - lang: java - label: getToken - source: |- - 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; - } - - } - } - - target: $["paths"]["/hubs/search"]["get"] - update: - x-codeSamples: - - lang: java - label: performSearch - source: |- - 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; - } - - } - } - - target: $["paths"]["/butler"]["get"] - update: - x-codeSamples: - - lang: java - label: getButlerTasks - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/sections/{sectionId}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deleteLibrary - source: |- - 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; - } - - } - } - - target: $["paths"]["/library/all/top"]["get"] - update: - x-codeSamples: - - lang: java - label: getTopWatchedContent - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists"]["get"] - update: - x-codeSamples: - - lang: java - label: getPlaylists - source: |- - 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; - } - - } - } - - target: $["paths"]["/status/sessions"]["get"] - update: - x-codeSamples: - - lang: java - label: getSessions - source: |- - 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; - } - - } - } - - target: $["paths"]["/:/progress"]["post"] - update: - x-codeSamples: - - lang: java - label: updatePlayProgress - source: |- - 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; - } - - } - } - - target: $["paths"]["/:/timeline"]["get"] - update: - x-codeSamples: - - lang: java - label: getTimeline - source: |- - 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; - } - - } - } - - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: java - label: getLibraryHubs - source: |- - 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; - } - - } - } - - target: $["paths"]["/playlists/{playlistID}"]["delete"] - update: - x-codeSamples: - - lang: java - label: deletePlaylist - source: |- - 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; - } - - } - } - - target: $["paths"]["/servers"]["get"] - update: - x-codeSamples: - - lang: java - label: getServerList - source: |- - 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; - } - - } - } - - target: $["paths"]["/:/unscrobble"]["get"] - update: - x-codeSamples: - - lang: java - label: markUnplayed - source: |- - 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; - } - - } - } - - target: $["paths"]["/activities"]["get"] - update: - x-codeSamples: - - lang: java - label: getServerActivities - source: |- - 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; - } - - } - } - - target: $["paths"]["/statistics/media"]["get"] - update: - x-codeSamples: - - lang: java - label: getStatistics - source: |- - 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; - } - - } - } - - target: $["paths"]["/butler"]["post"] - update: - x-codeSamples: - - lang: java - label: startAllTasks - source: |- - 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; - } - - } - } - - target: $["paths"]["/hubs"]["get"] - update: - x-codeSamples: - - lang: java - label: getGlobalHubs - source: |- - 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; - } - - } - } - - target: $["paths"]["/statistics/resources"]["get"] - update: - x-codeSamples: - - lang: java - label: getResourcesStatistics - source: |- - 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) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { diff --git a/docs/models/errors/AddPlaylistContentsErrors.md b/docs/models/errors/AddPlaylistContentsErrors.md index 5ed8e032..995f847c 100644 --- a/docs/models/errors/AddPlaylistContentsErrors.md +++ b/docs/models/errors/AddPlaylistContentsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 80189d41..11ecd74d 100644 --- a/docs/models/errors/AddPlaylistContentsResponseBody.md +++ b/docs/models/errors/AddPlaylistContentsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsErrors](../../models/errors/AddPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 19cd4331..8b5e8727 100644 --- a/docs/models/errors/ApplyUpdatesErrors.md +++ b/docs/models/errors/ApplyUpdatesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index d54fb4ae..27e62615 100644 --- a/docs/models/errors/ApplyUpdatesResponseBody.md +++ b/docs/models/errors/ApplyUpdatesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesErrors](../../models/errors/ApplyUpdatesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 0fcd9628..c648e76a 100644 --- a/docs/models/errors/CancelServerActivitiesErrors.md +++ b/docs/models/errors/CancelServerActivitiesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 943bcd26..4496755c 100644 --- a/docs/models/errors/CancelServerActivitiesResponseBody.md +++ b/docs/models/errors/CancelServerActivitiesResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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 index 297a8c05..53430cc0 100644 --- a/docs/models/errors/CheckForUpdatesErrors.md +++ b/docs/models/errors/CheckForUpdatesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index c8c37bdf..cafa930d 100644 --- a/docs/models/errors/CheckForUpdatesResponseBody.md +++ b/docs/models/errors/CheckForUpdatesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesErrors](../../models/errors/CheckForUpdatesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index d9c2ac1d..8b0ca87c 100644 --- a/docs/models/errors/ClearPlaylistContentsErrors.md +++ b/docs/models/errors/ClearPlaylistContentsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index ead31202..62a76e88 100644 --- a/docs/models/errors/ClearPlaylistContentsResponseBody.md +++ b/docs/models/errors/ClearPlaylistContentsResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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 index 61b09ce4..bc85ce3b 100644 --- a/docs/models/errors/CreatePlaylistErrors.md +++ b/docs/models/errors/CreatePlaylistErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 444279d9..b3983e2e 100644 --- a/docs/models/errors/CreatePlaylistResponseBody.md +++ b/docs/models/errors/CreatePlaylistResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.CreatePlaylistErrors](../../models/errors/CreatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 5e742f91..91501545 100644 --- a/docs/models/errors/DeleteLibraryErrors.md +++ b/docs/models/errors/DeleteLibraryErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index ea3431ce..1697910d 100644 --- a/docs/models/errors/DeleteLibraryResponseBody.md +++ b/docs/models/errors/DeleteLibraryResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.DeleteLibraryErrors](../../models/errors/DeleteLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 0727ad0a..6c3f61b0 100644 --- a/docs/models/errors/DeletePlaylistErrors.md +++ b/docs/models/errors/DeletePlaylistErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 7770d0f6..f917db93 100644 --- a/docs/models/errors/DeletePlaylistResponseBody.md +++ b/docs/models/errors/DeletePlaylistResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.DeletePlaylistErrors](../../models/errors/DeletePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 77cfaab9..bc8ba028 100644 --- a/docs/models/errors/EnablePaperTrailErrors.md +++ b/docs/models/errors/EnablePaperTrailErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 4aa29ce0..22b35429 100644 --- a/docs/models/errors/EnablePaperTrailResponseBody.md +++ b/docs/models/errors/EnablePaperTrailResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailErrors](../../models/errors/EnablePaperTrailErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 0ecfc540..4a978811 100644 --- a/docs/models/errors/Errors.md +++ b/docs/models/errors/Errors.md @@ -5,6 +5,6 @@ | 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 +| `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/GetAllLibrariesErrors.md b/docs/models/errors/GetAllLibrariesErrors.md new file mode 100644 index 00000000..ca894b97 --- /dev/null +++ b/docs/models/errors/GetAllLibrariesErrors.md @@ -0,0 +1,10 @@ +# GetAllLibrariesErrors + + +## 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/GetAllLibrariesResponseBody.md b/docs/models/errors/GetAllLibrariesResponseBody.md new file mode 100644 index 00000000..77aee489 --- /dev/null +++ b/docs/models/errors/GetAllLibrariesResponseBody.md @@ -0,0 +1,11 @@ +# GetAllLibrariesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetAllLibrariesErrors](../../models/errors/GetAllLibrariesErrors.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/GetAvailableClientsErrors.md b/docs/models/errors/GetAvailableClientsErrors.md index cf9be793..2a32a200 100644 --- a/docs/models/errors/GetAvailableClientsErrors.md +++ b/docs/models/errors/GetAvailableClientsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index b6bed79c..d9f91753 100644 --- a/docs/models/errors/GetAvailableClientsResponseBody.md +++ b/docs/models/errors/GetAvailableClientsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsErrors](../../models/errors/GetAvailableClientsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 141e81d7..db07e2dd 100644 --- a/docs/models/errors/GetBandwidthStatisticsErrors.md +++ b/docs/models/errors/GetBandwidthStatisticsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 61ce8fce..71ca71c2 100644 --- a/docs/models/errors/GetBandwidthStatisticsResponseBody.md +++ b/docs/models/errors/GetBandwidthStatisticsResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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/GetWatchlistErrors.md b/docs/models/errors/GetBannerImageErrors.md similarity index 75% rename from docs/models/errors/GetWatchlistErrors.md rename to docs/models/errors/GetBannerImageErrors.md index ed5478ce..2d71072d 100644 --- a/docs/models/errors/GetWatchlistErrors.md +++ b/docs/models/errors/GetBannerImageErrors.md @@ -1,10 +1,10 @@ -# GetWatchlistErrors +# GetBannerImageErrors ## 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 +| `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/GetBannerImageResponseBody.md similarity index 92% rename from docs/models/errors/GetLibrariesResponseBody.md rename to docs/models/errors/GetBannerImageResponseBody.md index 87168f57..0432389c 100644 --- a/docs/models/errors/GetLibrariesResponseBody.md +++ b/docs/models/errors/GetBannerImageResponseBody.md @@ -1,4 +1,4 @@ -# GetLibrariesResponseBody +# GetBannerImageResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibrariesErrors](../../models/errors/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[GetBannerImageErrors](../../models/errors/GetBannerImageErrors.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 index 2653e76d..07a7b61e 100644 --- a/docs/models/errors/GetButlerTasksErrors.md +++ b/docs/models/errors/GetButlerTasksErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 409d7e99..e4cb8377 100644 --- a/docs/models/errors/GetButlerTasksResponseBody.md +++ b/docs/models/errors/GetButlerTasksResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetButlerTasksErrors](../../models/errors/GetButlerTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetServerIdentityErrors.md b/docs/models/errors/GetCompanionsDataErrors.md similarity index 75% rename from docs/models/errors/GetServerIdentityErrors.md rename to docs/models/errors/GetCompanionsDataErrors.md index 7d210f5a..734388ec 100644 --- a/docs/models/errors/GetServerIdentityErrors.md +++ b/docs/models/errors/GetCompanionsDataErrors.md @@ -1,10 +1,10 @@ -# GetServerIdentityErrors +# GetCompanionsDataErrors ## 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 +| `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/GetCompanionsDataResponseBody.md b/docs/models/errors/GetCompanionsDataResponseBody.md new file mode 100644 index 00000000..43bd88f6 --- /dev/null +++ b/docs/models/errors/GetCompanionsDataResponseBody.md @@ -0,0 +1,11 @@ +# GetCompanionsDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetCompanionsDataErrors](../../models/errors/GetCompanionsDataErrors.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 index 5f3725c1..c1c52c5b 100644 --- a/docs/models/errors/GetDevicesErrors.md +++ b/docs/models/errors/GetDevicesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 2d3a2c92..cead1030 100644 --- a/docs/models/errors/GetDevicesResponseBody.md +++ b/docs/models/errors/GetDevicesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetDevicesErrors](../../models/errors/GetDevicesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 099a8ff1..4f67942e 100644 --- a/docs/models/errors/GetFileHashErrors.md +++ b/docs/models/errors/GetFileHashErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 6c1d33cd..d69e1260 100644 --- a/docs/models/errors/GetFileHashResponseBody.md +++ b/docs/models/errors/GetFileHashResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetFileHashErrors](../../models/errors/GetFileHashErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetLibraryErrors.md b/docs/models/errors/GetGeoDataErrors.md similarity index 76% rename from docs/models/errors/GetLibraryErrors.md rename to docs/models/errors/GetGeoDataErrors.md index 8f59e3e0..600f2ce2 100644 --- a/docs/models/errors/GetLibraryErrors.md +++ b/docs/models/errors/GetGeoDataErrors.md @@ -1,10 +1,10 @@ -# GetLibraryErrors +# GetGeoDataErrors ## 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 +| `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/GetLibraryResponseBody.md b/docs/models/errors/GetGeoDataResponseBody.md similarity index 92% rename from docs/models/errors/GetLibraryResponseBody.md rename to docs/models/errors/GetGeoDataResponseBody.md index 355a29a1..855abc44 100644 --- a/docs/models/errors/GetLibraryResponseBody.md +++ b/docs/models/errors/GetGeoDataResponseBody.md @@ -1,4 +1,4 @@ -# GetLibraryResponseBody +# GetGeoDataResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryErrors](../../models/errors/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[GetGeoDataErrors](../../models/errors/GetGeoDataErrors.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 index ef0e5901..f15ae1d3 100644 --- a/docs/models/errors/GetGlobalHubsErrors.md +++ b/docs/models/errors/GetGlobalHubsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 1aee6f94..621d6210 100644 --- a/docs/models/errors/GetGlobalHubsResponseBody.md +++ b/docs/models/errors/GetGlobalHubsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsErrors](../../models/errors/GetGlobalHubsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index cb4b7f7a..1833fd5d 100644 --- a/docs/models/errors/GetHomeDataErrors.md +++ b/docs/models/errors/GetHomeDataErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 1115e7af..920d522b 100644 --- a/docs/models/errors/GetHomeDataResponseBody.md +++ b/docs/models/errors/GetHomeDataResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetHomeDataErrors](../../models/errors/GetHomeDataErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetLibraryDetailsErrors.md b/docs/models/errors/GetLibraryDetailsErrors.md new file mode 100644 index 00000000..5d98cbed --- /dev/null +++ b/docs/models/errors/GetLibraryDetailsErrors.md @@ -0,0 +1,10 @@ +# GetLibraryDetailsErrors + + +## 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/GetLibraryDetailsResponseBody.md b/docs/models/errors/GetLibraryDetailsResponseBody.md new file mode 100644 index 00000000..3e352be7 --- /dev/null +++ b/docs/models/errors/GetLibraryDetailsResponseBody.md @@ -0,0 +1,11 @@ +# GetLibraryDetailsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetLibraryDetailsErrors](../../models/errors/GetLibraryDetailsErrors.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/GetLibraryHubsErrors.md b/docs/models/errors/GetLibraryHubsErrors.md index 52347ca8..4fa84ea1 100644 --- a/docs/models/errors/GetLibraryHubsErrors.md +++ b/docs/models/errors/GetLibraryHubsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index d72d4476..9dd1ea96 100644 --- a/docs/models/errors/GetLibraryHubsResponseBody.md +++ b/docs/models/errors/GetLibraryHubsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsErrors](../../models/errors/GetLibraryHubsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 5c814a7e..04e49d5a 100644 --- a/docs/models/errors/GetLibraryItemsErrors.md +++ b/docs/models/errors/GetLibraryItemsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 5a2b744f..5d86f79b 100644 --- a/docs/models/errors/GetLibraryItemsResponseBody.md +++ b/docs/models/errors/GetLibraryItemsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsErrors](../../models/errors/GetLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetMediaProvidersErrors.md b/docs/models/errors/GetMediaProvidersErrors.md new file mode 100644 index 00000000..a1faf8af --- /dev/null +++ b/docs/models/errors/GetMediaProvidersErrors.md @@ -0,0 +1,10 @@ +# GetMediaProvidersErrors + + +## 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/GetMediaProvidersResponseBody.md b/docs/models/errors/GetMediaProvidersResponseBody.md new file mode 100644 index 00000000..ae95baa2 --- /dev/null +++ b/docs/models/errors/GetMediaProvidersResponseBody.md @@ -0,0 +1,11 @@ +# GetMediaProvidersResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetMediaProvidersErrors](../../models/errors/GetMediaProvidersErrors.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/GetMetaDataByRatingKeyErrors.md b/docs/models/errors/GetMetaDataByRatingKeyErrors.md new file mode 100644 index 00000000..67f2f928 --- /dev/null +++ b/docs/models/errors/GetMetaDataByRatingKeyErrors.md @@ -0,0 +1,10 @@ +# GetMetaDataByRatingKeyErrors + + +## 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/GetMetaDataByRatingKeyResponseBody.md b/docs/models/errors/GetMetaDataByRatingKeyResponseBody.md new file mode 100644 index 00000000..0a9490ab --- /dev/null +++ b/docs/models/errors/GetMetaDataByRatingKeyResponseBody.md @@ -0,0 +1,11 @@ +# GetMetaDataByRatingKeyResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetMetaDataByRatingKeyErrors](../../models/errors/GetMetaDataByRatingKeyErrors.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 index da08eb98..8453d3a4 100644 --- a/docs/models/errors/GetMetadataChildrenErrors.md +++ b/docs/models/errors/GetMetadataChildrenErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 1f25880f..307b4974 100644 --- a/docs/models/errors/GetMetadataChildrenResponseBody.md +++ b/docs/models/errors/GetMetadataChildrenResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenErrors](../../models/errors/GetMetadataChildrenErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetMyPlexAccountErrors.md b/docs/models/errors/GetMyPlexAccountErrors.md index fc56a31a..3a5c4394 100644 --- a/docs/models/errors/GetMyPlexAccountErrors.md +++ b/docs/models/errors/GetMyPlexAccountErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 49115804..a47e9d5d 100644 --- a/docs/models/errors/GetMyPlexAccountResponseBody.md +++ b/docs/models/errors/GetMyPlexAccountResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountErrors](../../models/errors/GetMyPlexAccountErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index bca5321d..e1dfa653 100644 --- a/docs/models/errors/GetOnDeckErrors.md +++ b/docs/models/errors/GetOnDeckErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index e5c1ad89..970682d6 100644 --- a/docs/models/errors/GetOnDeckResponseBody.md +++ b/docs/models/errors/GetOnDeckResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetOnDeckErrors](../../models/errors/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index fe709c81..b2415465 100644 --- a/docs/models/errors/GetPinErrors.md +++ b/docs/models/errors/GetPinErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 3489784b..f8fcf044 100644 --- a/docs/models/errors/GetPinResponseBody.md +++ b/docs/models/errors/GetPinResponseBody.md @@ -1,11 +1,11 @@ # GetPinResponseBody -X-Plex-Client-Identifier is missing +Bad Request response when the 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 | +| `errors` | List<[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 index 7f62a042..7ab102ad 100644 --- a/docs/models/errors/GetPlaylistContentsErrors.md +++ b/docs/models/errors/GetPlaylistContentsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 6af4e429..623f25ad 100644 --- a/docs/models/errors/GetPlaylistContentsResponseBody.md +++ b/docs/models/errors/GetPlaylistContentsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsErrors](../../models/errors/GetPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 1b861143..f15b4a94 100644 --- a/docs/models/errors/GetPlaylistErrors.md +++ b/docs/models/errors/GetPlaylistErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index ef8fbc6d..71d10728 100644 --- a/docs/models/errors/GetPlaylistResponseBody.md +++ b/docs/models/errors/GetPlaylistResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistErrors](../../models/errors/GetPlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index cf446974..50a9a8d6 100644 --- a/docs/models/errors/GetPlaylistsErrors.md +++ b/docs/models/errors/GetPlaylistsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 03a59fc5..b6219bde 100644 --- a/docs/models/errors/GetPlaylistsResponseBody.md +++ b/docs/models/errors/GetPlaylistsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistsErrors](../../models/errors/GetPlaylistsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 56620fd1..1ba26268 100644 --- a/docs/models/errors/GetRecentlyAddedErrors.md +++ b/docs/models/errors/GetRecentlyAddedErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 086a3c2b..a6b1b6e5 100644 --- a/docs/models/errors/GetRecentlyAddedResponseBody.md +++ b/docs/models/errors/GetRecentlyAddedResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedErrors](../../models/errors/GetRecentlyAddedErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetRefreshLibraryMetadataErrors.md b/docs/models/errors/GetRefreshLibraryMetadataErrors.md new file mode 100644 index 00000000..2c81bf58 --- /dev/null +++ b/docs/models/errors/GetRefreshLibraryMetadataErrors.md @@ -0,0 +1,10 @@ +# GetRefreshLibraryMetadataErrors + + +## 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/GetRefreshLibraryMetadataResponseBody.md b/docs/models/errors/GetRefreshLibraryMetadataResponseBody.md new file mode 100644 index 00000000..9313aa60 --- /dev/null +++ b/docs/models/errors/GetRefreshLibraryMetadataResponseBody.md @@ -0,0 +1,11 @@ +# GetRefreshLibraryMetadataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetRefreshLibraryMetadataErrors](../../models/errors/GetRefreshLibraryMetadataErrors.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 index eed2b582..0df68785 100644 --- a/docs/models/errors/GetResizedPhotoErrors.md +++ b/docs/models/errors/GetResizedPhotoErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 6098c70c..eed3e43a 100644 --- a/docs/models/errors/GetResizedPhotoResponseBody.md +++ b/docs/models/errors/GetResizedPhotoResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoErrors](../../models/errors/GetResizedPhotoErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 0bbb259f..12c5ad77 100644 --- a/docs/models/errors/GetResourcesStatisticsErrors.md +++ b/docs/models/errors/GetResourcesStatisticsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 3334d2f9..4cd0ab56 100644 --- a/docs/models/errors/GetResourcesStatisticsResponseBody.md +++ b/docs/models/errors/GetResourcesStatisticsResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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/GetSearchLibraryErrors.md b/docs/models/errors/GetSearchLibraryErrors.md new file mode 100644 index 00000000..83d65da6 --- /dev/null +++ b/docs/models/errors/GetSearchLibraryErrors.md @@ -0,0 +1,10 @@ +# GetSearchLibraryErrors + + +## 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/GetSearchLibraryResponseBody.md b/docs/models/errors/GetSearchLibraryResponseBody.md new file mode 100644 index 00000000..d96a8a40 --- /dev/null +++ b/docs/models/errors/GetSearchLibraryResponseBody.md @@ -0,0 +1,11 @@ +# GetSearchLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetSearchLibraryErrors](../../models/errors/GetSearchLibraryErrors.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 index 1cd3b3f6..429cc0a2 100644 --- a/docs/models/errors/GetSearchResultsErrors.md +++ b/docs/models/errors/GetSearchResultsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 9465dd10..12856e46 100644 --- a/docs/models/errors/GetSearchResultsResponseBody.md +++ b/docs/models/errors/GetSearchResultsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSearchResultsErrors](../../models/errors/GetSearchResultsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 43cc8db5..ab6a1b34 100644 --- a/docs/models/errors/GetServerActivitiesErrors.md +++ b/docs/models/errors/GetServerActivitiesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 8903b02c..b4eafbef 100644 --- a/docs/models/errors/GetServerActivitiesResponseBody.md +++ b/docs/models/errors/GetServerActivitiesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesErrors](../../models/errors/GetServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index f37f6af1..bb17e62d 100644 --- a/docs/models/errors/GetServerCapabilitiesResponseBody.md +++ b/docs/models/errors/GetServerCapabilitiesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.Errors](../../models/errors/Errors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetServerIdentityResponseBody.md b/docs/models/errors/GetServerIdentityResponseBody.md index 606a74ad..9ff87b9a 100644 --- a/docs/models/errors/GetServerIdentityResponseBody.md +++ b/docs/models/errors/GetServerIdentityResponseBody.md @@ -1,11 +1,12 @@ # GetServerIdentityResponseBody -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. +Request Timeout ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `code` | *Optional* | :heavy_minus_sign: | N/A | 408 | +| `message` | *Optional* | :heavy_minus_sign: | N/A | The server timed out waiting for the request. | +| `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 index d690b4b7..e1899c6a 100644 --- a/docs/models/errors/GetServerListErrors.md +++ b/docs/models/errors/GetServerListErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 2ef710e8..4dbb9659 100644 --- a/docs/models/errors/GetServerListResponseBody.md +++ b/docs/models/errors/GetServerListResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerListErrors](../../models/errors/GetServerListErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index f3ab07cc..97b15070 100644 --- a/docs/models/errors/GetServerPreferencesErrors.md +++ b/docs/models/errors/GetServerPreferencesErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index da327cf0..aa90fd54 100644 --- a/docs/models/errors/GetServerPreferencesResponseBody.md +++ b/docs/models/errors/GetServerPreferencesResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesErrors](../../models/errors/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetServerResourcesErrors.md b/docs/models/errors/GetServerResourcesErrors.md new file mode 100644 index 00000000..81f85362 --- /dev/null +++ b/docs/models/errors/GetServerResourcesErrors.md @@ -0,0 +1,10 @@ +# GetServerResourcesErrors + + +## 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/GetServerResourcesResponseBody.md b/docs/models/errors/GetServerResourcesResponseBody.md new file mode 100644 index 00000000..5f19010d --- /dev/null +++ b/docs/models/errors/GetServerResourcesResponseBody.md @@ -0,0 +1,11 @@ +# GetServerResourcesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetServerResourcesErrors](../../models/errors/GetServerResourcesErrors.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 index ac4449b5..2f834079 100644 --- a/docs/models/errors/GetSessionHistoryErrors.md +++ b/docs/models/errors/GetSessionHistoryErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 98b962d0..c5551c9b 100644 --- a/docs/models/errors/GetSessionHistoryResponseBody.md +++ b/docs/models/errors/GetSessionHistoryResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryErrors](../../models/errors/GetSessionHistoryErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 97a6388e..076cbe5f 100644 --- a/docs/models/errors/GetSessionsErrors.md +++ b/docs/models/errors/GetSessionsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index f18d6a50..41d55ad3 100644 --- a/docs/models/errors/GetSessionsResponseBody.md +++ b/docs/models/errors/GetSessionsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSessionsErrors](../../models/errors/GetSessionsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 3067c3c7..da5a3bc9 100644 --- a/docs/models/errors/GetSourceConnectionInformationErrors.md +++ b/docs/models/errors/GetSourceConnectionInformationErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 43d60357..32fdf9a8 100644 --- a/docs/models/errors/GetSourceConnectionInformationResponseBody.md +++ b/docs/models/errors/GetSourceConnectionInformationResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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 index 74db22a2..ce4056b5 100644 --- a/docs/models/errors/GetStatisticsErrors.md +++ b/docs/models/errors/GetStatisticsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 1ae97853..937de414 100644 --- a/docs/models/errors/GetStatisticsResponseBody.md +++ b/docs/models/errors/GetStatisticsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetStatisticsErrors](../../models/errors/GetStatisticsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetLibrariesErrors.md b/docs/models/errors/GetThumbImageErrors.md similarity index 76% rename from docs/models/errors/GetLibrariesErrors.md rename to docs/models/errors/GetThumbImageErrors.md index d8e4922c..e82cd89c 100644 --- a/docs/models/errors/GetLibrariesErrors.md +++ b/docs/models/errors/GetThumbImageErrors.md @@ -1,10 +1,10 @@ -# GetLibrariesErrors +# GetThumbImageErrors ## 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 +| `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/GetThumbImageResponseBody.md similarity index 92% rename from docs/models/errors/GetWatchlistResponseBody.md rename to docs/models/errors/GetThumbImageResponseBody.md index 796cdeea..edaf8c03 100644 --- a/docs/models/errors/GetWatchlistResponseBody.md +++ b/docs/models/errors/GetThumbImageResponseBody.md @@ -1,4 +1,4 @@ -# GetWatchlistResponseBody +# GetThumbImageResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetWatchlistErrors](../../models/errors/GetWatchlistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[GetThumbImageErrors](../../models/errors/GetThumbImageErrors.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 index 2d061105..69b0b123 100644 --- a/docs/models/errors/GetTimelineErrors.md +++ b/docs/models/errors/GetTimelineErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 99193424..7c15a012 100644 --- a/docs/models/errors/GetTimelineResponseBody.md +++ b/docs/models/errors/GetTimelineResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTimelineErrors](../../models/errors/GetTimelineErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetTokenByPinIdErrors.md similarity index 59% rename from docs/models/errors/GetTokenErrors.md rename to docs/models/errors/GetTokenByPinIdErrors.md index a6b5fe44..fe08c653 100644 --- a/docs/models/errors/GetTokenErrors.md +++ b/docs/models/errors/GetTokenByPinIdErrors.md @@ -1,10 +1,10 @@ -# GetTokenErrors +# GetTokenByPinIdErrors ## 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 +| `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/GetTokenByPinIdPlexErrors.md b/docs/models/errors/GetTokenByPinIdPlexErrors.md new file mode 100644 index 00000000..b07129c0 --- /dev/null +++ b/docs/models/errors/GetTokenByPinIdPlexErrors.md @@ -0,0 +1,9 @@ +# GetTokenByPinIdPlexErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `code` | *Optional* | :heavy_minus_sign: | N/A | 1020 | +| `message` | *Optional* | :heavy_minus_sign: | N/A | Code not found or expired | \ No newline at end of file diff --git a/docs/models/errors/GetTokenResponseBody.md b/docs/models/errors/GetTokenByPinIdPlexResponseBody.md similarity index 91% rename from docs/models/errors/GetTokenResponseBody.md rename to docs/models/errors/GetTokenByPinIdPlexResponseBody.md index f474014f..fd3b9ce7 100644 --- a/docs/models/errors/GetTokenResponseBody.md +++ b/docs/models/errors/GetTokenByPinIdPlexResponseBody.md @@ -1,11 +1,11 @@ -# GetTokenResponseBody +# GetTokenByPinIdPlexResponseBody -X-Plex-Client-Identifier is missing +Not Found or Expired ## Fields | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTokenErrors](../../models/errors/GetTokenErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[GetTokenByPinIdPlexErrors](../../models/errors/GetTokenByPinIdPlexErrors.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/GetTokenByPinIdResponseBody.md b/docs/models/errors/GetTokenByPinIdResponseBody.md new file mode 100644 index 00000000..6d6d10f6 --- /dev/null +++ b/docs/models/errors/GetTokenByPinIdResponseBody.md @@ -0,0 +1,11 @@ +# GetTokenByPinIdResponseBody + +Bad Request response when the X-Plex-Client-Identifier is missing + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetTokenByPinIdErrors](../../models/errors/GetTokenByPinIdErrors.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/GetTopWatchedContentErrors.md b/docs/models/errors/GetTopWatchedContentErrors.md new file mode 100644 index 00000000..b8fbc0fb --- /dev/null +++ b/docs/models/errors/GetTopWatchedContentErrors.md @@ -0,0 +1,10 @@ +# GetTopWatchedContentErrors + + +## 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/GetTopWatchedContentResponseBody.md b/docs/models/errors/GetTopWatchedContentResponseBody.md new file mode 100644 index 00000000..238d1f72 --- /dev/null +++ b/docs/models/errors/GetTopWatchedContentResponseBody.md @@ -0,0 +1,11 @@ +# GetTopWatchedContentResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetTopWatchedContentErrors](../../models/errors/GetTopWatchedContentErrors.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 index fb840f0d..50e4744a 100644 --- a/docs/models/errors/GetTranscodeSessionsErrors.md +++ b/docs/models/errors/GetTranscodeSessionsErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 910d2e12..43b575f6 100644 --- a/docs/models/errors/GetTranscodeSessionsResponseBody.md +++ b/docs/models/errors/GetTranscodeSessionsResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsErrors](../../models/errors/GetTranscodeSessionsErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 176d28cb..8b32ac03 100644 --- a/docs/models/errors/GetTransientTokenErrors.md +++ b/docs/models/errors/GetTransientTokenErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 493f659d..5551fc36 100644 --- a/docs/models/errors/GetTransientTokenResponseBody.md +++ b/docs/models/errors/GetTransientTokenResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTransientTokenErrors](../../models/errors/GetTransientTokenErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 37bbefd4..68d1f860 100644 --- a/docs/models/errors/GetUpdateStatusErrors.md +++ b/docs/models/errors/GetUpdateStatusErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 3be63c7d..f5bfc05c 100644 --- a/docs/models/errors/GetUpdateStatusResponseBody.md +++ b/docs/models/errors/GetUpdateStatusResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusErrors](../../models/errors/GetUpdateStatusErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/GetUserDetailsErrors.md b/docs/models/errors/GetUserDetailsErrors.md new file mode 100644 index 00000000..771530f7 --- /dev/null +++ b/docs/models/errors/GetUserDetailsErrors.md @@ -0,0 +1,10 @@ +# GetUserDetailsErrors + + +## 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/GetUserDetailsResponseBody.md b/docs/models/errors/GetUserDetailsResponseBody.md new file mode 100644 index 00000000..384900dc --- /dev/null +++ b/docs/models/errors/GetUserDetailsResponseBody.md @@ -0,0 +1,11 @@ +# GetUserDetailsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetUserDetailsErrors](../../models/errors/GetUserDetailsErrors.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/GetUserFriendsErrors.md b/docs/models/errors/GetUserFriendsErrors.md new file mode 100644 index 00000000..d4f965b8 --- /dev/null +++ b/docs/models/errors/GetUserFriendsErrors.md @@ -0,0 +1,10 @@ +# GetUserFriendsErrors + + +## 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/GetUserFriendsResponseBody.md b/docs/models/errors/GetUserFriendsResponseBody.md new file mode 100644 index 00000000..0bc34715 --- /dev/null +++ b/docs/models/errors/GetUserFriendsResponseBody.md @@ -0,0 +1,11 @@ +# GetUserFriendsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[GetUserFriendsErrors](../../models/errors/GetUserFriendsErrors.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/GetWatchListErrors.md similarity index 76% rename from docs/models/errors/GetMetadataErrors.md rename to docs/models/errors/GetWatchListErrors.md index 2fb701a8..49805ea6 100644 --- a/docs/models/errors/GetMetadataErrors.md +++ b/docs/models/errors/GetWatchListErrors.md @@ -1,10 +1,10 @@ -# GetMetadataErrors +# 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 +| `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/GetWatchListResponseBody.md similarity index 92% rename from docs/models/errors/GetMetadataResponseBody.md rename to docs/models/errors/GetWatchListResponseBody.md index 06c4cd96..1da5407a 100644 --- a/docs/models/errors/GetMetadataResponseBody.md +++ b/docs/models/errors/GetWatchListResponseBody.md @@ -1,4 +1,4 @@ -# GetMetadataResponseBody +# GetWatchListResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMetadataErrors](../../models/errors/GetMetadataErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index ccef7a58..22b2d2ec 100644 --- a/docs/models/errors/LogLineErrors.md +++ b/docs/models/errors/LogLineErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index a257956d..5c76287e 100644 --- a/docs/models/errors/LogLineResponseBody.md +++ b/docs/models/errors/LogLineResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.LogLineErrors](../../models/errors/LogLineErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index d2e531cf..0a2ad27a 100644 --- a/docs/models/errors/LogMultiLineErrors.md +++ b/docs/models/errors/LogMultiLineErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index f24c81cf..6d7ed621 100644 --- a/docs/models/errors/LogMultiLineResponseBody.md +++ b/docs/models/errors/LogMultiLineResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.LogMultiLineErrors](../../models/errors/LogMultiLineErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 02878d85..2a1229ee 100644 --- a/docs/models/errors/MarkPlayedErrors.md +++ b/docs/models/errors/MarkPlayedErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 0759d9f4..536a36cc 100644 --- a/docs/models/errors/MarkPlayedResponseBody.md +++ b/docs/models/errors/MarkPlayedResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.MarkPlayedErrors](../../models/errors/MarkPlayedErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 8e71310c..46d95a6b 100644 --- a/docs/models/errors/MarkUnplayedErrors.md +++ b/docs/models/errors/MarkUnplayedErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 1e63d290..e051b688 100644 --- a/docs/models/errors/MarkUnplayedResponseBody.md +++ b/docs/models/errors/MarkUnplayedResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.MarkUnplayedErrors](../../models/errors/MarkUnplayedErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 862f8216..669b230e 100644 --- a/docs/models/errors/PerformSearchErrors.md +++ b/docs/models/errors/PerformSearchErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 34843b00..2788d00a 100644 --- a/docs/models/errors/PerformSearchResponseBody.md +++ b/docs/models/errors/PerformSearchResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.PerformSearchErrors](../../models/errors/PerformSearchErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 343873c5..7e6d30e6 100644 --- a/docs/models/errors/PerformVoiceSearchErrors.md +++ b/docs/models/errors/PerformVoiceSearchErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 376e05f2..c3c9d476 100644 --- a/docs/models/errors/PerformVoiceSearchResponseBody.md +++ b/docs/models/errors/PerformVoiceSearchResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchErrors](../../models/errors/PerformVoiceSearchErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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/PostUsersSignInDataErrors.md b/docs/models/errors/PostUsersSignInDataErrors.md new file mode 100644 index 00000000..58e33f83 --- /dev/null +++ b/docs/models/errors/PostUsersSignInDataErrors.md @@ -0,0 +1,10 @@ +# PostUsersSignInDataErrors + + +## 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/PostUsersSignInDataResponseBody.md b/docs/models/errors/PostUsersSignInDataResponseBody.md new file mode 100644 index 00000000..209d73a3 --- /dev/null +++ b/docs/models/errors/PostUsersSignInDataResponseBody.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[PostUsersSignInDataErrors](../../models/errors/PostUsersSignInDataErrors.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 index c18c98c8..50e9ffe0 100644 --- a/docs/models/errors/StartAllTasksErrors.md +++ b/docs/models/errors/StartAllTasksErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index efbbeb56..8503aa65 100644 --- a/docs/models/errors/StartAllTasksResponseBody.md +++ b/docs/models/errors/StartAllTasksResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StartAllTasksErrors](../../models/errors/StartAllTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 84dc2465..05fcb486 100644 --- a/docs/models/errors/StartTaskErrors.md +++ b/docs/models/errors/StartTaskErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index ea1621fb..e0ac8ced 100644 --- a/docs/models/errors/StartTaskResponseBody.md +++ b/docs/models/errors/StartTaskResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StartTaskErrors](../../models/errors/StartTaskErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 8ee3e29a..ec5f3b49 100644 --- a/docs/models/errors/StartUniversalTranscodeErrors.md +++ b/docs/models/errors/StartUniversalTranscodeErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 16a4d1b5..099857af 100644 --- a/docs/models/errors/StartUniversalTranscodeResponseBody.md +++ b/docs/models/errors/StartUniversalTranscodeResponseBody.md @@ -5,7 +5,7 @@ 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[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 index c140f8de..07f87d07 100644 --- a/docs/models/errors/StopAllTasksErrors.md +++ b/docs/models/errors/StopAllTasksErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 9b70570a..7d5da199 100644 --- a/docs/models/errors/StopAllTasksResponseBody.md +++ b/docs/models/errors/StopAllTasksResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopAllTasksErrors](../../models/errors/StopAllTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 525de390..00694770 100644 --- a/docs/models/errors/StopTaskErrors.md +++ b/docs/models/errors/StopTaskErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 4084cc4a..c2abef27 100644 --- a/docs/models/errors/StopTaskResponseBody.md +++ b/docs/models/errors/StopTaskResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopTaskErrors](../../models/errors/StopTaskErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index c237071b..2a439f09 100644 --- a/docs/models/errors/StopTranscodeSessionErrors.md +++ b/docs/models/errors/StopTranscodeSessionErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 584e48fd..e1fa7a22 100644 --- a/docs/models/errors/StopTranscodeSessionResponseBody.md +++ b/docs/models/errors/StopTranscodeSessionResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionErrors](../../models/errors/StopTranscodeSessionErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 5dfceded..9e1c48d0 100644 --- a/docs/models/errors/UpdatePlayProgressErrors.md +++ b/docs/models/errors/UpdatePlayProgressErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 448194bc..b5ae9ab4 100644 --- a/docs/models/errors/UpdatePlayProgressResponseBody.md +++ b/docs/models/errors/UpdatePlayProgressResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UpdatePlayProgressErrors](../../models/errors/UpdatePlayProgressErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index af6ff2aa..7ffde7d6 100644 --- a/docs/models/errors/UpdatePlaylistErrors.md +++ b/docs/models/errors/UpdatePlaylistErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 2a1cdccc..f33d35a8 100644 --- a/docs/models/errors/UpdatePlaylistResponseBody.md +++ b/docs/models/errors/UpdatePlaylistResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistErrors](../../models/errors/UpdatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index bf15816f..ff72ac5c 100644 --- a/docs/models/errors/UploadPlaylistErrors.md +++ b/docs/models/errors/UploadPlaylistErrors.md @@ -5,6 +5,6 @@ | 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 +| `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 index 4470df95..3a2a4c4a 100644 --- a/docs/models/errors/UploadPlaylistResponseBody.md +++ b/docs/models/errors/UploadPlaylistResponseBody.md @@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UploadPlaylistErrors](../../models/errors/UploadPlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `errors` | List<[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 index 4bdef685..f8d4df29 100644 --- a/docs/models/operations/Account.md +++ b/docs/models/operations/Account.md @@ -5,11 +5,11 @@ | 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 +| `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 index 35203574..92409e01 100644 --- a/docs/models/operations/Activity.md +++ b/docs/models/operations/Activity.md @@ -3,13 +3,13 @@ ## 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 +| 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 index 77af8d3d..336e26a0 100644 --- a/docs/models/operations/AddPlaylistContentsMediaContainer.md +++ b/docs/models/operations/AddPlaylistContentsMediaContainer.md @@ -3,9 +3,9 @@ ## 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 +| 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<[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 index e10c741b..584ba608 100644 --- a/docs/models/operations/AddPlaylistContentsMetadata.md +++ b/docs/models/operations/AddPlaylistContentsMetadata.md @@ -5,16 +5,16 @@ | 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 +| `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 index aeb17ceb..40be8e35 100644 --- a/docs/models/operations/AddPlaylistContentsRequest.md +++ b/docs/models/operations/AddPlaylistContentsRequest.md @@ -7,4 +7,4 @@ | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `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 +| `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 index 886c5cce..1302ef44 100644 --- a/docs/models/operations/AddPlaylistContentsResponse.md +++ b/docs/models/operations/AddPlaylistContentsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 055d3a5a..3328c270 100644 --- a/docs/models/operations/AddPlaylistContentsResponseBody.md +++ b/docs/models/operations/AddPlaylistContentsResponseBody.md @@ -5,6 +5,6 @@ Playlist Updated ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/AddPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 7e0aa3b9..d866557b 100644 --- a/docs/models/operations/ApplyUpdatesRequest.md +++ b/docs/models/operations/ApplyUpdatesRequest.md @@ -5,5 +5,5 @@ | 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 +| `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 [Release] entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file diff --git a/docs/models/operations/AutoSelectSubtitle.md b/docs/models/operations/AutoSelectSubtitle.md new file mode 100644 index 00000000..3fcdee91 --- /dev/null +++ b/docs/models/operations/AutoSelectSubtitle.md @@ -0,0 +1,11 @@ +# AutoSelectSubtitle + +The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Billing.md b/docs/models/operations/Billing.md new file mode 100644 index 00000000..c953ef47 --- /dev/null +++ b/docs/models/operations/Billing.md @@ -0,0 +1,9 @@ +# Billing + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `internalPaymentMethod` | [InternalPaymentMethod](../../models/operations/InternalPaymentMethod.md) | :heavy_check_mark: | N/A | +| `paymentMethodId` | *Optional* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ButlerTask.md b/docs/models/operations/ButlerTask.md index f7ffc58e..684d109f 100644 --- a/docs/models/operations/ButlerTask.md +++ b/docs/models/operations/ButlerTask.md @@ -5,9 +5,9 @@ | 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 +| `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 index b16b4a42..167c64ab 100644 --- a/docs/models/operations/ButlerTasks.md +++ b/docs/models/operations/ButlerTasks.md @@ -3,6 +3,6 @@ ## 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 +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `butlerTask` | List<[ButlerTask](../../models/operations/ButlerTask.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesRequest.md b/docs/models/operations/CheckForUpdatesRequest.md index da7a1057..f42ac0fe 100644 --- a/docs/models/operations/CheckForUpdatesRequest.md +++ b/docs/models/operations/CheckForUpdatesRequest.md @@ -3,6 +3,6 @@ ## 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 +| 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/Connections.md b/docs/models/operations/Connections.md new file mode 100644 index 00000000..8a1ef379 --- /dev/null +++ b/docs/models/operations/Connections.md @@ -0,0 +1,14 @@ +# Connections + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `protocol` | *String* | :heavy_check_mark: | N/A | +| `address` | *String* | :heavy_check_mark: | N/A | +| `port` | *double* | :heavy_check_mark: | N/A | +| `uri` | *String* | :heavy_check_mark: | N/A | +| `local` | *boolean* | :heavy_check_mark: | N/A | +| `relay` | *boolean* | :heavy_check_mark: | N/A | +| `iPv6` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Context.md b/docs/models/operations/Context.md index 9587bf66..890a22fc 100644 --- a/docs/models/operations/Context.md +++ b/docs/models/operations/Context.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 52a65cbc..9cac0ef3 100644 --- a/docs/models/operations/Country.md +++ b/docs/models/operations/Country.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file +| 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 index d74c0645..dd2936cb 100644 --- a/docs/models/operations/CreatePlaylistMediaContainer.md +++ b/docs/models/operations/CreatePlaylistMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 7 | +| `metadata` | List<[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 index 170fd9d8..a0446c2b 100644 --- a/docs/models/operations/CreatePlaylistMetadata.md +++ b/docs/models/operations/CreatePlaylistMetadata.md @@ -5,19 +5,19 @@ | 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 +| `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/CreatePlaylistQueryParamType.md b/docs/models/operations/CreatePlaylistQueryParamType.md new file mode 100644 index 00000000..bb012f27 --- /dev/null +++ b/docs/models/operations/CreatePlaylistQueryParamType.md @@ -0,0 +1,12 @@ +# CreatePlaylistQueryParamType + +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/CreatePlaylistRequest.md b/docs/models/operations/CreatePlaylistRequest.md index 9c206ac2..9548479e 100644 --- a/docs/models/operations/CreatePlaylistRequest.md +++ b/docs/models/operations/CreatePlaylistRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `title` | *String* | :heavy_check_mark: | name of the playlist | -| `type` | [lukehagar.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 +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `title` | *String* | :heavy_check_mark: | name of the playlist | +| `type` | [CreatePlaylistQueryParamType](../../models/operations/CreatePlaylistQueryParamType.md) | :heavy_check_mark: | type of playlist to create | +| `smart` | [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 index d0023d6a..3f4c0fa7 100644 --- a/docs/models/operations/CreatePlaylistResponse.md +++ b/docs/models/operations/CreatePlaylistResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 010f0e6c..4d3cccb7 100644 --- a/docs/models/operations/CreatePlaylistResponseBody.md +++ b/docs/models/operations/CreatePlaylistResponseBody.md @@ -5,6 +5,6 @@ returns all playlists ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/CreatePlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/DefaultSubtitleAccessibility.md b/docs/models/operations/DefaultSubtitleAccessibility.md new file mode 100644 index 00000000..cbc38d94 --- /dev/null +++ b/docs/models/operations/DefaultSubtitleAccessibility.md @@ -0,0 +1,11 @@ +# DefaultSubtitleAccessibility + +The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/DefaultSubtitleForced.md b/docs/models/operations/DefaultSubtitleForced.md new file mode 100644 index 00000000..83704a56 --- /dev/null +++ b/docs/models/operations/DefaultSubtitleForced.md @@ -0,0 +1,11 @@ +# DefaultSubtitleForced + +The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryRequest.md b/docs/models/operations/DeleteLibraryRequest.md index daece339..864269c8 100644 --- a/docs/models/operations/DeleteLibraryRequest.md +++ b/docs/models/operations/DeleteLibraryRequest.md @@ -3,6 +3,6 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | \ No newline at end of file diff --git a/docs/models/operations/Device.md b/docs/models/operations/Device.md index 458946bd..4520fb9a 100644 --- a/docs/models/operations/Device.md +++ b/docs/models/operations/Device.md @@ -3,10 +3,10 @@ ## 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 +| 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 index 89925f7d..379feff0 100644 --- a/docs/models/operations/Director.md +++ b/docs/models/operations/Director.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Peyton Reed | \ No newline at end of file +| 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 index fbd051d1..aa74a7f6 100644 --- a/docs/models/operations/Directory.md +++ b/docs/models/operations/Directory.md @@ -3,8 +3,8 @@ ## 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 +| 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/Feature.md b/docs/models/operations/Feature.md new file mode 100644 index 00000000..365400f7 --- /dev/null +++ b/docs/models/operations/Feature.md @@ -0,0 +1,10 @@ +# Feature + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `key` | *Optional* | :heavy_minus_sign: | N/A | +| `type` | *Optional* | :heavy_minus_sign: | N/A | +| `directory` | List<[GetMediaProvidersDirectory](../../models/operations/GetMediaProvidersDirectory.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Features.md b/docs/models/operations/Features.md new file mode 100644 index 00000000..58f02625 --- /dev/null +++ b/docs/models/operations/Features.md @@ -0,0 +1,66 @@ +# Features + + +## Values + +| Name | Value | +| ----------------------------------------- | ----------------------------------------- | +| `ANDROID_DOLBY_VISION` | Android - Dolby Vision | +| `ANDROID_PI_P` | Android - PiP | +| `CU_SUNSET` | CU Sunset | +| `HRK_ENABLE_EUR` | HRK_enable_EUR | +| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | +| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | +| `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | +| `AVOD_AD_ANALYSIS` | avod-ad-analysis | +| `AVOD_NEW_MEDIA` | avod-new-media | +| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `CLIENT_RADIO_STATIONS` | client-radio-stations | +| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `COLLECTIONS` | collections | +| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | +| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | +| `COMPANIONS_SONOS` | companions_sonos | +| `CUSTOM_HOME_REMOVAL` | custom-home-removal | +| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | +| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DRM_SUPPORT` | drm_support | +| `EXCLUDE_RESTRICTIONS` | exclude restrictions | +| `FEDERATED_AUTH` | federated-auth | +| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GUIDED_UPGRADE` | guided-upgrade | +| `HOME` | home | +| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | +| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | +| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `KEEP_PAYMENT_METHOD` | keep-payment-method | +| `KEVIN_BACON` | kevin-bacon | +| `KOREA_CONSENT` | korea-consent | +| `LE_ISRG_ROOT_X1` | le_isrg_root_x1 | +| `LETS_ENCRYPT` | lets_encrypt | +| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | +| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | +| `LIVETV` | livetv | +| `METADATA_SEARCH` | metadata_search | +| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | +| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `PHOTOS_FAVORITES` | photos-favorites | +| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PMS_HEALTH` | pms_health | +| `RADIO` | radio | +| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | +| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | +| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `TRANSCODER_CACHE` | transcoder_cache | +| `TUNER_SHARING` | tuner-sharing | +| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | +| `UNSUPPORTEDTUNERS` | unsupportedtuners | +| `UPGRADE3DS2` | upgrade-3ds2 | +| `VOD_SCHEMA` | vod-schema | +| `VOD_CLOUDFLARE` | vod_cloudflare | +| `WATCH_TOGETHER_INVITE` | watch-together-invite | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file diff --git a/docs/models/operations/Field.md b/docs/models/operations/Field.md index 6a82c614..2cdcce54 100644 --- a/docs/models/operations/Field.md +++ b/docs/models/operations/Field.md @@ -3,9 +3,9 @@ ## 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 +| 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 index d1e12c70..5a135e54 100644 --- a/docs/models/operations/FieldType.md +++ b/docs/models/operations/FieldType.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `type` | *Optional* | :heavy_minus_sign: | N/A | resolution | +| `operator` | List<[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 index 6b3af5a1..2736d3d0 100644 --- a/docs/models/operations/Filter.md +++ b/docs/models/operations/Filter.md @@ -1,11 +1,12 @@ # Filter -Filters content by field and direction/equality -(Unknown if viewedAt is the only supported column) +Filter +## Values -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file +| Name | Value | +| ----------- | ----------- | +| `ALL` | all | +| `AVAILABLE` | available | +| `RELEASED` | released | \ No newline at end of file diff --git a/docs/models/operations/Force.md b/docs/models/operations/Force.md index 9bacc5e4..97b7709c 100644 --- a/docs/models/operations/Force.md +++ b/docs/models/operations/Force.md @@ -1,10 +1,6 @@ # 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. - +Force the refresh even if the library is already being refreshed. ## Values diff --git a/docs/models/operations/Friend.md b/docs/models/operations/Friend.md new file mode 100644 index 00000000..b05110f6 --- /dev/null +++ b/docs/models/operations/Friend.md @@ -0,0 +1,19 @@ +# Friend + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `email` | *String* | :heavy_check_mark: | The account email address | username@email.com | +| `friendlyName` | *Optional* | :heavy_check_mark: | The account full name | exampleUser | +| `home` | *boolean* | :heavy_check_mark: | If the account is a Plex Home user | | +| `id` | *int* | :heavy_check_mark: | The Plex account ID | | +| `restricted` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `sharedServers` | List<[SharedServers](../../models/operations/SharedServers.md)> | :heavy_check_mark: | N/A | | +| `sharedSources` | List<[SharedSources](../../models/operations/SharedSources.md)> | :heavy_check_mark: | N/A | | +| `status` | [Status](../../models/operations/Status.md) | :heavy_check_mark: | Current friend request status | accepted | +| `thumb` | *String* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578 | +| `title` | *String* | :heavy_check_mark: | The title of the account (username or friendly name) | username123 | +| `username` | *String* | :heavy_check_mark: | The account username | username123 | +| `uuid` | *String* | :heavy_check_mark: | The account Universally Unique Identifier (UUID) | 7d1916e0d8f6e76b | \ No newline at end of file diff --git a/docs/models/operations/Genre.md b/docs/models/operations/Genre.md index 383063b0..35a3e3a4 100644 --- a/docs/models/operations/Genre.md +++ b/docs/models/operations/Genre.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Comedy | \ No newline at end of file +| 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/GeoData.md b/docs/models/operations/GeoData.md new file mode 100644 index 00000000..6bf8520e --- /dev/null +++ b/docs/models/operations/GeoData.md @@ -0,0 +1,20 @@ +# GeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `code` | *String* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `continentCode` | *String* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `country` | *String* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `europeanUnionMember` | *Optional* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `inPrivacyRestrictedCountry` | *Optional* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `inPrivacyRestrictedRegion` | *Optional* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `coordinates` | *String* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/models/operations/GetAllLibrariesDirectory.md b/docs/models/operations/GetAllLibrariesDirectory.md new file mode 100644 index 00000000..d17267bd --- /dev/null +++ b/docs/models/operations/GetAllLibrariesDirectory.md @@ -0,0 +1,28 @@ +# GetAllLibrariesDirectory + + +## 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: | Unix epoch datetime | 1556281940 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | +| `scannedAt` | *Optional* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 | +| `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<[Location](../../models/operations/Location.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetAllLibrariesMediaContainer.md b/docs/models/operations/GetAllLibrariesMediaContainer.md new file mode 100644 index 00000000..051ec6dd --- /dev/null +++ b/docs/models/operations/GetAllLibrariesMediaContainer.md @@ -0,0 +1,11 @@ +# GetAllLibrariesMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `size` | *int* | :heavy_check_mark: | N/A | 5 | +| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false | +| `title1` | *String* | :heavy_check_mark: | N/A | Plex Library | +| `directory` | List<[GetAllLibrariesDirectory](../../models/operations/GetAllLibrariesDirectory.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetAllLibrariesResponse.md b/docs/models/operations/GetAllLibrariesResponse.md new file mode 100644 index 00000000..93cbeaed --- /dev/null +++ b/docs/models/operations/GetAllLibrariesResponse.md @@ -0,0 +1,11 @@ +# GetAllLibrariesResponse + + +## 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/GetAllLibrariesResponseBody.md) | :heavy_minus_sign: | The libraries available on the Server | \ No newline at end of file diff --git a/docs/models/operations/GetAllLibrariesResponseBody.md b/docs/models/operations/GetAllLibrariesResponseBody.md new file mode 100644 index 00000000..9533cdfc --- /dev/null +++ b/docs/models/operations/GetAllLibrariesResponseBody.md @@ -0,0 +1,10 @@ +# GetAllLibrariesResponseBody + +The libraries available on the Server + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [Optional](../../models/operations/GetAllLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsMediaContainer.md b/docs/models/operations/GetAvailableClientsMediaContainer.md index 61b1b292..ccb7e5f1 100644 --- a/docs/models/operations/GetAvailableClientsMediaContainer.md +++ b/docs/models/operations/GetAvailableClientsMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `server` | List<[Server](../../models/operations/Server.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsResponse.md b/docs/models/operations/GetAvailableClientsResponse.md index e594afa8..0eb02559 100644 --- a/docs/models/operations/GetAvailableClientsResponse.md +++ b/docs/models/operations/GetAvailableClientsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 60241bfd..7774d62a 100644 --- a/docs/models/operations/GetAvailableClientsResponseBody.md +++ b/docs/models/operations/GetAvailableClientsResponseBody.md @@ -5,6 +5,6 @@ Available Clients ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetAvailableClientsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index eed6f39c..894cf820 100644 --- a/docs/models/operations/GetBandwidthStatisticsAccount.md +++ b/docs/models/operations/GetBandwidthStatisticsAccount.md @@ -5,11 +5,11 @@ | 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 +| `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 index a98ee64d..b2d31981 100644 --- a/docs/models/operations/GetBandwidthStatisticsDevice.md +++ b/docs/models/operations/GetBandwidthStatisticsDevice.md @@ -5,8 +5,8 @@ | 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 +| `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 index 0431732b..29b3b652 100644 --- a/docs/models/operations/GetBandwidthStatisticsMediaContainer.md +++ b/docs/models/operations/GetBandwidthStatisticsMediaContainer.md @@ -3,9 +3,9 @@ ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | +| `device` | List<[GetBandwidthStatisticsDevice](../../models/operations/GetBandwidthStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | +| `account` | List<[GetBandwidthStatisticsAccount](../../models/operations/GetBandwidthStatisticsAccount.md)> | :heavy_minus_sign: | N/A | | +| `statisticsBandwidth` | List<[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 index 2d4edb8f..8f41d335 100644 --- a/docs/models/operations/GetBandwidthStatisticsRequest.md +++ b/docs/models/operations/GetBandwidthStatisticsRequest.md @@ -5,4 +5,4 @@ | 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 +| `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 index bda025cb..299826d8 100644 --- a/docs/models/operations/GetBandwidthStatisticsResponse.md +++ b/docs/models/operations/GetBandwidthStatisticsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 2d13d16f..c8e35faf 100644 --- a/docs/models/operations/GetBandwidthStatisticsResponseBody.md +++ b/docs/models/operations/GetBandwidthStatisticsResponseBody.md @@ -5,6 +5,6 @@ Bandwidth Statistics ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetBandwidthStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetBannerImageRequest.md b/docs/models/operations/GetBannerImageRequest.md new file mode 100644 index 00000000..24cd2545 --- /dev/null +++ b/docs/models/operations/GetBannerImageRequest.md @@ -0,0 +1,13 @@ +# GetBannerImageRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *long* | :heavy_check_mark: | the id of the library item to return the children of. | 9518 | +| `width` | *long* | :heavy_check_mark: | N/A | 396 | +| `height` | *long* | :heavy_check_mark: | N/A | 396 | +| `minSize` | *long* | :heavy_check_mark: | N/A | 1 | +| `upscale` | *long* | :heavy_check_mark: | N/A | 1 | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/models/operations/GetBannerImageResponse.md b/docs/models/operations/GetBannerImageResponse.md new file mode 100644 index 00000000..db354f2c --- /dev/null +++ b/docs/models/operations/GetBannerImageResponse.md @@ -0,0 +1,12 @@ +# GetBannerImageResponse + + +## 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 | +| `responseStream` | *Optional* | :heavy_minus_sign: | Successful response returning an image | +| `headers` | Map> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetButlerTasksResponse.md b/docs/models/operations/GetButlerTasksResponse.md index 42cb8b0d..2046b23b 100644 --- a/docs/models/operations/GetButlerTasksResponse.md +++ b/docs/models/operations/GetButlerTasksResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 730b14ac..cb736a77 100644 --- a/docs/models/operations/GetButlerTasksResponseBody.md +++ b/docs/models/operations/GetButlerTasksResponseBody.md @@ -5,6 +5,6 @@ All butler tasks ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `butlerTasks` | [Optional](../../models/operations/ButlerTasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetCompanionsDataResponse.md b/docs/models/operations/GetCompanionsDataResponse.md new file mode 100644 index 00000000..2fba468d --- /dev/null +++ b/docs/models/operations/GetCompanionsDataResponse.md @@ -0,0 +1,11 @@ +# GetCompanionsDataResponse + + +## 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 | +| `responseBodies` | List<[ResponseBody](../../models/operations/ResponseBody.md)> | :heavy_minus_sign: | Companions Data | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesMediaContainer.md b/docs/models/operations/GetDevicesMediaContainer.md index 6d3b6075..9b1b92eb 100644 --- a/docs/models/operations/GetDevicesMediaContainer.md +++ b/docs/models/operations/GetDevicesMediaContainer.md @@ -3,8 +3,8 @@ ## 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 +| 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<[Device](../../models/operations/Device.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesResponse.md b/docs/models/operations/GetDevicesResponse.md index 3a860955..b6c5ed05 100644 --- a/docs/models/operations/GetDevicesResponse.md +++ b/docs/models/operations/GetDevicesResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 4c468ffc..62e79d18 100644 --- a/docs/models/operations/GetDevicesResponseBody.md +++ b/docs/models/operations/GetDevicesResponseBody.md @@ -5,6 +5,6 @@ Devices ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetDevicesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 103e0585..9de0a12a 100644 --- a/docs/models/operations/GetFileHashRequest.md +++ b/docs/models/operations/GetFileHashRequest.md @@ -6,4 +6,4 @@ | 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 +| `type` | *Optional* | :heavy_minus_sign: | Item type | | \ No newline at end of file diff --git a/docs/models/operations/GetGeoDataGeoData.md b/docs/models/operations/GetGeoDataGeoData.md new file mode 100644 index 00000000..3850fbb7 --- /dev/null +++ b/docs/models/operations/GetGeoDataGeoData.md @@ -0,0 +1,20 @@ +# GetGeoDataGeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `code` | *String* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `continentCode` | *String* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `country` | *String* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `europeanUnionMember` | *Optional* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `inPrivacyRestrictedCountry` | *Optional* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `inPrivacyRestrictedRegion` | *Optional* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `coordinates` | *String* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/models/operations/GetPinResponseBody.md b/docs/models/operations/GetGeoDataResponse.md similarity index 50% rename from docs/models/operations/GetPinResponseBody.md rename to docs/models/operations/GetGeoDataResponse.md index b1eea52c..73452362 100644 --- a/docs/models/operations/GetPinResponseBody.md +++ b/docs/models/operations/GetGeoDataResponse.md @@ -1,21 +1,11 @@ -# GetPinResponseBody - -The Pin +# GetGeoDataResponse ## 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 +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 | | +| `geoData` | [Optional](../../models/operations/GetGeoDataGeoData.md) | :heavy_minus_sign: | Gets the geo location data of the user | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsMediaContainer.md b/docs/models/operations/GetGlobalHubsMediaContainer.md index 0341d83b..f8ffd0d3 100644 --- a/docs/models/operations/GetGlobalHubsMediaContainer.md +++ b/docs/models/operations/GetGlobalHubsMediaContainer.md @@ -3,9 +3,9 @@ ## 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 +| 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<[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 index e4600981..c4714341 100644 --- a/docs/models/operations/GetGlobalHubsMetadata.md +++ b/docs/models/operations/GetGlobalHubsMetadata.md @@ -5,20 +5,20 @@ | 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 +| `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 index c9f6978a..f5d123ee 100644 --- a/docs/models/operations/GetGlobalHubsRequest.md +++ b/docs/models/operations/GetGlobalHubsRequest.md @@ -5,5 +5,5 @@ | 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 +| `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 index 7a720048..44baf2e0 100644 --- a/docs/models/operations/GetGlobalHubsResponse.md +++ b/docs/models/operations/GetGlobalHubsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 98afb0f9..ae965d39 100644 --- a/docs/models/operations/GetGlobalHubsResponseBody.md +++ b/docs/models/operations/GetGlobalHubsResponseBody.md @@ -5,6 +5,6 @@ returns global hubs ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetGlobalHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 6275a5f6..2ef31f7a 100644 --- a/docs/models/operations/GetHomeDataResponse.md +++ b/docs/models/operations/GetHomeDataResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 8043fc45..67f43c43 100644 --- a/docs/models/operations/GetHomeDataResponseBody.md +++ b/docs/models/operations/GetHomeDataResponseBody.md @@ -5,11 +5,11 @@ 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 +| 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/GetLibraryDetailsDirectory.md b/docs/models/operations/GetLibraryDetailsDirectory.md new file mode 100644 index 00000000..f3a42485 --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsDirectory.md @@ -0,0 +1,12 @@ +# GetLibraryDetailsDirectory + + +## 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/GetLibraryDetailsFilter.md b/docs/models/operations/GetLibraryDetailsFilter.md new file mode 100644 index 00000000..aaf8300f --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsFilter.md @@ -0,0 +1,12 @@ +# GetLibraryDetailsFilter + + +## 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/GetLibraryDetailsMediaContainer.md b/docs/models/operations/GetLibraryDetailsMediaContainer.md new file mode 100644 index 00000000..d9d684e4 --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsMediaContainer.md @@ -0,0 +1,22 @@ +# GetLibraryDetailsMediaContainer + + +## 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<[GetLibraryDetailsDirectory](../../models/operations/GetLibraryDetailsDirectory.md)> | :heavy_minus_sign: | N/A | | +| `type` | List<[GetLibraryDetailsType](../../models/operations/GetLibraryDetailsType.md)> | :heavy_minus_sign: | N/A | | +| `fieldType` | List<[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/GetLibraryDetailsRequest.md similarity index 85% rename from docs/models/operations/GetLibraryRequest.md rename to docs/models/operations/GetLibraryDetailsRequest.md index 7ce65301..0c09491a 100644 --- a/docs/models/operations/GetLibraryRequest.md +++ b/docs/models/operations/GetLibraryDetailsRequest.md @@ -1,9 +1,9 @@ -# GetLibraryRequest +# GetLibraryDetailsRequest ## 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 +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `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/GetLibraryDetailsResponse.md b/docs/models/operations/GetLibraryDetailsResponse.md new file mode 100644 index 00000000..ff0ccc5e --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsResponse.md @@ -0,0 +1,11 @@ +# GetLibraryDetailsResponse + + +## 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/GetLibraryDetailsResponseBody.md) | :heavy_minus_sign: | The details of the library | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryDetailsResponseBody.md b/docs/models/operations/GetLibraryDetailsResponseBody.md new file mode 100644 index 00000000..b0c9ee5e --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsResponseBody.md @@ -0,0 +1,10 @@ +# GetLibraryDetailsResponseBody + +The details of the library + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [Optional](../../models/operations/GetLibraryDetailsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryDetailsType.md b/docs/models/operations/GetLibraryDetailsType.md new file mode 100644 index 00000000..0699c9f2 --- /dev/null +++ b/docs/models/operations/GetLibraryDetailsType.md @@ -0,0 +1,14 @@ +# GetLibraryDetailsType + + +## 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<[GetLibraryDetailsFilter](../../models/operations/GetLibraryDetailsFilter.md)> | :heavy_minus_sign: | N/A | | +| `sort` | List<[Sort](../../models/operations/Sort.md)> | :heavy_minus_sign: | N/A | | +| `field` | List<[Field](../../models/operations/Field.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 index b933a055..ed9d6ad6 100644 --- a/docs/models/operations/GetLibraryHubsCountry.md +++ b/docs/models/operations/GetLibraryHubsCountry.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file +| 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 index d6ea192e..d33baf2b 100644 --- a/docs/models/operations/GetLibraryHubsDirector.md +++ b/docs/models/operations/GetLibraryHubsDirector.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Nathan Greno | \ No newline at end of file +| 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 index bceadde8..eb4ab5dc 100644 --- a/docs/models/operations/GetLibraryHubsGenre.md +++ b/docs/models/operations/GetLibraryHubsGenre.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Animation | \ No newline at end of file +| 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 index f673b3a6..ff3a55d8 100644 --- a/docs/models/operations/GetLibraryHubsHub.md +++ b/docs/models/operations/GetLibraryHubsHub.md @@ -3,17 +3,17 @@ ## 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 +| 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<[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 index 0fe96c7c..a6fbb889 100644 --- a/docs/models/operations/GetLibraryHubsMedia.md +++ b/docs/models/operations/GetLibraryHubsMedia.md @@ -3,22 +3,22 @@ ## 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 +| 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<[GetLibraryHubsPart](../../models/operations/GetLibraryHubsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsMediaContainer.md b/docs/models/operations/GetLibraryHubsMediaContainer.md index 96a92797..f30623d8 100644 --- a/docs/models/operations/GetLibraryHubsMediaContainer.md +++ b/docs/models/operations/GetLibraryHubsMediaContainer.md @@ -3,12 +3,12 @@ ## 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 +| 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<[GetLibraryHubsHub](../../models/operations/GetLibraryHubsHub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsMetadata.md b/docs/models/operations/GetLibraryHubsMetadata.md index fd3a73f7..601fba04 100644 --- a/docs/models/operations/GetLibraryHubsMetadata.md +++ b/docs/models/operations/GetLibraryHubsMetadata.md @@ -5,37 +5,37 @@ | 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 | +| `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 +| `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<[GetLibraryHubsMedia](../../models/operations/GetLibraryHubsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[GetLibraryHubsGenre](../../models/operations/GetLibraryHubsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetLibraryHubsCountry](../../models/operations/GetLibraryHubsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[GetLibraryHubsDirector](../../models/operations/GetLibraryHubsDirector.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[GetLibraryHubsRole](../../models/operations/GetLibraryHubsRole.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[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 index 29504717..be5d5b48 100644 --- a/docs/models/operations/GetLibraryHubsPart.md +++ b/docs/models/operations/GetLibraryHubsPart.md @@ -5,13 +5,13 @@ | 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 +| `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 index 6bbb8101..17e1ba26 100644 --- a/docs/models/operations/GetLibraryHubsRequest.md +++ b/docs/models/operations/GetLibraryHubsRequest.md @@ -6,5 +6,5 @@ | 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 +| `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 index 052608b9..04f3f58e 100644 --- a/docs/models/operations/GetLibraryHubsResponse.md +++ b/docs/models/operations/GetLibraryHubsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 491eb395..1ecb91ff 100644 --- a/docs/models/operations/GetLibraryHubsResponseBody.md +++ b/docs/models/operations/GetLibraryHubsResponseBody.md @@ -5,6 +5,6 @@ The hubs specific to the library ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetLibraryHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index fa3cb330..42a4d2d8 100644 --- a/docs/models/operations/GetLibraryHubsRole.md +++ b/docs/models/operations/GetLibraryHubsRole.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Donna Murphy | \ No newline at end of file +| 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 index a66a46bb..435ef631 100644 --- a/docs/models/operations/GetLibraryHubsWriter.md +++ b/docs/models/operations/GetLibraryHubsWriter.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Wilhelm Grimm | \ No newline at end of file +| 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 index 69cdad79..603d5d4d 100644 --- a/docs/models/operations/GetLibraryItemsCountry.md +++ b/docs/models/operations/GetLibraryItemsCountry.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file +| 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 index 315fba69..b3f3687b 100644 --- a/docs/models/operations/GetLibraryItemsDirector.md +++ b/docs/models/operations/GetLibraryItemsDirector.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file +| 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 index 1bbf7901..a94e946e 100644 --- a/docs/models/operations/GetLibraryItemsGenre.md +++ b/docs/models/operations/GetLibraryItemsGenre.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Adventure | \ No newline at end of file +| 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 index 5185ce17..22e6a344 100644 --- a/docs/models/operations/GetLibraryItemsMedia.md +++ b/docs/models/operations/GetLibraryItemsMedia.md @@ -3,19 +3,19 @@ ## 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 +| 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<[GetLibraryItemsPart](../../models/operations/GetLibraryItemsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsMediaContainer.md b/docs/models/operations/GetLibraryItemsMediaContainer.md index 6d69e487..0eadf570 100644 --- a/docs/models/operations/GetLibraryItemsMediaContainer.md +++ b/docs/models/operations/GetLibraryItemsMediaContainer.md @@ -3,21 +3,21 @@ ## 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 +| 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<[GetLibraryItemsMetadata](../../models/operations/GetLibraryItemsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsMetadata.md b/docs/models/operations/GetLibraryItemsMetadata.md index 77ae46ce..474dd286 100644 --- a/docs/models/operations/GetLibraryItemsMetadata.md +++ b/docs/models/operations/GetLibraryItemsMetadata.md @@ -5,60 +5,60 @@ | 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 | +| `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 +| `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<[GetLibraryItemsMedia](../../models/operations/GetLibraryItemsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[GetLibraryItemsGenre](../../models/operations/GetLibraryItemsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetLibraryItemsCountry](../../models/operations/GetLibraryItemsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[GetLibraryItemsDirector](../../models/operations/GetLibraryItemsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[GetLibraryItemsWriter](../../models/operations/GetLibraryItemsWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[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 index 56f6eb56..762e4508 100644 --- a/docs/models/operations/GetLibraryItemsPart.md +++ b/docs/models/operations/GetLibraryItemsPart.md @@ -5,10 +5,10 @@ | 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 +| `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 index 36636ee4..680b3049 100644 --- a/docs/models/operations/GetLibraryItemsRequest.md +++ b/docs/models/operations/GetLibraryItemsRequest.md @@ -3,8 +3,12 @@ ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `tag` | [Tag](../../models/operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | +| `includeGuids` | [Optional](../../models/operations/IncludeGuids.md) | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | +| `includeMeta` | [Optional](../../models/operations/IncludeMeta.md) | :heavy_minus_sign: | Adds the Meta object to the response
| 1 | +| `type` | [Type](../../models/operations/Type.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `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.
By default this is 0
| 0 | +| `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.
By default this is 50
| 50 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsResponse.md b/docs/models/operations/GetLibraryItemsResponse.md index 020831c0..4daba6a6 100644 --- a/docs/models/operations/GetLibraryItemsResponse.md +++ b/docs/models/operations/GetLibraryItemsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 70ea1a88..0bbd692b 100644 --- a/docs/models/operations/GetLibraryItemsResponseBody.md +++ b/docs/models/operations/GetLibraryItemsResponseBody.md @@ -5,6 +5,6 @@ The contents of the library by section and tag ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetLibraryItemsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 64d3996c..3a00b53b 100644 --- a/docs/models/operations/GetLibraryItemsRole.md +++ b/docs/models/operations/GetLibraryItemsRole.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Sigourney Weaver | \ No newline at end of file +| 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 index 0c0e0dcb..239087cc 100644 --- a/docs/models/operations/GetLibraryItemsWriter.md +++ b/docs/models/operations/GetLibraryItemsWriter.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file +| 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/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/GetMediaProvidersDirectory.md b/docs/models/operations/GetMediaProvidersDirectory.md new file mode 100644 index 00000000..1feaf231 --- /dev/null +++ b/docs/models/operations/GetMediaProvidersDirectory.md @@ -0,0 +1,21 @@ +# GetMediaProvidersDirectory + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `hubKey` | *Optional* | :heavy_minus_sign: | N/A | +| `title` | *Optional* | :heavy_minus_sign: | N/A | +| `agent` | *Optional* | :heavy_minus_sign: | N/A | +| `language` | *Optional* | :heavy_minus_sign: | N/A | +| `refreshing` | *Optional* | :heavy_minus_sign: | N/A | +| `scanner` | *Optional* | :heavy_minus_sign: | N/A | +| `uuid` | *Optional* | :heavy_minus_sign: | N/A | +| `id` | *Optional* | :heavy_minus_sign: | N/A | +| `key` | *Optional* | :heavy_minus_sign: | N/A | +| `type` | *Optional* | :heavy_minus_sign: | N/A | +| `subtype` | *Optional* | :heavy_minus_sign: | N/A | +| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | +| `scannedAt` | *Optional* | :heavy_minus_sign: | N/A | +| `pivot` | List<[Pivot](../../models/operations/Pivot.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMediaProvidersMediaContainer.md b/docs/models/operations/GetMediaProvidersMediaContainer.md new file mode 100644 index 00000000..ece0f714 --- /dev/null +++ b/docs/models/operations/GetMediaProvidersMediaContainer.md @@ -0,0 +1,51 @@ +# GetMediaProvidersMediaContainer + + +## 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 | +| `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 | +| `livetv` | *Optional* | :heavy_minus_sign: | N/A | +| `machineIdentifier` | *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 | +| `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 | +| `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 | +| `mediaProvider` | List<[MediaProvider](../../models/operations/MediaProvider.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMediaProvidersRequest.md b/docs/models/operations/GetMediaProvidersRequest.md new file mode 100644 index 00000000..f191e033 --- /dev/null +++ b/docs/models/operations/GetMediaProvidersRequest.md @@ -0,0 +1,8 @@ +# GetMediaProvidersRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/models/operations/GetMediaProvidersResponse.md b/docs/models/operations/GetMediaProvidersResponse.md new file mode 100644 index 00000000..b7d22bb5 --- /dev/null +++ b/docs/models/operations/GetMediaProvidersResponse.md @@ -0,0 +1,11 @@ +# GetMediaProvidersResponse + + +## 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/GetMediaProvidersResponseBody.md) | :heavy_minus_sign: | Media providers and their features | \ No newline at end of file diff --git a/docs/models/operations/GetMediaProvidersResponseBody.md b/docs/models/operations/GetMediaProvidersResponseBody.md new file mode 100644 index 00000000..35c1cee4 --- /dev/null +++ b/docs/models/operations/GetMediaProvidersResponseBody.md @@ -0,0 +1,10 @@ +# GetMediaProvidersResponseBody + +Media providers and their features + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [Optional](../../models/operations/GetMediaProvidersMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetaDataByRatingKeyCountry.md b/docs/models/operations/GetMetaDataByRatingKeyCountry.md new file mode 100644 index 00000000..942cefa3 --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyCountry.md @@ -0,0 +1,10 @@ +# GetMetaDataByRatingKeyCountry + + +## 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/GetMetaDataByRatingKeyDirector.md similarity index 85% rename from docs/models/operations/GetMetadataDirector.md rename to docs/models/operations/GetMetaDataByRatingKeyDirector.md index 17b1b73f..34d2b851 100644 --- a/docs/models/operations/GetMetadataDirector.md +++ b/docs/models/operations/GetMetaDataByRatingKeyDirector.md @@ -1,12 +1,12 @@ -# GetMetadataDirector +# GetMetaDataByRatingKeyDirector ## 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 +| `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/GetMetaDataByRatingKeyGenre.md b/docs/models/operations/GetMetaDataByRatingKeyGenre.md new file mode 100644 index 00000000..095c7180 --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyGenre.md @@ -0,0 +1,10 @@ +# GetMetaDataByRatingKeyGenre + + +## 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/GetMetaDataByRatingKeyMedia.md b/docs/models/operations/GetMetaDataByRatingKeyMedia.md new file mode 100644 index 00000000..023d226a --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyMedia.md @@ -0,0 +1,24 @@ +# GetMetaDataByRatingKeyMedia + + +## 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<[GetMetaDataByRatingKeyPart](../../models/operations/GetMetaDataByRatingKeyPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetaDataByRatingKeyMediaContainer.md b/docs/models/operations/GetMetaDataByRatingKeyMediaContainer.md new file mode 100644 index 00000000..9efacba3 --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyMediaContainer.md @@ -0,0 +1,16 @@ +# GetMetaDataByRatingKeyMediaContainer + + +## 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<[GetMetaDataByRatingKeyMetadata](../../models/operations/GetMetaDataByRatingKeyMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataMetadata.md b/docs/models/operations/GetMetaDataByRatingKeyMetadata.md similarity index 93% rename from docs/models/operations/GetMetadataMetadata.md rename to docs/models/operations/GetMetaDataByRatingKeyMetadata.md index 148f8ba7..14dfc17b 100644 --- a/docs/models/operations/GetMetadataMetadata.md +++ b/docs/models/operations/GetMetaDataByRatingKeyMetadata.md @@ -1,40 +1,40 @@ -# GetMetadataMetadata +# GetMetaDataByRatingKeyMetadata ## 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 | +| `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 +| `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<[GetMetaDataByRatingKeyMedia](../../models/operations/GetMetaDataByRatingKeyMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[GetMetaDataByRatingKeyGenre](../../models/operations/GetMetaDataByRatingKeyGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetMetaDataByRatingKeyCountry](../../models/operations/GetMetaDataByRatingKeyCountry.md)> | :heavy_minus_sign: | N/A | | +| `guids` | List<[Guids](../../models/operations/Guids.md)> | :heavy_minus_sign: | N/A | | +| `ratings` | List<[Ratings](../../models/operations/Ratings.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[GetMetaDataByRatingKeyDirector](../../models/operations/GetMetaDataByRatingKeyDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[GetMetaDataByRatingKeyWriter](../../models/operations/GetMetaDataByRatingKeyWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[GetMetaDataByRatingKeyRole](../../models/operations/GetMetaDataByRatingKeyRole.md)> | :heavy_minus_sign: | N/A | | +| `producer` | List<[Producer](../../models/operations/Producer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetaDataByRatingKeyPart.md b/docs/models/operations/GetMetaDataByRatingKeyPart.md new file mode 100644 index 00000000..c1eb45df --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyPart.md @@ -0,0 +1,18 @@ +# GetMetaDataByRatingKeyPart + + +## 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<[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/GetMetaDataByRatingKeyRequest.md similarity index 51% rename from docs/models/operations/GetMetadataRequest.md rename to docs/models/operations/GetMetaDataByRatingKeyRequest.md index 483bb2db..98d25f52 100644 --- a/docs/models/operations/GetMetadataRequest.md +++ b/docs/models/operations/GetMetaDataByRatingKeyRequest.md @@ -1,8 +1,8 @@ -# GetMetadataRequest +# GetMetaDataByRatingKeyRequest ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *long* | :heavy_check_mark: | the id of the library item to return the children of. | 9518 | \ No newline at end of file diff --git a/docs/models/operations/GetMetaDataByRatingKeyResponse.md b/docs/models/operations/GetMetaDataByRatingKeyResponse.md new file mode 100644 index 00000000..72f001f9 --- /dev/null +++ b/docs/models/operations/GetMetaDataByRatingKeyResponse.md @@ -0,0 +1,11 @@ +# GetMetaDataByRatingKeyResponse + + +## 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/GetMetaDataByRatingKeyResponseBody.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/GetMetaDataByRatingKeyResponseBody.md similarity index 50% rename from docs/models/operations/GetMetadataResponseBody.md rename to docs/models/operations/GetMetaDataByRatingKeyResponseBody.md index e8f04321..1b3104c9 100644 --- a/docs/models/operations/GetMetadataResponseBody.md +++ b/docs/models/operations/GetMetaDataByRatingKeyResponseBody.md @@ -1,10 +1,10 @@ -# GetMetadataResponseBody +# GetMetaDataByRatingKeyResponseBody 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [Optional](../../models/operations/GetMetaDataByRatingKeyMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataRole.md b/docs/models/operations/GetMetaDataByRatingKeyRole.md similarity index 87% rename from docs/models/operations/GetMetadataRole.md rename to docs/models/operations/GetMetaDataByRatingKeyRole.md index b8ae14bb..2ea48020 100644 --- a/docs/models/operations/GetMetadataRole.md +++ b/docs/models/operations/GetMetaDataByRatingKeyRole.md @@ -1,13 +1,13 @@ -# GetMetadataRole +# GetMetaDataByRatingKeyRole ## 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 +| `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/GetMetaDataByRatingKeyWriter.md similarity index 85% rename from docs/models/operations/GetMetadataWriter.md rename to docs/models/operations/GetMetaDataByRatingKeyWriter.md index 3a2002e1..71637046 100644 --- a/docs/models/operations/GetMetadataWriter.md +++ b/docs/models/operations/GetMetaDataByRatingKeyWriter.md @@ -1,12 +1,12 @@ -# GetMetadataWriter +# GetMetaDataByRatingKeyWriter ## 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 +| `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/GetMetadataChildrenDirectory.md b/docs/models/operations/GetMetadataChildrenDirectory.md index b3a6018e..45383a2d 100644 --- a/docs/models/operations/GetMetadataChildrenDirectory.md +++ b/docs/models/operations/GetMetadataChildrenDirectory.md @@ -5,8 +5,8 @@ | 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 +| `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 index f3d457ad..cdfdfca1 100644 --- a/docs/models/operations/GetMetadataChildrenMediaContainer.md +++ b/docs/models/operations/GetMetadataChildrenMediaContainer.md @@ -5,26 +5,26 @@ | 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 +| `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<[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<[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 index 70f0c8b3..2ed0f6b3 100644 --- a/docs/models/operations/GetMetadataChildrenMetadata.md +++ b/docs/models/operations/GetMetadataChildrenMetadata.md @@ -5,30 +5,30 @@ | 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 +| `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 index 5de99e80..f398d684 100644 --- a/docs/models/operations/GetMetadataChildrenRequest.md +++ b/docs/models/operations/GetMetadataChildrenRequest.md @@ -6,4 +6,4 @@ | 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 +| `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 index ca4297f5..f016d44c 100644 --- a/docs/models/operations/GetMetadataChildrenResponse.md +++ b/docs/models/operations/GetMetadataChildrenResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index ea395dec..9eaadda7 100644 --- a/docs/models/operations/GetMetadataChildrenResponseBody.md +++ b/docs/models/operations/GetMetadataChildrenResponseBody.md @@ -5,6 +5,6 @@ The children of the library item. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetMetadataChildrenMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/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/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/GetMyPlexAccountResponse.md b/docs/models/operations/GetMyPlexAccountResponse.md index 352f9927..f24b4b65 100644 --- a/docs/models/operations/GetMyPlexAccountResponse.md +++ b/docs/models/operations/GetMyPlexAccountResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 023f33f2..0b1cf0fe 100644 --- a/docs/models/operations/GetMyPlexAccountResponseBody.md +++ b/docs/models/operations/GetMyPlexAccountResponseBody.md @@ -5,6 +5,6 @@ MyPlex Account ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `myPlex` | [Optional](../../models/operations/MyPlex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 71aca887..0eb00b07 100644 --- a/docs/models/operations/GetOnDeckGuids.md +++ b/docs/models/operations/GetOnDeckGuids.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | imdb://tt13303712 | \ No newline at end of file +| 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 index 6dba1998..75cc04bf 100644 --- a/docs/models/operations/GetOnDeckMedia.md +++ b/docs/models/operations/GetOnDeckMedia.md @@ -3,20 +3,20 @@ ## 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 +| 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<[GetOnDeckPart](../../models/operations/GetOnDeckPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMediaContainer.md b/docs/models/operations/GetOnDeckMediaContainer.md index f5f0a610..c47fdb29 100644 --- a/docs/models/operations/GetOnDeckMediaContainer.md +++ b/docs/models/operations/GetOnDeckMediaContainer.md @@ -3,12 +3,12 @@ ## 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 +| 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<[GetOnDeckMetadata](../../models/operations/GetOnDeckMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMetadata.md b/docs/models/operations/GetOnDeckMetadata.md index 83bcccbc..f277b58d 100644 --- a/docs/models/operations/GetOnDeckMetadata.md +++ b/docs/models/operations/GetOnDeckMetadata.md @@ -5,39 +5,39 @@ | 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 | +| `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 +| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1654258196 | +| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1654258204 | +| `media` | List<[GetOnDeckMedia](../../models/operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | | +| `guids` | List<[GetOnDeckGuids](../../models/operations/GetOnDeckGuids.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckPart.md b/docs/models/operations/GetOnDeckPart.md index 0b06a86c..af8ca1c9 100644 --- a/docs/models/operations/GetOnDeckPart.md +++ b/docs/models/operations/GetOnDeckPart.md @@ -3,14 +3,14 @@ ## 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 +| 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<[GetOnDeckStream](../../models/operations/GetOnDeckStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckResponse.md b/docs/models/operations/GetOnDeckResponse.md index f0adb313..1d7c0cfd 100644 --- a/docs/models/operations/GetOnDeckResponse.md +++ b/docs/models/operations/GetOnDeckResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 1aabbc03..bdcf7c89 100644 --- a/docs/models/operations/GetOnDeckResponseBody.md +++ b/docs/models/operations/GetOnDeckResponseBody.md @@ -5,6 +5,6 @@ The on Deck content ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 38d4cdeb..15f8fb6a 100644 --- a/docs/models/operations/GetOnDeckStream.md +++ b/docs/models/operations/GetOnDeckStream.md @@ -3,28 +3,28 @@ ## 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 +| 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/GetPinAuthPinContainer.md b/docs/models/operations/GetPinAuthPinContainer.md new file mode 100644 index 00000000..42e2e111 --- /dev/null +++ b/docs/models/operations/GetPinAuthPinContainer.md @@ -0,0 +1,21 @@ +# GetPinAuthPinContainer + +Requests a new pin id used in the authentication flow + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *long* | :heavy_check_mark: | N/A | 308667304 | +| `code` | *String* | :heavy_check_mark: | N/A | 7RQZ | +| `product` | *String* | :heavy_check_mark: | N/A | 0 | +| `trusted` | *Optional* | :heavy_minus_sign: | N/A | | +| `qr` | *String* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | +| `clientIdentifier` | *String* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `location` | [GeoData](../../models/operations/GeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | +| `expiresIn` | *Optional* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | +| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | +| `authToken` | *JsonNullable* | :heavy_minus_sign: | N/A | | +| `newRegistration` | *JsonNullable* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPinRequest.md b/docs/models/operations/GetPinRequest.md index 9cff2227..c7d56801 100644 --- a/docs/models/operations/GetPinRequest.md +++ b/docs/models/operations/GetPinRequest.md @@ -5,6 +5,6 @@ | 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 +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `xPlexProduct` | *Optional* | :heavy_minus_sign: | N/A | Plex Web | \ No newline at end of file diff --git a/docs/models/operations/GetPinResponse.md b/docs/models/operations/GetPinResponse.md index 21f2b763..30b51e4c 100644 --- a/docs/models/operations/GetPinResponse.md +++ b/docs/models/operations/GetPinResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 | | +| `authPinContainer` | [Optional](../../models/operations/GetPinAuthPinContainer.md) | :heavy_minus_sign: | Requests a new pin id used in the authentication flow | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsCountry.md b/docs/models/operations/GetPlaylistContentsCountry.md index 52e56464..7a051876 100644 --- a/docs/models/operations/GetPlaylistContentsCountry.md +++ b/docs/models/operations/GetPlaylistContentsCountry.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file +| 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 index f80a395c..cd257548 100644 --- a/docs/models/operations/GetPlaylistContentsDirector.md +++ b/docs/models/operations/GetPlaylistContentsDirector.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | \ No newline at end of file +| 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 index 63bf437c..94fcbb0a 100644 --- a/docs/models/operations/GetPlaylistContentsGenre.md +++ b/docs/models/operations/GetPlaylistContentsGenre.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Action | \ No newline at end of file +| 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 index 9762f6b4..fc9384a5 100644 --- a/docs/models/operations/GetPlaylistContentsMedia.md +++ b/docs/models/operations/GetPlaylistContentsMedia.md @@ -3,22 +3,22 @@ ## 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 +| 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<[GetPlaylistContentsPart](../../models/operations/GetPlaylistContentsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsMediaContainer.md b/docs/models/operations/GetPlaylistContentsMediaContainer.md index 4b476c10..2bb0cf34 100644 --- a/docs/models/operations/GetPlaylistContentsMediaContainer.md +++ b/docs/models/operations/GetPlaylistContentsMediaContainer.md @@ -3,14 +3,14 @@ ## 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 +| 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<[GetPlaylistContentsMetadata](../../models/operations/GetPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsMetadata.md b/docs/models/operations/GetPlaylistContentsMetadata.md index debdf9c0..bd023cf8 100644 --- a/docs/models/operations/GetPlaylistContentsMetadata.md +++ b/docs/models/operations/GetPlaylistContentsMetadata.md @@ -5,35 +5,35 @@ | 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 | +| `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 +| `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<[GetPlaylistContentsMedia](../../models/operations/GetPlaylistContentsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[GetPlaylistContentsGenre](../../models/operations/GetPlaylistContentsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetPlaylistContentsCountry](../../models/operations/GetPlaylistContentsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[GetPlaylistContentsDirector](../../models/operations/GetPlaylistContentsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[GetPlaylistContentsWriter](../../models/operations/GetPlaylistContentsWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[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 index 343c4586..121ef0a9 100644 --- a/docs/models/operations/GetPlaylistContentsPart.md +++ b/docs/models/operations/GetPlaylistContentsPart.md @@ -5,13 +5,13 @@ | 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 +| `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/GetPlaylistContentsQueryParamType.md b/docs/models/operations/GetPlaylistContentsQueryParamType.md new file mode 100644 index 00000000..e6e4dc86 --- /dev/null +++ b/docs/models/operations/GetPlaylistContentsQueryParamType.md @@ -0,0 +1,19 @@ +# GetPlaylistContentsQueryParamType + +The type of media to retrieve. +1 = movie +2 = show +3 = season +4 = episode +E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + + + +## Values + +| Name | Value | +| ------- | ------- | +| `ONE` | 1 | +| `TWO` | 2 | +| `THREE` | 3 | +| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsRequest.md b/docs/models/operations/GetPlaylistContentsRequest.md index 67cd6c60..33542276 100644 --- a/docs/models/operations/GetPlaylistContentsRequest.md +++ b/docs/models/operations/GetPlaylistContentsRequest.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | | +| `type` | [GetPlaylistContentsQueryParamType](../../models/operations/GetPlaylistContentsQueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsResponse.md b/docs/models/operations/GetPlaylistContentsResponse.md index 0a38d5ef..6fa3b597 100644 --- a/docs/models/operations/GetPlaylistContentsResponse.md +++ b/docs/models/operations/GetPlaylistContentsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index adde711d..275a4258 100644 --- a/docs/models/operations/GetPlaylistContentsResponseBody.md +++ b/docs/models/operations/GetPlaylistContentsResponseBody.md @@ -5,6 +5,6 @@ The playlist contents ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index d0b68239..be1eee14 100644 --- a/docs/models/operations/GetPlaylistContentsRole.md +++ b/docs/models/operations/GetPlaylistContentsRole.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Gina Torres | \ No newline at end of file +| 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 index 4a7413fe..5b66ca3f 100644 --- a/docs/models/operations/GetPlaylistContentsWriter.md +++ b/docs/models/operations/GetPlaylistContentsWriter.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | \ No newline at end of file +| 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 index 22519402..eda9d468 100644 --- a/docs/models/operations/GetPlaylistMediaContainer.md +++ b/docs/models/operations/GetPlaylistMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | List<[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 index 9b0db275..9ef0ff36 100644 --- a/docs/models/operations/GetPlaylistMetadata.md +++ b/docs/models/operations/GetPlaylistMetadata.md @@ -5,18 +5,18 @@ | 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 +| `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/GetPlaylistResponse.md b/docs/models/operations/GetPlaylistResponse.md index b11348c3..1de9bf44 100644 --- a/docs/models/operations/GetPlaylistResponse.md +++ b/docs/models/operations/GetPlaylistResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 282a63b4..427c14fa 100644 --- a/docs/models/operations/GetPlaylistResponseBody.md +++ b/docs/models/operations/GetPlaylistResponseBody.md @@ -5,6 +5,6 @@ The playlist ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetPlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index f56fb32b..53146606 100644 --- a/docs/models/operations/GetPlaylistsMediaContainer.md +++ b/docs/models/operations/GetPlaylistsMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 4 | +| `metadata` | List<[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 index 9e65e494..b17cdf6d 100644 --- a/docs/models/operations/GetPlaylistsMetadata.md +++ b/docs/models/operations/GetPlaylistsMetadata.md @@ -5,19 +5,19 @@ | 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 +| `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 index cbc7bab8..a6e72460 100644 --- a/docs/models/operations/GetPlaylistsRequest.md +++ b/docs/models/operations/GetPlaylistsRequest.md @@ -3,7 +3,7 @@ ## 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 +| 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 index 6bc16b5a..b7253c55 100644 --- a/docs/models/operations/GetPlaylistsResponse.md +++ b/docs/models/operations/GetPlaylistsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 14c69828..41de90d8 100644 --- a/docs/models/operations/GetPlaylistsResponseBody.md +++ b/docs/models/operations/GetPlaylistsResponseBody.md @@ -5,6 +5,6 @@ returns all playlists ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetPlaylistsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 306f9e1b..77f759ef 100644 --- a/docs/models/operations/GetRecentlyAddedMediaContainer.md +++ b/docs/models/operations/GetRecentlyAddedMediaContainer.md @@ -3,12 +3,12 @@ ## 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 +| 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<[GetRecentlyAddedMetadata](../../models/operations/GetRecentlyAddedMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedMetadata.md b/docs/models/operations/GetRecentlyAddedMetadata.md index 9e0d6ab1..a510fe0b 100644 --- a/docs/models/operations/GetRecentlyAddedMetadata.md +++ b/docs/models/operations/GetRecentlyAddedMetadata.md @@ -5,35 +5,35 @@ | 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 | +| `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 +| `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<[Media](../../models/operations/Media.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[Genre](../../models/operations/Genre.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[Director](../../models/operations/Director.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[Writer](../../models/operations/Writer.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[Country](../../models/operations/Country.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[Role](../../models/operations/Role.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedRequest.md b/docs/models/operations/GetRecentlyAddedRequest.md new file mode 100644 index 00000000..bc0e61fe --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedRequest.md @@ -0,0 +1,9 @@ +# GetRecentlyAddedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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.
By default this is 0
| 0 | +| `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.
By default this is 50
| 50 | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedResponse.md b/docs/models/operations/GetRecentlyAddedResponse.md index 3e7d6a0a..e28eceef 100644 --- a/docs/models/operations/GetRecentlyAddedResponse.md +++ b/docs/models/operations/GetRecentlyAddedResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 0b292737..0d503b9b 100644 --- a/docs/models/operations/GetRecentlyAddedResponseBody.md +++ b/docs/models/operations/GetRecentlyAddedResponseBody.md @@ -5,6 +5,6 @@ The recently added content ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetRecentlyAddedMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetRefreshLibraryMetadataRequest.md b/docs/models/operations/GetRefreshLibraryMetadataRequest.md new file mode 100644 index 00000000..253815cd --- /dev/null +++ b/docs/models/operations/GetRefreshLibraryMetadataRequest.md @@ -0,0 +1,9 @@ +# GetRefreshLibraryMetadataRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `force` | [Optional](../../models/operations/Force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryResponse.md b/docs/models/operations/GetRefreshLibraryMetadataResponse.md similarity index 98% rename from docs/models/operations/RefreshLibraryResponse.md rename to docs/models/operations/GetRefreshLibraryMetadataResponse.md index 5464acc9..d1c3024f 100644 --- a/docs/models/operations/RefreshLibraryResponse.md +++ b/docs/models/operations/GetRefreshLibraryMetadataResponse.md @@ -1,4 +1,4 @@ -# RefreshLibraryResponse +# GetRefreshLibraryMetadataResponse ## Fields diff --git a/docs/models/operations/GetResizedPhotoRequest.md b/docs/models/operations/GetResizedPhotoRequest.md index 3cbea586..4de812d9 100644 --- a/docs/models/operations/GetResizedPhotoRequest.md +++ b/docs/models/operations/GetResizedPhotoRequest.md @@ -9,6 +9,6 @@ | `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. | | +| `minSize` | [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` | [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/GetResourcesStatisticsMediaContainer.md b/docs/models/operations/GetResourcesStatisticsMediaContainer.md index 09ac5306..6c365581 100644 --- a/docs/models/operations/GetResourcesStatisticsMediaContainer.md +++ b/docs/models/operations/GetResourcesStatisticsMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | +| `statisticsResources` | List<[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 index 34d1c461..57a9d49d 100644 --- a/docs/models/operations/GetResourcesStatisticsRequest.md +++ b/docs/models/operations/GetResourcesStatisticsRequest.md @@ -5,4 +5,4 @@ | 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 +| `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 index 00717d9e..efbdebe1 100644 --- a/docs/models/operations/GetResourcesStatisticsResponse.md +++ b/docs/models/operations/GetResourcesStatisticsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index a09ff43a..4281314c 100644 --- a/docs/models/operations/GetResourcesStatisticsResponseBody.md +++ b/docs/models/operations/GetResourcesStatisticsResponseBody.md @@ -5,6 +5,6 @@ Resource Statistics ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetResourcesStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetSearchLibraryMediaContainer.md b/docs/models/operations/GetSearchLibraryMediaContainer.md new file mode 100644 index 00000000..f5f292f0 --- /dev/null +++ b/docs/models/operations/GetSearchLibraryMediaContainer.md @@ -0,0 +1,20 @@ +# GetSearchLibraryMediaContainer + + +## 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<[GetSearchLibraryMetadata](../../models/operations/GetSearchLibraryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/SearchLibraryMetadata.md b/docs/models/operations/GetSearchLibraryMetadata.md similarity index 97% rename from docs/models/operations/SearchLibraryMetadata.md rename to docs/models/operations/GetSearchLibraryMetadata.md index 348ca67d..b3685414 100644 --- a/docs/models/operations/SearchLibraryMetadata.md +++ b/docs/models/operations/GetSearchLibraryMetadata.md @@ -1,27 +1,27 @@ -# SearchLibraryMetadata +# GetSearchLibraryMetadata ## 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 +| `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/GetWatchlistResponse.md b/docs/models/operations/GetSearchLibraryRequest.md similarity index 51% rename from docs/models/operations/GetWatchlistResponse.md rename to docs/models/operations/GetSearchLibraryRequest.md index a146a5be..c09cfe0b 100644 --- a/docs/models/operations/GetWatchlistResponse.md +++ b/docs/models/operations/GetSearchLibraryRequest.md @@ -1,11 +1,9 @@ -# GetWatchlistResponse +# GetSearchLibraryRequest ## 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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `type` | [QueryParamType](../../models/operations/QueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchLibraryResponse.md b/docs/models/operations/GetSearchLibraryResponse.md new file mode 100644 index 00000000..19c12215 --- /dev/null +++ b/docs/models/operations/GetSearchLibraryResponse.md @@ -0,0 +1,11 @@ +# GetSearchLibraryResponse + + +## 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/GetSearchLibraryResponseBody.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/GetSearchLibraryResponseBody.md b/docs/models/operations/GetSearchLibraryResponseBody.md new file mode 100644 index 00000000..e784212d --- /dev/null +++ b/docs/models/operations/GetSearchLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetSearchLibraryResponseBody + +The contents of the library by section and type + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [Optional](../../models/operations/GetSearchLibraryMediaContainer.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 index 3ac6ede3..a40144b5 100644 --- a/docs/models/operations/GetSearchResultsCountry.md +++ b/docs/models/operations/GetSearchResultsCountry.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file +| 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 index 9c6587ad..882da62e 100644 --- a/docs/models/operations/GetSearchResultsDirector.md +++ b/docs/models/operations/GetSearchResultsDirector.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Brian De Palma | \ No newline at end of file +| 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 index f22c941b..3cd43316 100644 --- a/docs/models/operations/GetSearchResultsGenre.md +++ b/docs/models/operations/GetSearchResultsGenre.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Action | \ No newline at end of file +| 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 index 6782856b..941a1385 100644 --- a/docs/models/operations/GetSearchResultsMedia.md +++ b/docs/models/operations/GetSearchResultsMedia.md @@ -3,20 +3,20 @@ ## 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 +| 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<[GetSearchResultsPart](../../models/operations/GetSearchResultsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMediaContainer.md b/docs/models/operations/GetSearchResultsMediaContainer.md index ee898afa..85fac32e 100644 --- a/docs/models/operations/GetSearchResultsMediaContainer.md +++ b/docs/models/operations/GetSearchResultsMediaContainer.md @@ -3,11 +3,11 @@ ## 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 +| 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<[GetSearchResultsMetadata](../../models/operations/GetSearchResultsMetadata.md)> | :heavy_minus_sign: | N/A | | +| `provider` | List<[Provider](../../models/operations/Provider.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMetadata.md b/docs/models/operations/GetSearchResultsMetadata.md index 7dbbcd40..80d646a8 100644 --- a/docs/models/operations/GetSearchResultsMetadata.md +++ b/docs/models/operations/GetSearchResultsMetadata.md @@ -5,37 +5,37 @@ | 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 | +| `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 +| `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<[GetSearchResultsMedia](../../models/operations/GetSearchResultsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[GetSearchResultsGenre](../../models/operations/GetSearchResultsGenre.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[GetSearchResultsDirector](../../models/operations/GetSearchResultsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[GetSearchResultsWriter](../../models/operations/GetSearchResultsWriter.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetSearchResultsCountry](../../models/operations/GetSearchResultsCountry.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[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 index 65dbbfd8..3bf38926 100644 --- a/docs/models/operations/GetSearchResultsPart.md +++ b/docs/models/operations/GetSearchResultsPart.md @@ -5,11 +5,11 @@ | 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 +| `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/GetSearchResultsResponse.md b/docs/models/operations/GetSearchResultsResponse.md index db4b5ccf..54abbaa7 100644 --- a/docs/models/operations/GetSearchResultsResponse.md +++ b/docs/models/operations/GetSearchResultsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 3b5aa9c8..3b8dc74e 100644 --- a/docs/models/operations/GetSearchResultsResponseBody.md +++ b/docs/models/operations/GetSearchResultsResponseBody.md @@ -5,6 +5,6 @@ Search Results ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSearchResultsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index de3296c7..223030e4 100644 --- a/docs/models/operations/GetSearchResultsRole.md +++ b/docs/models/operations/GetSearchResultsRole.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Tom Cruise | \ No newline at end of file +| 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 index 5114c456..cb8d3f1d 100644 --- a/docs/models/operations/GetSearchResultsWriter.md +++ b/docs/models/operations/GetSearchResultsWriter.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | David Koepp | \ No newline at end of file +| 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 index ade8b66d..e2174df9 100644 --- a/docs/models/operations/GetServerActivitiesMediaContainer.md +++ b/docs/models/operations/GetServerActivitiesMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | +| `activity` | List<[Activity](../../models/operations/Activity.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesResponse.md b/docs/models/operations/GetServerActivitiesResponse.md index bbcf6a2d..6244577a 100644 --- a/docs/models/operations/GetServerActivitiesResponse.md +++ b/docs/models/operations/GetServerActivitiesResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 54b03a12..f42e70b5 100644 --- a/docs/models/operations/GetServerActivitiesResponseBody.md +++ b/docs/models/operations/GetServerActivitiesResponseBody.md @@ -5,6 +5,6 @@ The Server Activities ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerActivitiesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 5e420f40..adcfac75 100644 --- a/docs/models/operations/GetServerCapabilitiesResponse.md +++ b/docs/models/operations/GetServerCapabilitiesResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index b34aecfa..3bb004e1 100644 --- a/docs/models/operations/GetServerCapabilitiesResponseBody.md +++ b/docs/models/operations/GetServerCapabilitiesResponseBody.md @@ -5,6 +5,6 @@ The Server Capabilities ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 6d451962..4c919772 100644 --- a/docs/models/operations/GetServerIdentityMediaContainer.md +++ b/docs/models/operations/GetServerIdentityMediaContainer.md @@ -5,7 +5,7 @@ | 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 +| `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 index 4397105f..9bfcd317 100644 --- a/docs/models/operations/GetServerIdentityResponse.md +++ b/docs/models/operations/GetServerIdentityResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 7018df87..4bff0640 100644 --- a/docs/models/operations/GetServerIdentityResponseBody.md +++ b/docs/models/operations/GetServerIdentityResponseBody.md @@ -5,6 +5,6 @@ The Server Identity information ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerIdentityMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 8d6854b5..709096cb 100644 --- a/docs/models/operations/GetServerListMediaContainer.md +++ b/docs/models/operations/GetServerListMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `server` | List<[GetServerListServer](../../models/operations/GetServerListServer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetServerListResponse.md b/docs/models/operations/GetServerListResponse.md index 1c2ea683..b9796af5 100644 --- a/docs/models/operations/GetServerListResponse.md +++ b/docs/models/operations/GetServerListResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index ece73e76..65037d23 100644 --- a/docs/models/operations/GetServerListResponseBody.md +++ b/docs/models/operations/GetServerListResponseBody.md @@ -5,6 +5,6 @@ List of Servers ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerListMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 82e3ec71..3f90852a 100644 --- a/docs/models/operations/GetServerListServer.md +++ b/docs/models/operations/GetServerListServer.md @@ -5,9 +5,9 @@ | 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 +| `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 index d42423c2..3785f80c 100644 --- a/docs/models/operations/GetServerPreferencesMediaContainer.md +++ b/docs/models/operations/GetServerPreferencesMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 161 | +| `setting` | List<[Setting](../../models/operations/Setting.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetServerPreferencesResponse.md b/docs/models/operations/GetServerPreferencesResponse.md index a29a49bd..92346ee6 100644 --- a/docs/models/operations/GetServerPreferencesResponse.md +++ b/docs/models/operations/GetServerPreferencesResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index adfda0c3..33fa8e18 100644 --- a/docs/models/operations/GetServerPreferencesResponseBody.md +++ b/docs/models/operations/GetServerPreferencesResponseBody.md @@ -5,6 +5,6 @@ Server Preferences ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerPreferencesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetServerResourcesRequest.md b/docs/models/operations/GetServerResourcesRequest.md new file mode 100644 index 00000000..5a82d229 --- /dev/null +++ b/docs/models/operations/GetServerResourcesRequest.md @@ -0,0 +1,12 @@ +# GetServerResourcesRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | +| `includeHttps` | [Optional](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `includeRelay` | [Optional](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `includeIPv6` | [Optional](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file diff --git a/docs/models/operations/GetServerResourcesResponse.md b/docs/models/operations/GetServerResourcesResponse.md new file mode 100644 index 00000000..b97972cd --- /dev/null +++ b/docs/models/operations/GetServerResourcesResponse.md @@ -0,0 +1,11 @@ +# GetServerResourcesResponse + + +## 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 | +| `plexDevices` | List<[PlexDevice](../../models/operations/PlexDevice.md)> | :heavy_minus_sign: | List of Plex Devices. This includes Plex hosted servers and clients | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryMediaContainer.md b/docs/models/operations/GetSessionHistoryMediaContainer.md index f6975f46..f1deec22 100644 --- a/docs/models/operations/GetSessionHistoryMediaContainer.md +++ b/docs/models/operations/GetSessionHistoryMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 10855 | +| `metadata` | List<[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 index 5960acac..99b1458d 100644 --- a/docs/models/operations/GetSessionHistoryMetadata.md +++ b/docs/models/operations/GetSessionHistoryMetadata.md @@ -5,22 +5,22 @@ | 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 | +| `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 +| `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 index 5e0afc64..37bde646 100644 --- a/docs/models/operations/GetSessionHistoryRequest.md +++ b/docs/models/operations/GetSessionHistoryRequest.md @@ -5,7 +5,7 @@ | 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 +| `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/QueryParamFilter.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 index fea111ce..cd5aace1 100644 --- a/docs/models/operations/GetSessionHistoryResponse.md +++ b/docs/models/operations/GetSessionHistoryResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 089665fc..1050d13a 100644 --- a/docs/models/operations/GetSessionHistoryResponseBody.md +++ b/docs/models/operations/GetSessionHistoryResponseBody.md @@ -5,6 +5,6 @@ List of Plex Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSessionHistoryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index a61657cd..554a905f 100644 --- a/docs/models/operations/GetSessionsMedia.md +++ b/docs/models/operations/GetSessionsMedia.md @@ -3,13 +3,13 @@ ## 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 +| 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<[GetSessionsPart](../../models/operations/GetSessionsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsMediaContainer.md b/docs/models/operations/GetSessionsMediaContainer.md index 4ded5a8e..e78c94c0 100644 --- a/docs/models/operations/GetSessionsMediaContainer.md +++ b/docs/models/operations/GetSessionsMediaContainer.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | List<[GetSessionsMetadata](../../models/operations/GetSessionsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsMetadata.md b/docs/models/operations/GetSessionsMetadata.md index 77bfb3cc..6e3ad928 100644 --- a/docs/models/operations/GetSessionsMetadata.md +++ b/docs/models/operations/GetSessionsMetadata.md @@ -3,42 +3,42 @@ ## 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 +| 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<[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 index b7c91baf..bb95ff2e 100644 --- a/docs/models/operations/GetSessionsPart.md +++ b/docs/models/operations/GetSessionsPart.md @@ -3,15 +3,15 @@ ## 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 +| 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<[GetSessionsStream](../../models/operations/GetSessionsStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsResponse.md b/docs/models/operations/GetSessionsResponse.md index 420f701c..a44e1640 100644 --- a/docs/models/operations/GetSessionsResponse.md +++ b/docs/models/operations/GetSessionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index dd6b3dd3..90baee02 100644 --- a/docs/models/operations/GetSessionsResponseBody.md +++ b/docs/models/operations/GetSessionsResponseBody.md @@ -5,6 +5,6 @@ List of Active Plex Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index aca3c603..10ca3dad 100644 --- a/docs/models/operations/GetSessionsStream.md +++ b/docs/models/operations/GetSessionsStream.md @@ -3,25 +3,25 @@ ## 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 +| 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 index 9eaae842..7a5fa6e6 100644 --- a/docs/models/operations/GetSessionsUser.md +++ b/docs/models/operations/GetSessionsUser.md @@ -5,6 +5,6 @@ | 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 +| `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/GetStatisticsDevice.md b/docs/models/operations/GetStatisticsDevice.md index 55a55e4d..9d115cb2 100644 --- a/docs/models/operations/GetStatisticsDevice.md +++ b/docs/models/operations/GetStatisticsDevice.md @@ -5,8 +5,8 @@ | 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 +| `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 index 8059827a..9bb34af8 100644 --- a/docs/models/operations/GetStatisticsMediaContainer.md +++ b/docs/models/operations/GetStatisticsMediaContainer.md @@ -3,9 +3,9 @@ ## 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | +| `device` | List<[GetStatisticsDevice](../../models/operations/GetStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | +| `account` | List<[Account](../../models/operations/Account.md)> | :heavy_minus_sign: | N/A | | +| `statisticsMedia` | List<[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 index 4eb7fa5a..c5d1e87b 100644 --- a/docs/models/operations/GetStatisticsRequest.md +++ b/docs/models/operations/GetStatisticsRequest.md @@ -5,4 +5,4 @@ | 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 +| `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 index eccf9dbf..7828fa17 100644 --- a/docs/models/operations/GetStatisticsResponse.md +++ b/docs/models/operations/GetStatisticsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index b89329bf..32ffd8d2 100644 --- a/docs/models/operations/GetStatisticsResponseBody.md +++ b/docs/models/operations/GetStatisticsResponseBody.md @@ -5,6 +5,6 @@ Media Statistics ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetThumbImageRequest.md b/docs/models/operations/GetThumbImageRequest.md new file mode 100644 index 00000000..9becb568 --- /dev/null +++ b/docs/models/operations/GetThumbImageRequest.md @@ -0,0 +1,13 @@ +# GetThumbImageRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *long* | :heavy_check_mark: | the id of the library item to return the children of. | 9518 | +| `width` | *long* | :heavy_check_mark: | N/A | 396 | +| `height` | *long* | :heavy_check_mark: | N/A | 396 | +| `minSize` | *long* | :heavy_check_mark: | N/A | 1 | +| `upscale` | *long* | :heavy_check_mark: | N/A | 1 | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataResponse.md b/docs/models/operations/GetThumbImageResponse.md similarity index 51% rename from docs/models/operations/GetMetadataResponse.md rename to docs/models/operations/GetThumbImageResponse.md index 6c26794f..5c87f55f 100644 --- a/docs/models/operations/GetMetadataResponse.md +++ b/docs/models/operations/GetThumbImageResponse.md @@ -1,11 +1,12 @@ -# GetMetadataResponse +# GetThumbImageResponse ## 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 +| 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 | +| `responseStream` | *Optional* | :heavy_minus_sign: | Successful response returning an image | +| `headers` | Map> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTimelineRequest.md b/docs/models/operations/GetTimelineRequest.md index d66fa5bb..50409428 100644 --- a/docs/models/operations/GetTimelineRequest.md +++ b/docs/models/operations/GetTimelineRequest.md @@ -3,15 +3,15 @@ ## 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 +| 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` | [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/GetTokenByPinIdAuthPinContainer.md b/docs/models/operations/GetTokenByPinIdAuthPinContainer.md new file mode 100644 index 00000000..865f9373 --- /dev/null +++ b/docs/models/operations/GetTokenByPinIdAuthPinContainer.md @@ -0,0 +1,21 @@ +# GetTokenByPinIdAuthPinContainer + +The Pin with a non-null authToken when it has been verified by the user + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *long* | :heavy_check_mark: | N/A | 308667304 | +| `code` | *String* | :heavy_check_mark: | N/A | 7RQZ | +| `product` | *String* | :heavy_check_mark: | N/A | 0 | +| `trusted` | *Optional* | :heavy_minus_sign: | N/A | | +| `qr` | *String* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | +| `clientIdentifier` | *String* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `location` | [GetTokenByPinIdGeoData](../../models/operations/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | +| `expiresIn` | *Optional* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | +| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | +| `authToken` | *JsonNullable* | :heavy_minus_sign: | N/A | | +| `newRegistration` | *JsonNullable* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTokenByPinIdGeoData.md b/docs/models/operations/GetTokenByPinIdGeoData.md new file mode 100644 index 00000000..3be40170 --- /dev/null +++ b/docs/models/operations/GetTokenByPinIdGeoData.md @@ -0,0 +1,20 @@ +# GetTokenByPinIdGeoData + +Geo location data + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `code` | *String* | :heavy_check_mark: | The ISO 3166-1 alpha-2 code of the country. | VI | +| `continentCode` | *String* | :heavy_check_mark: | The continent code where the country is located. | NA | +| `country` | *String* | :heavy_check_mark: | The official name of the country. | United States Virgin Islands | +| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam | +| `europeanUnionMember` | *Optional* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true | +| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | +| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 | +| `inPrivacyRestrictedCountry` | *Optional* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true | +| `inPrivacyRestrictedRegion` | *Optional* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true | +| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | +| `coordinates` | *String* | :heavy_check_mark: | The geographical coordinates (latitude, longitude) of the location. | 18.3381, -64.8941 | \ No newline at end of file diff --git a/docs/models/operations/GetTokenRequest.md b/docs/models/operations/GetTokenByPinIdRequest.md similarity index 90% rename from docs/models/operations/GetTokenRequest.md rename to docs/models/operations/GetTokenByPinIdRequest.md index d65b8bbf..12289cdc 100644 --- a/docs/models/operations/GetTokenRequest.md +++ b/docs/models/operations/GetTokenByPinIdRequest.md @@ -1,9 +1,9 @@ -# GetTokenRequest +# GetTokenByPinIdRequest ## 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 +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | \ No newline at end of file diff --git a/docs/models/operations/GetTokenByPinIdResponse.md b/docs/models/operations/GetTokenByPinIdResponse.md new file mode 100644 index 00000000..1db3863b --- /dev/null +++ b/docs/models/operations/GetTokenByPinIdResponse.md @@ -0,0 +1,11 @@ +# GetTokenByPinIdResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 | | +| `authPinContainer` | [Optional](../../models/operations/GetTokenByPinIdAuthPinContainer.md) | :heavy_minus_sign: | The Pin with a non-null authToken when it has been verified by the user | {
"id": 308667304,
"code": "7RQZ",
"product": "0",
"trusted": false,
"qr": "https://plex.tv/api/v2/pins/qr/7RQZ",
"clientIdentifier": "string",
"location": {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
},
"expiresIn": 876,
"createdAt": "2024-07-16T17:03:05Z",
"expiresAt": "2024-07-16T17:18:05Z",
"authToken": null,
"newRegistration": null
} | \ 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/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 index d1159880..11f8d359 100644 --- a/docs/models/operations/GetTopWatchedContentCountry.md +++ b/docs/models/operations/GetTopWatchedContentCountry.md @@ -3,8 +3,8 @@ ## 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 +| 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 index fbd95156..6564d58a 100644 --- a/docs/models/operations/GetTopWatchedContentGenre.md +++ b/docs/models/operations/GetTopWatchedContentGenre.md @@ -3,8 +3,8 @@ ## 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 +| 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 index e4f2f3aa..f21fdfec 100644 --- a/docs/models/operations/GetTopWatchedContentGuids.md +++ b/docs/models/operations/GetTopWatchedContentGuids.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | tvdb://2337 | \ No newline at end of file +| 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 index 6b5094ba..7347d3d1 100644 --- a/docs/models/operations/GetTopWatchedContentMediaContainer.md +++ b/docs/models/operations/GetTopWatchedContentMediaContainer.md @@ -3,11 +3,11 @@ ## 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 +| 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<[GetTopWatchedContentMetadata](../../models/operations/GetTopWatchedContentMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentMetadata.md b/docs/models/operations/GetTopWatchedContentMetadata.md index ad6b410e..2ef74d82 100644 --- a/docs/models/operations/GetTopWatchedContentMetadata.md +++ b/docs/models/operations/GetTopWatchedContentMetadata.md @@ -5,35 +5,35 @@ | 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 | +| `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 +| `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<[GetTopWatchedContentGenre](../../models/operations/GetTopWatchedContentGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[GetTopWatchedContentCountry](../../models/operations/GetTopWatchedContentCountry.md)> | :heavy_minus_sign: | N/A | | +| `guids` | List<[GetTopWatchedContentGuids](../../models/operations/GetTopWatchedContentGuids.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[GetTopWatchedContentRole](../../models/operations/GetTopWatchedContentRole.md)> | :heavy_minus_sign: | N/A | | +| `user` | List<[User](../../models/operations/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentQueryParamType.md b/docs/models/operations/GetTopWatchedContentQueryParamType.md new file mode 100644 index 00000000..56ac05aa --- /dev/null +++ b/docs/models/operations/GetTopWatchedContentQueryParamType.md @@ -0,0 +1,19 @@ +# GetTopWatchedContentQueryParamType + +The type of media to retrieve. +1 = movie +2 = show +3 = season +4 = episode +E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + + + +## Values + +| Name | Value | +| ------- | ------- | +| `ONE` | 1 | +| `TWO` | 2 | +| `THREE` | 3 | +| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentRequest.md b/docs/models/operations/GetTopWatchedContentRequest.md index cffb1b94..033b6889 100644 --- a/docs/models/operations/GetTopWatchedContentRequest.md +++ b/docs/models/operations/GetTopWatchedContentRequest.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [GetTopWatchedContentQueryParamType](../../models/operations/GetTopWatchedContentQueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `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 index ea3ae061..e5747d94 100644 --- a/docs/models/operations/GetTopWatchedContentResponse.md +++ b/docs/models/operations/GetTopWatchedContentResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 23fb3d07..faf4574f 100644 --- a/docs/models/operations/GetTopWatchedContentResponseBody.md +++ b/docs/models/operations/GetTopWatchedContentResponseBody.md @@ -5,6 +5,6 @@ The metadata of the library item. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetTopWatchedContentMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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 index 197af673..23e4d6c5 100644 --- a/docs/models/operations/GetTopWatchedContentRole.md +++ b/docs/models/operations/GetTopWatchedContentRole.md @@ -5,9 +5,9 @@ | 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 +| `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 index 7802d80c..762d6dac 100644 --- a/docs/models/operations/GetTranscodeSessionsMediaContainer.md +++ b/docs/models/operations/GetTranscodeSessionsMediaContainer.md @@ -5,5 +5,5 @@ | 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 +| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `transcodeSession` | List<[TranscodeSession](../../models/operations/TranscodeSession.md)> | :heavy_minus_sign: | N/A | [
{
"key": "vv3i2q2lax92qlzul1hbd4bx",
"throttled": false,
"complete": false,
"progress": 1.7999999523162842,
"size": -22,
"speed": 25.100000381469727,
"error": false,
"duration": 1445695,
"remaining": 53,
"context": "streaming",
"sourceVideoCodec": "h264",
"sourceAudioCodec": "aac",
"videoDecision": "transcode",
"audioDecision": "transcode",
"subtitleDecision": "burn",
"protocol": "http",
"container": "mkv",
"videoCodec": "h264",
"audioCodec": "opus",
"audioChannels": 1,
"transcodeHwRequested": true,
"timeStamp": 1705895805.4919229,
"maxOffsetAvailable": 29.53,
"minOffsetAvailable": 3.003000020980835
}
] | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsResponse.md b/docs/models/operations/GetTranscodeSessionsResponse.md index 9cb8395b..06a77bb4 100644 --- a/docs/models/operations/GetTranscodeSessionsResponse.md +++ b/docs/models/operations/GetTranscodeSessionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index db72de2f..e4d4b49d 100644 --- a/docs/models/operations/GetTranscodeSessionsResponseBody.md +++ b/docs/models/operations/GetTranscodeSessionsResponseBody.md @@ -5,6 +5,6 @@ The Transcode Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetTranscodeSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetTransientTokenRequest.md b/docs/models/operations/GetTransientTokenRequest.md index 9a93ae2b..35042f1d 100644 --- a/docs/models/operations/GetTransientTokenRequest.md +++ b/docs/models/operations/GetTransientTokenRequest.md @@ -3,7 +3,7 @@ ## 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 +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `type` | [GetTransientTokenQueryParamType](../../models/operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [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/GetUpdateStatusMediaContainer.md b/docs/models/operations/GetUpdateStatusMediaContainer.md index 71f426d1..b485ecb5 100644 --- a/docs/models/operations/GetUpdateStatusMediaContainer.md +++ b/docs/models/operations/GetUpdateStatusMediaContainer.md @@ -5,9 +5,9 @@ | 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 +| `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<[Release](../../models/operations/Release.md)> | :heavy_minus_sign: | N/A | [
{
"key": "https://plex.tv/updater/releases/5136",
"version": "1.40.0.7775-456fbaf97",
"added": "(PLEASE NOTE) This version makes changes to the database which will make it compatible only with server versions 1.31.2 or higher (released March 14). You will not be able to use your database on Plex Media Server versions lower than this after this update. Please also be patient when updating to this version if you have a very large database and allow the upgrade process to finish.\n(Collections) Items added to a collection from the item context menu will now lock the collection field on the items (#12793)\n(Music) Store track genres and add filtering options (#14653)\n(Music) Support ID3v2.4 null-separated tags for genres and release type (#14653)\n(View History) No longer create a view history entry for items marked as played (#10888)\n(Web) Updated to 4.118.0",
"fixed": "(Agents) Changing a 'Other Videos' type library to the modern movie agent would fail (#14483)\n(Agents) It is possible that agents are not initialised during startup on rare occasions (#14654)\n(Agents) Remove the legacy OpenSubtitles agent which is no longer supported upstream (#14667)\n(Collection) Server could become unresponsive when collection membership changes (#14612)\n(DVR) Previously watched recordings could be deleted without being watched again (#13779)\n(Libraries) When performing fix match on items from certain music libraries the language would default to Arabic (#14501)\n(Library) The Content Rating not equal to None filter does not work (#14620)\n(Search) Album search results could contain all the album's tracks too (#14486)\n(Subtitles) In some circumstances, sidecar subtitles can show up for media when they're no longer available (#14674)\n(Transcoder) HW encoding would fail on devices with no rate control (#14222)\n(Transcoder) Software transcoding on Ubuntu could cause unexpected behavior (#14605)",
"downloadURL": "https://plex.tv/downloads/latest/5?channel=8\u0026build=linux-x86_64\u0026distro=redhat\u0026X-Plex-Token=xxxxxxxxxxxxxxxxxxxx",
"state": "notify"
}
] | \ No newline at end of file diff --git a/docs/models/operations/GetUpdateStatusResponse.md b/docs/models/operations/GetUpdateStatusResponse.md index 1418f575..df00b937 100644 --- a/docs/models/operations/GetUpdateStatusResponse.md +++ b/docs/models/operations/GetUpdateStatusResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [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 +| 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 index 9cfefaa1..2760d5f6 100644 --- a/docs/models/operations/GetUpdateStatusResponseBody.md +++ b/docs/models/operations/GetUpdateStatusResponseBody.md @@ -5,6 +5,6 @@ The Server Updates ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetUpdateStatusMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| 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/GetUserDetailsAuthenticationResponseStatus.md b/docs/models/operations/GetUserDetailsAuthenticationResponseStatus.md new file mode 100644 index 00000000..7050ad29 --- /dev/null +++ b/docs/models/operations/GetUserDetailsAuthenticationResponseStatus.md @@ -0,0 +1,11 @@ +# GetUserDetailsAuthenticationResponseStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `INACTIVE` | Inactive | +| `ACTIVE` | Active | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsAuthenticationStatus.md b/docs/models/operations/GetUserDetailsAuthenticationStatus.md new file mode 100644 index 00000000..2f89cda7 --- /dev/null +++ b/docs/models/operations/GetUserDetailsAuthenticationStatus.md @@ -0,0 +1,11 @@ +# GetUserDetailsAuthenticationStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `INACTIVE` | Inactive | +| `ACTIVE` | Active | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsFeatures.md b/docs/models/operations/GetUserDetailsFeatures.md new file mode 100644 index 00000000..34b80e75 --- /dev/null +++ b/docs/models/operations/GetUserDetailsFeatures.md @@ -0,0 +1,66 @@ +# GetUserDetailsFeatures + + +## Values + +| Name | Value | +| ----------------------------------------- | ----------------------------------------- | +| `ANDROID_DOLBY_VISION` | Android - Dolby Vision | +| `ANDROID_PI_P` | Android - PiP | +| `CU_SUNSET` | CU Sunset | +| `HRK_ENABLE_EUR` | HRK_enable_EUR | +| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | +| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | +| `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | +| `AVOD_AD_ANALYSIS` | avod-ad-analysis | +| `AVOD_NEW_MEDIA` | avod-new-media | +| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `CLIENT_RADIO_STATIONS` | client-radio-stations | +| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `COLLECTIONS` | collections | +| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | +| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | +| `COMPANIONS_SONOS` | companions_sonos | +| `CUSTOM_HOME_REMOVAL` | custom-home-removal | +| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | +| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DRM_SUPPORT` | drm_support | +| `EXCLUDE_RESTRICTIONS` | exclude restrictions | +| `FEDERATED_AUTH` | federated-auth | +| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GUIDED_UPGRADE` | guided-upgrade | +| `HOME` | home | +| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | +| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | +| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `KEEP_PAYMENT_METHOD` | keep-payment-method | +| `KEVIN_BACON` | kevin-bacon | +| `KOREA_CONSENT` | korea-consent | +| `LE_ISRG_ROOT_X1` | le_isrg_root_x1 | +| `LETS_ENCRYPT` | lets_encrypt | +| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | +| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | +| `LIVETV` | livetv | +| `METADATA_SEARCH` | metadata_search | +| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | +| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `PHOTOS_FAVORITES` | photos-favorites | +| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PMS_HEALTH` | pms_health | +| `RADIO` | radio | +| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | +| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | +| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `TRANSCODER_CACHE` | transcoder_cache | +| `TUNER_SHARING` | tuner-sharing | +| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | +| `UNSUPPORTEDTUNERS` | unsupportedtuners | +| `UPGRADE3DS2` | upgrade-3ds2 | +| `VOD_SCHEMA` | vod-schema | +| `VOD_CLOUDFLARE` | vod_cloudflare | +| `WATCH_TOGETHER_INVITE` | watch-together-invite | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsRequest.md b/docs/models/operations/GetUserDetailsRequest.md new file mode 100644 index 00000000..47b1819b --- /dev/null +++ b/docs/models/operations/GetUserDetailsRequest.md @@ -0,0 +1,8 @@ +# GetUserDetailsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsResponse.md b/docs/models/operations/GetUserDetailsResponse.md new file mode 100644 index 00000000..3824b9ee --- /dev/null +++ b/docs/models/operations/GetUserDetailsResponse.md @@ -0,0 +1,11 @@ +# GetUserDetailsResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 | | +| `userPlexAccount` | [Optional](../../models/operations/GetUserDetailsUserPlexAccount.md) | :heavy_minus_sign: | Logged in user details | {
"adsConsent": true,
"adsConsentReminderAt": "2019-08-24T14:15:22Z",
"adsConsentSetAt": "2019-08-24T14:15:22Z",
"anonymous": false,
"authToken": "CxoUzBTSV5hsxjTpFKaf",
"backupCodesCreated": false,
"confirmed": false,
"country": "US",
"email": "username@email.com",
"emailOnlyAuth": false,
"experimentalFeatures": false,
"friendlyName": "friendlyUsername",
"entitlements": [],
"guest": false,
"hasPassword": true,
"home": false,
"homeAdmin": false,
"homeSize": 1,
"id": 13692262,
"joinedAt": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"restricted": false,
"roles": [
"string"
],
"scrobbleTypes": "",
"services": [
{
"identifier": "metadata-dev",
"endpoint": "https://epg.provider.plex.tv",
"token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
"secret": "string",
"status": "online"
}
],
"subscription": {
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
},
"subscriptionDescription": "string",
"subscriptions": [
{
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
}
],
"thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
"title": "UsernameTitle",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsStatus.md b/docs/models/operations/GetUserDetailsStatus.md new file mode 100644 index 00000000..62cef4ac --- /dev/null +++ b/docs/models/operations/GetUserDetailsStatus.md @@ -0,0 +1,9 @@ +# GetUserDetailsStatus + + +## Values + +| Name | Value | +| --------- | --------- | +| `ONLINE` | online | +| `OFFLINE` | offline | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsSubscription.md b/docs/models/operations/GetUserDetailsSubscription.md new file mode 100644 index 00000000..6ed58907 --- /dev/null +++ b/docs/models/operations/GetUserDetailsSubscription.md @@ -0,0 +1,13 @@ +# GetUserDetailsSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `features` | List<[GetUserDetailsFeatures](../../models/operations/GetUserDetailsFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *Optional* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *JsonNullable* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [Optional](../../models/operations/GetUserDetailsAuthenticationResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *JsonNullable* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *JsonNullable* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/operations/GetUserDetailsUserPlexAccount.md b/docs/models/operations/GetUserDetailsUserPlexAccount.md new file mode 100644 index 00000000..e4315b77 --- /dev/null +++ b/docs/models/operations/GetUserDetailsUserPlexAccount.md @@ -0,0 +1,49 @@ +# GetUserDetailsUserPlexAccount + +Logged in user details + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `adsConsent` | *Optional* | :heavy_check_mark: | Unknown | | +| `adsConsentReminderAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Unknown | | +| `adsConsentSetAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Unknown | | +| `anonymous` | *JsonNullable* | :heavy_minus_sign: | Unknown | | +| `authToken` | *String* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | +| `backupCodesCreated` | *Optional* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | +| `confirmed` | *Optional* | :heavy_minus_sign: | If the account has been confirmed | | +| `country` | *String* | :heavy_check_mark: | The account country | US | +| `email` | *String* | :heavy_check_mark: | The account email address | username@email.com | +| `emailOnlyAuth` | *Optional* | :heavy_minus_sign: | If login with email only is enabled | | +| `experimentalFeatures` | *Optional* | :heavy_minus_sign: | If experimental features are enabled | | +| `friendlyName` | *String* | :heavy_check_mark: | Your account full name | friendlyUsername | +| `entitlements` | List<*String*> | :heavy_check_mark: | List of devices your allowed to use with this account | | +| `guest` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home guest user | | +| `hasPassword` | *Optional* | :heavy_minus_sign: | If the account has a password | | +| `home` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home user | | +| `homeAdmin` | *Optional* | :heavy_minus_sign: | If the account is the Plex Home admin | | +| `homeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | +| `id` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | +| `joinedAt` | *int* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `locale` | *Optional* | :heavy_check_mark: | The account locale | | +| `mailingListActive` | *Optional* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | +| `mailingListStatus` | [MailingListStatus](../../models/operations/MailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | +| ~~`pin`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | +| `profile` | [UserProfile](../../models/operations/UserProfile.md) | :heavy_check_mark: | N/A | | +| `protected_` | *Optional* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | +| `rememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `restricted` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `roles` | List<*String*> | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | +| `scrobbleTypes` | *String* | :heavy_check_mark: | Unknown | | +| `services` | List<[Services](../../models/operations/Services.md)> | :heavy_check_mark: | N/A | | +| `subscription` | [Subscription](../../models/operations/Subscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `subscriptionDescription` | *Optional* | :heavy_check_mark: | Description of the Plex Pass subscription | | +| `subscriptions` | List<[GetUserDetailsSubscription](../../models/operations/GetUserDetailsSubscription.md)> | :heavy_check_mark: | N/A | | +| `thumb` | *String* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | +| `title` | *String* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | +| `twoFactorEnabled` | *Optional* | :heavy_minus_sign: | If two-factor authentication is enabled | | +| `username` | *String* | :heavy_check_mark: | The account username | Username | +| `uuid` | *String* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | \ No newline at end of file diff --git a/docs/models/operations/GetUserFriendsResponse.md b/docs/models/operations/GetUserFriendsResponse.md new file mode 100644 index 00000000..9518f10d --- /dev/null +++ b/docs/models/operations/GetUserFriendsResponse.md @@ -0,0 +1,11 @@ +# GetUserFriendsResponse + + +## 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 | +| `friends` | List<[Friend](../../models/operations/Friend.md)> | :heavy_minus_sign: | Friends Data | \ No newline at end of file diff --git a/docs/models/operations/GetWatchlistRequest.md b/docs/models/operations/GetWatchListRequest.md similarity index 67% rename from docs/models/operations/GetWatchlistRequest.md rename to docs/models/operations/GetWatchListRequest.md index 3893f314..6aa64e74 100644 --- a/docs/models/operations/GetWatchlistRequest.md +++ b/docs/models/operations/GetWatchListRequest.md @@ -1,16 +1,16 @@ -# GetWatchlistRequest +# 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 +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filter` | [Filter](../../models/operations/Filter.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
| | +| `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.
By default this is 0
| 0 | +| `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.
By default this is 50
| 50 | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | \ No newline at end of file diff --git a/docs/models/operations/GetWatchListResponse.md b/docs/models/operations/GetWatchListResponse.md new file mode 100644 index 00000000..692578a6 --- /dev/null +++ b/docs/models/operations/GetWatchListResponse.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 00000000..65276e9e --- /dev/null +++ b/docs/models/operations/GetWatchListResponseBody.md @@ -0,0 +1,16 @@ +# 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<[Metadata](../../models/operations/Metadata.md)> | :heavy_minus_sign: | N/A | \ 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 index 62bc2565..426c1bf9 100644 --- a/docs/models/operations/Guids.md +++ b/docs/models/operations/Guids.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | tvdb://2337 | \ No newline at end of file +| 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 index fbcc7482..224e9e60 100644 --- a/docs/models/operations/Hub.md +++ b/docs/models/operations/Hub.md @@ -3,16 +3,16 @@ ## 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 +| 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<[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 index c4f6f795..557488c2 100644 --- a/docs/models/operations/Image.md +++ b/docs/models/operations/Image.md @@ -3,8 +3,8 @@ ## 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 +| 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/IncludeGuids.md b/docs/models/operations/IncludeGuids.md new file mode 100644 index 00000000..47d1345d --- /dev/null +++ b/docs/models/operations/IncludeGuids.md @@ -0,0 +1,12 @@ +# IncludeGuids + +Adds the Guids object to the response + + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/IncludeHttps.md b/docs/models/operations/IncludeHttps.md new file mode 100644 index 00000000..5555a089 --- /dev/null +++ b/docs/models/operations/IncludeHttps.md @@ -0,0 +1,11 @@ +# IncludeHttps + +Include Https entries in the results + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/IncludeIPv6.md b/docs/models/operations/IncludeIPv6.md new file mode 100644 index 00000000..8cc0f7fc --- /dev/null +++ b/docs/models/operations/IncludeIPv6.md @@ -0,0 +1,11 @@ +# IncludeIPv6 + +Include IPv6 entries in the results + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/IncludeMeta.md b/docs/models/operations/IncludeMeta.md new file mode 100644 index 00000000..4ef7e979 --- /dev/null +++ b/docs/models/operations/IncludeMeta.md @@ -0,0 +1,12 @@ +# IncludeMeta + +Adds the Meta object to the response + + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/IncludeRelay.md b/docs/models/operations/IncludeRelay.md new file mode 100644 index 00000000..a207a522 --- /dev/null +++ b/docs/models/operations/IncludeRelay.md @@ -0,0 +1,13 @@ +# IncludeRelay + +Include Relay addresses in the results +E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/InternalPaymentMethod.md b/docs/models/operations/InternalPaymentMethod.md new file mode 100644 index 00000000..f1103c25 --- /dev/null +++ b/docs/models/operations/InternalPaymentMethod.md @@ -0,0 +1,7 @@ +# InternalPaymentMethod + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/Location.md b/docs/models/operations/Location.md index 498b484f..1fa398fb 100644 --- a/docs/models/operations/Location.md +++ b/docs/models/operations/Location.md @@ -3,15 +3,7 @@ ## 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 +| 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/LogLineRequest.md b/docs/models/operations/LogLineRequest.md index 1e72ae16..85f42b51 100644 --- a/docs/models/operations/LogLineRequest.md +++ b/docs/models/operations/LogLineRequest.md @@ -5,6 +5,6 @@ | 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
| | +| `level` | [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/MailingListStatus.md b/docs/models/operations/MailingListStatus.md new file mode 100644 index 00000000..272f38f6 --- /dev/null +++ b/docs/models/operations/MailingListStatus.md @@ -0,0 +1,11 @@ +# MailingListStatus + +Your current mailing list status + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `ACTIVE` | active | +| `UNSUBSCRIBED` | unsubscribed | \ No newline at end of file diff --git a/docs/models/operations/Media.md b/docs/models/operations/Media.md index 86a8587c..5115e73b 100644 --- a/docs/models/operations/Media.md +++ b/docs/models/operations/Media.md @@ -3,21 +3,21 @@ ## 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 +| 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<[Part](../../models/operations/Part.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/MediaContainer.md b/docs/models/operations/MediaContainer.md index 430bd1ea..40c470a5 100644 --- a/docs/models/operations/MediaContainer.md +++ b/docs/models/operations/MediaContainer.md @@ -3,56 +3,56 @@ ## 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 +| 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<[Directory](../../models/operations/Directory.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/MediaProvider.md b/docs/models/operations/MediaProvider.md new file mode 100644 index 00000000..1cb59ffb --- /dev/null +++ b/docs/models/operations/MediaProvider.md @@ -0,0 +1,12 @@ +# MediaProvider + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `identifier` | *Optional* | :heavy_minus_sign: | N/A | +| `title` | *Optional* | :heavy_minus_sign: | N/A | +| `types` | *Optional* | :heavy_minus_sign: | N/A | +| `protocols` | *Optional* | :heavy_minus_sign: | N/A | +| `feature` | List<[Feature](../../models/operations/Feature.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/MediaReviewsVisibility.md b/docs/models/operations/MediaReviewsVisibility.md new file mode 100644 index 00000000..ed29d5d6 --- /dev/null +++ b/docs/models/operations/MediaReviewsVisibility.md @@ -0,0 +1,9 @@ +# MediaReviewsVisibility + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Metadata.md b/docs/models/operations/Metadata.md index 842130b8..386b9b35 100644 --- a/docs/models/operations/Metadata.md +++ b/docs/models/operations/Metadata.md @@ -3,40 +3,40 @@ ## 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 +| 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<[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/MyPlex.md b/docs/models/operations/MyPlex.md index 9b8b8888..2269f562 100644 --- a/docs/models/operations/MyPlex.md +++ b/docs/models/operations/MyPlex.md @@ -5,15 +5,15 @@ | 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 +| `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/Operator.md b/docs/models/operations/Operator.md index e9575212..ba8a9f58 100644 --- a/docs/models/operations/Operator.md +++ b/docs/models/operations/Operator.md @@ -3,7 +3,7 @@ ## 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 +| 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 index 8af6c5dc..5f832eeb 100644 --- a/docs/models/operations/Part.md +++ b/docs/models/operations/Part.md @@ -5,13 +5,13 @@ | 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 +| `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/PastSubscription.md b/docs/models/operations/PastSubscription.md new file mode 100644 index 00000000..a4d2adb2 --- /dev/null +++ b/docs/models/operations/PastSubscription.md @@ -0,0 +1,22 @@ +# PastSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `id` | *Optional* | :heavy_check_mark: | N/A | | +| `mode` | *Optional* | :heavy_check_mark: | N/A | | +| `renewsAt` | *Optional* | :heavy_check_mark: | N/A | 1556281940 | +| `endsAt` | *Optional* | :heavy_check_mark: | N/A | 1556281940 | +| `canceled` | *Optional* | :heavy_minus_sign: | N/A | false | +| `gracePeriod` | *Optional* | :heavy_minus_sign: | N/A | false | +| `onHold` | *Optional* | :heavy_minus_sign: | N/A | false | +| `canReactivate` | *Optional* | :heavy_minus_sign: | N/A | false | +| `canUpgrade` | *Optional* | :heavy_minus_sign: | N/A | false | +| `canDowngrade` | *Optional* | :heavy_minus_sign: | N/A | false | +| `canConvert` | *Optional* | :heavy_minus_sign: | N/A | false | +| `type` | *String* | :heavy_check_mark: | N/A | plexpass | +| `transfer` | *Optional* | :heavy_check_mark: | N/A | | +| `state` | [PostUsersSignInDataState](../../models/operations/PostUsersSignInDataState.md) | :heavy_check_mark: | N/A | ended | +| `billing` | [Billing](../../models/operations/Billing.md) | :heavy_check_mark: | N/A | | \ 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/PerformSearchRequest.md b/docs/models/operations/PerformSearchRequest.md index 198a00cb..b5681b95 100644 --- a/docs/models/operations/PerformSearchRequest.md +++ b/docs/models/operations/PerformSearchRequest.md @@ -6,5 +6,5 @@ | 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 +| `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/PerformVoiceSearchRequest.md b/docs/models/operations/PerformVoiceSearchRequest.md index c7f4e75c..c1e76ec8 100644 --- a/docs/models/operations/PerformVoiceSearchRequest.md +++ b/docs/models/operations/PerformVoiceSearchRequest.md @@ -6,5 +6,5 @@ | 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 +| `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/Pivot.md b/docs/models/operations/Pivot.md new file mode 100644 index 00000000..21640c9c --- /dev/null +++ b/docs/models/operations/Pivot.md @@ -0,0 +1,13 @@ +# Pivot + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *Optional* | :heavy_minus_sign: | N/A | +| `key` | *Optional* | :heavy_minus_sign: | N/A | +| `type` | *Optional* | :heavy_minus_sign: | N/A | +| `title` | *Optional* | :heavy_minus_sign: | N/A | +| `context` | *Optional* | :heavy_minus_sign: | N/A | +| `symbol` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Player.md b/docs/models/operations/Player.md index 48a31d10..5fd0d437 100644 --- a/docs/models/operations/Player.md +++ b/docs/models/operations/Player.md @@ -3,20 +3,20 @@ ## 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 +| 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/PlexDevice.md b/docs/models/operations/PlexDevice.md new file mode 100644 index 00000000..2b2cb51d --- /dev/null +++ b/docs/models/operations/PlexDevice.md @@ -0,0 +1,31 @@ +# PlexDevice + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `name` | *String* | :heavy_check_mark: | N/A | +| `product` | *String* | :heavy_check_mark: | N/A | +| `productVersion` | *String* | :heavy_check_mark: | N/A | +| `platform` | *Optional* | :heavy_check_mark: | N/A | +| `platformVersion` | *Optional* | :heavy_check_mark: | N/A | +| `device` | *Optional* | :heavy_check_mark: | N/A | +| `clientIdentifier` | *String* | :heavy_check_mark: | N/A | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `lastSeenAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `provides` | *String* | :heavy_check_mark: | N/A | +| `ownerId` | *Optional* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request | +| `sourceTitle` | *Optional* | :heavy_check_mark: | N/A | +| `publicAddress` | *String* | :heavy_check_mark: | N/A | +| `accessToken` | *String* | :heavy_check_mark: | N/A | +| `owned` | *boolean* | :heavy_check_mark: | N/A | +| `home` | *boolean* | :heavy_check_mark: | N/A | +| `synced` | *boolean* | :heavy_check_mark: | N/A | +| `relay` | *boolean* | :heavy_check_mark: | N/A | +| `presence` | *boolean* | :heavy_check_mark: | N/A | +| `httpsRequired` | *boolean* | :heavy_check_mark: | N/A | +| `publicAddressMatches` | *boolean* | :heavy_check_mark: | N/A | +| `dnsRebindingProtection` | *boolean* | :heavy_check_mark: | N/A | +| `natLoopbackSupported` | *boolean* | :heavy_check_mark: | N/A | +| `connections` | List<[Connections](../../models/operations/Connections.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataAuthenticationFeatures.md b/docs/models/operations/PostUsersSignInDataAuthenticationFeatures.md new file mode 100644 index 00000000..21be537a --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataAuthenticationFeatures.md @@ -0,0 +1,66 @@ +# PostUsersSignInDataAuthenticationFeatures + + +## Values + +| Name | Value | +| ----------------------------------------- | ----------------------------------------- | +| `ANDROID_DOLBY_VISION` | Android - Dolby Vision | +| `ANDROID_PI_P` | Android - PiP | +| `CU_SUNSET` | CU Sunset | +| `HRK_ENABLE_EUR` | HRK_enable_EUR | +| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | +| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | +| `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | +| `AVOD_AD_ANALYSIS` | avod-ad-analysis | +| `AVOD_NEW_MEDIA` | avod-new-media | +| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `CLIENT_RADIO_STATIONS` | client-radio-stations | +| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `COLLECTIONS` | collections | +| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | +| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | +| `COMPANIONS_SONOS` | companions_sonos | +| `CUSTOM_HOME_REMOVAL` | custom-home-removal | +| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | +| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DRM_SUPPORT` | drm_support | +| `EXCLUDE_RESTRICTIONS` | exclude restrictions | +| `FEDERATED_AUTH` | federated-auth | +| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GUIDED_UPGRADE` | guided-upgrade | +| `HOME` | home | +| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | +| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | +| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `KEEP_PAYMENT_METHOD` | keep-payment-method | +| `KEVIN_BACON` | kevin-bacon | +| `KOREA_CONSENT` | korea-consent | +| `LE_ISRG_ROOT_X1` | le_isrg_root_x1 | +| `LETS_ENCRYPT` | lets_encrypt | +| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | +| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | +| `LIVETV` | livetv | +| `METADATA_SEARCH` | metadata_search | +| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | +| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `PHOTOS_FAVORITES` | photos-favorites | +| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PMS_HEALTH` | pms_health | +| `RADIO` | radio | +| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | +| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | +| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `TRANSCODER_CACHE` | transcoder_cache | +| `TUNER_SHARING` | tuner-sharing | +| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | +| `UNSUPPORTEDTUNERS` | unsupportedtuners | +| `UPGRADE3DS2` | upgrade-3ds2 | +| `VOD_SCHEMA` | vod-schema | +| `VOD_CLOUDFLARE` | vod_cloudflare | +| `WATCH_TOGETHER_INVITE` | watch-together-invite | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataAuthenticationResponseStatus.md b/docs/models/operations/PostUsersSignInDataAuthenticationResponseStatus.md new file mode 100644 index 00000000..cbf43fc0 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataAuthenticationResponseStatus.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataAuthenticationResponseStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `INACTIVE` | Inactive | +| `ACTIVE` | Active | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataAuthenticationStatus.md b/docs/models/operations/PostUsersSignInDataAuthenticationStatus.md new file mode 100644 index 00000000..b0c9a810 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataAuthenticationStatus.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataAuthenticationStatus + +String representation of subscriptionActive + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `INACTIVE` | Inactive | +| `ACTIVE` | Active | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataAuthenticationSubscription.md b/docs/models/operations/PostUsersSignInDataAuthenticationSubscription.md new file mode 100644 index 00000000..e6e45488 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataAuthenticationSubscription.md @@ -0,0 +1,13 @@ +# PostUsersSignInDataAuthenticationSubscription + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `features` | List<[PostUsersSignInDataAuthenticationFeatures](../../models/operations/PostUsersSignInDataAuthenticationFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *Optional* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *JsonNullable* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [Optional](../../models/operations/PostUsersSignInDataAuthenticationResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *JsonNullable* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *JsonNullable* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataAutoSelectSubtitle.md b/docs/models/operations/PostUsersSignInDataAutoSelectSubtitle.md new file mode 100644 index 00000000..110ba432 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataAutoSelectSubtitle.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataAutoSelectSubtitle + +The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.md b/docs/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.md new file mode 100644 index 00000000..fd7aebbc --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataDefaultSubtitleAccessibility + +The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataDefaultSubtitleForced.md b/docs/models/operations/PostUsersSignInDataDefaultSubtitleForced.md new file mode 100644 index 00000000..7b918c1a --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataDefaultSubtitleForced.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataDefaultSubtitleForced + +The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataFeatures.md b/docs/models/operations/PostUsersSignInDataFeatures.md new file mode 100644 index 00000000..36dd6134 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataFeatures.md @@ -0,0 +1,66 @@ +# PostUsersSignInDataFeatures + + +## Values + +| Name | Value | +| ----------------------------------------- | ----------------------------------------- | +| `ANDROID_DOLBY_VISION` | Android - Dolby Vision | +| `ANDROID_PI_P` | Android - PiP | +| `CU_SUNSET` | CU Sunset | +| `HRK_ENABLE_EUR` | HRK_enable_EUR | +| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | +| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | +| `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | +| `AVOD_AD_ANALYSIS` | avod-ad-analysis | +| `AVOD_NEW_MEDIA` | avod-new-media | +| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `CLIENT_RADIO_STATIONS` | client-radio-stations | +| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `COLLECTIONS` | collections | +| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | +| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | +| `COMPANIONS_SONOS` | companions_sonos | +| `CUSTOM_HOME_REMOVAL` | custom-home-removal | +| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | +| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DRM_SUPPORT` | drm_support | +| `EXCLUDE_RESTRICTIONS` | exclude restrictions | +| `FEDERATED_AUTH` | federated-auth | +| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GUIDED_UPGRADE` | guided-upgrade | +| `HOME` | home | +| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | +| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | +| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `KEEP_PAYMENT_METHOD` | keep-payment-method | +| `KEVIN_BACON` | kevin-bacon | +| `KOREA_CONSENT` | korea-consent | +| `LE_ISRG_ROOT_X1` | le_isrg_root_x1 | +| `LETS_ENCRYPT` | lets_encrypt | +| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | +| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | +| `LIVETV` | livetv | +| `METADATA_SEARCH` | metadata_search | +| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | +| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `PHOTOS_FAVORITES` | photos-favorites | +| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PMS_HEALTH` | pms_health | +| `RADIO` | radio | +| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | +| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | +| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `TRANSCODER_CACHE` | transcoder_cache | +| `TUNER_SHARING` | tuner-sharing | +| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | +| `UNSUPPORTEDTUNERS` | unsupportedtuners | +| `UPGRADE3DS2` | upgrade-3ds2 | +| `VOD_SCHEMA` | vod-schema | +| `VOD_CLOUDFLARE` | vod_cloudflare | +| `WATCH_TOGETHER_INVITE` | watch-together-invite | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataMailingListStatus.md b/docs/models/operations/PostUsersSignInDataMailingListStatus.md new file mode 100644 index 00000000..a01308ed --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataMailingListStatus.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataMailingListStatus + +Your current mailing list status + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `ACTIVE` | active | +| `UNSUBSCRIBED` | unsubscribed | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataMediaReviewsVisibility.md b/docs/models/operations/PostUsersSignInDataMediaReviewsVisibility.md new file mode 100644 index 00000000..5a357cc1 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataMediaReviewsVisibility.md @@ -0,0 +1,9 @@ +# PostUsersSignInDataMediaReviewsVisibility + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataRequest.md b/docs/models/operations/PostUsersSignInDataRequest.md new file mode 100644 index 00000000..6cf466bb --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataRequest.md @@ -0,0 +1,9 @@ +# PostUsersSignInDataRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `requestBody` | [Optional](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataRequestBody.md b/docs/models/operations/PostUsersSignInDataRequestBody.md new file mode 100644 index 00000000..f922e3e4 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataRequestBody.md @@ -0,0 +1,12 @@ +# PostUsersSignInDataRequestBody + +Login credentials + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `login` | *String* | :heavy_check_mark: | N/A | username@email.com | +| `password` | *String* | :heavy_check_mark: | N/A | password123 | +| `rememberMe` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataResponse.md b/docs/models/operations/PostUsersSignInDataResponse.md new file mode 100644 index 00000000..80864095 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataResponse.md @@ -0,0 +1,11 @@ +# PostUsersSignInDataResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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 | | +| `userPlexAccount` | [Optional](../../models/operations/PostUsersSignInDataUserPlexAccount.md) | :heavy_minus_sign: | Returns the user account data with a valid auth token | {
"adsConsent": true,
"adsConsentReminderAt": "2019-08-24T14:15:22Z",
"adsConsentSetAt": "2019-08-24T14:15:22Z",
"anonymous": false,
"authToken": "CxoUzBTSV5hsxjTpFKaf",
"backupCodesCreated": false,
"confirmed": false,
"country": "US",
"email": "username@email.com",
"emailOnlyAuth": false,
"experimentalFeatures": false,
"friendlyName": "friendlyUsername",
"entitlements": [],
"guest": false,
"hasPassword": true,
"home": false,
"homeAdmin": false,
"homeSize": 1,
"id": 13692262,
"joinedAt": 1721154902,
"locale": null,
"mailingListActive": false,
"mailingListStatus": "subscribed",
"maxHomeSize": 15,
"pastSubscriptions": [
{
"id": "string",
"mode": "string",
"renewsAt": "string",
"endsAt": "1556281940",
"canceled": "0",
"gracePeriod": "0",
"onHold": "0",
"canReactivate": "0",
"canUpgrade": "0",
"canDowngrade": "0",
"canConvert": "0",
"type": "plexpass",
"transfer": "string",
"state": "ended",
"billing": [
{
"internalPaymentMethod": "string",
"paymentMethodId": "string"
}
]
}
],
"pin": "string",
"profile": [
{
"autoSelectAudio": true,
"defaultAudioLanguage": "ja",
"defaultSubtitleLanguage": "en",
"autoSelectSubtitle": 1,
"defaultSubtitleAccessibility": 1,
"defaultSubtitleForced": 0,
"watchedIndicator": 1,
"mediaReviewsVisibility": 0
}
],
"protected": false,
"rememberExpiresAt": 1722364046,
"restricted": false,
"roles": [
"string"
],
"scrobbleTypes": "",
"services": [
{
"identifier": "metadata-dev",
"endpoint": "https://epg.provider.plex.tv",
"token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv",
"secret": "string",
"status": "online"
}
],
"subscription": {
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
},
"subscriptionDescription": "string",
"subscriptions": [
{
"features": [
"Android - Dolby Vision"
],
"active": true,
"subscribedAt": "2021-04-12T18:21:12Z",
"status": "Inactive",
"paymentService": "string",
"plan": "string"
}
],
"thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101",
"title": "UsernameTitle",
"trials": [
{}
],
"twoFactorEnabled": false,
"username": "Username",
"uuid": "dae343c1f45beb4f"
} | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataServices.md b/docs/models/operations/PostUsersSignInDataServices.md new file mode 100644 index 00000000..d34bffff --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataServices.md @@ -0,0 +1,12 @@ +# PostUsersSignInDataServices + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `identifier` | *String* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *String* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *Optional* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *Optional* | :heavy_check_mark: | N/A | | +| `status` | [PostUsersSignInDataStatus](../../models/operations/PostUsersSignInDataStatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataState.md b/docs/models/operations/PostUsersSignInDataState.md new file mode 100644 index 00000000..d31f6b64 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataState.md @@ -0,0 +1,8 @@ +# PostUsersSignInDataState + + +## Values + +| Name | Value | +| ------- | ------- | +| `ENDED` | ended | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataStatus.md b/docs/models/operations/PostUsersSignInDataStatus.md new file mode 100644 index 00000000..faa76864 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataStatus.md @@ -0,0 +1,9 @@ +# PostUsersSignInDataStatus + + +## Values + +| Name | Value | +| --------- | --------- | +| `ONLINE` | online | +| `OFFLINE` | offline | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataSubscription.md b/docs/models/operations/PostUsersSignInDataSubscription.md new file mode 100644 index 00000000..90e2ef87 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataSubscription.md @@ -0,0 +1,15 @@ +# PostUsersSignInDataSubscription + +If the account’s Plex Pass subscription is active + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `features` | List<[PostUsersSignInDataFeatures](../../models/operations/PostUsersSignInDataFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *Optional* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *JsonNullable* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [Optional](../../models/operations/PostUsersSignInDataAuthenticationStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *JsonNullable* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *JsonNullable* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataUserPlexAccount.md b/docs/models/operations/PostUsersSignInDataUserPlexAccount.md new file mode 100644 index 00000000..eb21bace --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataUserPlexAccount.md @@ -0,0 +1,51 @@ +# PostUsersSignInDataUserPlexAccount + +Returns the user account data with a valid auth token + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `adsConsent` | *Optional* | :heavy_check_mark: | Unknown | | +| `adsConsentReminderAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Unknown | | +| `adsConsentSetAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Unknown | | +| `anonymous` | *JsonNullable* | :heavy_minus_sign: | Unknown | | +| `authToken` | *String* | :heavy_check_mark: | The account token | CxoUzBTSV5hsxjTpFKaf | +| `backupCodesCreated` | *Optional* | :heavy_minus_sign: | If the two-factor authentication backup codes have been created | | +| `confirmed` | *Optional* | :heavy_minus_sign: | If the account has been confirmed | | +| `country` | *String* | :heavy_check_mark: | The account country | US | +| `email` | *String* | :heavy_check_mark: | The account email address | username@email.com | +| `emailOnlyAuth` | *Optional* | :heavy_minus_sign: | If login with email only is enabled | | +| `experimentalFeatures` | *Optional* | :heavy_minus_sign: | If experimental features are enabled | | +| `friendlyName` | *String* | :heavy_check_mark: | Your account full name | friendlyUsername | +| `entitlements` | List<*String*> | :heavy_check_mark: | List of devices your allowed to use with this account | | +| `guest` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home guest user | | +| `hasPassword` | *Optional* | :heavy_minus_sign: | If the account has a password | | +| `home` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home user | | +| `homeAdmin` | *Optional* | :heavy_minus_sign: | If the account is the Plex Home admin | | +| `homeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 | +| `id` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 | +| `joinedAt` | *int* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 | +| `locale` | *Optional* | :heavy_check_mark: | The account locale | | +| `mailingListActive` | *Optional* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | +| `mailingListStatus` | [PostUsersSignInDataMailingListStatus](../../models/operations/PostUsersSignInDataMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | +| `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | +| ~~`pin`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[Might be removed] The hashed Plex Home PIN | | +| `profile` | [PostUsersSignInDataUserProfile](../../models/operations/PostUsersSignInDataUserProfile.md) | :heavy_check_mark: | N/A | | +| `protected_` | *Optional* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | | +| `rememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 | +| `restricted` | *Optional* | :heavy_minus_sign: | If the account is a Plex Home managed user | | +| `roles` | List<*String*> | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | | +| `scrobbleTypes` | *String* | :heavy_check_mark: | Unknown | | +| `services` | List<[PostUsersSignInDataServices](../../models/operations/PostUsersSignInDataServices.md)> | :heavy_check_mark: | N/A | | +| `subscription` | [PostUsersSignInDataSubscription](../../models/operations/PostUsersSignInDataSubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | | +| `subscriptionDescription` | *Optional* | :heavy_check_mark: | Description of the Plex Pass subscription | | +| `subscriptions` | List<[PostUsersSignInDataAuthenticationSubscription](../../models/operations/PostUsersSignInDataAuthenticationSubscription.md)> | :heavy_check_mark: | N/A | | +| `thumb` | *String* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 | +| `title` | *String* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle | +| `twoFactorEnabled` | *Optional* | :heavy_minus_sign: | If two-factor authentication is enabled | | +| `username` | *String* | :heavy_check_mark: | The account username | Username | +| `uuid` | *String* | :heavy_check_mark: | The account UUID | dae343c1f45beb4f | +| `pastSubscriptions` | List<[PastSubscription](../../models/operations/PastSubscription.md)> | :heavy_check_mark: | N/A | | +| `trials` | List<[Trials](../../models/operations/Trials.md)> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataUserProfile.md b/docs/models/operations/PostUsersSignInDataUserProfile.md new file mode 100644 index 00000000..050f6ec1 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataUserProfile.md @@ -0,0 +1,15 @@ +# PostUsersSignInDataUserProfile + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `autoSelectAudio` | *Optional* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `defaultAudioLanguage` | *Optional* | :heavy_check_mark: | The preferred audio language for the account | ja | +| `defaultSubtitleLanguage` | *Optional* | :heavy_check_mark: | The preferred subtitle language for the account | en | +| `autoSelectSubtitle` | [Optional](../../models/operations/PostUsersSignInDataAutoSelectSubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `defaultSubtitleAccessibility` | [Optional](../../models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `defaultSubtitleForced` | [Optional](../../models/operations/PostUsersSignInDataDefaultSubtitleForced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `watchedIndicator` | [Optional](../../models/operations/PostUsersSignInDataWatchedIndicator.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsVisibility` | [Optional](../../models/operations/PostUsersSignInDataMediaReviewsVisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/models/operations/PostUsersSignInDataWatchedIndicator.md b/docs/models/operations/PostUsersSignInDataWatchedIndicator.md new file mode 100644 index 00000000..005b2722 --- /dev/null +++ b/docs/models/operations/PostUsersSignInDataWatchedIndicator.md @@ -0,0 +1,9 @@ +# PostUsersSignInDataWatchedIndicator + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Producer.md b/docs/models/operations/Producer.md index 23c5b53a..1b5047ac 100644 --- a/docs/models/operations/Producer.md +++ b/docs/models/operations/Producer.md @@ -5,8 +5,8 @@ | 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 +| `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 index fe99486b..59899a13 100644 --- a/docs/models/operations/Provider.md +++ b/docs/models/operations/Provider.md @@ -3,8 +3,8 @@ ## 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 +| 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/QueryParamFilter.md b/docs/models/operations/QueryParamFilter.md new file mode 100644 index 00000000..71675495 --- /dev/null +++ b/docs/models/operations/QueryParamFilter.md @@ -0,0 +1,11 @@ +# QueryParamFilter + +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/QueryParamForce.md b/docs/models/operations/QueryParamForce.md new file mode 100644 index 00000000..1c7d9389 --- /dev/null +++ b/docs/models/operations/QueryParamForce.md @@ -0,0 +1,15 @@ +# QueryParamForce + +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/QueryParamType.md b/docs/models/operations/QueryParamType.md index c72a4f72..326cf754 100644 --- a/docs/models/operations/QueryParamType.md +++ b/docs/models/operations/QueryParamType.md @@ -1,12 +1,19 @@ # QueryParamType -type of playlist to create +The type of media to retrieve. +1 = movie +2 = show +3 = season +4 = episode +E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + ## Values | Name | Value | | ------- | ------- | -| `AUDIO` | audio | -| `VIDEO` | video | -| `PHOTO` | photo | \ No newline at end of file +| `ONE` | 1 | +| `TWO` | 2 | +| `THREE` | 3 | +| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/Ratings.md b/docs/models/operations/Ratings.md index 5072fab4..282aee76 100644 --- a/docs/models/operations/Ratings.md +++ b/docs/models/operations/Ratings.md @@ -3,8 +3,8 @@ ## 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 +| 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/Release.md b/docs/models/operations/Release.md index 1cd76487..676e1ac3 100644 --- a/docs/models/operations/Release.md +++ b/docs/models/operations/Release.md @@ -5,9 +5,9 @@ | 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 +| `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/ResponseBody.md b/docs/models/operations/ResponseBody.md new file mode 100644 index 00000000..858a3316 --- /dev/null +++ b/docs/models/operations/ResponseBody.md @@ -0,0 +1,13 @@ +# ResponseBody + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `identifier` | *String* | :heavy_check_mark: | N/A | tv.plex.sonos | +| `baseURL` | *String* | :heavy_check_mark: | N/A | https://sonos.plex.tv | +| `title` | *String* | :heavy_check_mark: | N/A | Sonos | +| `linkURL` | *String* | :heavy_check_mark: | N/A | https://sonos.plex.tv/link | +| `provides` | *String* | :heavy_check_mark: | N/A | client,player | +| `token` | *String* | :heavy_check_mark: | The plex authtoken used to identify with | | \ No newline at end of file diff --git a/docs/models/operations/Role.md b/docs/models/operations/Role.md index 3d666328..fa3689ab 100644 --- a/docs/models/operations/Role.md +++ b/docs/models/operations/Role.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Paul Rudd | \ No newline at end of file +| 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/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/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 index 073d611d..03a1cad9 100644 --- a/docs/models/operations/Server.md +++ b/docs/models/operations/Server.md @@ -5,14 +5,14 @@ | 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 +| `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/Services.md b/docs/models/operations/Services.md new file mode 100644 index 00000000..5c604faa --- /dev/null +++ b/docs/models/operations/Services.md @@ -0,0 +1,12 @@ +# Services + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `identifier` | *String* | :heavy_check_mark: | N/A | metadata-dev | +| `endpoint` | *String* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv | +| `token` | *Optional* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv | +| `secret` | *Optional* | :heavy_check_mark: | N/A | | +| `status` | [GetUserDetailsStatus](../../models/operations/GetUserDetailsStatus.md) | :heavy_check_mark: | N/A | online | \ No newline at end of file diff --git a/docs/models/operations/Session.md b/docs/models/operations/Session.md index 1d21f35a..6a20d40b 100644 --- a/docs/models/operations/Session.md +++ b/docs/models/operations/Session.md @@ -3,8 +3,8 @@ ## 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 +| 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 index 8e0bebe3..cbe668b8 100644 --- a/docs/models/operations/Setting.md +++ b/docs/models/operations/Setting.md @@ -3,15 +3,15 @@ ## 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 +| 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/SharedServers.md b/docs/models/operations/SharedServers.md new file mode 100644 index 00000000..d787f3b8 --- /dev/null +++ b/docs/models/operations/SharedServers.md @@ -0,0 +1,7 @@ +# SharedServers + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/SharedSources.md b/docs/models/operations/SharedSources.md new file mode 100644 index 00000000..ca742997 --- /dev/null +++ b/docs/models/operations/SharedSources.md @@ -0,0 +1,7 @@ +# SharedSources + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/Skip.md b/docs/models/operations/Skip.md index 5e71f0e6..8487d677 100644 --- a/docs/models/operations/Skip.md +++ b/docs/models/operations/Skip.md @@ -1,6 +1,6 @@ # Skip -Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. +Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. ## Values diff --git a/docs/models/operations/Sort.md b/docs/models/operations/Sort.md index 00ae8b6e..8158665e 100644 --- a/docs/models/operations/Sort.md +++ b/docs/models/operations/Sort.md @@ -5,9 +5,9 @@ | 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 +| `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/StartTaskRequest.md b/docs/models/operations/StartTaskRequest.md index aeabe2ba..df0b59e3 100644 --- a/docs/models/operations/StartTaskRequest.md +++ b/docs/models/operations/StartTaskRequest.md @@ -3,6 +3,6 @@ ## 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 +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `taskName` | [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/StartUniversalTranscodeRequest.md b/docs/models/operations/StartUniversalTranscodeRequest.md index 8a576da3..48cfc2e8 100644 --- a/docs/models/operations/StartUniversalTranscodeRequest.md +++ b/docs/models/operations/StartUniversalTranscodeRequest.md @@ -10,14 +10,14 @@ | `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 +| `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/StatisticsBandwidth.md b/docs/models/operations/StatisticsBandwidth.md index a0003aa7..191b4e7a 100644 --- a/docs/models/operations/StatisticsBandwidth.md +++ b/docs/models/operations/StatisticsBandwidth.md @@ -3,11 +3,11 @@ ## 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 +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `accountID` | *Optional* | :heavy_minus_sign: | N/A | 238960586 | +| `deviceID` | *Optional* | :heavy_minus_sign: | N/A | 208 | +| `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 index a67be1df..34722a38 100644 --- a/docs/models/operations/StatisticsMedia.md +++ b/docs/models/operations/StatisticsMedia.md @@ -3,12 +3,12 @@ ## 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 +| 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 index 1df45d99..425696f0 100644 --- a/docs/models/operations/StatisticsResources.md +++ b/docs/models/operations/StatisticsResources.md @@ -3,11 +3,11 @@ ## 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 +| 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/Status.md b/docs/models/operations/Status.md new file mode 100644 index 00000000..01a15395 --- /dev/null +++ b/docs/models/operations/Status.md @@ -0,0 +1,10 @@ +# Status + +Current friend request status + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `ACCEPTED` | accepted | \ No newline at end of file diff --git a/docs/models/operations/StopTaskRequest.md b/docs/models/operations/StopTaskRequest.md index 7e84af8f..29b88b9b 100644 --- a/docs/models/operations/StopTaskRequest.md +++ b/docs/models/operations/StopTaskRequest.md @@ -3,6 +3,6 @@ ## 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 +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `taskName` | [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/Stream.md b/docs/models/operations/Stream.md index 9ffcff4c..6d998068 100644 --- a/docs/models/operations/Stream.md +++ b/docs/models/operations/Stream.md @@ -3,37 +3,37 @@ ## 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 +| 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/Subscription.md b/docs/models/operations/Subscription.md new file mode 100644 index 00000000..8a04f4fb --- /dev/null +++ b/docs/models/operations/Subscription.md @@ -0,0 +1,15 @@ +# Subscription + +If the account’s Plex Pass subscription is active + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `features` | List<[Features](../../models/operations/Features.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | | +| `active` | *Optional* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true | +| `subscribedAt` | *JsonNullable* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z | +| `status` | [Optional](../../models/operations/GetUserDetailsAuthenticationStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive | +| `paymentService` | *JsonNullable* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | | +| `plan` | *JsonNullable* | :heavy_minus_sign: | Name of Plex Pass subscription plan | | \ No newline at end of file diff --git a/docs/models/operations/TranscodeSession.md b/docs/models/operations/TranscodeSession.md index f410d38e..b866c7ba 100644 --- a/docs/models/operations/TranscodeSession.md +++ b/docs/models/operations/TranscodeSession.md @@ -3,29 +3,29 @@ ## 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 +| 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/Trials.md b/docs/models/operations/Trials.md new file mode 100644 index 00000000..1b9b77de --- /dev/null +++ b/docs/models/operations/Trials.md @@ -0,0 +1,7 @@ +# Trials + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/Type.md b/docs/models/operations/Type.md index 8cfa2e45..ad394078 100644 --- a/docs/models/operations/Type.md +++ b/docs/models/operations/Type.md @@ -1,6 +1,12 @@ # Type -Plex content type to search for +The type of media to retrieve. +1 = movie +2 = show +3 = season +4 = episode +E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + ## Values diff --git a/docs/models/operations/UpdatePlaylistRequest.md b/docs/models/operations/UpdatePlaylistRequest.md index 730d4feb..22a7e0fd 100644 --- a/docs/models/operations/UpdatePlaylistRequest.md +++ b/docs/models/operations/UpdatePlaylistRequest.md @@ -6,5 +6,5 @@ | 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 +| `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/UploadPlaylistRequest.md b/docs/models/operations/UploadPlaylistRequest.md index 619b645e..5b685c90 100644 --- a/docs/models/operations/UploadPlaylistRequest.md +++ b/docs/models/operations/UploadPlaylistRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `path` | *String* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | -| `force` | [lukehagar.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 +| `force` | [QueryParamForce](../../models/operations/QueryParamForce.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/User.md b/docs/models/operations/User.md index 7ee912c7..a54af3e6 100644 --- a/docs/models/operations/User.md +++ b/docs/models/operations/User.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 220 | \ No newline at end of file +| 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/UserProfile.md b/docs/models/operations/UserProfile.md new file mode 100644 index 00000000..5a877fc6 --- /dev/null +++ b/docs/models/operations/UserProfile.md @@ -0,0 +1,15 @@ +# UserProfile + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `autoSelectAudio` | *Optional* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true | +| `defaultAudioLanguage` | *Optional* | :heavy_check_mark: | The preferred audio language for the account | ja | +| `defaultSubtitleLanguage` | *Optional* | :heavy_check_mark: | The preferred subtitle language for the account | en | +| `autoSelectSubtitle` | [Optional](../../models/operations/AutoSelectSubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 | +| `defaultSubtitleAccessibility` | [Optional](../../models/operations/DefaultSubtitleAccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 | +| `defaultSubtitleForced` | [Optional](../../models/operations/DefaultSubtitleForced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 | +| `watchedIndicator` | [Optional](../../models/operations/WatchedIndicator.md) | :heavy_minus_sign: | N/A | 1 | +| `mediaReviewsVisibility` | [Optional](../../models/operations/MediaReviewsVisibility.md) | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/models/operations/WatchedIndicator.md b/docs/models/operations/WatchedIndicator.md new file mode 100644 index 00000000..772d650f --- /dev/null +++ b/docs/models/operations/WatchedIndicator.md @@ -0,0 +1,9 @@ +# WatchedIndicator + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Writer.md b/docs/models/operations/Writer.md index 0eaada5e..ee8d0e71 100644 --- a/docs/models/operations/Writer.md +++ b/docs/models/operations/Writer.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Jeff Loveness | \ No newline at end of file +| 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 index 751e411e..578ff196 100644 --- a/docs/models/shared/Security.md +++ b/docs/models/shared/Security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `accessToken` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| `accessToken` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 9f193791..bdeb1fb5 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -26,19 +26,10 @@ Get Server Activities ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerActivitiesResponse; +import java.lang.Exception; public class Application { @@ -46,7 +37,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerActivitiesResponse res = sdk.activities().getServerActivities() @@ -55,10 +46,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerActivitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -70,10 +61,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse](../../models/operations/GetServerActivitiesResponse.md)** +**[GetServerActivitiesResponse](../../models/operations/GetServerActivitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -81,6 +72,7 @@ public class Application { | models/errors/GetServerActivitiesResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## cancelServerActivities Cancel Server Activities @@ -90,19 +82,10 @@ Cancel Server Activities ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.CancelServerActivitiesResponse; +import java.lang.Exception; public class Application { @@ -110,7 +93,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities() @@ -118,10 +101,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.CancelServerActivitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.CancelServerActivitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -139,10 +122,10 @@ public class Application { | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | | `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)** +**[CancelServerActivitiesResponse](../../models/operations/CancelServerActivitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index e1182546..fc9c61a4 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -10,6 +10,8 @@ API Calls regarding authentication for Plex Media Server * [getTransientToken](#gettransienttoken) - Get a Transient Token. * [getSourceConnectionInformation](#getsourceconnectioninformation) - Get Source Connection Information +* [getUserDetails](#getuserdetails) - Get User Data By Token +* [postUsersSignInData](#postuserssignindata) - Get User SignIn Data ## getTransientToken @@ -21,19 +23,12 @@ This endpoint provides the caller with a temporary token with the same access le ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType; +import dev.plexapi.sdk.models.operations.GetTransientTokenResponse; +import dev.plexapi.sdk.models.operations.Scope; +import java.lang.Exception; public class Application { @@ -41,7 +36,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetTransientTokenResponse res = sdk.authentication().getTransientToken() @@ -50,10 +45,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetTransientTokenResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetTransientTokenResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -67,15 +62,15 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `type` | [GetTransientTokenQueryParamType](../../models/operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [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)** +**[GetTransientTokenResponse](../../models/operations/GetTransientTokenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -83,6 +78,7 @@ public class Application { | 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. @@ -94,19 +90,10 @@ Note: requires Plex Media Server >= 1.15.4. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSourceConnectionInformationResponse; +import java.lang.Exception; public class Application { @@ -114,7 +101,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation() @@ -122,10 +109,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetSourceConnectionInformationResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetSourceConnectionInformationResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -143,13 +130,146 @@ public class Application { | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | `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)** +**[GetSourceConnectionInformationResponse](../../models/operations/GetSourceConnectionInformationResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | models/errors/GetSourceConnectionInformationResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getUserDetails + +Get the User data from the provided X-Plex-Token + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetUserDetailsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetUserDetailsResponse res = sdk.authentication().getUserDetails() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .call(); + + if (res.userPlexAccount().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetUserDetailsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | + +### Response + +**[GetUserDetailsResponse](../../models/operations/GetUserDetailsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| models/errors/GetUserDetailsResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + +## postUsersSignInData + +Sign in user with username and password and return user data with Plex authentication token + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .requestBody(PostUsersSignInDataRequestBody.builder() + .login("username@email.com") + .password("password123") + .build()) + .call(); + + if (res.userPlexAccount().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.PostUsersSignInDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `requestBody` | [Optional](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | + +### Response + +**[PostUsersSignInDataResponse](../../models/operations/PostUsersSignInDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| models/errors/PostUsersSignInDataResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 3a9c561b..589271e8 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -23,19 +23,10 @@ Returns a list of butler tasks ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetButlerTasksResponse; +import java.lang.Exception; public class Application { @@ -43,7 +34,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetButlerTasksResponse res = sdk.butler().getButlerTasks() @@ -52,10 +43,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetButlerTasksResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetButlerTasksResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -67,10 +58,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse](../../models/operations/GetButlerTasksResponse.md)** +**[GetButlerTasksResponse](../../models/operations/GetButlerTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -78,6 +69,7 @@ public class Application { | 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: @@ -92,19 +84,10 @@ This endpoint will attempt to start all Butler tasks that are enabled in the set ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.StartAllTasksResponse; +import java.lang.Exception; public class Application { @@ -112,17 +95,17 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StartAllTasksResponse res = sdk.butler().startAllTasks() .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartAllTasksResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StartAllTasksResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -134,10 +117,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse](../../models/operations/StartAllTasksResponse.md)** +**[StartAllTasksResponse](../../models/operations/StartAllTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -145,6 +128,7 @@ public class Application { | 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. @@ -155,19 +139,10 @@ This endpoint will stop all currently running tasks and remove any scheduled tas ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.StopAllTasksResponse; +import java.lang.Exception; public class Application { @@ -175,17 +150,17 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StopAllTasksResponse res = sdk.butler().stopAllTasks() .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopAllTasksResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StopAllTasksResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -197,10 +172,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse](../../models/operations/StopAllTasksResponse.md)** +**[StopAllTasksResponse](../../models/operations/StopAllTasksResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -208,6 +183,7 @@ public class Application { | 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: @@ -222,19 +198,11 @@ This endpoint will attempt to start a single Butler task that is enabled in the ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.StartTaskResponse; +import dev.plexapi.sdk.models.operations.TaskName; +import java.lang.Exception; public class Application { @@ -242,7 +210,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StartTaskResponse res = sdk.butler().startTask() @@ -250,10 +218,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartTaskResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StartTaskResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -267,14 +235,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `taskName` | [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)** +**[StartTaskResponse](../../models/operations/StartTaskResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -282,6 +250,7 @@ public class Application { | 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. @@ -292,19 +261,11 @@ This endpoint will stop a currently running task by name, or remove it from the ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.PathParamTaskName; +import dev.plexapi.sdk.models.operations.StopTaskResponse; +import java.lang.Exception; public class Application { @@ -312,7 +273,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StopTaskResponse res = sdk.butler().stopTask() @@ -320,10 +281,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopTaskResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StopTaskResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -337,14 +298,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `taskName` | [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)** +**[StopTaskResponse](../../models/operations/StopTaskResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 88b34f73..f8d9b7d6 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -20,19 +20,11 @@ Get Global Hubs filtered by the parameters provided. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetGlobalHubsResponse; +import dev.plexapi.sdk.models.operations.OnlyTransient; +import java.lang.Exception; public class Application { @@ -40,7 +32,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs() @@ -51,10 +43,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetGlobalHubsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -70,13 +62,13 @@ public class Application { | 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). | - +| `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)** +**[GetGlobalHubsResponse](../../models/operations/GetGlobalHubsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -84,6 +76,7 @@ public class Application { | models/errors/GetGlobalHubsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getLibraryHubs This endpoint will return a list of library specific hubs @@ -94,19 +87,11 @@ This endpoint will return a list of library specific hubs ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetLibraryHubsResponse; +import dev.plexapi.sdk.models.operations.QueryParamOnlyTransient; +import java.lang.Exception; public class Application { @@ -114,7 +99,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs() @@ -126,10 +111,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetLibraryHubsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -146,13 +131,13 @@ public class Application { | 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). | - +| `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)** +**[GetLibraryHubsResponse](../../models/operations/GetLibraryHubsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index bd1e0cef..7224a782 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -10,13 +10,13 @@ API Calls interacting with Plex Media Server Libraries * [getFileHash](#getfilehash) - Get Hash Value * [getRecentlyAdded](#getrecentlyadded) - Get Recently Added -* [getLibraries](#getlibraries) - Get All Libraries -* [getLibrary](#getlibrary) - Get Library Details +* [getAllLibraries](#getalllibraries) - Get All Libraries +* [getLibraryDetails](#getlibrarydetails) - 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 +* [getRefreshLibraryMetadata](#getrefreshlibrarymetadata) - Refresh Metadata Of The Library +* [getSearchLibrary](#getsearchlibrary) - Search Library +* [getMetaDataByRatingKey](#getmetadatabyratingkey) - Get Metadata by RatingKey * [getMetadataChildren](#getmetadatachildren) - Get Items Children * [getTopWatchedContent](#gettopwatchedcontent) - Get Top Watched Content * [getOnDeck](#getondeck) - Get On Deck @@ -30,19 +30,10 @@ This resource returns hash values for local files ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetFileHashResponse; +import java.lang.Exception; public class Application { @@ -50,7 +41,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetFileHashResponse res = sdk.library().getFileHash() @@ -59,10 +50,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetFileHashResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetFileHashResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -79,12 +70,12 @@ public class Application { | 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 | | - +| `type` | *Optional* | :heavy_minus_sign: | Item type | | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse](../../models/operations/GetFileHashResponse.md)** +**[GetFileHashResponse](../../models/operations/GetFileHashResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -92,6 +83,7 @@ public class Application { | models/errors/GetFileHashResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getRecentlyAdded This endpoint will return the recently added content. @@ -102,19 +94,10 @@ This endpoint will return the recently added content. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse; +import java.lang.Exception; public class Application { @@ -122,19 +105,21 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded() + .xPlexContainerStart(0) + .xPlexContainerSize(50) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetRecentlyAddedResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -146,10 +131,17 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `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.
By default this is 0
| 0 | +| `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.
By default this is 50
| 50 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse](../../models/operations/GetRecentlyAddedResponse.md)** +**[GetRecentlyAddedResponse](../../models/operations/GetRecentlyAddedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -157,7 +149,8 @@ public class Application { | models/errors/GetRecentlyAddedResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | -## getLibraries + +## getAllLibraries 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. @@ -172,19 +165,10 @@ This allows a client to provide a rich interface around the media (e.g. allow so ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetAllLibrariesResponse; +import java.lang.Exception; public class Application { @@ -192,19 +176,19 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetLibrariesResponse res = sdk.library().getLibraries() + GetAllLibrariesResponse res = sdk.library().getAllLibraries() .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibrariesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetAllLibrariesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -216,18 +200,19 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse](../../models/operations/GetLibrariesResponse.md)** +**[GetAllLibrariesResponse](../../models/operations/GetAllLibrariesResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/GetLibrariesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| models/errors/GetAllLibrariesResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | -## getLibrary + +## getLibraryDetails ## Library Details Endpoint @@ -275,19 +260,11 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetLibraryDetailsResponse; +import dev.plexapi.sdk.models.operations.IncludeDetails; +import java.lang.Exception; public class Application { @@ -295,21 +272,21 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetLibraryResponse res = sdk.library().getLibrary() - .sectionId(1000d) + GetLibraryDetailsResponse res = sdk.library().getLibraryDetails() + .sectionKey(9518) .includeDetails(IncludeDetails.ZERO) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetLibraryDetailsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -325,42 +302,34 @@ public class Application { | 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.
| | - +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `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)** +**[GetLibraryDetailsResponse](../../models/operations/GetLibraryDetailsResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models/errors/GetLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| models/errors/GetLibraryDetailsResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + ## deleteLibrary -Delate a library using a specific section +Delete a library using a specific section id ### 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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.DeleteLibraryResponse; +import java.lang.Exception; public class Application { @@ -368,18 +337,18 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); DeleteLibraryResponse res = sdk.library().deleteLibrary() - .sectionId(1000d) + .sectionKey(9518) .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.DeleteLibraryResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.DeleteLibraryResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -393,14 +362,14 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | - +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse](../../models/operations/DeleteLibraryResponse.md)** +**[DeleteLibraryResponse](../../models/operations/DeleteLibraryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -408,6 +377,7 @@ public class Application { | 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: @@ -437,19 +407,15 @@ Fetches details from a specific section of the library identified by a section k ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest; +import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse; +import dev.plexapi.sdk.models.operations.IncludeGuids; +import dev.plexapi.sdk.models.operations.IncludeMeta; +import dev.plexapi.sdk.models.operations.Tag; +import dev.plexapi.sdk.models.operations.Type; +import java.lang.Exception; public class Application { @@ -457,22 +423,30 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetLibraryItemsRequest req = GetLibraryItemsRequest.builder() + .sectionKey(9518) + .tag(Tag.EDITION) + .type(Type.TWO) + .includeGuids(IncludeGuids.ONE) + .includeMeta(IncludeMeta.ONE) + .xPlexContainerStart(0) + .xPlexContainerSize(50) .build(); GetLibraryItemsResponse res = sdk.library().getLibraryItems() - .sectionId("") - .tag(Tag.GENRE) - .includeGuids(1L) + .request(req) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetLibraryItemsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -486,16 +460,14 @@ public class Application { ### 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 | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [GetLibraryItemsRequest](../../models/operations/GetLibraryItemsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse](../../models/operations/GetLibraryItemsResponse.md)** +**[GetLibraryItemsResponse](../../models/operations/GetLibraryItemsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -503,9 +475,10 @@ public class Application { | models/errors/GetLibraryItemsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | -## refreshLibrary -This endpoint Refreshes the library. +## getRefreshLibraryMetadata + +This endpoint Refreshes all the Metadata of the library. ### Example Usage @@ -513,19 +486,11 @@ This endpoint Refreshes the library. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.Force; +import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataResponse; +import java.lang.Exception; public class Application { @@ -533,18 +498,19 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - RefreshLibraryResponse res = sdk.library().refreshLibrary() - .sectionId(934.16d) + GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata() + .sectionKey(9518) + .force(Force.ONE) .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.RefreshLibraryResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetRefreshLibraryMetadataResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -558,22 +524,24 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to refresh | - +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `force` | [Optional](../../models/operations/Force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse](../../models/operations/RefreshLibraryResponse.md)** +**[GetRefreshLibraryMetadataResponse](../../models/operations/GetRefreshLibraryMetadataResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/RefreshLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| models/errors/GetRefreshLibraryMetadataResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | -## searchLibrary + +## getSearchLibrary Search for content within a specific section of the library. @@ -600,19 +568,11 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSearchLibraryResponse; +import dev.plexapi.sdk.models.operations.QueryParamType; +import java.lang.Exception; public class Application { @@ -620,21 +580,21 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - SearchLibraryResponse res = sdk.library().searchLibrary() - .sectionId(933505L) - .type(Type.FOUR) + GetSearchLibraryResponse res = sdk.library().getSearchLibrary() + .sectionKey(9518) + .type(QueryParamType.TWO) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.SearchLibraryResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetSearchLibraryResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -648,23 +608,24 @@ public class Application { ### 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 | - +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
| 9518 | +| `type` | [QueryParamType](../../models/operations/QueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse](../../models/operations/SearchLibraryResponse.md)** +**[GetSearchLibraryResponse](../../models/operations/GetSearchLibraryResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/SearchLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| models/errors/GetSearchLibraryResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | -## getMetadata + +## getMetaDataByRatingKey This endpoint will return the metadata of a library item specified with the ratingKey. @@ -674,19 +635,10 @@ This endpoint will return the metadata of a library item specified with the rati ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponse; +import java.lang.Exception; public class Application { @@ -694,20 +646,20 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetMetadataResponse res = sdk.library().getMetadata() - .ratingKey(8382.31d) + GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey() + .ratingKey(9518L) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMetadataResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetMetaDataByRatingKeyResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -721,20 +673,21 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `ratingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | - +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *long* | :heavy_check_mark: | the id of the library item to return the children of. | 9518 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse](../../models/operations/GetMetadataResponse.md)** +**[GetMetaDataByRatingKeyResponse](../../models/operations/GetMetaDataByRatingKeyResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetMetadataResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| models/errors/GetMetaDataByRatingKeyResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + ## getMetadataChildren @@ -746,19 +699,10 @@ This endpoint will return the children of of a library item specified with the r ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponse; +import java.lang.Exception; public class Application { @@ -766,7 +710,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetMetadataChildrenResponse res = sdk.library().getMetadataChildren() @@ -777,10 +721,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetMetadataChildrenResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -797,12 +741,12 @@ public class Application { | 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)
| - +| `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)** +**[GetMetadataChildrenResponse](../../models/operations/GetMetadataChildrenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -810,6 +754,7 @@ public class Application { | 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 @@ -820,19 +765,11 @@ This endpoint will return the top watched content from libraries of a certain ty ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentQueryParamType; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentResponse; +import java.lang.Exception; public class Application { @@ -840,18 +777,21 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent() - .type(505531L) + .type(GetTopWatchedContentQueryParamType.TWO) .includeGuids(1L) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (dev.plexapi.sdk.models.errors.GetTopWatchedContentResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -865,20 +805,22 @@ public class Application { ### 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 | - +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [GetTopWatchedContentQueryParamType](../../models/operations/GetTopWatchedContentQueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | +| `includeGuids` | *Optional* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse](../../models/operations/GetTopWatchedContentResponse.md)** +**[GetTopWatchedContentResponse](../../models/operations/GetTopWatchedContentResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| models/errors/GetTopWatchedContentResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + ## getOnDeck @@ -890,19 +832,10 @@ This endpoint will return the on deck content. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetOnDeckResponse; +import java.lang.Exception; public class Application { @@ -910,7 +843,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetOnDeckResponse res = sdk.library().getOnDeck() @@ -919,10 +852,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetOnDeckResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetOnDeckResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -934,10 +867,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse](../../models/operations/GetOnDeckResponse.md)** +**[GetOnDeckResponse](../../models/operations/GetOnDeckResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 3e65afcf..f539f6f2 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -22,19 +22,11 @@ This endpoint will write a single-line log message, including a level and source ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.Level; +import dev.plexapi.sdk.models.operations.LogLineResponse; +import java.lang.Exception; public class Application { @@ -42,7 +34,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); LogLineResponse res = sdk.log().logLine() @@ -52,10 +44,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.LogLineResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.LogLineResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -71,14 +63,14 @@ public class Application { | 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
| | +| `level` | [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)** +**[LogLineResponse](../../models/operations/LogLineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -86,6 +78,7 @@ public class Application { | 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. @@ -116,19 +109,11 @@ Ensure each parameter is properly URL-encoded to avoid interpretation issues. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.LogMultiLineResponse; +import java.lang.Exception; +import java.lang.String; public class Application { @@ -136,11 +121,10 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - String req = "level=4&message=Test%20message%201&source=postman -level=3&message=Test%20message%202&source=postman + String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman level=1&message=Test%20message%203&source=postman"; LogMultiLineResponse res = sdk.log().logMultiLine() @@ -148,10 +132,10 @@ level=1&message=Test%20message%203&source=postman"; .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.LogMultiLineResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.LogMultiLineResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -169,10 +153,10 @@ level=1&message=Test%20message%203&source=postman"; | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | `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)** +**[LogMultiLineResponse](../../models/operations/LogMultiLineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -180,6 +164,7 @@ level=1&message=Test%20message%203&source=postman"; | 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. @@ -190,19 +175,10 @@ This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.EnablePaperTrailResponse; +import java.lang.Exception; public class Application { @@ -210,17 +186,17 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); EnablePaperTrailResponse res = sdk.log().enablePaperTrail() .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.EnablePaperTrailResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -232,10 +208,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse](../../models/operations/EnablePaperTrailResponse.md)** +**[EnablePaperTrailResponse](../../models/operations/EnablePaperTrailResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index 6ce7ec18..4ce7f845 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -11,6 +11,8 @@ API Calls interacting with Plex Media Server Media * [markPlayed](#markplayed) - Mark Media Played * [markUnplayed](#markunplayed) - Mark Media Unplayed * [updatePlayProgress](#updateplayprogress) - Update Media Play Progress +* [getBannerImage](#getbannerimage) - Get Banner Image +* [getThumbImage](#getthumbimage) - Get Thumb Image ## markPlayed @@ -21,19 +23,10 @@ This will mark the provided media key as Played. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.MarkPlayedResponse; +import java.lang.Exception; public class Application { @@ -41,7 +34,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); MarkPlayedResponse res = sdk.media().markPlayed() @@ -49,10 +42,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.MarkPlayedResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.MarkPlayedResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -70,10 +63,10 @@ public class Application { | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | | `key` | *double* | :heavy_check_mark: | The media key to mark as played | 59398 | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse](../../models/operations/MarkPlayedResponse.md)** +**[MarkPlayedResponse](../../models/operations/MarkPlayedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -81,6 +74,7 @@ public class Application { | models/errors/MarkPlayedResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## markUnplayed This will mark the provided media key as Unplayed. @@ -90,19 +84,10 @@ This will mark the provided media key as Unplayed. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.MarkUnplayedResponse; +import java.lang.Exception; public class Application { @@ -110,7 +95,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); MarkUnplayedResponse res = sdk.media().markUnplayed() @@ -118,10 +103,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.MarkUnplayedResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.MarkUnplayedResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -139,10 +124,10 @@ public class Application { | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | | `key` | *double* | :heavy_check_mark: | The media key to mark as Unplayed | 59398 | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse](../../models/operations/MarkUnplayedResponse.md)** +**[MarkUnplayedResponse](../../models/operations/MarkUnplayedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -150,6 +135,7 @@ public class Application { | 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. @@ -160,19 +146,10 @@ This API command can be used to update the play progress of a media item. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.UpdatePlayProgressResponse; +import java.lang.Exception; public class Application { @@ -180,20 +157,20 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); UpdatePlayProgressResponse res = sdk.media().updatePlayProgress() - .key("") + .key("") .time(90000d) .state("played") .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UpdatePlayProgressResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.UpdatePlayProgressResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -213,13 +190,159 @@ public class Application { | `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)** +**[UpdatePlayProgressResponse](../../models/operations/UpdatePlayProgressResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | models/errors/UpdatePlayProgressResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getBannerImage + +Gets the banner image of the media item + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetBannerImageRequest; +import dev.plexapi.sdk.models.operations.GetBannerImageResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetBannerImageRequest req = GetBannerImageRequest.builder() + .ratingKey(9518L) + .width(396L) + .height(396L) + .minSize(1L) + .upscale(1L) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .build(); + + GetBannerImageResponse res = sdk.media().getBannerImage() + .request(req) + .call(); + + if (res.responseStream().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetBannerImageResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [GetBannerImageRequest](../../models/operations/GetBannerImageRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetBannerImageResponse](../../models/operations/GetBannerImageResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| models/errors/GetBannerImageResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getThumbImage + +Gets the thumbnail image of the media item + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetThumbImageRequest; +import dev.plexapi.sdk.models.operations.GetThumbImageResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetThumbImageRequest req = GetThumbImageRequest.builder() + .ratingKey(9518L) + .width(396L) + .height(396L) + .minSize(1L) + .upscale(1L) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .build(); + + GetThumbImageResponse res = sdk.media().getThumbImage() + .request(req) + .call(); + + if (res.responseStream().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetThumbImageResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [GetThumbImageRequest](../../models/operations/GetThumbImageRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetThumbImageResponse](../../models/operations/GetThumbImageResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| models/errors/GetThumbImageResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 0a4b79ca..29fcdc0a 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -33,19 +33,13 @@ Create a new playlist. By default the playlist is blank. To create a playlist al ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.CreatePlaylistQueryParamType; +import dev.plexapi.sdk.models.operations.CreatePlaylistRequest; +import dev.plexapi.sdk.models.operations.CreatePlaylistResponse; +import dev.plexapi.sdk.models.operations.Smart; +import java.lang.Exception; public class Application { @@ -53,12 +47,12 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); CreatePlaylistRequest req = CreatePlaylistRequest.builder() .title("") - .type(QueryParamType.PHOTO) + .type(CreatePlaylistQueryParamType.PHOTO) .smart(Smart.ONE) .uri("") .build(); @@ -70,10 +64,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.CreatePlaylistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.CreatePlaylistResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -87,14 +81,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [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)** +**[CreatePlaylistResponse](../../models/operations/CreatePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -102,6 +96,7 @@ public class Application { | models/errors/CreatePlaylistResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getPlaylists Get All Playlists given the specified filters. @@ -111,19 +106,12 @@ Get All Playlists given the specified filters. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetPlaylistsResponse; +import dev.plexapi.sdk.models.operations.PlaylistType; +import dev.plexapi.sdk.models.operations.QueryParamSmart; +import java.lang.Exception; public class Application { @@ -131,7 +119,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetPlaylistsResponse res = sdk.playlists().getPlaylists() @@ -142,10 +130,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetPlaylistsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -159,15 +147,15 @@ public class Application { ### 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). | - +| 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)** +**[GetPlaylistsResponse](../../models/operations/GetPlaylistsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -175,6 +163,7 @@ public class Application { | 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: @@ -186,19 +175,10 @@ Smart playlist details contain the `content` attribute. This is the content URI ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetPlaylistResponse; +import java.lang.Exception; public class Application { @@ -206,7 +186,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetPlaylistResponse res = sdk.playlists().getPlaylist() @@ -216,10 +196,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetPlaylistResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -237,10 +217,10 @@ public class Application { | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse](../../models/operations/GetPlaylistResponse.md)** +**[GetPlaylistResponse](../../models/operations/GetPlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -248,6 +228,7 @@ public class Application { | models/errors/GetPlaylistResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## deletePlaylist This endpoint will delete a playlist @@ -258,19 +239,10 @@ This endpoint will delete a playlist ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.DeletePlaylistResponse; +import java.lang.Exception; public class Application { @@ -278,7 +250,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); DeletePlaylistResponse res = sdk.playlists().deletePlaylist() @@ -286,10 +258,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.DeletePlaylistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.DeletePlaylistResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -307,10 +279,10 @@ public class Application { | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse](../../models/operations/DeletePlaylistResponse.md)** +**[DeletePlaylistResponse](../../models/operations/DeletePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -318,6 +290,7 @@ public class Application { | 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}` @@ -328,19 +301,10 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.UpdatePlaylistResponse; +import java.lang.Exception; public class Application { @@ -348,7 +312,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); UpdatePlaylistResponse res = sdk.playlists().updatePlaylist() @@ -358,10 +322,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.UpdatePlaylistResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -378,13 +342,13 @@ public class Application { | 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 | - +| `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)** +**[UpdatePlaylistResponse](../../models/operations/UpdatePlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -392,6 +356,7 @@ public class Application { | 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. @@ -405,19 +370,11 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsQueryParamType; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsResponse; +import java.lang.Exception; public class Application { @@ -425,21 +382,21 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents() .playlistID(5004.46d) - .type(9403.59d) + .type(GetPlaylistContentsQueryParamType.TWO) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetPlaylistContentsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -453,15 +410,15 @@ public class Application { ### 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 | - +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | | +| `type` | [GetPlaylistContentsQueryParamType](../../models/operations/GetPlaylistContentsQueryParamType.md) | :heavy_check_mark: | The type of media to retrieve.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
| 2 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse](../../models/operations/GetPlaylistContentsResponse.md)** +**[GetPlaylistContentsResponse](../../models/operations/GetPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -469,6 +426,7 @@ public class Application { | models/errors/GetPlaylistContentsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## clearPlaylistContents Clears a playlist, only works with dumb playlists. Returns the playlist. @@ -479,19 +437,10 @@ Clears a playlist, only works with dumb playlists. Returns the playlist. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.ClearPlaylistContentsResponse; +import java.lang.Exception; public class Application { @@ -499,7 +448,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents() @@ -507,10 +456,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.ClearPlaylistContentsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.ClearPlaylistContentsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -528,10 +477,10 @@ public class Application { | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse](../../models/operations/ClearPlaylistContentsResponse.md)** +**[ClearPlaylistContentsResponse](../../models/operations/ClearPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -539,6 +488,7 @@ public class Application { | 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. @@ -550,19 +500,10 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.AddPlaylistContentsResponse; +import java.lang.Exception; public class Application { @@ -570,7 +511,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents() @@ -582,10 +523,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.AddPlaylistContentsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -603,12 +544,12 @@ public class Application { | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `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 | - +| `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)** +**[AddPlaylistContentsResponse](../../models/operations/AddPlaylistContentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -616,6 +557,7 @@ public class Application { | 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. @@ -626,19 +568,11 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.QueryParamForce; +import dev.plexapi.sdk.models.operations.UploadPlaylistResponse; +import java.lang.Exception; public class Application { @@ -646,19 +580,19 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); UploadPlaylistResponse res = sdk.playlists().uploadPlaylist() .path("/home/barkley/playlist.m3u") - .force(Force.ZERO) + .force(QueryParamForce.ZERO) .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UploadPlaylistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.UploadPlaylistResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -675,12 +609,12 @@ public class Application { | 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.
| | - +| `force` | [QueryParamForce](../../models/operations/QueryParamForce.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)** +**[UploadPlaylistResponse](../../models/operations/UploadPlaylistResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 53e75d6c..5cd22b35 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -8,9 +8,198 @@ API Calls that perform operations directly against https://Plex.tv ### Available Operations +* [getCompanionsData](#getcompanionsdata) - Get Companions Data +* [getUserFriends](#getuserfriends) - Get list of friends of the user logged in +* [getGeoData](#getgeodata) - Get Geo Data * [getHomeData](#gethomedata) - Get Plex Home Data +* [getServerResources](#getserverresources) - Get Server Resources * [getPin](#getpin) - Get a Pin -* [getToken](#gettoken) - Get Access Token +* [getTokenByPinId](#gettokenbypinid) - Get Access Token by PinId + +## getCompanionsData + +Get Companions Data + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetCompanionsDataResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetCompanionsDataResponse res = sdk.plex().getCompanionsData() + .call(); + + if (res.responseBodies().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetCompanionsDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetCompanionsDataResponse](../../models/operations/GetCompanionsDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| models/errors/GetCompanionsDataResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getUserFriends + +Get friends of provided auth token. + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetUserFriendsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetUserFriendsResponse res = sdk.plex().getUserFriends() + .call(); + + if (res.friends().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetUserFriendsResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetUserFriendsResponse](../../models/operations/GetUserFriendsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| models/errors/GetUserFriendsResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getGeoData + +Returns the geolocation and locale data of the caller + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetGeoDataResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetGeoDataResponse res = sdk.plex().getGeoData() + .call(); + + if (res.geoData().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetGeoDataResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetGeoDataResponse](../../models/operations/GetGeoDataResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | +| models/errors/GetGeoDataResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + ## getHomeData @@ -21,19 +210,10 @@ Retrieves the home data for the authenticated user, including details like home ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetHomeDataResponse; +import java.lang.Exception; public class Application { @@ -41,7 +221,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetHomeDataResponse res = sdk.plex().getHomeData() @@ -50,10 +230,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetHomeDataResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetHomeDataResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -65,10 +245,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse](../../models/operations/GetHomeDataResponse.md)** +**[GetHomeDataResponse](../../models/operations/GetHomeDataResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -76,6 +256,82 @@ public class Application { | models/errors/GetHomeDataResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + +## getServerResources + +Get Plex server access tokens and server connections + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerResourcesRequest; +import dev.plexapi.sdk.models.operations.GetServerResourcesResponse; +import dev.plexapi.sdk.models.operations.IncludeHttps; +import dev.plexapi.sdk.models.operations.IncludeIPv6; +import dev.plexapi.sdk.models.operations.IncludeRelay; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerResourcesRequest req = GetServerResourcesRequest.builder() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .includeHttps(IncludeHttps.ONE) + .includeRelay(IncludeRelay.ONE) + .includeIPv6(IncludeIPv6.ONE) + .build(); + + GetServerResourcesResponse res = sdk.plex().getServerResources() + .request(req) + .call(); + + if (res.plexDevices().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetServerResourcesResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [GetServerResourcesRequest](../../models/operations/GetServerResourcesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetServerResourcesResponse](../../models/operations/GetServerResourcesResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/GetServerResourcesResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + ## getPin Retrieve a Pin from Plex.tv for authentication flows @@ -85,40 +341,32 @@ Retrieve a Pin from Plex.tv for authentication flows ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetPinResponse; +import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { try { PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetPinResponse res = sdk.plex().getPin() .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .xPlexProduct("Plex Web") .call(); - if (res.object().isPresent()) { + if (res.authPinContainer().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetPinResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -134,15 +382,15 @@ public class Application { | 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 | +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `xPlexProduct` | *Optional* | :heavy_minus_sign: | N/A | Plex Web | | `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)** +**[GetPinResponse](../../models/operations/GetPinResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -150,48 +398,44 @@ public class Application { | 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 +## getTokenByPinId + +Retrieve an Access Token from Plex.tv after the Pin has 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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse; +import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { try { PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetTokenResponse res = sdk.plex().getToken() - .pinID("") - .xPlexClientIdentifier("Postman") + GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId() + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .pinID(408895L) .call(); - if (res.object().isPresent()) { + if (res.authPinContainer().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetTokenResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetTokenByPinIdResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (dev.plexapi.sdk.models.errors.GetTokenByPinIdPlexResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -207,17 +451,18 @@ public class Application { | 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 | +| `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)
| gcgzw5rz2xovp84b4vha3a40 | +| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | | `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)** +**[GetTokenByPinIdResponse](../../models/operations/GetTokenByPinIdResponse.md)** + ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/GetTokenResponseBody | 400 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| models/errors/GetTokenByPinIdResponseBody | 400 | application/json | +| models/errors/GetTokenByPinIdPlexResponseBody | 404 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/plexapi/README.md b/docs/sdks/plexapi/README.md index 8ee580cf..2fd26ab8 100644 --- a/docs/sdks/plexapi/README.md +++ b/docs/sdks/plexapi/README.md @@ -1,9 +1,5 @@ # PlexAPI SDK - ## Overview -An Open API Spec for interacting with Plex.tv and Plex Servers - -### Available Operations - +Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server \ No newline at end of file diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index bf4147f2..a5558aad 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -33,19 +33,10 @@ This request is intended to be very fast, and called as the user types. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.PerformSearchResponse; +import java.lang.Exception; public class Application { @@ -53,20 +44,20 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); PerformSearchResponse res = sdk.search().performSearch() - .query("dylan") - .sectionId(1516.53d) + .query("arnold") + .sectionId(9372.7d) .limit(5d) .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.PerformSearchResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.PerformSearchResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -83,13 +74,13 @@ public class Application { | 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 | - +| `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)** +**[PerformSearchResponse](../../models/operations/PerformSearchResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -97,6 +88,7 @@ public class Application { | 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. @@ -110,19 +102,10 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.PerformVoiceSearchResponse; +import java.lang.Exception; public class Application { @@ -130,7 +113,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); PerformVoiceSearchResponse res = sdk.search().performVoiceSearch() @@ -140,10 +123,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.PerformVoiceSearchResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -160,13 +143,13 @@ public class Application { | 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 | - +| `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)** +**[PerformVoiceSearchResponse](../../models/operations/PerformVoiceSearchResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -174,6 +157,7 @@ public class Application { | models/errors/PerformVoiceSearchResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getSearchResults This will search the database for the string provided. @@ -183,19 +167,10 @@ This will search the database for the string provided. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSearchResultsResponse; +import java.lang.Exception; public class Application { @@ -203,7 +178,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetSearchResultsResponse res = sdk.search().getSearchResults() @@ -213,10 +188,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSearchResultsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetSearchResultsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -234,10 +209,10 @@ public class Application { | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | | `query` | *String* | :heavy_check_mark: | The search query string to use | 110 | - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse](../../models/operations/GetSearchResultsResponse.md)** +**[GetSearchResultsResponse](../../models/operations/GetSearchResultsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 416f3f85..b7287152 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -15,6 +15,7 @@ Operations against the Plex Media Server System. * [getServerIdentity](#getserveridentity) - Get Server Identity * [getMyPlexAccount](#getmyplexaccount) - Get MyPlex Account * [getResizedPhoto](#getresizedphoto) - Get a Resized Photo +* [getMediaProviders](#getmediaproviders) - Get Media Providers * [getServerList](#getserverlist) - Get Server List ## getServerCapabilities @@ -26,19 +27,10 @@ Get Server Capabilities ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import java.lang.Exception; public class Application { @@ -46,7 +38,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() @@ -55,10 +47,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -70,10 +62,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse](../../models/operations/GetServerCapabilitiesResponse.md)** +**[GetServerCapabilitiesResponse](../../models/operations/GetServerCapabilitiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -81,6 +73,7 @@ public class Application { | models/errors/GetServerCapabilitiesResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getServerPreferences Get Server Preferences @@ -90,19 +83,10 @@ Get Server Preferences ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerPreferencesResponse; +import java.lang.Exception; public class Application { @@ -110,7 +94,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerPreferencesResponse res = sdk.server().getServerPreferences() @@ -119,10 +103,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerPreferencesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -134,10 +118,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse](../../models/operations/GetServerPreferencesResponse.md)** +**[GetServerPreferencesResponse](../../models/operations/GetServerPreferencesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -145,6 +129,7 @@ public class Application { | models/errors/GetServerPreferencesResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getAvailableClients Get Available Clients @@ -154,19 +139,10 @@ Get Available Clients ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetAvailableClientsResponse; +import java.lang.Exception; public class Application { @@ -174,7 +150,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetAvailableClientsResponse res = sdk.server().getAvailableClients() @@ -183,10 +159,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetAvailableClientsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -198,10 +174,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse](../../models/operations/GetAvailableClientsResponse.md)** +**[GetAvailableClientsResponse](../../models/operations/GetAvailableClientsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -209,6 +185,7 @@ public class Application { | models/errors/GetAvailableClientsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getDevices Get Devices @@ -218,19 +195,10 @@ Get Devices ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetDevicesResponse; +import java.lang.Exception; public class Application { @@ -238,7 +206,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetDevicesResponse res = sdk.server().getDevices() @@ -247,10 +215,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetDevicesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetDevicesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -262,10 +230,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse](../../models/operations/GetDevicesResponse.md)** +**[GetDevicesResponse](../../models/operations/GetDevicesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -273,36 +241,27 @@ public class Application { | models/errors/GetDevicesResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getServerIdentity -Get Server Identity +This request is useful to determine if the server is online or offline ### 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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerIdentityResponse; +import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { try { PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetServerIdentityResponse res = sdk.server().getServerIdentity() @@ -311,10 +270,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerIdentityResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetServerIdentityResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -326,17 +285,18 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse](../../models/operations/GetServerIdentityResponse.md)** +**[GetServerIdentityResponse](../../models/operations/GetServerIdentityResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| models/errors/GetServerIdentityResponseBody | 401 | application/json | +| models/errors/GetServerIdentityResponseBody | 408 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getMyPlexAccount Returns MyPlex Account Information @@ -346,19 +306,10 @@ Returns MyPlex Account Information ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetMyPlexAccountResponse; +import java.lang.Exception; public class Application { @@ -366,7 +317,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount() @@ -375,10 +326,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetMyPlexAccountResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -390,10 +341,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse](../../models/operations/GetMyPlexAccountResponse.md)** +**[GetMyPlexAccountResponse](../../models/operations/GetMyPlexAccountResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -401,6 +352,7 @@ public class Application { | 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. @@ -411,19 +363,13 @@ Plex's Photo transcoder is used throughout the service to serve images at specif ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetResizedPhotoRequest; +import dev.plexapi.sdk.models.operations.GetResizedPhotoResponse; +import dev.plexapi.sdk.models.operations.MinSize; +import dev.plexapi.sdk.models.operations.Upscale; +import java.lang.Exception; public class Application { @@ -431,7 +377,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetResizedPhotoRequest req = GetResizedPhotoRequest.builder() @@ -449,10 +395,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetResizedPhotoResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -466,14 +412,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [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)** +**[GetResizedPhotoResponse](../../models/operations/GetResizedPhotoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -481,28 +427,20 @@ public class Application { | models/errors/GetResizedPhotoResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | -## getServerList -Get Server List +## getMediaProviders + +Retrieves media providers and their features from the Plex 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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetMediaProvidersResponse; +import java.lang.Exception; public class Application { @@ -510,19 +448,20 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetServerListResponse res = sdk.server().getServerList() + GetMediaProvidersResponse res = sdk.server().getMediaProviders() + .xPlexToken("CV5xoxjTpFKUzBTShsaf") .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerListResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetMediaProvidersResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -534,10 +473,72 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `xPlexToken` | *String* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf | ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetServerListResponse](../../models/operations/GetServerListResponse.md)** +**[GetMediaProvidersResponse](../../models/operations/GetMediaProvidersResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| models/errors/GetMediaProvidersResponseBody | 401 | application/json | +| models/errors/SDKError | 4xx-5xx | \*\/* | + + +## getServerList + +Get Server List + +### Example Usage + +```java +package hello.world; + +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetServerListResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + PlexAPI sdk = PlexAPI.builder() + .accessToken("") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") + .build(); + + GetServerListResponse res = sdk.server().getServerList() + .call(); + + if (res.object().isPresent()) { + // handle response + } + } catch (dev.plexapi.sdk.models.errors.GetServerListResponseBody e) { + // handle exception + throw e; + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + +### Response + +**[GetServerListResponse](../../models/operations/GetServerListResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index cb40d3b6..68c16e1a 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -22,19 +22,10 @@ This will retrieve the "Now Playing" Information of the PMS. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSessionsResponse; +import java.lang.Exception; public class Application { @@ -42,7 +33,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetSessionsResponse res = sdk.sessions().getSessions() @@ -51,10 +42,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSessionsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetSessionsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -66,10 +57,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse](../../models/operations/GetSessionsResponse.md)** +**[GetSessionsResponse](../../models/operations/GetSessionsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -77,6 +68,7 @@ public class Application { | models/errors/GetSessionsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getSessionHistory This will Retrieve a listing of all history views. @@ -86,19 +78,11 @@ This will Retrieve a listing of all history views. ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSessionHistoryResponse; +import dev.plexapi.sdk.models.operations.QueryParamFilter; +import java.lang.Exception; public class Application { @@ -106,13 +90,13 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetSessionHistoryResponse res = sdk.sessions().getSessionHistory() .sort("") .accountId(1L) - .filter(Filter.builder() + .filter(QueryParamFilter.builder() .build()) .librarySectionID(12L) .call(); @@ -120,10 +104,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetSessionHistoryResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -139,15 +123,15 @@ public class Application { | 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 | - +| `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/QueryParamFilter.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)** +**[GetSessionHistoryResponse](../../models/operations/GetSessionHistoryResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -155,6 +139,7 @@ public class Application { | models/errors/GetSessionHistoryResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getTranscodeSessions Get Transcode Sessions @@ -164,19 +149,10 @@ Get Transcode Sessions ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetTranscodeSessionsResponse; +import java.lang.Exception; public class Application { @@ -184,7 +160,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions() @@ -193,10 +169,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetTranscodeSessionsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -208,10 +184,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse](../../models/operations/GetTranscodeSessionsResponse.md)** +**[GetTranscodeSessionsResponse](../../models/operations/GetTranscodeSessionsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -219,6 +195,7 @@ public class Application { | models/errors/GetTranscodeSessionsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## stopTranscodeSession Stop a Transcode Session @@ -228,19 +205,10 @@ Stop a Transcode Session ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.StopTranscodeSessionResponse; +import java.lang.Exception; public class Application { @@ -248,7 +216,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession() @@ -256,10 +224,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StopTranscodeSessionResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -277,10 +245,10 @@ public class Application { | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | `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)** +**[StopTranscodeSessionResponse](../../models/operations/StopTranscodeSessionResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index b04a9460..950746ee 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -21,19 +21,10 @@ This will return the media statistics for the server ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetStatisticsResponse; +import java.lang.Exception; public class Application { @@ -41,7 +32,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetStatisticsResponse res = sdk.statistics().getStatistics() @@ -51,10 +42,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetStatisticsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetStatisticsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -70,12 +61,12 @@ public class Application { | 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 | - +| `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)** +**[GetStatisticsResponse](../../models/operations/GetStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -83,6 +74,7 @@ public class Application { | models/errors/GetStatisticsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getResourcesStatistics This will return the resources for the server @@ -92,19 +84,10 @@ This will return the resources for the server ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetResourcesStatisticsResponse; +import java.lang.Exception; public class Application { @@ -112,7 +95,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics() @@ -122,10 +105,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetResourcesStatisticsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetResourcesStatisticsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -141,12 +124,12 @@ public class Application { | 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 | - +| `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)** +**[GetResourcesStatisticsResponse](../../models/operations/GetResourcesStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -154,6 +137,7 @@ public class Application { | models/errors/GetResourcesStatisticsResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## getBandwidthStatistics This will return the bandwidth statistics for the server @@ -163,19 +147,10 @@ This will return the bandwidth statistics for the server ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetBandwidthStatisticsResponse; +import java.lang.Exception; public class Application { @@ -183,7 +158,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics() @@ -193,10 +168,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetBandwidthStatisticsResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetBandwidthStatisticsResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -212,12 +187,12 @@ public class Application { | 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 | - +| `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)** +**[GetBandwidthStatisticsResponse](../../models/operations/GetBandwidthStatisticsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index 4d28a490..9329525d 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -22,19 +22,10 @@ Querying status of updates ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetUpdateStatusResponse; +import java.lang.Exception; public class Application { @@ -42,7 +33,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetUpdateStatusResponse res = sdk.updater().getUpdateStatus() @@ -51,10 +42,10 @@ public class Application { if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetUpdateStatusResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -66,10 +57,10 @@ public class Application { } ``` - ### Response -**[lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse](../../models/operations/GetUpdateStatusResponse.md)** +**[GetUpdateStatusResponse](../../models/operations/GetUpdateStatusResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -77,6 +68,7 @@ public class Application { | models/errors/GetUpdateStatusResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## checkForUpdates Checking for updates @@ -86,19 +78,11 @@ Checking for updates ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.CheckForUpdatesResponse; +import dev.plexapi.sdk.models.operations.Download; +import java.lang.Exception; public class Application { @@ -106,7 +90,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); CheckForUpdatesResponse res = sdk.updater().checkForUpdates() @@ -114,10 +98,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.CheckForUpdatesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -131,14 +115,14 @@ public class Application { ### 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 | - +| 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)** +**[CheckForUpdatesResponse](../../models/operations/CheckForUpdatesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -146,6 +130,7 @@ public class Application { | 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 @@ -156,19 +141,12 @@ Note that these two parameters are effectively mutually exclusive. The `tonight` ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.ApplyUpdatesResponse; +import dev.plexapi.sdk.models.operations.Skip; +import dev.plexapi.sdk.models.operations.Tonight; +import java.lang.Exception; public class Application { @@ -176,7 +154,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); ApplyUpdatesResponse res = sdk.updater().applyUpdates() @@ -185,10 +163,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.ApplyUpdatesResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -204,13 +182,13 @@ public class Application { | 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 | - +| `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 [Release] entry for this version will have the `state` set to `skipped`. | 1 | ### Response -**[lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse](../../models/operations/ApplyUpdatesResponse.md)** +**[ApplyUpdatesResponse](../../models/operations/ApplyUpdatesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 04a21cea..18a26609 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -20,19 +20,12 @@ Get the timeline for a media item ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetTimelineRequest; +import dev.plexapi.sdk.models.operations.GetTimelineResponse; +import dev.plexapi.sdk.models.operations.State; +import java.lang.Exception; public class Application { @@ -40,7 +33,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); GetTimelineRequest req = GetTimelineRequest.builder() @@ -61,10 +54,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetTimelineResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetTimelineResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -78,14 +71,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `request` | [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)** +**[GetTimelineResponse](../../models/operations/GetTimelineResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -93,6 +86,7 @@ public class Application { | models/errors/GetTimelineResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | + ## startUniversalTranscode Begin a Universal Transcode Session @@ -102,19 +96,11 @@ Begin a Universal Transcode Session ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.StartUniversalTranscodeRequest; +import dev.plexapi.sdk.models.operations.StartUniversalTranscodeResponse; +import java.lang.Exception; public class Application { @@ -122,7 +108,7 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder() @@ -149,10 +135,10 @@ public class Application { .call(); // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.StartUniversalTranscodeResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -166,14 +152,14 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [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)** +**[StartUniversalTranscodeResponse](../../models/operations/StartUniversalTranscodeResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 5d882d31..ae4e96fd 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -8,9 +8,9 @@ API Calls that perform operations with Plex Media Server Watchlists ### Available Operations -* [getWatchlist](#getwatchlist) - Get User Watchlist +* [getWatchList](#getwatchlist) - Get User Watchlist -## getWatchlist +## getWatchList Get User Watchlist @@ -19,19 +19,12 @@ Get User Watchlist ```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; +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.Filter; +import dev.plexapi.sdk.models.operations.GetWatchListRequest; +import dev.plexapi.sdk.models.operations.GetWatchListResponse; +import java.lang.Exception; public class Application { @@ -39,25 +32,27 @@ public class Application { try { PlexAPI sdk = PlexAPI.builder() .accessToken("") - .xPlexClientIdentifier("Postman") + .xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40") .build(); - GetWatchlistRequest req = GetWatchlistRequest.builder() - .filter(PathParamFilter.RELEASED) - .xPlexToken("") + GetWatchListRequest req = GetWatchListRequest.builder() + .filter(Filter.AVAILABLE) + .xPlexToken("CV5xoxjTpFKUzBTShsaf") + .xPlexContainerStart(0) + .xPlexContainerSize(50) .build(); - GetWatchlistResponse res = sdk.watchlist().getWatchlist() + GetWatchListResponse res = sdk.watchlist().getWatchList() .request(req) .call(); if (res.object().isPresent()) { // handle response } - } catch (lukehagar.plexapi.plexapi.models.errors.GetWatchlistResponseBody e) { + } catch (dev.plexapi.sdk.models.errors.GetWatchListResponseBody e) { // handle exception throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { @@ -71,18 +66,18 @@ public class Application { ### 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. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `request` | [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)** +**[GetWatchListResponse](../../models/operations/GetWatchListResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/GetWatchlistResponseBody | 401 | application/json | +| models/errors/GetWatchListResponseBody | 401 | application/json | | models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/src/main/java/lukehagar/plexapi/plexapi/Activities.java b/src/main/java/dev/plexapi/sdk/Activities.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/Activities.java rename to src/main/java/dev/plexapi/sdk/Activities.java index 070749e0..ec833cad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Activities.java +++ b/src/main/java/dev/plexapi/sdk/Activities.java @@ -1,29 +1,32 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.CancelServerActivitiesResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.CancelServerActivitiesRequest; +import dev.plexapi.sdk.models.operations.CancelServerActivitiesRequestBuilder; +import dev.plexapi.sdk.models.operations.CancelServerActivitiesResponse; +import dev.plexapi.sdk.models.operations.GetServerActivitiesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerActivitiesResponse; +import dev.plexapi.sdk.models.operations.GetServerActivitiesResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * 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. @@ -51,8 +54,8 @@ public class Activities implements * Get Server Activities * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesRequestBuilder getServerActivities() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesRequestBuilder(this); + public GetServerActivitiesRequestBuilder getServerActivities() { + return new GetServerActivitiesRequestBuilder(this); } /** @@ -61,7 +64,7 @@ public class Activities implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse getServerActivitiesDirect() throws Exception { + public GetServerActivitiesResponse getServerActivitiesDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -80,7 +83,10 @@ public class Activities implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -88,18 +94,28 @@ public class Activities implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getServerActivities", + Optional.of(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()), + new AfterSuccessContextImpl( + "getServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -107,28 +123,28 @@ public class Activities implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse + GetServerActivitiesResponse.Builder _resBuilder = + GetServerActivitiesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse _res = _resBuilder.build(); + 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( + GetServerActivitiesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -137,14 +153,14 @@ public class Activities implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetServerActivitiesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -152,14 +168,14 @@ public class Activities implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -169,8 +185,8 @@ public class Activities implements * Cancel Server Activities * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequestBuilder cancelServerActivities() { - return new lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequestBuilder(this); + public CancelServerActivitiesRequestBuilder cancelServerActivities() { + return new CancelServerActivitiesRequestBuilder(this); } /** @@ -180,10 +196,10 @@ public class Activities implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse cancelServerActivities( + public CancelServerActivitiesResponse cancelServerActivities( String activityUUID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest request = - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest + CancelServerActivitiesRequest request = + CancelServerActivitiesRequest .builder() .activityUUID(activityUUID) .build(); @@ -191,7 +207,7 @@ public class Activities implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest.class, + CancelServerActivitiesRequest.class, _baseUrl, "/activities/{activityUUID}", request, this.sdkConfiguration.globals); @@ -208,7 +224,10 @@ public class Activities implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "cancelServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -216,18 +235,28 @@ public class Activities implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "cancelServerActivities", + Optional.of(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()), + new AfterSuccessContextImpl( + "cancelServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "cancelServerActivities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -235,14 +264,14 @@ public class Activities implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse + CancelServerActivitiesResponse.Builder _resBuilder = + CancelServerActivitiesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse _res = _resBuilder.build(); + CancelServerActivitiesResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -254,14 +283,14 @@ public class Activities implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CancelServerActivitiesResponseBody _out = Utils.mapper().readValue( + CancelServerActivitiesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -269,14 +298,14 @@ public class Activities implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/dev/plexapi/sdk/Authentication.java b/src/main/java/dev/plexapi/sdk/Authentication.java new file mode 100644 index 00000000..0e1393eb --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/Authentication.java @@ -0,0 +1,684 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.models.errors.GetSourceConnectionInformationResponseBody; +import dev.plexapi.sdk.models.errors.GetTransientTokenResponseBody; +import dev.plexapi.sdk.models.errors.GetUserDetailsResponseBody; +import dev.plexapi.sdk.models.errors.PostUsersSignInDataResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSourceConnectionInformationRequest; +import dev.plexapi.sdk.models.operations.GetSourceConnectionInformationRequestBuilder; +import dev.plexapi.sdk.models.operations.GetSourceConnectionInformationResponse; +import dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType; +import dev.plexapi.sdk.models.operations.GetTransientTokenRequest; +import dev.plexapi.sdk.models.operations.GetTransientTokenRequestBuilder; +import dev.plexapi.sdk.models.operations.GetTransientTokenResponse; +import dev.plexapi.sdk.models.operations.GetUserDetailsRequest; +import dev.plexapi.sdk.models.operations.GetUserDetailsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetUserDetailsResponse; +import dev.plexapi.sdk.models.operations.GetUserDetailsUserPlexAccount; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequest; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBuilder; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse; +import dev.plexapi.sdk.models.operations.PostUsersSignInDataUserPlexAccount; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.Scope; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.SerializedBody; +import dev.plexapi.sdk.utils.Utils.JsonShape; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.HashMap; +import java.util.List; +import java.util.Optional; + +/** + * API Calls regarding authentication for Plex Media Server + * + */ +public class Authentication implements + MethodCallGetTransientToken, + MethodCallGetSourceConnectionInformation, + MethodCallGetUserDetails, + MethodCallPostUsersSignInData { + + /** + * GET_USER_DETAILS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_USER_DETAILS_SERVERS = { + "https://plex.tv/api/v2", + }; + + /** + * POST_USERS_SIGN_IN_DATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] POST_USERS_SIGN_IN_DATA_SERVERS = { + "https://plex.tv/api/v2", + }; + + 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 GetTransientTokenRequestBuilder getTransientToken() { + return new 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 GetTransientTokenResponse getTransientToken( + GetTransientTokenQueryParamType type, + Scope scope) throws Exception { + GetTransientTokenRequest request = + 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( + 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getTransientToken", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getTransientToken", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetTransientTokenResponse.Builder _resBuilder = + GetTransientTokenResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + 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.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetTransientTokenResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * 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 GetSourceConnectionInformationRequestBuilder getSourceConnectionInformation() { + return new 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 GetSourceConnectionInformationResponse getSourceConnectionInformation( + String source) throws Exception { + GetSourceConnectionInformationRequest request = + 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( + 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getSourceConnectionInformation", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getSourceConnectionInformation", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetSourceConnectionInformationResponse.Builder _resBuilder = + GetSourceConnectionInformationResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + 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.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetSourceConnectionInformationResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get User Data By Token + * Get the User data from the provided X-Plex-Token + * @return The call builder + */ + public GetUserDetailsRequestBuilder getUserDetails() { + return new GetUserDetailsRequestBuilder(this); + } + + /** + * Get User Data By Token + * Get the User data from the provided X-Plex-Token + * @param xPlexToken Plex Authentication Token + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetUserDetailsResponse getUserDetails( + String xPlexToken) throws Exception { + return getUserDetails(xPlexToken, Optional.empty()); + } + + /** + * Get User Data By Token + * Get the User data from the provided X-Plex-Token + * @param xPlexToken Plex Authentication Token + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetUserDetailsResponse getUserDetails( + String xPlexToken, + Optional serverURL) throws Exception { + GetUserDetailsRequest request = + GetUserDetailsRequest + .builder() + .xPlexToken(xPlexToken) + .build(); + + String _baseUrl = Utils.templateUrl(GET_USER_DETAILS_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/user"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetUserDetailsRequest.class, + request, + this.sdkConfiguration.globals)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getUserDetails", + Optional.of(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( + "getUserDetails", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getUserDetails", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getUserDetails", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetUserDetailsResponse.Builder _resBuilder = + GetUserDetailsResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetUserDetailsResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetUserDetailsUserPlexAccount _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withUserPlexAccount(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetUserDetailsResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get User SignIn Data + * Sign in user with username and password and return user data with Plex authentication token + * @return The call builder + */ + public PostUsersSignInDataRequestBuilder postUsersSignInData() { + return new PostUsersSignInDataRequestBuilder(this); + } + + /** + * Get User SignIn Data + * Sign in user with username and password and return user data with Plex authentication token + * @return The response from the API call + * @throws Exception if the API call fails + */ + public PostUsersSignInDataResponse postUsersSignInDataDirect() throws Exception { + return postUsersSignInData(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Get User SignIn Data + * Sign in user with username and password and return user data with Plex authentication token + * @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 requestBody Login credentials + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public PostUsersSignInDataResponse postUsersSignInData( + Optional xPlexClientIdentifier, + Optional requestBody, + Optional serverURL) throws Exception { + PostUsersSignInDataRequest request = + PostUsersSignInDataRequest + .builder() + .xPlexClientIdentifier(xPlexClientIdentifier) + .requestBody(requestBody) + .build(); + + String _baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/users/signin"); + + HTTPRequest _req = new HTTPRequest(_url, "POST"); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); + SerializedBody _serializedRequestBody = Utils.serializeRequestBody( + _convertedRequest, + "requestBody", + "form", + false); + _req.setBody(Optional.ofNullable(_serializedRequestBody)); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + PostUsersSignInDataRequest.class, + request, + this.sdkConfiguration.globals)); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "post-users-sign-in-data", + Optional.of(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( + "post-users-sign-in-data", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "post-users-sign-in-data", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "post-users-sign-in-data", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PostUsersSignInDataResponse.Builder _resBuilder = + PostUsersSignInDataResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + PostUsersSignInDataResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + PostUsersSignInDataUserPlexAccount _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withUserPlexAccount(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + PostUsersSignInDataResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Butler.java b/src/main/java/dev/plexapi/sdk/Butler.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/Butler.java rename to src/main/java/dev/plexapi/sdk/Butler.java index 0665fb65..c6b40bc1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Butler.java +++ b/src/main/java/dev/plexapi/sdk/Butler.java @@ -1,29 +1,44 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.errors.StartAllTasksResponseBody; +import dev.plexapi.sdk.models.errors.StartTaskResponseBody; +import dev.plexapi.sdk.models.errors.StopAllTasksResponseBody; +import dev.plexapi.sdk.models.errors.StopTaskResponseBody; +import dev.plexapi.sdk.models.operations.GetButlerTasksRequestBuilder; +import dev.plexapi.sdk.models.operations.GetButlerTasksResponse; +import dev.plexapi.sdk.models.operations.GetButlerTasksResponseBody; +import dev.plexapi.sdk.models.operations.PathParamTaskName; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.StartAllTasksRequestBuilder; +import dev.plexapi.sdk.models.operations.StartAllTasksResponse; +import dev.plexapi.sdk.models.operations.StartTaskRequest; +import dev.plexapi.sdk.models.operations.StartTaskRequestBuilder; +import dev.plexapi.sdk.models.operations.StartTaskResponse; +import dev.plexapi.sdk.models.operations.StopAllTasksRequestBuilder; +import dev.plexapi.sdk.models.operations.StopAllTasksResponse; +import dev.plexapi.sdk.models.operations.StopTaskRequest; +import dev.plexapi.sdk.models.operations.StopTaskRequestBuilder; +import dev.plexapi.sdk.models.operations.StopTaskResponse; +import dev.plexapi.sdk.models.operations.TaskName; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * Butler is the task manager of the Plex Media Server Ecosystem. @@ -48,8 +63,8 @@ public class Butler implements * 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); + public GetButlerTasksRequestBuilder getButlerTasks() { + return new GetButlerTasksRequestBuilder(this); } /** @@ -58,7 +73,7 @@ public class Butler implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse getButlerTasksDirect() throws Exception { + public GetButlerTasksResponse getButlerTasksDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -77,7 +92,10 @@ public class Butler implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getButlerTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -85,18 +103,28 @@ public class Butler implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getButlerTasks", + Optional.of(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()), + new AfterSuccessContextImpl( + "getButlerTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getButlerTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -104,28 +132,28 @@ public class Butler implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse + GetButlerTasksResponse.Builder _resBuilder = + GetButlerTasksResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse _res = _resBuilder.build(); + 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( + GetButlerTasksResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -134,14 +162,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetButlerTasksResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetButlerTasksResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -149,14 +177,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -171,8 +199,8 @@ public class Butler implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.StartAllTasksRequestBuilder startAllTasks() { - return new lukehagar.plexapi.plexapi.models.operations.StartAllTasksRequestBuilder(this); + public StartAllTasksRequestBuilder startAllTasks() { + return new StartAllTasksRequestBuilder(this); } /** @@ -186,7 +214,7 @@ public class Butler implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse startAllTasksDirect() throws Exception { + public StartAllTasksResponse startAllTasksDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -205,7 +233,10 @@ public class Butler implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "startAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -213,18 +244,28 @@ public class Butler implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "startAllTasks", + Optional.of(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()), + new AfterSuccessContextImpl( + "startAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "startAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -232,14 +273,14 @@ public class Butler implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse + StartAllTasksResponse.Builder _resBuilder = + StartAllTasksResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse _res = _resBuilder.build(); + StartAllTasksResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -251,14 +292,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartAllTasksResponseBody _out = Utils.mapper().readValue( + StartAllTasksResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -266,14 +307,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -284,8 +325,8 @@ public class Butler implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.StopAllTasksRequestBuilder stopAllTasks() { - return new lukehagar.plexapi.plexapi.models.operations.StopAllTasksRequestBuilder(this); + public StopAllTasksRequestBuilder stopAllTasks() { + return new StopAllTasksRequestBuilder(this); } /** @@ -295,7 +336,7 @@ public class Butler implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse stopAllTasksDirect() throws Exception { + public StopAllTasksResponse stopAllTasksDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -314,7 +355,10 @@ public class Butler implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "stopAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -322,18 +366,28 @@ public class Butler implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "stopAllTasks", + Optional.of(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()), + new AfterSuccessContextImpl( + "stopAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "stopAllTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -341,14 +395,14 @@ public class Butler implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse + StopAllTasksResponse.Builder _resBuilder = + StopAllTasksResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse _res = _resBuilder.build(); + StopAllTasksResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -360,14 +414,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopAllTasksResponseBody _out = Utils.mapper().readValue( + StopAllTasksResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -375,14 +429,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -397,8 +451,8 @@ public class Butler implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.StartTaskRequestBuilder startTask() { - return new lukehagar.plexapi.plexapi.models.operations.StartTaskRequestBuilder(this); + public StartTaskRequestBuilder startTask() { + return new StartTaskRequestBuilder(this); } /** @@ -413,10 +467,10 @@ public class Butler implements * @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 + public StartTaskResponse startTask( + TaskName taskName) throws Exception { + StartTaskRequest request = + StartTaskRequest .builder() .taskName(taskName) .build(); @@ -424,7 +478,7 @@ public class Butler implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StartTaskRequest.class, + StartTaskRequest.class, _baseUrl, "/butler/{taskName}", request, this.sdkConfiguration.globals); @@ -441,7 +495,10 @@ public class Butler implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "startTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -449,18 +506,28 @@ public class Butler implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "startTask", + Optional.of(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()), + new AfterSuccessContextImpl( + "startTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "startTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -468,14 +535,14 @@ public class Butler implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse + StartTaskResponse.Builder _resBuilder = + StartTaskResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse _res = _resBuilder.build(); + StartTaskResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200", "202")) { // no content @@ -487,14 +554,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartTaskResponseBody _out = Utils.mapper().readValue( + StartTaskResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -502,14 +569,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -520,8 +587,8 @@ public class Butler implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.StopTaskRequestBuilder stopTask() { - return new lukehagar.plexapi.plexapi.models.operations.StopTaskRequestBuilder(this); + public StopTaskRequestBuilder stopTask() { + return new StopTaskRequestBuilder(this); } /** @@ -532,10 +599,10 @@ public class Butler implements * @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 + public StopTaskResponse stopTask( + PathParamTaskName taskName) throws Exception { + StopTaskRequest request = + StopTaskRequest .builder() .taskName(taskName) .build(); @@ -543,7 +610,7 @@ public class Butler implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StopTaskRequest.class, + StopTaskRequest.class, _baseUrl, "/butler/{taskName}", request, this.sdkConfiguration.globals); @@ -560,7 +627,10 @@ public class Butler implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "stopTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -568,18 +638,28 @@ public class Butler implements 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()), + new AfterErrorContextImpl( + "stopTask", + Optional.of(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()), + new AfterSuccessContextImpl( + "stopTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "stopTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -587,14 +667,14 @@ public class Butler implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse + StopTaskResponse.Builder _resBuilder = + StopTaskResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse _res = _resBuilder.build(); + StopTaskResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -606,14 +686,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopTaskResponseBody _out = Utils.mapper().readValue( + StopTaskResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -621,14 +701,14 @@ public class Butler implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Hubs.java b/src/main/java/dev/plexapi/sdk/Hubs.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/Hubs.java rename to src/main/java/dev/plexapi/sdk/Hubs.java index 6c60d2eb..63e68a0b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Hubs.java +++ b/src/main/java/dev/plexapi/sdk/Hubs.java @@ -1,30 +1,36 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetGlobalHubsRequest; +import dev.plexapi.sdk.models.operations.GetGlobalHubsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetGlobalHubsResponse; +import dev.plexapi.sdk.models.operations.GetGlobalHubsResponseBody; +import dev.plexapi.sdk.models.operations.GetLibraryHubsRequest; +import dev.plexapi.sdk.models.operations.GetLibraryHubsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetLibraryHubsResponse; +import dev.plexapi.sdk.models.operations.GetLibraryHubsResponseBody; +import dev.plexapi.sdk.models.operations.OnlyTransient; +import dev.plexapi.sdk.models.operations.QueryParamOnlyTransient; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. @@ -46,8 +52,8 @@ public class Hubs implements * 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); + public GetGlobalHubsRequestBuilder getGlobalHubs() { + return new GetGlobalHubsRequestBuilder(this); } /** @@ -56,9 +62,10 @@ public class Hubs implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse getGlobalHubsDirect() throws Exception { + public GetGlobalHubsResponse getGlobalHubsDirect() throws Exception { return getGlobalHubs(Optional.empty(), Optional.empty()); } + /** * Get Global Hubs * Get Global Hubs filtered by the parameters provided. @@ -67,11 +74,11 @@ public class Hubs implements * @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 + public GetGlobalHubsResponse getGlobalHubs( + Optional count, + Optional onlyTransient) throws Exception { + GetGlobalHubsRequest request = + GetGlobalHubsRequest .builder() .count(count) .onlyTransient(onlyTransient) @@ -89,7 +96,7 @@ public class Hubs implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequest.class, + GetGlobalHubsRequest.class, request, this.sdkConfiguration.globals)); @@ -100,7 +107,10 @@ public class Hubs implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getGlobalHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -108,18 +118,28 @@ public class Hubs implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getGlobalHubs", + Optional.of(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()), + new AfterSuccessContextImpl( + "getGlobalHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getGlobalHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -127,28 +147,28 @@ public class Hubs implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse + GetGlobalHubsResponse.Builder _resBuilder = + GetGlobalHubsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse _res = _resBuilder.build(); + 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( + GetGlobalHubsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -157,14 +177,14 @@ public class Hubs implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetGlobalHubsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -172,14 +192,14 @@ public class Hubs implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -190,8 +210,8 @@ public class Hubs implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequestBuilder getLibraryHubs() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequestBuilder(this); + public GetLibraryHubsRequestBuilder getLibraryHubs() { + return new GetLibraryHubsRequestBuilder(this); } /** @@ -202,10 +222,11 @@ public class Hubs implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse getLibraryHubs( + public 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 @@ -216,12 +237,12 @@ public class Hubs implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse getLibraryHubs( + public GetLibraryHubsResponse getLibraryHubs( double sectionId, - Optional count, - Optional onlyTransient) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest + Optional count, + Optional onlyTransient) throws Exception { + GetLibraryHubsRequest request = + GetLibraryHubsRequest .builder() .sectionId(sectionId) .count(count) @@ -231,7 +252,7 @@ public class Hubs implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest.class, + GetLibraryHubsRequest.class, _baseUrl, "/hubs/sections/{sectionId}", request, this.sdkConfiguration.globals); @@ -242,7 +263,7 @@ public class Hubs implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest.class, + GetLibraryHubsRequest.class, request, this.sdkConfiguration.globals)); @@ -253,7 +274,10 @@ public class Hubs implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getLibraryHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -261,18 +285,28 @@ public class Hubs implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getLibraryHubs", + Optional.of(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()), + new AfterSuccessContextImpl( + "getLibraryHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getLibraryHubs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -280,28 +314,28 @@ public class Hubs implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse + GetLibraryHubsResponse.Builder _resBuilder = + GetLibraryHubsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse _res = _resBuilder.build(); + 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( + GetLibraryHubsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -310,14 +344,14 @@ public class Hubs implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetLibraryHubsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -325,14 +359,14 @@ public class Hubs implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Library.java b/src/main/java/dev/plexapi/sdk/Library.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/Library.java rename to src/main/java/dev/plexapi/sdk/Library.java index 4f3a1e9b..e6735e84 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Library.java +++ b/src/main/java/dev/plexapi/sdk/Library.java @@ -1,30 +1,78 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.DeleteLibraryResponseBody; +import dev.plexapi.sdk.models.errors.GetFileHashResponseBody; +import dev.plexapi.sdk.models.errors.GetRefreshLibraryMetadataResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.DeleteLibraryRequest; +import dev.plexapi.sdk.models.operations.DeleteLibraryRequestBuilder; +import dev.plexapi.sdk.models.operations.DeleteLibraryResponse; +import dev.plexapi.sdk.models.operations.Force; +import dev.plexapi.sdk.models.operations.GetAllLibrariesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetAllLibrariesResponse; +import dev.plexapi.sdk.models.operations.GetAllLibrariesResponseBody; +import dev.plexapi.sdk.models.operations.GetFileHashRequest; +import dev.plexapi.sdk.models.operations.GetFileHashRequestBuilder; +import dev.plexapi.sdk.models.operations.GetFileHashResponse; +import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequest; +import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetLibraryDetailsResponse; +import dev.plexapi.sdk.models.operations.GetLibraryDetailsResponseBody; +import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest; +import dev.plexapi.sdk.models.operations.GetLibraryItemsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse; +import dev.plexapi.sdk.models.operations.GetLibraryItemsResponseBody; +import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyRequest; +import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyRequestBuilder; +import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponse; +import dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponseBody; +import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequest; +import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequestBuilder; +import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponse; +import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponseBody; +import dev.plexapi.sdk.models.operations.GetOnDeckRequestBuilder; +import dev.plexapi.sdk.models.operations.GetOnDeckResponse; +import dev.plexapi.sdk.models.operations.GetOnDeckResponseBody; +import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest; +import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequestBuilder; +import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse; +import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponseBody; +import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataRequest; +import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataRequestBuilder; +import dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataResponse; +import dev.plexapi.sdk.models.operations.GetSearchLibraryRequest; +import dev.plexapi.sdk.models.operations.GetSearchLibraryRequestBuilder; +import dev.plexapi.sdk.models.operations.GetSearchLibraryResponse; +import dev.plexapi.sdk.models.operations.GetSearchLibraryResponseBody; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentQueryParamType; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentRequest; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentRequestBuilder; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentResponse; +import dev.plexapi.sdk.models.operations.GetTopWatchedContentResponseBody; +import dev.plexapi.sdk.models.operations.IncludeDetails; +import dev.plexapi.sdk.models.operations.QueryParamType; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Exception; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * API Calls interacting with Plex Media Server Libraries @@ -33,13 +81,13 @@ import org.openapitools.jackson.nullable.JsonNullable; public class Library implements MethodCallGetFileHash, MethodCallGetRecentlyAdded, - MethodCallGetLibraries, - MethodCallGetLibrary, + MethodCallGetAllLibraries, + MethodCallGetLibraryDetails, MethodCallDeleteLibrary, MethodCallGetLibraryItems, - MethodCallRefreshLibrary, - MethodCallSearchLibrary, - MethodCallGetMetadata, + MethodCallGetRefreshLibraryMetadata, + MethodCallGetSearchLibrary, + MethodCallGetMetaDataByRatingKey, MethodCallGetMetadataChildren, MethodCallGetTopWatchedContent, MethodCallGetOnDeck { @@ -56,8 +104,8 @@ public class Library implements * 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); + public GetFileHashRequestBuilder getFileHash() { + return new GetFileHashRequestBuilder(this); } /** @@ -67,10 +115,11 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse getFileHash( + public GetFileHashResponse getFileHash( String url) throws Exception { return getFileHash(url, Optional.empty()); } + /** * Get Hash Value * This resource returns hash values for local files @@ -79,11 +128,11 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse getFileHash( + public GetFileHashResponse getFileHash( String url, - Optional type) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest request = - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest + Optional type) throws Exception { + GetFileHashRequest request = + GetFileHashRequest .builder() .url(url) .type(type) @@ -101,7 +150,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest.class, + GetFileHashRequest.class, request, this.sdkConfiguration.globals)); @@ -112,7 +161,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getFileHash", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -120,18 +172,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getFileHash", + Optional.of(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()), + new AfterSuccessContextImpl( + "getFileHash", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getFileHash", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -139,14 +201,14 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse + GetFileHashResponse.Builder _resBuilder = + GetFileHashResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse _res = _resBuilder.build(); + GetFileHashResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -158,14 +220,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetFileHashResponseBody _out = Utils.mapper().readValue( + GetFileHashResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -173,14 +235,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -191,8 +253,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedRequestBuilder getRecentlyAdded() { - return new lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedRequestBuilder(this); + public GetRecentlyAddedRequestBuilder getRecentlyAdded() { + return new GetRecentlyAddedRequestBuilder(this); } /** @@ -202,7 +264,35 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse getRecentlyAddedDirect() throws Exception { + public GetRecentlyAddedResponse getRecentlyAddedDirect() throws Exception { + return getRecentlyAdded(Optional.empty(), Optional.empty()); + } + + /** + * Get Recently Added + * This endpoint will return the recently added content. + * + * @param xPlexContainerStart 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. + By default this is 0 + + * @param xPlexContainerSize 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. + By default this is 50 + + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetRecentlyAddedResponse getRecentlyAdded( + Optional xPlexContainerStart, + Optional xPlexContainerSize) throws Exception { + GetRecentlyAddedRequest request = + GetRecentlyAddedRequest + .builder() + .xPlexContainerStart(xPlexContainerStart) + .xPlexContainerSize(xPlexContainerSize) + .build(); + String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -214,6 +304,11 @@ public class Library implements .addHeader("user-agent", this.sdkConfiguration.userAgent); + _req.addQueryParams(Utils.getQueryParams( + GetRecentlyAddedRequest.class, + request, + this.sdkConfiguration.globals)); + Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -221,7 +316,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getRecentlyAdded", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -229,18 +327,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getRecentlyAdded", + Optional.of(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()), + new AfterSuccessContextImpl( + "getRecentlyAdded", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getRecentlyAdded", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -248,28 +356,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse + GetRecentlyAddedResponse.Builder _resBuilder = + GetRecentlyAddedResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse _res = _resBuilder.build(); + 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( + GetRecentlyAddedResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -278,14 +386,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetRecentlyAddedResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -293,14 +401,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -316,8 +424,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetLibrariesRequestBuilder getLibraries() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibrariesRequestBuilder(this); + public GetAllLibrariesRequestBuilder getAllLibraries() { + return new GetAllLibrariesRequestBuilder(this); } /** @@ -332,7 +440,7 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse getLibrariesDirect() throws Exception { + public GetAllLibrariesResponse getAllLibrariesDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -351,7 +459,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-all-libraries", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -359,18 +470,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-all-libraries", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-all-libraries", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-all-libraries", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -378,28 +499,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse + GetAllLibrariesResponse.Builder _resBuilder = + GetAllLibrariesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse _res = _resBuilder.build(); + GetAllLibrariesResponse _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( + GetAllLibrariesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -408,14 +529,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibrariesResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetAllLibrariesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -423,14 +544,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -479,8 +600,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryRequestBuilder getLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryRequestBuilder(this); + public GetLibraryDetailsRequestBuilder getLibraryDetails() { + return new GetLibraryDetailsRequestBuilder(this); } /** @@ -525,14 +646,17 @@ public class Library implements * * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * - * @param sectionId the Id of the library to query + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + * @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()); + public GetLibraryDetailsResponse getLibraryDetails( + int sectionKey) throws Exception { + return getLibraryDetails(sectionKey, Optional.empty()); } + /** * Get Library Details * ## Library Details Endpoint @@ -575,29 +699,31 @@ public class Library implements * * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * - * @param sectionId the Id of the library to query + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + * @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 + public GetLibraryDetailsResponse getLibraryDetails( + int sectionKey, + Optional includeDetails) throws Exception { + GetLibraryDetailsRequest request = + GetLibraryDetailsRequest .builder() - .sectionId(sectionId) + .sectionKey(sectionKey) .includeDetails(includeDetails) .build(); String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest.class, + GetLibraryDetailsRequest.class, _baseUrl, - "/library/sections/{sectionId}", + "/library/sections/{sectionKey}", request, this.sdkConfiguration.globals); HTTPRequest _req = new HTTPRequest(_url, "GET"); @@ -606,7 +732,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest.class, + GetLibraryDetailsRequest.class, request, this.sdkConfiguration.globals)); @@ -617,7 +743,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-library-details", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -625,18 +754,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-library-details", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-library-details", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-library-details", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -644,28 +783,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse + GetLibraryDetailsResponse.Builder _resBuilder = + GetLibraryDetailsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse _res = _resBuilder.build(); + GetLibraryDetailsResponse _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( + GetLibraryDetailsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -674,14 +813,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetLibraryDetailsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -689,48 +828,50 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } /** * Delete Library Section - * Delate a library using a specific section + * Delete a library using a specific section id * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequestBuilder deleteLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequestBuilder(this); + public DeleteLibraryRequestBuilder deleteLibrary() { + return new DeleteLibraryRequestBuilder(this); } /** * Delete Library Section - * Delate a library using a specific section - * @param sectionId the Id of the library to query + * Delete a library using a specific section id + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + * @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 + public DeleteLibraryResponse deleteLibrary( + int sectionKey) throws Exception { + DeleteLibraryRequest request = + DeleteLibraryRequest .builder() - .sectionId(sectionId) + .sectionKey(sectionKey) .build(); String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequest.class, + DeleteLibraryRequest.class, _baseUrl, - "/library/sections/{sectionId}", + "/library/sections/{sectionKey}", request, this.sdkConfiguration.globals); HTTPRequest _req = new HTTPRequest(_url, "DELETE"); @@ -745,7 +886,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteLibrary", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -753,18 +897,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteLibrary", + Optional.of(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()), + new AfterSuccessContextImpl( + "deleteLibrary", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteLibrary", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -772,14 +926,14 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse + DeleteLibraryResponse.Builder _resBuilder = + DeleteLibraryResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse _res = _resBuilder.build(); + DeleteLibraryResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -791,14 +945,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.DeleteLibraryResponseBody _out = Utils.mapper().readValue( + DeleteLibraryResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -806,14 +960,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -843,8 +997,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequestBuilder getLibraryItems() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequestBuilder(this); + public GetLibraryItemsRequestBuilder getLibraryItems() { + return new GetLibraryItemsRequestBuilder(this); } /** @@ -870,64 +1024,18 @@ public class Library implements * - `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 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.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(); - + public GetLibraryItemsResponse getLibraryItems( + GetLibraryItemsRequest request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest.class, + GetLibraryItemsRequest.class, _baseUrl, - "/library/sections/{sectionId}/{tag}", + "/library/sections/{sectionKey}/{tag}", request, this.sdkConfiguration.globals); HTTPRequest _req = new HTTPRequest(_url, "GET"); @@ -936,7 +1044,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest.class, + GetLibraryItemsRequest.class, request, this.sdkConfiguration.globals)); @@ -947,7 +1055,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-library-items", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -955,18 +1066,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-library-items", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-library-items", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-library-items", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -974,28 +1095,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse + GetLibraryItemsResponse.Builder _resBuilder = + GetLibraryItemsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse _res = _resBuilder.build(); + 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( + GetLibraryItemsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1004,14 +1125,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetLibraryItemsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1019,50 +1140,70 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } /** - * Refresh Library - * This endpoint Refreshes the library. + * Refresh Metadata Of The Library + * This endpoint Refreshes all the Metadata of the library. * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequestBuilder refreshLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequestBuilder(this); + public GetRefreshLibraryMetadataRequestBuilder getRefreshLibraryMetadata() { + return new GetRefreshLibraryMetadataRequestBuilder(this); } /** - * Refresh Library - * This endpoint Refreshes the library. + * Refresh Metadata Of The Library + * This endpoint Refreshes all the Metadata of the library. * - * @param sectionId the Id of the library to refresh + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + * @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 + public GetRefreshLibraryMetadataResponse getRefreshLibraryMetadata( + int sectionKey) throws Exception { + return getRefreshLibraryMetadata(sectionKey, Optional.empty()); + } + + /** + * Refresh Metadata Of The Library + * This endpoint Refreshes all the Metadata of the library. + * + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + + * @param force Force the refresh even if the library is already being refreshed. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetRefreshLibraryMetadataResponse getRefreshLibraryMetadata( + int sectionKey, + Optional force) throws Exception { + GetRefreshLibraryMetadataRequest request = + GetRefreshLibraryMetadataRequest .builder() - .sectionId(sectionId) + .sectionKey(sectionKey) + .force(force) .build(); String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequest.class, + GetRefreshLibraryMetadataRequest.class, _baseUrl, - "/library/sections/{sectionId}/refresh", + "/library/sections/{sectionKey}/refresh", request, this.sdkConfiguration.globals); HTTPRequest _req = new HTTPRequest(_url, "GET"); @@ -1070,6 +1211,11 @@ public class Library implements .addHeader("user-agent", this.sdkConfiguration.userAgent); + _req.addQueryParams(Utils.getQueryParams( + GetRefreshLibraryMetadataRequest.class, + request, + this.sdkConfiguration.globals)); + Utils.configureSecurity(_req, this.sdkConfiguration.securitySource.getSecurity()); @@ -1077,7 +1223,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-refresh-library-metadata", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1085,18 +1234,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-refresh-library-metadata", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-refresh-library-metadata", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-refresh-library-metadata", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1104,14 +1263,14 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse + GetRefreshLibraryMetadataResponse.Builder _resBuilder = + GetRefreshLibraryMetadataResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse _res = _resBuilder.build(); + GetRefreshLibraryMetadataResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -1123,14 +1282,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.RefreshLibraryResponseBody _out = Utils.mapper().readValue( + GetRefreshLibraryMetadataResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1138,14 +1297,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1173,8 +1332,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequestBuilder searchLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequestBuilder(this); + public GetSearchLibraryRequestBuilder getSearchLibrary() { + return new GetSearchLibraryRequestBuilder(this); } /** @@ -1198,27 +1357,35 @@ public class Library implements * * > **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 + * @param sectionKey The unique key of the Plex library. + Note: This is unique in the context of the Plex server. + + * @param type The type of media to retrieve. + 1 = movie + 2 = show + 3 = season + 4 = episode + E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * @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 + public GetSearchLibraryResponse getSearchLibrary( + int sectionKey, + QueryParamType type) throws Exception { + GetSearchLibraryRequest request = + GetSearchLibraryRequest .builder() - .sectionId(sectionId) + .sectionKey(sectionKey) .type(type) .build(); String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest.class, + GetSearchLibraryRequest.class, _baseUrl, - "/library/sections/{sectionId}/search", + "/library/sections/{sectionKey}/search", request, this.sdkConfiguration.globals); HTTPRequest _req = new HTTPRequest(_url, "GET"); @@ -1227,7 +1394,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest.class, + GetSearchLibraryRequest.class, request, this.sdkConfiguration.globals)); @@ -1238,7 +1405,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-search-library", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1246,18 +1416,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-search-library", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-search-library", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-search-library", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1265,28 +1445,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse + GetSearchLibraryResponse.Builder _resBuilder = + GetSearchLibraryResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse _res = _resBuilder.build(); + GetSearchLibraryResponse _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( + GetSearchLibraryResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1295,14 +1475,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.SearchLibraryResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetSearchLibraryResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1310,40 +1490,40 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } /** - * Get Items Metadata + * Get Metadata by RatingKey * 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); + public GetMetaDataByRatingKeyRequestBuilder getMetaDataByRatingKey() { + return new GetMetaDataByRatingKeyRequestBuilder(this); } /** - * Get Items Metadata + * Get Metadata by RatingKey * 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 + public GetMetaDataByRatingKeyResponse getMetaDataByRatingKey( + long ratingKey) throws Exception { + GetMetaDataByRatingKeyRequest request = + GetMetaDataByRatingKeyRequest .builder() .ratingKey(ratingKey) .build(); @@ -1351,7 +1531,7 @@ public class Library implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetMetadataRequest.class, + GetMetaDataByRatingKeyRequest.class, _baseUrl, "/library/metadata/{ratingKey}", request, this.sdkConfiguration.globals); @@ -1368,7 +1548,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-meta-data-by-rating-key", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1376,18 +1559,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-meta-data-by-rating-key", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-meta-data-by-rating-key", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-meta-data-by-rating-key", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1395,28 +1588,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse + GetMetaDataByRatingKeyResponse.Builder _resBuilder = + GetMetaDataByRatingKeyResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse _res = _resBuilder.build(); + GetMetaDataByRatingKeyResponse _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( + GetMetaDataByRatingKeyResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1425,14 +1618,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMetadataResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetMetaDataByRatingKeyResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1440,14 +1633,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1458,8 +1651,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequestBuilder getMetadataChildren() { - return new lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequestBuilder(this); + public GetMetadataChildrenRequestBuilder getMetadataChildren() { + return new GetMetadataChildrenRequestBuilder(this); } /** @@ -1470,10 +1663,11 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse getMetadataChildren( + public 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. @@ -1484,11 +1678,11 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse getMetadataChildren( + public GetMetadataChildrenResponse getMetadataChildren( double ratingKey, - Optional includeElements) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest request = - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest + Optional includeElements) throws Exception { + GetMetadataChildrenRequest request = + GetMetadataChildrenRequest .builder() .ratingKey(ratingKey) .includeElements(includeElements) @@ -1497,7 +1691,7 @@ public class Library implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest.class, + GetMetadataChildrenRequest.class, _baseUrl, "/library/metadata/{ratingKey}/children", request, this.sdkConfiguration.globals); @@ -1508,7 +1702,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest.class, + GetMetadataChildrenRequest.class, request, this.sdkConfiguration.globals)); @@ -1519,7 +1713,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getMetadataChildren", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1527,18 +1724,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getMetadataChildren", + Optional.of(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()), + new AfterSuccessContextImpl( + "getMetadataChildren", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getMetadataChildren", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1546,28 +1753,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse + GetMetadataChildrenResponse.Builder _resBuilder = + GetMetadataChildrenResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse _res = _resBuilder.build(); + 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( + GetMetadataChildrenResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1576,14 +1783,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetMetadataChildrenResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1591,14 +1798,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1609,37 +1816,50 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequestBuilder getTopWatchedContent() { - return new lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequestBuilder(this); + public GetTopWatchedContentRequestBuilder getTopWatchedContent() { + return new 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) + * @param type The type of media to retrieve. + 1 = movie + 2 = show + 3 = season + 4 = episode + E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * @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 { + public GetTopWatchedContentResponse getTopWatchedContent( + GetTopWatchedContentQueryParamType 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 type The type of media to retrieve. + 1 = movie + 2 = show + 3 = season + 4 = episode + E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * @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 + public GetTopWatchedContentResponse getTopWatchedContent( + GetTopWatchedContentQueryParamType type, + Optional includeGuids) throws Exception { + GetTopWatchedContentRequest request = + GetTopWatchedContentRequest .builder() .type(type) .includeGuids(includeGuids) @@ -1657,7 +1877,7 @@ public class Library implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequest.class, + GetTopWatchedContentRequest.class, request, this.sdkConfiguration.globals)); @@ -1668,26 +1888,39 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getTopWatchedContent", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getTopWatchedContent", + Optional.of(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()), + new AfterSuccessContextImpl( + "getTopWatchedContent", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getTopWatchedContent", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1695,43 +1928,59 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse + GetTopWatchedContentResponse.Builder _resBuilder = + GetTopWatchedContentResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse _res = _resBuilder.build(); + 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( + GetTopWatchedContentResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { // no content throw new SDKError( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + dev.plexapi.sdk.models.errors.GetTopWatchedContentResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1742,8 +1991,8 @@ public class Library implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetOnDeckRequestBuilder getOnDeck() { - return new lukehagar.plexapi.plexapi.models.operations.GetOnDeckRequestBuilder(this); + public GetOnDeckRequestBuilder getOnDeck() { + return new GetOnDeckRequestBuilder(this); } /** @@ -1753,7 +2002,7 @@ public class Library implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse getOnDeckDirect() throws Exception { + public GetOnDeckResponse getOnDeckDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -1772,7 +2021,10 @@ public class Library implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getOnDeck", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1780,18 +2032,28 @@ public class Library implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getOnDeck", + Optional.of(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()), + new AfterSuccessContextImpl( + "getOnDeck", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getOnDeck", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1799,28 +2061,28 @@ public class Library implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse + GetOnDeckResponse.Builder _resBuilder = + GetOnDeckResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse _res = _resBuilder.build(); + 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( + GetOnDeckResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1829,14 +2091,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetOnDeckResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetOnDeckResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1844,14 +2106,14 @@ public class Library implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Log.java b/src/main/java/dev/plexapi/sdk/Log.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/Log.java rename to src/main/java/dev/plexapi/sdk/Log.java index ff04d575..d08c5eed 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Log.java +++ b/src/main/java/dev/plexapi/sdk/Log.java @@ -1,31 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.EnablePaperTrailResponseBody; +import dev.plexapi.sdk.models.errors.LogLineResponseBody; +import dev.plexapi.sdk.models.errors.LogMultiLineResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.EnablePaperTrailRequestBuilder; +import dev.plexapi.sdk.models.operations.EnablePaperTrailResponse; +import dev.plexapi.sdk.models.operations.Level; +import dev.plexapi.sdk.models.operations.LogLineRequest; +import dev.plexapi.sdk.models.operations.LogLineRequestBuilder; +import dev.plexapi.sdk.models.operations.LogLineResponse; +import dev.plexapi.sdk.models.operations.LogMultiLineRequestBuilder; +import dev.plexapi.sdk.models.operations.LogMultiLineResponse; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.SerializedBody; +import dev.plexapi.sdk.utils.Utils.JsonShape; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * Submit logs to the Log Handler for Plex Media Server @@ -49,8 +57,8 @@ public class Log implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.LogLineRequestBuilder logLine() { - return new lukehagar.plexapi.plexapi.models.operations.LogLineRequestBuilder(this); + public LogLineRequestBuilder logLine() { + return new LogLineRequestBuilder(this); } /** @@ -69,12 +77,12 @@ public class Log implements * @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, + public LogLineResponse logLine( + Level level, String message, String source) throws Exception { - lukehagar.plexapi.plexapi.models.operations.LogLineRequest request = - lukehagar.plexapi.plexapi.models.operations.LogLineRequest + LogLineRequest request = + LogLineRequest .builder() .level(level) .message(message) @@ -93,7 +101,7 @@ public class Log implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.LogLineRequest.class, + LogLineRequest.class, request, this.sdkConfiguration.globals)); @@ -104,7 +112,10 @@ public class Log implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "logLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -112,18 +123,28 @@ public class Log implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "logLine", + Optional.of(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()), + new AfterSuccessContextImpl( + "logLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "logLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -131,14 +152,14 @@ public class Log implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.LogLineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.LogLineResponse + LogLineResponse.Builder _resBuilder = + LogLineResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.LogLineResponse _res = _resBuilder.build(); + LogLineResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -150,14 +171,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.LogLineResponseBody _out = Utils.mapper().readValue( + LogLineResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -165,14 +186,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -203,8 +224,8 @@ public class Log implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.LogMultiLineRequestBuilder logMultiLine() { - return new lukehagar.plexapi.plexapi.models.operations.LogMultiLineRequestBuilder(this); + public LogMultiLineRequestBuilder logMultiLine() { + return new LogMultiLineRequestBuilder(this); } /** @@ -235,7 +256,7 @@ public class Log implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse logMultiLine( + public LogMultiLineResponse logMultiLine( String request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); @@ -244,10 +265,15 @@ public class Log implements "/log"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "string", false); + _convertedRequest, + "request", + "string", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -263,7 +289,10 @@ public class Log implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "logMultiLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -271,18 +300,28 @@ public class Log implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "logMultiLine", + Optional.of(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()), + new AfterSuccessContextImpl( + "logMultiLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "logMultiLine", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -290,14 +329,14 @@ public class Log implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse + LogMultiLineResponse.Builder _resBuilder = + LogMultiLineResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse _res = _resBuilder.build(); + LogMultiLineResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -309,14 +348,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.LogMultiLineResponseBody _out = Utils.mapper().readValue( + LogMultiLineResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -324,14 +363,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -342,8 +381,8 @@ public class Log implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailRequestBuilder enablePaperTrail() { - return new lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailRequestBuilder(this); + public EnablePaperTrailRequestBuilder enablePaperTrail() { + return new EnablePaperTrailRequestBuilder(this); } /** @@ -353,7 +392,7 @@ public class Log implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse enablePaperTrailDirect() throws Exception { + public EnablePaperTrailResponse enablePaperTrailDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -372,7 +411,10 @@ public class Log implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "enablePaperTrail", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -380,18 +422,28 @@ public class Log implements 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()), + new AfterErrorContextImpl( + "enablePaperTrail", + Optional.of(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()), + new AfterSuccessContextImpl( + "enablePaperTrail", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "enablePaperTrail", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -399,14 +451,14 @@ public class Log implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse + EnablePaperTrailResponse.Builder _resBuilder = + EnablePaperTrailResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse _res = _resBuilder.build(); + EnablePaperTrailResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -418,14 +470,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailResponseBody _out = Utils.mapper().readValue( + EnablePaperTrailResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -433,14 +485,14 @@ public class Log implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/dev/plexapi/sdk/Media.java b/src/main/java/dev/plexapi/sdk/Media.java new file mode 100644 index 00000000..a9079ebb --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/Media.java @@ -0,0 +1,747 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.models.errors.GetBannerImageResponseBody; +import dev.plexapi.sdk.models.errors.GetThumbImageResponseBody; +import dev.plexapi.sdk.models.errors.MarkPlayedResponseBody; +import dev.plexapi.sdk.models.errors.MarkUnplayedResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.errors.UpdatePlayProgressResponseBody; +import dev.plexapi.sdk.models.operations.GetBannerImageRequest; +import dev.plexapi.sdk.models.operations.GetBannerImageRequestBuilder; +import dev.plexapi.sdk.models.operations.GetBannerImageResponse; +import dev.plexapi.sdk.models.operations.GetThumbImageRequest; +import dev.plexapi.sdk.models.operations.GetThumbImageRequestBuilder; +import dev.plexapi.sdk.models.operations.GetThumbImageResponse; +import dev.plexapi.sdk.models.operations.MarkPlayedRequest; +import dev.plexapi.sdk.models.operations.MarkPlayedRequestBuilder; +import dev.plexapi.sdk.models.operations.MarkPlayedResponse; +import dev.plexapi.sdk.models.operations.MarkUnplayedRequest; +import dev.plexapi.sdk.models.operations.MarkUnplayedRequestBuilder; +import dev.plexapi.sdk.models.operations.MarkUnplayedResponse; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.UpdatePlayProgressRequest; +import dev.plexapi.sdk.models.operations.UpdatePlayProgressRequestBuilder; +import dev.plexapi.sdk.models.operations.UpdatePlayProgressResponse; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; + +/** + * API Calls interacting with Plex Media Server Media + * + */ +public class Media implements + MethodCallMarkPlayed, + MethodCallMarkUnplayed, + MethodCallUpdatePlayProgress, + MethodCallGetBannerImage, + MethodCallGetThumbImage { + + 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 MarkPlayedRequestBuilder markPlayed() { + return new 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 MarkPlayedResponse markPlayed( + double key) throws Exception { + MarkPlayedRequest request = + 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( + 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "markPlayed", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "markPlayed", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + MarkPlayedResponse.Builder _resBuilder = + MarkPlayedResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + 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.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + MarkPlayedResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Mark Media Unplayed + * This will mark the provided media key as Unplayed. + * @return The call builder + */ + public MarkUnplayedRequestBuilder markUnplayed() { + return new 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 MarkUnplayedResponse markUnplayed( + double key) throws Exception { + MarkUnplayedRequest request = + 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( + 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "markUnplayed", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "markUnplayed", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + MarkUnplayedResponse.Builder _resBuilder = + MarkUnplayedResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + 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.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + MarkUnplayedResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Update Media Play Progress + * This API command can be used to update the play progress of a media item. + * + * @return The call builder + */ + public UpdatePlayProgressRequestBuilder updatePlayProgress() { + return new 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 UpdatePlayProgressResponse updatePlayProgress( + String key, + double time, + String state) throws Exception { + UpdatePlayProgressRequest request = + 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( + 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "updatePlayProgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "updatePlayProgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdatePlayProgressResponse.Builder _resBuilder = + UpdatePlayProgressResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + 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.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + UpdatePlayProgressResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Banner Image + * Gets the banner image of the media item + * @return The call builder + */ + public GetBannerImageRequestBuilder getBannerImage() { + return new GetBannerImageRequestBuilder(this); + } + + /** + * Get Banner Image + * Gets the banner image of the 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 GetBannerImageResponse getBannerImage( + GetBannerImageRequest request) throws Exception { + String _baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String _url = Utils.generateURL( + GetBannerImageRequest.class, + _baseUrl, + "/library/metadata/{ratingKey}/banner", + request, this.sdkConfiguration.globals); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "image/jpeg") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetBannerImageRequest.class, + request, + this.sdkConfiguration.globals)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "get-banner-image", + Optional.of(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( + "get-banner-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "get-banner-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "get-banner-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetBannerImageResponse.Builder _resBuilder = + GetBannerImageResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200") && Utils.contentTypeMatches(_contentType, "image/jpeg")) { + _resBuilder.responseStream(_httpRes.body()); + } + + GetBannerImageResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + _res.withHeaders(_httpRes.headers().map()); + if (Utils.contentTypeMatches(_contentType, "image/jpeg")) { + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetBannerImageResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Thumb Image + * Gets the thumbnail image of the media item + * @return The call builder + */ + public GetThumbImageRequestBuilder getThumbImage() { + return new GetThumbImageRequestBuilder(this); + } + + /** + * Get Thumb Image + * Gets the thumbnail image of the 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 GetThumbImageResponse getThumbImage( + GetThumbImageRequest request) throws Exception { + String _baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String _url = Utils.generateURL( + GetThumbImageRequest.class, + _baseUrl, + "/library/metadata/{ratingKey}/thumb", + request, this.sdkConfiguration.globals); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "image/jpeg") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetThumbImageRequest.class, + request, + this.sdkConfiguration.globals)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "get-thumb-image", + Optional.of(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( + "get-thumb-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "get-thumb-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "get-thumb-image", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetThumbImageResponse.Builder _resBuilder = + GetThumbImageResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200") && Utils.contentTypeMatches(_contentType, "image/jpeg")) { + _resBuilder.responseStream(_httpRes.body()); + } + + GetThumbImageResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + _res.withHeaders(_httpRes.headers().map()); + if (Utils.contentTypeMatches(_contentType, "image/jpeg")) { + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetThumbImageResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Playlists.java b/src/main/java/dev/plexapi/sdk/Playlists.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/Playlists.java rename to src/main/java/dev/plexapi/sdk/Playlists.java index ef2ca8dc..b22ea546 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Playlists.java +++ b/src/main/java/dev/plexapi/sdk/Playlists.java @@ -1,30 +1,66 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.ClearPlaylistContentsResponseBody; +import dev.plexapi.sdk.models.errors.DeletePlaylistResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.errors.UpdatePlaylistResponseBody; +import dev.plexapi.sdk.models.errors.UploadPlaylistResponseBody; +import dev.plexapi.sdk.models.operations.AddPlaylistContentsRequest; +import dev.plexapi.sdk.models.operations.AddPlaylistContentsRequestBuilder; +import dev.plexapi.sdk.models.operations.AddPlaylistContentsResponse; +import dev.plexapi.sdk.models.operations.AddPlaylistContentsResponseBody; +import dev.plexapi.sdk.models.operations.ClearPlaylistContentsRequest; +import dev.plexapi.sdk.models.operations.ClearPlaylistContentsRequestBuilder; +import dev.plexapi.sdk.models.operations.ClearPlaylistContentsResponse; +import dev.plexapi.sdk.models.operations.CreatePlaylistRequest; +import dev.plexapi.sdk.models.operations.CreatePlaylistRequestBuilder; +import dev.plexapi.sdk.models.operations.CreatePlaylistResponse; +import dev.plexapi.sdk.models.operations.CreatePlaylistResponseBody; +import dev.plexapi.sdk.models.operations.DeletePlaylistRequest; +import dev.plexapi.sdk.models.operations.DeletePlaylistRequestBuilder; +import dev.plexapi.sdk.models.operations.DeletePlaylistResponse; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsQueryParamType; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsRequest; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsResponse; +import dev.plexapi.sdk.models.operations.GetPlaylistContentsResponseBody; +import dev.plexapi.sdk.models.operations.GetPlaylistRequest; +import dev.plexapi.sdk.models.operations.GetPlaylistRequestBuilder; +import dev.plexapi.sdk.models.operations.GetPlaylistResponse; +import dev.plexapi.sdk.models.operations.GetPlaylistResponseBody; +import dev.plexapi.sdk.models.operations.GetPlaylistsRequest; +import dev.plexapi.sdk.models.operations.GetPlaylistsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetPlaylistsResponse; +import dev.plexapi.sdk.models.operations.GetPlaylistsResponseBody; +import dev.plexapi.sdk.models.operations.PlaylistType; +import dev.plexapi.sdk.models.operations.QueryParamForce; +import dev.plexapi.sdk.models.operations.QueryParamSmart; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.UpdatePlaylistRequest; +import dev.plexapi.sdk.models.operations.UpdatePlaylistRequestBuilder; +import dev.plexapi.sdk.models.operations.UpdatePlaylistResponse; +import dev.plexapi.sdk.models.operations.UploadPlaylistRequest; +import dev.plexapi.sdk.models.operations.UploadPlaylistRequestBuilder; +import dev.plexapi.sdk.models.operations.UploadPlaylistResponse; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * 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"). @@ -59,8 +95,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequestBuilder createPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequestBuilder(this); + public CreatePlaylistRequestBuilder createPlaylist() { + return new CreatePlaylistRequestBuilder(this); } /** @@ -73,8 +109,8 @@ public class Playlists implements * @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 { + public CreatePlaylistResponse createPlaylist( + CreatePlaylistRequest request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -87,7 +123,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequest.class, + CreatePlaylistRequest.class, request, this.sdkConfiguration.globals)); @@ -98,7 +134,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -106,18 +145,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createPlaylist", + Optional.of(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()), + new AfterSuccessContextImpl( + "createPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -125,28 +174,28 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse + CreatePlaylistResponse.Builder _resBuilder = + CreatePlaylistResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse _res = _resBuilder.build(); + 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( + CreatePlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -155,14 +204,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CreatePlaylistResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.CreatePlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -170,14 +219,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -187,8 +236,8 @@ public class Playlists implements * 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); + public GetPlaylistsRequestBuilder getPlaylists() { + return new GetPlaylistsRequestBuilder(this); } /** @@ -197,9 +246,10 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse getPlaylistsDirect() throws Exception { + public GetPlaylistsResponse getPlaylistsDirect() throws Exception { return getPlaylists(Optional.empty(), Optional.empty()); } + /** * Get All Playlists * Get All Playlists given the specified filters. @@ -208,11 +258,11 @@ public class Playlists implements * @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 + public GetPlaylistsResponse getPlaylists( + Optional playlistType, + Optional smart) throws Exception { + GetPlaylistsRequest request = + GetPlaylistsRequest .builder() .playlistType(playlistType) .smart(smart) @@ -230,7 +280,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequest.class, + GetPlaylistsRequest.class, request, this.sdkConfiguration.globals)); @@ -241,7 +291,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getPlaylists", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -249,18 +302,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getPlaylists", + Optional.of(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()), + new AfterSuccessContextImpl( + "getPlaylists", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getPlaylists", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -268,28 +331,28 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse + GetPlaylistsResponse.Builder _resBuilder = + GetPlaylistsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse _res = _resBuilder.build(); + 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( + GetPlaylistsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -298,14 +361,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetPlaylistsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -313,14 +376,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -332,8 +395,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequestBuilder getPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequestBuilder(this); + public GetPlaylistRequestBuilder getPlaylist() { + return new GetPlaylistRequestBuilder(this); } /** @@ -345,10 +408,10 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse getPlaylist( + public GetPlaylistResponse getPlaylist( double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest + GetPlaylistRequest request = + GetPlaylistRequest .builder() .playlistID(playlistID) .build(); @@ -356,7 +419,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest.class, + GetPlaylistRequest.class, _baseUrl, "/playlists/{playlistID}", request, this.sdkConfiguration.globals); @@ -373,7 +436,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -381,18 +447,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getPlaylist", + Optional.of(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()), + new AfterSuccessContextImpl( + "getPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -400,28 +476,28 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse + GetPlaylistResponse.Builder _resBuilder = + GetPlaylistResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse _res = _resBuilder.build(); + 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( + GetPlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -430,14 +506,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetPlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -445,14 +521,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -463,8 +539,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequestBuilder deletePlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequestBuilder(this); + public DeletePlaylistRequestBuilder deletePlaylist() { + return new DeletePlaylistRequestBuilder(this); } /** @@ -475,10 +551,10 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse deletePlaylist( + public DeletePlaylistResponse deletePlaylist( double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest + DeletePlaylistRequest request = + DeletePlaylistRequest .builder() .playlistID(playlistID) .build(); @@ -486,7 +562,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest.class, + DeletePlaylistRequest.class, _baseUrl, "/playlists/{playlistID}", request, this.sdkConfiguration.globals); @@ -503,7 +579,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deletePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -511,18 +590,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deletePlaylist", + Optional.of(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()), + new AfterSuccessContextImpl( + "deletePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deletePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -530,14 +619,14 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse + DeletePlaylistResponse.Builder _resBuilder = + DeletePlaylistResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse _res = _resBuilder.build(); + DeletePlaylistResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -549,14 +638,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.DeletePlaylistResponseBody _out = Utils.mapper().readValue( + DeletePlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -564,14 +653,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -582,8 +671,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequestBuilder updatePlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequestBuilder(this); + public UpdatePlaylistRequestBuilder updatePlaylist() { + return new UpdatePlaylistRequestBuilder(this); } /** @@ -594,10 +683,11 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse updatePlaylist( + public 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}` @@ -608,12 +698,12 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse updatePlaylist( + public UpdatePlaylistResponse updatePlaylist( double playlistID, - Optional title, - Optional summary) throws Exception { - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest + Optional title, + Optional summary) throws Exception { + UpdatePlaylistRequest request = + UpdatePlaylistRequest .builder() .playlistID(playlistID) .title(title) @@ -623,7 +713,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest.class, + UpdatePlaylistRequest.class, _baseUrl, "/playlists/{playlistID}", request, this.sdkConfiguration.globals); @@ -634,7 +724,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest.class, + UpdatePlaylistRequest.class, request, this.sdkConfiguration.globals)); @@ -645,7 +735,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updatePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -653,18 +746,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updatePlaylist", + Optional.of(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()), + new AfterSuccessContextImpl( + "updatePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updatePlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -672,14 +775,14 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse + UpdatePlaylistResponse.Builder _resBuilder = + UpdatePlaylistResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse _res = _resBuilder.build(); + UpdatePlaylistResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -691,14 +794,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistResponseBody _out = Utils.mapper().readValue( + UpdatePlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -706,14 +809,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -727,8 +830,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequestBuilder getPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequestBuilder(this); + public GetPlaylistContentsRequestBuilder getPlaylistContents() { + return new GetPlaylistContentsRequestBuilder(this); } /** @@ -739,15 +842,21 @@ public class Playlists implements * 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 + * @param type The type of media to retrieve. + 1 = movie + 2 = show + 3 = season + 4 = episode + E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse getPlaylistContents( + public GetPlaylistContentsResponse getPlaylistContents( double playlistID, - double type) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest + GetPlaylistContentsQueryParamType type) throws Exception { + GetPlaylistContentsRequest request = + GetPlaylistContentsRequest .builder() .playlistID(playlistID) .type(type) @@ -756,7 +865,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest.class, + GetPlaylistContentsRequest.class, _baseUrl, "/playlists/{playlistID}/items", request, this.sdkConfiguration.globals); @@ -767,7 +876,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest.class, + GetPlaylistContentsRequest.class, request, this.sdkConfiguration.globals)); @@ -778,7 +887,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -786,18 +898,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getPlaylistContents", + Optional.of(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()), + new AfterSuccessContextImpl( + "getPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -805,28 +927,28 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse + GetPlaylistContentsResponse.Builder _resBuilder = + GetPlaylistContentsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse _res = _resBuilder.build(); + 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( + GetPlaylistContentsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -835,14 +957,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetPlaylistContentsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -850,14 +972,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -868,8 +990,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequestBuilder clearPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequestBuilder(this); + public ClearPlaylistContentsRequestBuilder clearPlaylistContents() { + return new ClearPlaylistContentsRequestBuilder(this); } /** @@ -880,10 +1002,10 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse clearPlaylistContents( + public ClearPlaylistContentsResponse clearPlaylistContents( double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest + ClearPlaylistContentsRequest request = + ClearPlaylistContentsRequest .builder() .playlistID(playlistID) .build(); @@ -891,7 +1013,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest.class, + ClearPlaylistContentsRequest.class, _baseUrl, "/playlists/{playlistID}/items", request, this.sdkConfiguration.globals); @@ -908,7 +1030,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "clearPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -916,18 +1041,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "clearPlaylistContents", + Optional.of(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()), + new AfterSuccessContextImpl( + "clearPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "clearPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -935,14 +1070,14 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse + ClearPlaylistContentsResponse.Builder _resBuilder = + ClearPlaylistContentsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse _res = _resBuilder.build(); + ClearPlaylistContentsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -954,14 +1089,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.ClearPlaylistContentsResponseBody _out = Utils.mapper().readValue( + ClearPlaylistContentsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -969,14 +1104,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -988,8 +1123,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequestBuilder addPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequestBuilder(this); + public AddPlaylistContentsRequestBuilder addPlaylistContents() { + return new AddPlaylistContentsRequestBuilder(this); } /** @@ -1002,11 +1137,12 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse addPlaylistContents( + public 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. @@ -1018,12 +1154,12 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse addPlaylistContents( + public AddPlaylistContentsResponse addPlaylistContents( double playlistID, String uri, - Optional playQueueID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest + Optional playQueueID) throws Exception { + AddPlaylistContentsRequest request = + AddPlaylistContentsRequest .builder() .playlistID(playlistID) .uri(uri) @@ -1033,7 +1169,7 @@ public class Playlists implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest.class, + AddPlaylistContentsRequest.class, _baseUrl, "/playlists/{playlistID}/items", request, this.sdkConfiguration.globals); @@ -1044,7 +1180,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest.class, + AddPlaylistContentsRequest.class, request, this.sdkConfiguration.globals)); @@ -1055,7 +1191,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "addPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1063,18 +1202,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "addPlaylistContents", + Optional.of(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()), + new AfterSuccessContextImpl( + "addPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "addPlaylistContents", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1082,28 +1231,28 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse + AddPlaylistContentsResponse.Builder _resBuilder = + AddPlaylistContentsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse _res = _resBuilder.build(); + 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( + AddPlaylistContentsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -1112,14 +1261,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.AddPlaylistContentsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1127,14 +1276,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1145,8 +1294,8 @@ public class Playlists implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequestBuilder uploadPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequestBuilder(this); + public UploadPlaylistRequestBuilder uploadPlaylist() { + return new UploadPlaylistRequestBuilder(this); } /** @@ -1168,11 +1317,11 @@ public class Playlists implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse uploadPlaylist( + public 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 + QueryParamForce force) throws Exception { + UploadPlaylistRequest request = + UploadPlaylistRequest .builder() .path(path) .force(force) @@ -1190,7 +1339,7 @@ public class Playlists implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequest.class, + UploadPlaylistRequest.class, request, this.sdkConfiguration.globals)); @@ -1201,7 +1350,10 @@ public class Playlists implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "uploadPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1209,18 +1361,28 @@ public class Playlists implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "uploadPlaylist", + Optional.of(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()), + new AfterSuccessContextImpl( + "uploadPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "uploadPlaylist", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1228,14 +1390,14 @@ public class Playlists implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse + UploadPlaylistResponse.Builder _resBuilder = + UploadPlaylistResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse _res = _resBuilder.build(); + UploadPlaylistResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -1247,14 +1409,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.UploadPlaylistResponseBody _out = Utils.mapper().readValue( + UploadPlaylistResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -1262,14 +1424,14 @@ public class Playlists implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/dev/plexapi/sdk/Plex.java b/src/main/java/dev/plexapi/sdk/Plex.java new file mode 100644 index 00000000..e098c93e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/Plex.java @@ -0,0 +1,1182 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.models.errors.GetCompanionsDataResponseBody; +import dev.plexapi.sdk.models.errors.GetGeoDataResponseBody; +import dev.plexapi.sdk.models.errors.GetPinResponseBody; +import dev.plexapi.sdk.models.errors.GetServerResourcesResponseBody; +import dev.plexapi.sdk.models.errors.GetTokenByPinIdPlexResponseBody; +import dev.plexapi.sdk.models.errors.GetTokenByPinIdResponseBody; +import dev.plexapi.sdk.models.errors.GetUserFriendsResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.Friend; +import dev.plexapi.sdk.models.operations.GetCompanionsDataRequestBuilder; +import dev.plexapi.sdk.models.operations.GetCompanionsDataResponse; +import dev.plexapi.sdk.models.operations.GetGeoDataGeoData; +import dev.plexapi.sdk.models.operations.GetGeoDataRequestBuilder; +import dev.plexapi.sdk.models.operations.GetGeoDataResponse; +import dev.plexapi.sdk.models.operations.GetHomeDataRequestBuilder; +import dev.plexapi.sdk.models.operations.GetHomeDataResponse; +import dev.plexapi.sdk.models.operations.GetHomeDataResponseBody; +import dev.plexapi.sdk.models.operations.GetPinAuthPinContainer; +import dev.plexapi.sdk.models.operations.GetPinRequest; +import dev.plexapi.sdk.models.operations.GetPinRequestBuilder; +import dev.plexapi.sdk.models.operations.GetPinResponse; +import dev.plexapi.sdk.models.operations.GetServerResourcesRequest; +import dev.plexapi.sdk.models.operations.GetServerResourcesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerResourcesResponse; +import dev.plexapi.sdk.models.operations.GetTokenByPinIdAuthPinContainer; +import dev.plexapi.sdk.models.operations.GetTokenByPinIdRequest; +import dev.plexapi.sdk.models.operations.GetTokenByPinIdRequestBuilder; +import dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse; +import dev.plexapi.sdk.models.operations.GetUserFriendsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetUserFriendsResponse; +import dev.plexapi.sdk.models.operations.PlexDevice; +import dev.plexapi.sdk.models.operations.ResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Boolean; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.HashMap; +import java.util.List; +import java.util.Optional; + +/** + * API Calls that perform operations directly against https://Plex.tv + * + */ +public class Plex implements + MethodCallGetCompanionsData, + MethodCallGetUserFriends, + MethodCallGetGeoData, + MethodCallGetHomeData, + MethodCallGetServerResources, + MethodCallGetPin, + MethodCallGetTokenByPinId { + + /** + * GET_COMPANIONS_DATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_COMPANIONS_DATA_SERVERS = { + "https://plex.tv/api/v2", + }; + + /** + * GET_USER_FRIENDS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_USER_FRIENDS_SERVERS = { + "https://plex.tv/api/v2", + }; + + /** + * GET_GEO_DATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_GEO_DATA_SERVERS = { + "https://plex.tv/api/v2", + }; + + /** + * GET_SERVER_RESOURCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_RESOURCES_SERVERS = { + "https://plex.tv/api/v2", + }; + + /** + * 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_BY_PIN_ID_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_TOKEN_BY_PIN_ID_SERVERS = { + "https://plex.tv/api/v2", + }; + + private final SDKConfiguration sdkConfiguration; + + Plex(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + + /** + * Get Companions Data + * Get Companions Data + * @return The call builder + */ + public GetCompanionsDataRequestBuilder getCompanionsData() { + return new GetCompanionsDataRequestBuilder(this); + } + + /** + * Get Companions Data + * Get Companions Data + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetCompanionsDataResponse getCompanionsDataDirect() throws Exception { + return getCompanionsData(Optional.empty()); + } + + /** + * Get Companions Data + * Get Companions Data + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetCompanionsDataResponse getCompanionsData( + Optional serverURL) throws Exception { + String _baseUrl = Utils.templateUrl(GET_COMPANIONS_DATA_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/companions"); + + 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( + "getCompanionsData", + Optional.of(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( + "getCompanionsData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getCompanionsData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getCompanionsData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetCompanionsDataResponse.Builder _resBuilder = + GetCompanionsDataResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetCompanionsDataResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + List _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference>() {}); + _res.withResponseBodies(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetCompanionsDataResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get list of friends of the user logged in + * Get friends of provided auth token. + * @return The call builder + */ + public GetUserFriendsRequestBuilder getUserFriends() { + return new GetUserFriendsRequestBuilder(this); + } + + /** + * Get list of friends of the user logged in + * Get friends of provided auth token. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetUserFriendsResponse getUserFriendsDirect() throws Exception { + return getUserFriends(Optional.empty()); + } + + /** + * Get list of friends of the user logged in + * Get friends of provided auth token. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetUserFriendsResponse getUserFriends( + Optional serverURL) throws Exception { + String _baseUrl = Utils.templateUrl(GET_USER_FRIENDS_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/friends"); + + 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( + "getUserFriends", + Optional.of(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( + "getUserFriends", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getUserFriends", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getUserFriends", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetUserFriendsResponse.Builder _resBuilder = + GetUserFriendsResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetUserFriendsResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + List _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference>() {}); + _res.withFriends(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetUserFriendsResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Geo Data + * Returns the geolocation and locale data of the caller + * @return The call builder + */ + public GetGeoDataRequestBuilder getGeoData() { + return new GetGeoDataRequestBuilder(this); + } + + /** + * Get Geo Data + * Returns the geolocation and locale data of the caller + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetGeoDataResponse getGeoDataDirect() throws Exception { + return getGeoData(Optional.empty()); + } + + /** + * Get Geo Data + * Returns the geolocation and locale data of the caller + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetGeoDataResponse getGeoData( + Optional serverURL) throws Exception { + String _baseUrl = Utils.templateUrl(GET_GEO_DATA_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/geoip"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getGeoData", + Optional.of(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( + "getGeoData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getGeoData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getGeoData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetGeoDataResponse.Builder _resBuilder = + GetGeoDataResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetGeoDataResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetGeoDataGeoData _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withGeoData(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetGeoDataResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * 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 GetHomeDataRequestBuilder getHomeData() { + return new 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 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(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getHomeData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getHomeData", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetHomeDataResponse.Builder _resBuilder = + GetHomeDataResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetHomeDataResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetHomeDataResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + dev.plexapi.sdk.models.errors.GetHomeDataResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Server Resources + * Get Plex server access tokens and server connections + * @return The call builder + */ + public GetServerResourcesRequestBuilder getServerResources() { + return new GetServerResourcesRequestBuilder(this); + } + + /** + * Get Server Resources + * Get Plex server access tokens and server connections + * @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 GetServerResourcesResponse getServerResources( + GetServerResourcesRequest request) throws Exception { + return getServerResources(request, Optional.empty()); + } + + /** + * Get Server Resources + * Get Plex server access tokens and server connections + * @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 GetServerResourcesResponse getServerResources( + GetServerResourcesRequest request, + Optional serverURL) throws Exception { + String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + _baseUrl, + "/resources"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetServerResourcesRequest.class, + request, + this.sdkConfiguration.globals)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "get-server-resources", + Optional.of(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( + "get-server-resources", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "get-server-resources", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "get-server-resources", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerResourcesResponse.Builder _resBuilder = + GetServerResourcesResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetServerResourcesResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + List _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference>() {}); + _res.withPlexDevices(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetServerResourcesResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get a Pin + * Retrieve a Pin from Plex.tv for authentication flows + * @return The call builder + */ + public GetPinRequestBuilder getPin() { + return new GetPinRequestBuilder(this); + } + + /** + * Get a Pin + * Retrieve a Pin from Plex.tv for authentication flows + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetPinResponse getPinDirect() throws Exception { + return getPin(Optional.empty(), Optional.empty(), Optional.empty(), 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 + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetPinResponse getPin( + Optional strong, + Optional xPlexClientIdentifier, + Optional xPlexProduct, + Optional serverURL) throws Exception { + GetPinRequest request = + GetPinRequest + .builder() + .strong(strong) + .xPlexClientIdentifier(xPlexClientIdentifier) + .xPlexProduct(xPlexProduct) + .build(); + + String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new 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( + GetPinRequest.class, + request, + this.sdkConfiguration.globals)); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getPin", + Optional.of(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(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getPin", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getPin", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetPinResponse.Builder _resBuilder = + GetPinResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetPinResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetPinAuthPinContainer _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withAuthPinContainer(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetPinResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Access Token by PinId + * Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * @return The call builder + */ + public GetTokenByPinIdRequestBuilder getTokenByPinId() { + return new GetTokenByPinIdRequestBuilder(this); + } + + /** + * Get Access Token by PinId + * Retrieve an Access Token from Plex.tv after the Pin has 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 GetTokenByPinIdResponse getTokenByPinId( + long pinID) throws Exception { + return getTokenByPinId(Optional.empty(), pinID, Optional.empty()); + } + + /** + * Get Access Token by PinId + * Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * @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 pinID The PinID to retrieve an access token for + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetTokenByPinIdResponse getTokenByPinId( + Optional xPlexClientIdentifier, + long pinID, + Optional serverURL) throws Exception { + GetTokenByPinIdRequest request = + GetTokenByPinIdRequest + .builder() + .xPlexClientIdentifier(xPlexClientIdentifier) + .pinID(pinID) + .build(); + + String _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap()); + if (serverURL.isPresent() && !serverURL.get().isBlank()) { + _baseUrl = serverURL.get(); + } + String _url = Utils.generateURL( + GetTokenByPinIdRequest.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.addQueryParams(Utils.getQueryParams( + GetTokenByPinIdRequest.class, + request, + this.sdkConfiguration.globals)); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getTokenByPinId", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _req.build()); + HttpResponse _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "404", "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getTokenByPinId", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getTokenByPinId", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getTokenByPinId", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetTokenByPinIdResponse.Builder _resBuilder = + GetTokenByPinIdResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetTokenByPinIdResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetTokenByPinIdAuthPinContainer _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withAuthPinContainer(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetTokenByPinIdResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetTokenByPinIdPlexResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java b/src/main/java/dev/plexapi/sdk/PlexAPI.java similarity index 89% rename from src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java rename to src/main/java/dev/plexapi/sdk/PlexAPI.java index 4bca489a..5922eb94 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java +++ b/src/main/java/dev/plexapi/sdk/PlexAPI.java @@ -1,32 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; 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 dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.RetryConfig; +import dev.plexapi.sdk.utils.SpeakeasyHTTPClient; +import java.lang.String; +import java.util.Map; 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 + * Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server */ public class PlexAPI { @@ -101,6 +89,12 @@ public class PlexAPI { */ private final Library library; + /** + * API Calls that perform operations with Plex Media Server Watchlists + * + */ + private final Watchlist watchlist; + /** * Submit logs to the Log Handler for Plex Media Server * @@ -141,12 +135,6 @@ public class PlexAPI { */ 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. * @@ -225,6 +213,14 @@ public class PlexAPI { return library; } + /** + * API Calls that perform operations with Plex Media Server Watchlists + * + */ + public Watchlist watchlist() { + return watchlist; + } + /** * Submit logs to the Log Handler for Plex Media Server * @@ -277,14 +273,6 @@ public class PlexAPI { return updater; } - /** - * API Calls that perform operations with Plex Media Server Watchlists - * - */ - public Watchlist watchlist() { - return watchlist; - } - private final SDKConfiguration sdkConfiguration; /** @@ -314,7 +302,7 @@ public class PlexAPI { * @return The builder instance. */ public Builder accessToken(String accessToken) { - this.sdkConfiguration.securitySource = SecuritySource.of(lukehagar.plexapi.plexapi.models.shared.Security.builder() + this.sdkConfiguration.securitySource = SecuritySource.of(dev.plexapi.sdk.models.shared.Security.builder() .accessToken(accessToken) .build()); return this; @@ -348,8 +336,8 @@ public class PlexAPI { * @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); + public Builder serverURL(String serverUrl, Map params) { + this.sdkConfiguration.serverUrl = dev.plexapi.sdk.utils.Utils.templateUrl(serverUrl, params); return this; } @@ -379,7 +367,7 @@ public class PlexAPI { HTTP("http"), HTTPS("https"); - @JsonValue + @JsonValue private final String value; private ServerProtocol(String value) { @@ -390,7 +378,6 @@ public class PlexAPI { return value; } } - /** * Sets the protocol variable for url substitution. * @@ -398,7 +385,7 @@ public class PlexAPI { * @return The builder instance. */ public Builder protocol(ServerProtocol protocol) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + for (Map server : this.sdkConfiguration.serverDefaults) { if (!server.containsKey("protocol")) { continue; } @@ -415,7 +402,7 @@ public class PlexAPI { * @return The builder instance. */ public Builder ip(String ip) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + for (Map server : this.sdkConfiguration.serverDefaults) { if (!server.containsKey("ip")) { continue; } @@ -432,7 +419,7 @@ public class PlexAPI { * @return The builder instance. */ public Builder port(String port) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + for (Map server : this.sdkConfiguration.serverDefaults) { if (!server.containsKey("port")) { continue; } @@ -449,17 +436,17 @@ public class PlexAPI { * @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<>()); + if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) { + this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>()); } - this.sdkConfiguration.globals.get("parameters").get("header").put("xPlexClientIdentifier", xPlexClientIdentifier); + this.sdkConfiguration.globals.get("parameters").get("queryParam").put("xPlexClientIdentifier", xPlexClientIdentifier); return this; } // Visible for testing, will be accessed via reflection - void _hooks(lukehagar.plexapi.plexapi.utils.Hooks hooks) { + void _hooks(dev.plexapi.sdk.utils.Hooks hooks) { sdkConfiguration.setHooks(hooks); } @@ -504,12 +491,12 @@ public class PlexAPI { this.hubs = new Hubs(sdkConfiguration); this.search = new Search(sdkConfiguration); this.library = new Library(sdkConfiguration); + this.watchlist = new Watchlist(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/dev/plexapi/sdk/SDKConfiguration.java similarity index 51% rename from src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java rename to src/main/java/dev/plexapi/sdk/SDKConfiguration.java index f17687b3..a9ba7d0e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java +++ b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java @@ -1,17 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; -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 dev.plexapi.sdk.hooks.SDKHooks; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.Hook.SdkInitData; +import dev.plexapi.sdk.utils.Hooks; +import dev.plexapi.sdk.utils.RetryConfig; +import java.lang.Object; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; -import java.util.ArrayList; +import java.util.Map; import java.util.Optional; class SDKConfiguration { @@ -21,33 +25,33 @@ class SDKConfiguration { return Optional.ofNullable(securitySource); } public HTTPClient defaultClient; - public String serverUrl; + public String serverUrl; public int serverIdx = 0; - List> serverDefaults = new ArrayList<>(){{ - add(new HashMap<>(){{ - put("protocol", "http"); + List> serverDefaults = new ArrayList<>(){ { + add(new HashMap<>(){ { + put("protocol", "https"); 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"; + public String sdkVersion = "0.2.1"; + public String genVersion = "2.411.9"; + public String userAgent = "speakeasy-sdk/java 0.2.1 2.411.9 0.0.3 dev.plexapi.sdk"; - private lukehagar.plexapi.plexapi.utils.Hooks _hooks = createHooks(); + private Hooks _hooks = createHooks(); - private static lukehagar.plexapi.plexapi.utils.Hooks createHooks() { - lukehagar.plexapi.plexapi.utils.Hooks hooks = new lukehagar.plexapi.plexapi.utils.Hooks(); + private static Hooks createHooks() { + Hooks hooks = new Hooks(); return hooks; } - public lukehagar.plexapi.plexapi.utils.Hooks hooks() { + public Hooks hooks() { return _hooks; } - public void setHooks(lukehagar.plexapi.plexapi.utils.Hooks hooks) { + public void setHooks(Hooks hooks) { this._hooks = hooks; } @@ -55,16 +59,17 @@ class SDKConfiguration { * Initializes state (for example hooks). **/ public void initialize() { - lukehagar.plexapi.plexapi.hooks.SDKHooks.initialize(_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<>(){{ + @SuppressWarnings("serial") + public Map>> globals = new HashMap<>(){ { put("parameters", new HashMap<>()); - }}; + } }; public Map getServerVariableDefaults() { return serverDefaults.get(this.serverIdx); diff --git a/src/main/java/lukehagar/plexapi/plexapi/Search.java b/src/main/java/dev/plexapi/sdk/Search.java similarity index 72% rename from src/main/java/lukehagar/plexapi/plexapi/Search.java rename to src/main/java/dev/plexapi/sdk/Search.java index 06a40bba..a6356961 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Search.java +++ b/src/main/java/dev/plexapi/sdk/Search.java @@ -1,30 +1,38 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.PerformSearchResponseBody; +import dev.plexapi.sdk.models.errors.PerformVoiceSearchResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetSearchResultsRequest; +import dev.plexapi.sdk.models.operations.GetSearchResultsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetSearchResultsResponse; +import dev.plexapi.sdk.models.operations.GetSearchResultsResponseBody; +import dev.plexapi.sdk.models.operations.PerformSearchRequest; +import dev.plexapi.sdk.models.operations.PerformSearchRequestBuilder; +import dev.plexapi.sdk.models.operations.PerformSearchResponse; +import dev.plexapi.sdk.models.operations.PerformVoiceSearchRequest; +import dev.plexapi.sdk.models.operations.PerformVoiceSearchRequestBuilder; +import dev.plexapi.sdk.models.operations.PerformVoiceSearchResponse; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * API Calls that perform search operations with Plex Media Server @@ -59,8 +67,8 @@ public class Search implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchRequestBuilder performSearch() { - return new lukehagar.plexapi.plexapi.models.operations.PerformSearchRequestBuilder(this); + public PerformSearchRequestBuilder performSearch() { + return new PerformSearchRequestBuilder(this); } /** @@ -82,10 +90,11 @@ public class Search implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse performSearch( + public 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). @@ -107,12 +116,12 @@ public class Search implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse performSearch( + public PerformSearchResponse performSearch( String query, - Optional sectionId, - Optional limit) throws Exception { - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest request = - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest + Optional sectionId, + Optional limit) throws Exception { + PerformSearchRequest request = + PerformSearchRequest .builder() .query(query) .sectionId(sectionId) @@ -131,7 +140,7 @@ public class Search implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest.class, + PerformSearchRequest.class, request, this.sdkConfiguration.globals)); @@ -142,7 +151,10 @@ public class Search implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "performSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -150,18 +162,28 @@ public class Search implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "performSearch", + Optional.of(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()), + new AfterSuccessContextImpl( + "performSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "performSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -169,14 +191,14 @@ public class Search implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse + PerformSearchResponse.Builder _resBuilder = + PerformSearchResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse _res = _resBuilder.build(); + PerformSearchResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -188,14 +210,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.PerformSearchResponseBody _out = Utils.mapper().readValue( + PerformSearchResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -203,14 +225,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -224,8 +246,8 @@ public class Search implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequestBuilder performVoiceSearch() { - return new lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequestBuilder(this); + public PerformVoiceSearchRequestBuilder performVoiceSearch() { + return new PerformVoiceSearchRequestBuilder(this); } /** @@ -239,10 +261,11 @@ public class Search implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse performVoiceSearch( + public 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. @@ -256,12 +279,12 @@ public class Search implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse performVoiceSearch( + public PerformVoiceSearchResponse performVoiceSearch( String query, - Optional sectionId, - Optional limit) throws Exception { - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest request = - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest + Optional sectionId, + Optional limit) throws Exception { + PerformVoiceSearchRequest request = + PerformVoiceSearchRequest .builder() .query(query) .sectionId(sectionId) @@ -280,7 +303,7 @@ public class Search implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest.class, + PerformVoiceSearchRequest.class, request, this.sdkConfiguration.globals)); @@ -291,7 +314,10 @@ public class Search implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "performVoiceSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -299,18 +325,28 @@ public class Search implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "performVoiceSearch", + Optional.of(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()), + new AfterSuccessContextImpl( + "performVoiceSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "performVoiceSearch", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -318,14 +354,14 @@ public class Search implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse + PerformVoiceSearchResponse.Builder _resBuilder = + PerformVoiceSearchResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse _res = _resBuilder.build(); + PerformVoiceSearchResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -337,14 +373,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchResponseBody _out = Utils.mapper().readValue( + PerformVoiceSearchResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -352,14 +388,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -369,8 +405,8 @@ public class Search implements * 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); + public GetSearchResultsRequestBuilder getSearchResults() { + return new GetSearchResultsRequestBuilder(this); } /** @@ -380,10 +416,10 @@ public class Search implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse getSearchResults( + public GetSearchResultsResponse getSearchResults( String query) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest + GetSearchResultsRequest request = + GetSearchResultsRequest .builder() .query(query) .build(); @@ -400,7 +436,7 @@ public class Search implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest.class, + GetSearchResultsRequest.class, request, this.sdkConfiguration.globals)); @@ -411,7 +447,10 @@ public class Search implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSearchResults", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -419,18 +458,28 @@ public class Search implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSearchResults", + Optional.of(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()), + new AfterSuccessContextImpl( + "getSearchResults", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSearchResults", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -438,28 +487,28 @@ public class Search implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse + GetSearchResultsResponse.Builder _resBuilder = + GetSearchResultsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse _res = _resBuilder.build(); + 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( + GetSearchResultsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -468,14 +517,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSearchResultsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetSearchResultsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -483,14 +532,14 @@ public class Search implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java b/src/main/java/dev/plexapi/sdk/SecuritySource.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java rename to src/main/java/dev/plexapi/sdk/SecuritySource.java index fc4deca8..035cc6d1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java +++ b/src/main/java/dev/plexapi/sdk/SecuritySource.java @@ -1,10 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; -import lukehagar.plexapi.plexapi.models.shared.Security; +import dev.plexapi.sdk.models.shared.Security; public interface SecuritySource { diff --git a/src/main/java/lukehagar/plexapi/plexapi/Server.java b/src/main/java/dev/plexapi/sdk/Server.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/Server.java rename to src/main/java/dev/plexapi/sdk/Server.java index 7ba6bd16..c9bbbeb9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Server.java +++ b/src/main/java/dev/plexapi/sdk/Server.java @@ -1,30 +1,54 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.GetResizedPhotoResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetAvailableClientsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetAvailableClientsResponse; +import dev.plexapi.sdk.models.operations.GetAvailableClientsResponseBody; +import dev.plexapi.sdk.models.operations.GetDevicesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetDevicesResponse; +import dev.plexapi.sdk.models.operations.GetDevicesResponseBody; +import dev.plexapi.sdk.models.operations.GetMediaProvidersRequest; +import dev.plexapi.sdk.models.operations.GetMediaProvidersRequestBuilder; +import dev.plexapi.sdk.models.operations.GetMediaProvidersResponse; +import dev.plexapi.sdk.models.operations.GetMediaProvidersResponseBody; +import dev.plexapi.sdk.models.operations.GetMyPlexAccountRequestBuilder; +import dev.plexapi.sdk.models.operations.GetMyPlexAccountResponse; +import dev.plexapi.sdk.models.operations.GetMyPlexAccountResponseBody; +import dev.plexapi.sdk.models.operations.GetResizedPhotoRequest; +import dev.plexapi.sdk.models.operations.GetResizedPhotoRequestBuilder; +import dev.plexapi.sdk.models.operations.GetResizedPhotoResponse; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; +import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponseBody; +import dev.plexapi.sdk.models.operations.GetServerIdentityRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerIdentityResponse; +import dev.plexapi.sdk.models.operations.GetServerIdentityResponseBody; +import dev.plexapi.sdk.models.operations.GetServerListRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerListResponse; +import dev.plexapi.sdk.models.operations.GetServerListResponseBody; +import dev.plexapi.sdk.models.operations.GetServerPreferencesRequestBuilder; +import dev.plexapi.sdk.models.operations.GetServerPreferencesResponse; +import dev.plexapi.sdk.models.operations.GetServerPreferencesResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * Operations against the Plex Media Server System. @@ -38,6 +62,7 @@ public class Server implements MethodCallGetServerIdentity, MethodCallGetMyPlexAccount, MethodCallGetResizedPhoto, + MethodCallGetMediaProviders, MethodCallGetServerList { private final SDKConfiguration sdkConfiguration; @@ -52,8 +77,8 @@ public class Server implements * Get Server Capabilities * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesRequestBuilder getServerCapabilities() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesRequestBuilder(this); + public GetServerCapabilitiesRequestBuilder getServerCapabilities() { + return new GetServerCapabilitiesRequestBuilder(this); } /** @@ -62,7 +87,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception { + public GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -81,7 +106,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getServerCapabilities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -89,18 +117,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getServerCapabilities", + Optional.of(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()), + new AfterSuccessContextImpl( + "getServerCapabilities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getServerCapabilities", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -108,28 +146,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse + GetServerCapabilitiesResponse.Builder _resBuilder = + GetServerCapabilitiesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse _res = _resBuilder.build(); + 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( + GetServerCapabilitiesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -138,14 +176,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetServerCapabilitiesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -153,14 +191,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -170,8 +208,8 @@ public class Server implements * Get Server Preferences * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesRequestBuilder getServerPreferences() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesRequestBuilder(this); + public GetServerPreferencesRequestBuilder getServerPreferences() { + return new GetServerPreferencesRequestBuilder(this); } /** @@ -180,7 +218,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse getServerPreferencesDirect() throws Exception { + public GetServerPreferencesResponse getServerPreferencesDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -199,7 +237,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getServerPreferences", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -207,18 +248,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getServerPreferences", + Optional.of(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()), + new AfterSuccessContextImpl( + "getServerPreferences", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getServerPreferences", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -226,28 +277,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse + GetServerPreferencesResponse.Builder _resBuilder = + GetServerPreferencesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse _res = _resBuilder.build(); + 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( + GetServerPreferencesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -256,14 +307,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetServerPreferencesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -271,14 +322,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -288,8 +339,8 @@ public class Server implements * Get Available Clients * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsRequestBuilder getAvailableClients() { - return new lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsRequestBuilder(this); + public GetAvailableClientsRequestBuilder getAvailableClients() { + return new GetAvailableClientsRequestBuilder(this); } /** @@ -298,7 +349,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse getAvailableClientsDirect() throws Exception { + public GetAvailableClientsResponse getAvailableClientsDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -317,7 +368,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getAvailableClients", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -325,18 +379,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getAvailableClients", + Optional.of(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()), + new AfterSuccessContextImpl( + "getAvailableClients", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getAvailableClients", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -344,28 +408,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse + GetAvailableClientsResponse.Builder _resBuilder = + GetAvailableClientsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse _res = _resBuilder.build(); + 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( + GetAvailableClientsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -374,14 +438,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetAvailableClientsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -389,14 +453,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -406,8 +470,8 @@ public class Server implements * Get Devices * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetDevicesRequestBuilder getDevices() { - return new lukehagar.plexapi.plexapi.models.operations.GetDevicesRequestBuilder(this); + public GetDevicesRequestBuilder getDevices() { + return new GetDevicesRequestBuilder(this); } /** @@ -416,7 +480,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse getDevicesDirect() throws Exception { + public GetDevicesResponse getDevicesDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -435,7 +499,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getDevices", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -443,18 +510,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getDevices", + Optional.of(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()), + new AfterSuccessContextImpl( + "getDevices", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getDevices", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -462,28 +539,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse + GetDevicesResponse.Builder _resBuilder = + GetDevicesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse _res = _resBuilder.build(); + 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( + GetDevicesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -492,14 +569,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetDevicesResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetDevicesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -507,34 +584,34 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } /** * Get Server Identity - * Get Server Identity + * This request is useful to determine if the server is online or offline * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetServerIdentityRequestBuilder getServerIdentity() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerIdentityRequestBuilder(this); + public GetServerIdentityRequestBuilder getServerIdentity() { + return new GetServerIdentityRequestBuilder(this); } /** * Get Server Identity - * Get Server Identity + * This request is useful to determine if the server is online or offline * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse getServerIdentityDirect() throws Exception { + public GetServerIdentityResponse getServerIdentityDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -546,33 +623,43 @@ public class Server implements .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()), + new BeforeRequestContextImpl( + "get-server-identity", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { + if (Utils.statusCodeMatches(_httpRes.statusCode(), "408", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-server-identity", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-server-identity", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-server-identity", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -580,44 +667,36 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse + GetServerIdentityResponse.Builder _resBuilder = + GetServerIdentityResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse _res = _resBuilder.build(); + 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( + GetServerIdentityResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } - 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.statusCodeMatches(_httpRes.statusCode(), "408")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerIdentityResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetServerIdentityResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -625,14 +704,22 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -642,8 +729,8 @@ public class Server implements * 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); + public GetMyPlexAccountRequestBuilder getMyPlexAccount() { + return new GetMyPlexAccountRequestBuilder(this); } /** @@ -652,7 +739,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception { + public GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -671,7 +758,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getMyPlexAccount", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -679,18 +769,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getMyPlexAccount", + Optional.of(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()), + new AfterSuccessContextImpl( + "getMyPlexAccount", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getMyPlexAccount", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -698,28 +798,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse + GetMyPlexAccountResponse.Builder _resBuilder = + GetMyPlexAccountResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse _res = _resBuilder.build(); + 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( + GetMyPlexAccountResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -728,14 +828,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetMyPlexAccountResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -743,14 +843,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -761,8 +861,8 @@ public class Server implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequestBuilder getResizedPhoto() { - return new lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequestBuilder(this); + public GetResizedPhotoRequestBuilder getResizedPhoto() { + return new GetResizedPhotoRequestBuilder(this); } /** @@ -773,8 +873,8 @@ public class Server implements * @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 { + public GetResizedPhotoResponse getResizedPhoto( + GetResizedPhotoRequest request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -787,7 +887,7 @@ public class Server implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequest.class, + GetResizedPhotoRequest.class, request, this.sdkConfiguration.globals)); @@ -798,7 +898,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getResizedPhoto", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -806,18 +909,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getResizedPhoto", + Optional.of(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()), + new AfterSuccessContextImpl( + "getResizedPhoto", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getResizedPhoto", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -825,14 +938,14 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse + GetResizedPhotoResponse.Builder _resBuilder = + GetResizedPhotoResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse _res = _resBuilder.build(); + GetResizedPhotoResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -844,14 +957,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoResponseBody _out = Utils.mapper().readValue( + GetResizedPhotoResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -859,14 +972,158 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); + } + + + + /** + * Get Media Providers + * Retrieves media providers and their features from the Plex server. + * @return The call builder + */ + public GetMediaProvidersRequestBuilder getMediaProviders() { + return new GetMediaProvidersRequestBuilder(this); + } + + /** + * Get Media Providers + * Retrieves media providers and their features from the Plex server. + * @param xPlexToken Plex Authentication Token + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetMediaProvidersResponse getMediaProviders( + String xPlexToken) throws Exception { + GetMediaProvidersRequest request = + GetMediaProvidersRequest + .builder() + .xPlexToken(xPlexToken) + .build(); + + String _baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String _url = Utils.generateURL( + _baseUrl, + "/media/providers"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetMediaProvidersRequest.class, + request, + this.sdkConfiguration.globals)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "get-media-providers", + Optional.of(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( + "get-media-providers", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "get-media-providers", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "get-media-providers", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetMediaProvidersResponse.Builder _resBuilder = + GetMediaProvidersResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetMediaProvidersResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + GetMediaProvidersResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + dev.plexapi.sdk.models.errors.GetMediaProvidersResponseBody _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); + + throw _out; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); } @@ -876,8 +1133,8 @@ public class Server implements * Get Server List * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetServerListRequestBuilder getServerList() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerListRequestBuilder(this); + public GetServerListRequestBuilder getServerList() { + return new GetServerListRequestBuilder(this); } /** @@ -886,7 +1143,7 @@ public class Server implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetServerListResponse getServerListDirect() throws Exception { + public GetServerListResponse getServerListDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -905,7 +1162,10 @@ public class Server implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getServerList", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -913,18 +1173,28 @@ public class Server implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getServerList", + Optional.of(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()), + new AfterSuccessContextImpl( + "getServerList", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getServerList", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -932,28 +1202,28 @@ public class Server implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse + GetServerListResponse.Builder _resBuilder = + GetServerListResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse _res = _resBuilder.build(); + 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( + GetServerListResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -962,14 +1232,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerListResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetServerListResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -977,14 +1247,14 @@ public class Server implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Sessions.java b/src/main/java/dev/plexapi/sdk/Sessions.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/Sessions.java rename to src/main/java/dev/plexapi/sdk/Sessions.java index de5c4667..d2f5ce89 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Sessions.java +++ b/src/main/java/dev/plexapi/sdk/Sessions.java @@ -1,30 +1,41 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.errors.StopTranscodeSessionResponseBody; +import dev.plexapi.sdk.models.operations.GetSessionHistoryRequest; +import dev.plexapi.sdk.models.operations.GetSessionHistoryRequestBuilder; +import dev.plexapi.sdk.models.operations.GetSessionHistoryResponse; +import dev.plexapi.sdk.models.operations.GetSessionHistoryResponseBody; +import dev.plexapi.sdk.models.operations.GetSessionsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetSessionsResponse; +import dev.plexapi.sdk.models.operations.GetSessionsResponseBody; +import dev.plexapi.sdk.models.operations.GetTranscodeSessionsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetTranscodeSessionsResponse; +import dev.plexapi.sdk.models.operations.GetTranscodeSessionsResponseBody; +import dev.plexapi.sdk.models.operations.QueryParamFilter; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.StopTranscodeSessionRequest; +import dev.plexapi.sdk.models.operations.StopTranscodeSessionRequestBuilder; +import dev.plexapi.sdk.models.operations.StopTranscodeSessionResponse; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Long; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * API Calls that perform search operations with Plex Media Server Sessions @@ -48,8 +59,8 @@ public class Sessions implements * 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); + public GetSessionsRequestBuilder getSessions() { + return new GetSessionsRequestBuilder(this); } /** @@ -58,7 +69,7 @@ public class Sessions implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse getSessionsDirect() throws Exception { + public GetSessionsResponse getSessionsDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -77,7 +88,10 @@ public class Sessions implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -85,18 +99,28 @@ public class Sessions implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSessions", + Optional.of(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()), + new AfterSuccessContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -104,28 +128,28 @@ public class Sessions implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse + GetSessionsResponse.Builder _resBuilder = + GetSessionsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse _res = _resBuilder.build(); + 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( + GetSessionsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -134,14 +158,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSessionsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetSessionsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -149,14 +173,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -166,8 +190,8 @@ public class Sessions implements * 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); + public GetSessionHistoryRequestBuilder getSessionHistory() { + return new GetSessionHistoryRequestBuilder(this); } /** @@ -176,9 +200,10 @@ public class Sessions implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse getSessionHistoryDirect() throws Exception { + public 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. @@ -194,13 +219,13 @@ public class Sessions implements * @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 + public GetSessionHistoryResponse getSessionHistory( + Optional sort, + Optional accountId, + Optional filter, + Optional librarySectionID) throws Exception { + GetSessionHistoryRequest request = + GetSessionHistoryRequest .builder() .sort(sort) .accountId(accountId) @@ -220,7 +245,7 @@ public class Sessions implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequest.class, + GetSessionHistoryRequest.class, request, this.sdkConfiguration.globals)); @@ -231,7 +256,10 @@ public class Sessions implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSessionHistory", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -239,18 +267,28 @@ public class Sessions implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSessionHistory", + Optional.of(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()), + new AfterSuccessContextImpl( + "getSessionHistory", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSessionHistory", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -258,28 +296,28 @@ public class Sessions implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse + GetSessionHistoryResponse.Builder _resBuilder = + GetSessionHistoryResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse _res = _resBuilder.build(); + 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( + GetSessionHistoryResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -288,14 +326,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetSessionHistoryResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -303,14 +341,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -320,8 +358,8 @@ public class Sessions implements * Get Transcode Sessions * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsRequestBuilder getTranscodeSessions() { - return new lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsRequestBuilder(this); + public GetTranscodeSessionsRequestBuilder getTranscodeSessions() { + return new GetTranscodeSessionsRequestBuilder(this); } /** @@ -330,7 +368,7 @@ public class Sessions implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception { + public GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -349,7 +387,10 @@ public class Sessions implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getTranscodeSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -357,18 +398,28 @@ public class Sessions implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getTranscodeSessions", + Optional.of(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()), + new AfterSuccessContextImpl( + "getTranscodeSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getTranscodeSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -376,28 +427,28 @@ public class Sessions implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse + GetTranscodeSessionsResponse.Builder _resBuilder = + GetTranscodeSessionsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse _res = _resBuilder.build(); + 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( + GetTranscodeSessionsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -406,14 +457,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetTranscodeSessionsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -421,14 +472,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -438,8 +489,8 @@ public class Sessions implements * 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); + public StopTranscodeSessionRequestBuilder stopTranscodeSession() { + return new StopTranscodeSessionRequestBuilder(this); } /** @@ -449,10 +500,10 @@ public class Sessions implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse stopTranscodeSession( + public StopTranscodeSessionResponse stopTranscodeSession( String sessionKey) throws Exception { - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest request = - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest + StopTranscodeSessionRequest request = + StopTranscodeSessionRequest .builder() .sessionKey(sessionKey) .build(); @@ -460,7 +511,7 @@ public class Sessions implements String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest.class, + StopTranscodeSessionRequest.class, _baseUrl, "/transcode/sessions/{sessionKey}", request, this.sdkConfiguration.globals); @@ -477,7 +528,10 @@ public class Sessions implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "stopTranscodeSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -485,18 +539,28 @@ public class Sessions implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "stopTranscodeSession", + Optional.of(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()), + new AfterSuccessContextImpl( + "stopTranscodeSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "stopTranscodeSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -504,14 +568,14 @@ public class Sessions implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse + StopTranscodeSessionResponse.Builder _resBuilder = + StopTranscodeSessionResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse _res = _resBuilder.build(); + StopTranscodeSessionResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -523,14 +587,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionResponseBody _out = Utils.mapper().readValue( + StopTranscodeSessionResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -538,14 +602,14 @@ public class Sessions implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Statistics.java b/src/main/java/dev/plexapi/sdk/Statistics.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/Statistics.java rename to src/main/java/dev/plexapi/sdk/Statistics.java index 3d05cc03..dbae41b5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Statistics.java +++ b/src/main/java/dev/plexapi/sdk/Statistics.java @@ -1,30 +1,38 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetBandwidthStatisticsRequest; +import dev.plexapi.sdk.models.operations.GetBandwidthStatisticsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetBandwidthStatisticsResponse; +import dev.plexapi.sdk.models.operations.GetBandwidthStatisticsResponseBody; +import dev.plexapi.sdk.models.operations.GetResourcesStatisticsRequest; +import dev.plexapi.sdk.models.operations.GetResourcesStatisticsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetResourcesStatisticsResponse; +import dev.plexapi.sdk.models.operations.GetResourcesStatisticsResponseBody; +import dev.plexapi.sdk.models.operations.GetStatisticsRequest; +import dev.plexapi.sdk.models.operations.GetStatisticsRequestBuilder; +import dev.plexapi.sdk.models.operations.GetStatisticsResponse; +import dev.plexapi.sdk.models.operations.GetStatisticsResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Long; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * API Calls that perform operations with Plex Media Server Statistics @@ -47,8 +55,8 @@ public class Statistics implements * 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); + public GetStatisticsRequestBuilder getStatistics() { + return new GetStatisticsRequestBuilder(this); } /** @@ -57,9 +65,10 @@ public class Statistics implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse getStatisticsDirect() throws Exception { + public GetStatisticsResponse getStatisticsDirect() throws Exception { return getStatistics(Optional.empty()); } + /** * Get Media Statistics * This will return the media statistics for the server @@ -69,10 +78,10 @@ public class Statistics implements * @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 + public GetStatisticsResponse getStatistics( + Optional timespan) throws Exception { + GetStatisticsRequest request = + GetStatisticsRequest .builder() .timespan(timespan) .build(); @@ -89,7 +98,7 @@ public class Statistics implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequest.class, + GetStatisticsRequest.class, request, this.sdkConfiguration.globals)); @@ -100,7 +109,10 @@ public class Statistics implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -108,18 +120,28 @@ public class Statistics implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getStatistics", + Optional.of(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()), + new AfterSuccessContextImpl( + "getStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -127,28 +149,28 @@ public class Statistics implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse + GetStatisticsResponse.Builder _resBuilder = + GetStatisticsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse _res = _resBuilder.build(); + 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( + GetStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -157,14 +179,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetStatisticsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -172,14 +194,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -189,8 +211,8 @@ public class Statistics implements * 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); + public GetResourcesStatisticsRequestBuilder getResourcesStatistics() { + return new GetResourcesStatisticsRequestBuilder(this); } /** @@ -199,9 +221,10 @@ public class Statistics implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse getResourcesStatisticsDirect() throws Exception { + public GetResourcesStatisticsResponse getResourcesStatisticsDirect() throws Exception { return getResourcesStatistics(Optional.empty()); } + /** * Get Resources Statistics * This will return the resources for the server @@ -211,10 +234,10 @@ public class Statistics implements * @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 + public GetResourcesStatisticsResponse getResourcesStatistics( + Optional timespan) throws Exception { + GetResourcesStatisticsRequest request = + GetResourcesStatisticsRequest .builder() .timespan(timespan) .build(); @@ -231,7 +254,7 @@ public class Statistics implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequest.class, + GetResourcesStatisticsRequest.class, request, this.sdkConfiguration.globals)); @@ -242,7 +265,10 @@ public class Statistics implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getResourcesStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -250,18 +276,28 @@ public class Statistics implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getResourcesStatistics", + Optional.of(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()), + new AfterSuccessContextImpl( + "getResourcesStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getResourcesStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -269,28 +305,28 @@ public class Statistics implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse + GetResourcesStatisticsResponse.Builder _resBuilder = + GetResourcesStatisticsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse _res = _resBuilder.build(); + 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( + GetResourcesStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -299,14 +335,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetResourcesStatisticsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetResourcesStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -314,14 +350,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -331,8 +367,8 @@ public class Statistics implements * 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); + public GetBandwidthStatisticsRequestBuilder getBandwidthStatistics() { + return new GetBandwidthStatisticsRequestBuilder(this); } /** @@ -341,9 +377,10 @@ public class Statistics implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse getBandwidthStatisticsDirect() throws Exception { + public GetBandwidthStatisticsResponse getBandwidthStatisticsDirect() throws Exception { return getBandwidthStatistics(Optional.empty()); } + /** * Get Bandwidth Statistics * This will return the bandwidth statistics for the server @@ -353,10 +390,10 @@ public class Statistics implements * @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 + public GetBandwidthStatisticsResponse getBandwidthStatistics( + Optional timespan) throws Exception { + GetBandwidthStatisticsRequest request = + GetBandwidthStatisticsRequest .builder() .timespan(timespan) .build(); @@ -373,7 +410,7 @@ public class Statistics implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequest.class, + GetBandwidthStatisticsRequest.class, request, this.sdkConfiguration.globals)); @@ -384,7 +421,10 @@ public class Statistics implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getBandwidthStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -392,18 +432,28 @@ public class Statistics implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getBandwidthStatistics", + Optional.of(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()), + new AfterSuccessContextImpl( + "getBandwidthStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getBandwidthStatistics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -411,28 +461,28 @@ public class Statistics implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse + GetBandwidthStatisticsResponse.Builder _resBuilder = + GetBandwidthStatisticsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse _res = _resBuilder.build(); + 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( + GetBandwidthStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -441,14 +491,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetBandwidthStatisticsResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetBandwidthStatisticsResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -456,14 +506,14 @@ public class Statistics implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Updater.java b/src/main/java/dev/plexapi/sdk/Updater.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/Updater.java rename to src/main/java/dev/plexapi/sdk/Updater.java index 2272c31d..45dec68f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Updater.java +++ b/src/main/java/dev/plexapi/sdk/Updater.java @@ -1,30 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.ApplyUpdatesResponseBody; +import dev.plexapi.sdk.models.errors.CheckForUpdatesResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.ApplyUpdatesRequest; +import dev.plexapi.sdk.models.operations.ApplyUpdatesRequestBuilder; +import dev.plexapi.sdk.models.operations.ApplyUpdatesResponse; +import dev.plexapi.sdk.models.operations.CheckForUpdatesRequest; +import dev.plexapi.sdk.models.operations.CheckForUpdatesRequestBuilder; +import dev.plexapi.sdk.models.operations.CheckForUpdatesResponse; +import dev.plexapi.sdk.models.operations.Download; +import dev.plexapi.sdk.models.operations.GetUpdateStatusRequestBuilder; +import dev.plexapi.sdk.models.operations.GetUpdateStatusResponse; +import dev.plexapi.sdk.models.operations.GetUpdateStatusResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.Skip; +import dev.plexapi.sdk.models.operations.Tonight; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * This describes the API for searching and applying updates to the Plex Media Server. @@ -48,8 +57,8 @@ public class Updater implements * 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); + public GetUpdateStatusRequestBuilder getUpdateStatus() { + return new GetUpdateStatusRequestBuilder(this); } /** @@ -58,7 +67,7 @@ public class Updater implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse getUpdateStatusDirect() throws Exception { + public GetUpdateStatusResponse getUpdateStatusDirect() throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -77,7 +86,10 @@ public class Updater implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getUpdateStatus", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -85,18 +97,28 @@ public class Updater implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getUpdateStatus", + Optional.of(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()), + new AfterSuccessContextImpl( + "getUpdateStatus", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getUpdateStatus", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -104,28 +126,28 @@ public class Updater implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse + GetUpdateStatusResponse.Builder _resBuilder = + GetUpdateStatusResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse _res = _resBuilder.build(); + 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( + GetUpdateStatusResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -134,14 +156,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetUpdateStatusResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -149,14 +171,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -166,8 +188,8 @@ public class Updater implements * Checking for updates * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequestBuilder checkForUpdates() { - return new lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequestBuilder(this); + public CheckForUpdatesRequestBuilder checkForUpdates() { + return new CheckForUpdatesRequestBuilder(this); } /** @@ -176,9 +198,10 @@ public class Updater implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse checkForUpdatesDirect() throws Exception { + public CheckForUpdatesResponse checkForUpdatesDirect() throws Exception { return checkForUpdates(Optional.empty()); } + /** * Checking for updates * Checking for updates @@ -186,10 +209,10 @@ public class Updater implements * @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 + public CheckForUpdatesResponse checkForUpdates( + Optional download) throws Exception { + CheckForUpdatesRequest request = + CheckForUpdatesRequest .builder() .download(download) .build(); @@ -206,7 +229,7 @@ public class Updater implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequest.class, + CheckForUpdatesRequest.class, request, this.sdkConfiguration.globals)); @@ -217,7 +240,10 @@ public class Updater implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "checkForUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -225,18 +251,28 @@ public class Updater implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "checkForUpdates", + Optional.of(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()), + new AfterSuccessContextImpl( + "checkForUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "checkForUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -244,14 +280,14 @@ public class Updater implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse + CheckForUpdatesResponse.Builder _resBuilder = + CheckForUpdatesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse _res = _resBuilder.build(); + CheckForUpdatesResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -263,14 +299,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesResponseBody _out = Utils.mapper().readValue( + CheckForUpdatesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -278,14 +314,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -296,8 +332,8 @@ public class Updater implements * * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequestBuilder applyUpdates() { - return new lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequestBuilder(this); + public ApplyUpdatesRequestBuilder applyUpdates() { + return new ApplyUpdatesRequestBuilder(this); } /** @@ -307,23 +343,24 @@ public class Updater implements * @return The response from the API call * @throws Exception if the API call fails */ - public lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse applyUpdatesDirect() throws Exception { + public 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`. + * @param skip Indicate that the latest version should be marked as skipped. The [Release] 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 + public ApplyUpdatesResponse applyUpdates( + Optional tonight, + Optional skip) throws Exception { + ApplyUpdatesRequest request = + ApplyUpdatesRequest .builder() .tonight(tonight) .skip(skip) @@ -341,7 +378,7 @@ public class Updater implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequest.class, + ApplyUpdatesRequest.class, request, this.sdkConfiguration.globals)); @@ -352,7 +389,10 @@ public class Updater implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "applyUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -360,18 +400,28 @@ public class Updater implements 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()), + new AfterErrorContextImpl( + "applyUpdates", + Optional.of(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()), + new AfterSuccessContextImpl( + "applyUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "applyUpdates", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -379,14 +429,14 @@ public class Updater implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse + ApplyUpdatesResponse.Builder _resBuilder = + ApplyUpdatesResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse _res = _resBuilder.build(); + ApplyUpdatesResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -398,14 +448,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesResponseBody _out = Utils.mapper().readValue( + ApplyUpdatesResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -413,14 +463,14 @@ public class Updater implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Video.java b/src/main/java/dev/plexapi/sdk/Video.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/Video.java rename to src/main/java/dev/plexapi/sdk/Video.java index d63b4f4a..3abddf67 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Video.java +++ b/src/main/java/dev/plexapi/sdk/Video.java @@ -1,30 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.GetTimelineResponseBody; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.errors.StartUniversalTranscodeResponseBody; +import dev.plexapi.sdk.models.operations.GetTimelineRequest; +import dev.plexapi.sdk.models.operations.GetTimelineRequestBuilder; +import dev.plexapi.sdk.models.operations.GetTimelineResponse; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.models.operations.StartUniversalTranscodeRequest; +import dev.plexapi.sdk.models.operations.StartUniversalTranscodeRequestBuilder; +import dev.plexapi.sdk.models.operations.StartUniversalTranscodeResponse; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.List; +import java.util.Optional; /** * API Calls that perform operations with Plex Media Server Videos @@ -46,8 +49,8 @@ public class Video implements * 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); + public GetTimelineRequestBuilder getTimeline() { + return new GetTimelineRequestBuilder(this); } /** @@ -57,8 +60,8 @@ public class Video implements * @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 { + public GetTimelineResponse getTimeline( + GetTimelineRequest request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -71,7 +74,7 @@ public class Video implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetTimelineRequest.class, + GetTimelineRequest.class, request, this.sdkConfiguration.globals)); @@ -82,7 +85,10 @@ public class Video implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getTimeline", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -90,18 +96,28 @@ public class Video implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getTimeline", + Optional.of(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()), + new AfterSuccessContextImpl( + "getTimeline", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getTimeline", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -109,14 +125,14 @@ public class Video implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse + GetTimelineResponse.Builder _resBuilder = + GetTimelineResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse _res = _resBuilder.build(); + GetTimelineResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -128,14 +144,14 @@ public class Video implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTimelineResponseBody _out = Utils.mapper().readValue( + GetTimelineResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -143,14 +159,14 @@ public class Video implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -160,8 +176,8 @@ public class Video implements * 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); + public StartUniversalTranscodeRequestBuilder startUniversalTranscode() { + return new StartUniversalTranscodeRequestBuilder(this); } /** @@ -171,8 +187,8 @@ public class Video implements * @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 { + public StartUniversalTranscodeResponse startUniversalTranscode( + StartUniversalTranscodeRequest request) throws Exception { String _baseUrl = Utils.templateUrl( this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String _url = Utils.generateURL( @@ -185,7 +201,7 @@ public class Video implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest.class, + StartUniversalTranscodeRequest.class, request, this.sdkConfiguration.globals)); @@ -196,7 +212,10 @@ public class Video implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "startUniversalTranscode", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -204,18 +223,28 @@ public class Video implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "startUniversalTranscode", + Optional.of(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()), + new AfterSuccessContextImpl( + "startUniversalTranscode", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "startUniversalTranscode", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -223,14 +252,14 @@ public class Video implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse + StartUniversalTranscodeResponse.Builder _resBuilder = + StartUniversalTranscodeResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse _res = _resBuilder.build(); + StartUniversalTranscodeResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { // no content @@ -242,14 +271,14 @@ public class Video implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeResponseBody _out = Utils.mapper().readValue( + StartUniversalTranscodeResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -257,14 +286,14 @@ public class Video implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/Watchlist.java b/src/main/java/dev/plexapi/sdk/Watchlist.java similarity index 54% rename from src/main/java/lukehagar/plexapi/plexapi/Watchlist.java rename to src/main/java/dev/plexapi/sdk/Watchlist.java index b4650a4c..37adf61f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/Watchlist.java +++ b/src/main/java/dev/plexapi/sdk/Watchlist.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi; +package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; +import dev.plexapi.sdk.models.errors.SDKError; +import dev.plexapi.sdk.models.operations.GetWatchListRequest; +import dev.plexapi.sdk.models.operations.GetWatchListRequestBuilder; +import dev.plexapi.sdk.models.operations.GetWatchListResponse; +import dev.plexapi.sdk.models.operations.GetWatchListResponseBody; +import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.HTTPRequest; +import dev.plexapi.sdk.utils.Hook.AfterErrorContextImpl; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; 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; +import java.util.HashMap; +import java.util.List; +import java.util.Optional; /** * API Calls that perform operations with Plex Media Server Watchlists * */ public class Watchlist implements - MethodCallGetWatchlist { + MethodCallGetWatchList { /** - * GET_WATCHLIST_SERVERS contains the list of server urls available to the SDK. + * GET_WATCH_LIST_SERVERS contains the list of server urls available to the SDK. */ - public static final String[] GET_WATCHLIST_SERVERS = { + public static final String[] GET_WATCH_LIST_SERVERS = { /** * The plex metadata provider server */ @@ -55,8 +55,8 @@ public class Watchlist implements * Get User Watchlist * @return The call builder */ - public lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequestBuilder getWatchlist() { - return new lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequestBuilder(this); + public GetWatchListRequestBuilder getWatchList() { + return new GetWatchListRequestBuilder(this); } /** @@ -66,10 +66,11 @@ public class Watchlist implements * @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()); + public GetWatchListResponse getWatchList( + GetWatchListRequest request) throws Exception { + return getWatchList(request, Optional.empty()); } + /** * Get User Watchlist * Get User Watchlist @@ -78,15 +79,15 @@ public class Watchlist implements * @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()); + public GetWatchListResponse getWatchList( + GetWatchListRequest request, + Optional serverURL) throws Exception { + String _baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap()); if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); } String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest.class, + GetWatchListRequest.class, _baseUrl, "/library/sections/watchlist/{filter}", request, this.sdkConfiguration.globals); @@ -97,7 +98,7 @@ public class Watchlist implements this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest.class, + GetWatchListRequest.class, request, this.sdkConfiguration.globals)); @@ -108,7 +109,10 @@ public class Watchlist implements HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "get-watch-list", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -116,18 +120,28 @@ public class Watchlist implements if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "get-watch-list", + Optional.of(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()), + new AfterSuccessContextImpl( + "get-watch-list", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "get-watch-list", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -135,28 +149,28 @@ public class Watchlist implements .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse + GetWatchListResponse.Builder _resBuilder = + GetWatchListResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse _res = _resBuilder.build(); + 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( + GetWatchListResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withObject(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { @@ -165,14 +179,14 @@ public class Watchlist implements _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetWatchlistResponseBody _out = Utils.mapper().readValue( + dev.plexapi.sdk.models.errors.GetWatchListResponseBody _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); + new TypeReference() {}); + _out.withRawResponse(Optional.ofNullable(_httpRes)); throw _out; } else { @@ -180,14 +194,14 @@ public class Watchlist implements _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/dev/plexapi/sdk/hooks/SDKHooks.java b/src/main/java/dev/plexapi/sdk/hooks/SDKHooks.java new file mode 100644 index 00000000..90f2175e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/hooks/SDKHooks.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.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(dev.plexapi.sdk.utils.Hooks hooks) { + // register hooks here + + // for more information see + // https://www.speakeasy.com/docs/additional-features/sdk-hooks + } + +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java index f347229b..690b9614 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class AddPlaylistContentsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public AddPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class AddPlaylistContentsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class AddPlaylistContentsErrors { return this; } - public AddPlaylistContentsErrors withCode(Optional code) { + public AddPlaylistContentsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class AddPlaylistContentsErrors { return this; } - public AddPlaylistContentsErrors withMessage(Optional message) { + public AddPlaylistContentsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class AddPlaylistContentsErrors { return this; } - public AddPlaylistContentsErrors withStatus(Optional status) { + public AddPlaylistContentsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class AddPlaylistContentsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class AddPlaylistContentsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class AddPlaylistContentsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class AddPlaylistContentsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class AddPlaylistContentsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsResponseBody.java index 5688610d..af0bc9dd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class AddPlaylistContentsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public AddPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class AddPlaylistContentsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public AddPlaylistContentsResponseBody withErrors(java.util.List errors) { + public AddPlaylistContentsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public AddPlaylistContentsResponseBody withErrors(Optional> errors) { + public AddPlaylistContentsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class AddPlaylistContentsResponseBody extends RuntimeException { } AddPlaylistContentsResponseBody other = (AddPlaylistContentsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class AddPlaylistContentsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class AddPlaylistContentsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java index 9d5b283e..b2a6b5cf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class ApplyUpdatesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public ApplyUpdatesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class ApplyUpdatesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class ApplyUpdatesErrors { return this; } - public ApplyUpdatesErrors withCode(Optional code) { + public ApplyUpdatesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class ApplyUpdatesErrors { return this; } - public ApplyUpdatesErrors withMessage(Optional message) { + public ApplyUpdatesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class ApplyUpdatesErrors { return this; } - public ApplyUpdatesErrors withStatus(Optional status) { + public ApplyUpdatesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class ApplyUpdatesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class ApplyUpdatesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class ApplyUpdatesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class ApplyUpdatesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class ApplyUpdatesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesResponseBody.java index c3ef7482..6f8f9f7f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class ApplyUpdatesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public ApplyUpdatesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class ApplyUpdatesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public ApplyUpdatesResponseBody withErrors(java.util.List errors) { + public ApplyUpdatesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public ApplyUpdatesResponseBody withErrors(Optional> errors) { + public ApplyUpdatesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class ApplyUpdatesResponseBody extends RuntimeException { } ApplyUpdatesResponseBody other = (ApplyUpdatesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class ApplyUpdatesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class ApplyUpdatesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java b/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java similarity index 84% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java rename to src/main/java/dev/plexapi/sdk/models/errors/AuthException.java index 1f9fe0db..84331fdb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.models.errors; import java.util.Optional; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java index 28f27d53..a9772a4a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CancelServerActivitiesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public CancelServerActivitiesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class CancelServerActivitiesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class CancelServerActivitiesErrors { return this; } - public CancelServerActivitiesErrors withCode(Optional code) { + public CancelServerActivitiesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class CancelServerActivitiesErrors { return this; } - public CancelServerActivitiesErrors withMessage(Optional message) { + public CancelServerActivitiesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class CancelServerActivitiesErrors { return this; } - public CancelServerActivitiesErrors withStatus(Optional status) { + public CancelServerActivitiesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class CancelServerActivitiesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class CancelServerActivitiesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class CancelServerActivitiesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class CancelServerActivitiesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class CancelServerActivitiesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesResponseBody.java index 72b81d5c..6f4e7dd3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class CancelServerActivitiesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public CancelServerActivitiesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class CancelServerActivitiesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public CancelServerActivitiesResponseBody withErrors(java.util.List errors) { + public CancelServerActivitiesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public CancelServerActivitiesResponseBody withErrors(Optional> errors) { + public CancelServerActivitiesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class CancelServerActivitiesResponseBody extends RuntimeException { } CancelServerActivitiesResponseBody other = (CancelServerActivitiesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class CancelServerActivitiesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class CancelServerActivitiesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java index b9d73dda..aed88815 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CheckForUpdatesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public CheckForUpdatesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class CheckForUpdatesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class CheckForUpdatesErrors { return this; } - public CheckForUpdatesErrors withCode(Optional code) { + public CheckForUpdatesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class CheckForUpdatesErrors { return this; } - public CheckForUpdatesErrors withMessage(Optional message) { + public CheckForUpdatesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class CheckForUpdatesErrors { return this; } - public CheckForUpdatesErrors withStatus(Optional status) { + public CheckForUpdatesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class CheckForUpdatesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class CheckForUpdatesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class CheckForUpdatesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class CheckForUpdatesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class CheckForUpdatesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesResponseBody.java index 29443f31..d379dbc9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class CheckForUpdatesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public CheckForUpdatesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class CheckForUpdatesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public CheckForUpdatesResponseBody withErrors(java.util.List errors) { + public CheckForUpdatesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public CheckForUpdatesResponseBody withErrors(Optional> errors) { + public CheckForUpdatesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class CheckForUpdatesResponseBody extends RuntimeException { } CheckForUpdatesResponseBody other = (CheckForUpdatesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class CheckForUpdatesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class CheckForUpdatesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java index 50be5c9e..0f9552e0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class ClearPlaylistContentsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public ClearPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class ClearPlaylistContentsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class ClearPlaylistContentsErrors { return this; } - public ClearPlaylistContentsErrors withCode(Optional code) { + public ClearPlaylistContentsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class ClearPlaylistContentsErrors { return this; } - public ClearPlaylistContentsErrors withMessage(Optional message) { + public ClearPlaylistContentsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class ClearPlaylistContentsErrors { return this; } - public ClearPlaylistContentsErrors withStatus(Optional status) { + public ClearPlaylistContentsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class ClearPlaylistContentsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class ClearPlaylistContentsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class ClearPlaylistContentsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class ClearPlaylistContentsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class ClearPlaylistContentsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsResponseBody.java index 9f721d12..ffa4ae78 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class ClearPlaylistContentsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public ClearPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class ClearPlaylistContentsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public ClearPlaylistContentsResponseBody withErrors(java.util.List errors) { + public ClearPlaylistContentsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public ClearPlaylistContentsResponseBody withErrors(Optional> errors) { + public ClearPlaylistContentsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class ClearPlaylistContentsResponseBody extends RuntimeException { } ClearPlaylistContentsResponseBody other = (ClearPlaylistContentsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class ClearPlaylistContentsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class ClearPlaylistContentsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java index 209b3a34..3c18e765 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CreatePlaylistErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public CreatePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class CreatePlaylistErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class CreatePlaylistErrors { return this; } - public CreatePlaylistErrors withCode(Optional code) { + public CreatePlaylistErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class CreatePlaylistErrors { return this; } - public CreatePlaylistErrors withMessage(Optional message) { + public CreatePlaylistErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class CreatePlaylistErrors { return this; } - public CreatePlaylistErrors withStatus(Optional status) { + public CreatePlaylistErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class CreatePlaylistErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class CreatePlaylistErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class CreatePlaylistErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class CreatePlaylistErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class CreatePlaylistErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistResponseBody.java index 3564d552..05b8824c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class CreatePlaylistResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public CreatePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class CreatePlaylistResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public CreatePlaylistResponseBody withErrors(java.util.List errors) { + public CreatePlaylistResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public CreatePlaylistResponseBody withErrors(Optional> errors) { + public CreatePlaylistResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class CreatePlaylistResponseBody extends RuntimeException { } CreatePlaylistResponseBody other = (CreatePlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class CreatePlaylistResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class CreatePlaylistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java index d339f658..e941329b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class DeleteLibraryErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public DeleteLibraryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class DeleteLibraryErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class DeleteLibraryErrors { return this; } - public DeleteLibraryErrors withCode(Optional code) { + public DeleteLibraryErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class DeleteLibraryErrors { return this; } - public DeleteLibraryErrors withMessage(Optional message) { + public DeleteLibraryErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class DeleteLibraryErrors { return this; } - public DeleteLibraryErrors withStatus(Optional status) { + public DeleteLibraryErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class DeleteLibraryErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class DeleteLibraryErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class DeleteLibraryErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class DeleteLibraryErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class DeleteLibraryErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryResponseBody.java index bc40dcb8..e8263939 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class DeleteLibraryResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public DeleteLibraryResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class DeleteLibraryResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public DeleteLibraryResponseBody withErrors(java.util.List errors) { + public DeleteLibraryResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public DeleteLibraryResponseBody withErrors(Optional> errors) { + public DeleteLibraryResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class DeleteLibraryResponseBody extends RuntimeException { } DeleteLibraryResponseBody other = (DeleteLibraryResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class DeleteLibraryResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class DeleteLibraryResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java index 410b407f..9b846de4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class DeletePlaylistErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public DeletePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class DeletePlaylistErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class DeletePlaylistErrors { return this; } - public DeletePlaylistErrors withCode(Optional code) { + public DeletePlaylistErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class DeletePlaylistErrors { return this; } - public DeletePlaylistErrors withMessage(Optional message) { + public DeletePlaylistErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class DeletePlaylistErrors { return this; } - public DeletePlaylistErrors withStatus(Optional status) { + public DeletePlaylistErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class DeletePlaylistErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class DeletePlaylistErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class DeletePlaylistErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class DeletePlaylistErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class DeletePlaylistErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistResponseBody.java index 2b3a7ad4..ffce654d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class DeletePlaylistResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public DeletePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class DeletePlaylistResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public DeletePlaylistResponseBody withErrors(java.util.List errors) { + public DeletePlaylistResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public DeletePlaylistResponseBody withErrors(Optional> errors) { + public DeletePlaylistResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class DeletePlaylistResponseBody extends RuntimeException { } DeletePlaylistResponseBody other = (DeletePlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class DeletePlaylistResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class DeletePlaylistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java index 449a7a78..ff5d8242 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class EnablePaperTrailErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public EnablePaperTrailErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class EnablePaperTrailErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class EnablePaperTrailErrors { return this; } - public EnablePaperTrailErrors withCode(Optional code) { + public EnablePaperTrailErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class EnablePaperTrailErrors { return this; } - public EnablePaperTrailErrors withMessage(Optional message) { + public EnablePaperTrailErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class EnablePaperTrailErrors { return this; } - public EnablePaperTrailErrors withStatus(Optional status) { + public EnablePaperTrailErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class EnablePaperTrailErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class EnablePaperTrailErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class EnablePaperTrailErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class EnablePaperTrailErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class EnablePaperTrailErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailResponseBody.java index 50888c3e..30cf8b71 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class EnablePaperTrailResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public EnablePaperTrailResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class EnablePaperTrailResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public EnablePaperTrailResponseBody withErrors(java.util.List errors) { + public EnablePaperTrailResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public EnablePaperTrailResponseBody withErrors(Optional> errors) { + public EnablePaperTrailResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class EnablePaperTrailResponseBody extends RuntimeException { } EnablePaperTrailResponseBody other = (EnablePaperTrailResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class EnablePaperTrailResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class EnablePaperTrailResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java b/src/main/java/dev/plexapi/sdk/models/errors/Errors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java rename to src/main/java/dev/plexapi/sdk/models/errors/Errors.java index fa3fa152..5aa2acdd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/Errors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Errors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public Errors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class Errors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class Errors { return this; } - public Errors withCode(Optional code) { + public Errors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class Errors { return this; } - public Errors withMessage(Optional message) { + public Errors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class Errors { return this; } - public Errors withStatus(Optional status) { + public Errors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class Errors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class Errors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class Errors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class Errors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class Errors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java new file mode 100644 index 00000000..8f8b741e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetAllLibrariesErrors { + + @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 GetAllLibrariesErrors( + @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 GetAllLibrariesErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetAllLibrariesErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetAllLibrariesErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetAllLibrariesErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetAllLibrariesErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetAllLibrariesErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetAllLibrariesErrors 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; + } + GetAllLibrariesErrors other = (GetAllLibrariesErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetAllLibrariesErrors.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 GetAllLibrariesErrors build() { + return new GetAllLibrariesErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesResponseBody.java new file mode 100644 index 00000000..1e8ff61b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetAllLibrariesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetAllLibrariesResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetAllLibrariesResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetAllLibrariesResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetAllLibrariesResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetAllLibrariesResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAllLibrariesResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAllLibrariesResponseBody 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; + } + GetAllLibrariesResponseBody other = (GetAllLibrariesResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetAllLibrariesResponseBody.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(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 GetAllLibrariesResponseBody build() { + return new GetAllLibrariesResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java index 734d1539..e2f5fada 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetAvailableClientsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetAvailableClientsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetAvailableClientsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetAvailableClientsErrors { return this; } - public GetAvailableClientsErrors withCode(Optional code) { + public GetAvailableClientsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetAvailableClientsErrors { return this; } - public GetAvailableClientsErrors withMessage(Optional message) { + public GetAvailableClientsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetAvailableClientsErrors { return this; } - public GetAvailableClientsErrors withStatus(Optional status) { + public GetAvailableClientsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetAvailableClientsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetAvailableClientsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetAvailableClientsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetAvailableClientsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetAvailableClientsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsResponseBody.java index 0fbfbb3c..5613c3b1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetAvailableClientsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetAvailableClientsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetAvailableClientsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetAvailableClientsResponseBody withErrors(java.util.List errors) { + public GetAvailableClientsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetAvailableClientsResponseBody withErrors(Optional> errors) { + public GetAvailableClientsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetAvailableClientsResponseBody extends RuntimeException { } GetAvailableClientsResponseBody other = (GetAvailableClientsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetAvailableClientsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetAvailableClientsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java index e6c2db0c..bba5ec7a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetBandwidthStatisticsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetBandwidthStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetBandwidthStatisticsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public GetBandwidthStatisticsErrors withCode(Optional code) { + public GetBandwidthStatisticsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public GetBandwidthStatisticsErrors withMessage(Optional message) { + public GetBandwidthStatisticsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public GetBandwidthStatisticsErrors withStatus(Optional status) { + public GetBandwidthStatisticsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetBandwidthStatisticsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetBandwidthStatisticsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetBandwidthStatisticsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsResponseBody.java index 031f0ca8..ffe0abf7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetBandwidthStatisticsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetBandwidthStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetBandwidthStatisticsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetBandwidthStatisticsResponseBody withErrors(java.util.List errors) { + public GetBandwidthStatisticsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetBandwidthStatisticsResponseBody withErrors(Optional> errors) { + public GetBandwidthStatisticsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetBandwidthStatisticsResponseBody extends RuntimeException { } GetBandwidthStatisticsResponseBody other = (GetBandwidthStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetBandwidthStatisticsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetBandwidthStatisticsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java new file mode 100644 index 00000000..15d7d8f3 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetBannerImageErrors { + + @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 GetBannerImageErrors( + @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 GetBannerImageErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetBannerImageErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetBannerImageErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetBannerImageErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetBannerImageErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetBannerImageErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetBannerImageErrors 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; + } + GetBannerImageErrors other = (GetBannerImageErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetBannerImageErrors.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 GetBannerImageErrors build() { + return new GetBannerImageErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageResponseBody.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageResponseBody.java index a53ed32f..c40f249b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetBannerImageResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class RefreshLibraryResponseBody extends RuntimeException { +public class GetBannerImageResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public RefreshLibraryResponseBody( - @JsonProperty("errors") Optional> errors, + public GetBannerImageResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class RefreshLibraryResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public RefreshLibraryResponseBody() { + public GetBannerImageResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public RefreshLibraryResponseBody withErrors(java.util.List errors) { + public GetBannerImageResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public RefreshLibraryResponseBody withErrors(Optional> errors) { + public GetBannerImageResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class RefreshLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public RefreshLibraryResponseBody withRawResponse(HttpResponse rawResponse) { + public GetBannerImageResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class RefreshLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public RefreshLibraryResponseBody withRawResponse(Optional> rawResponse) { + public GetBannerImageResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class RefreshLibraryResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - RefreshLibraryResponseBody other = (RefreshLibraryResponseBody) o; + GetBannerImageResponseBody other = (GetBannerImageResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class RefreshLibraryResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(RefreshLibraryResponseBody.class, + return Utils.toString(GetBannerImageResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class RefreshLibraryResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class RefreshLibraryResponseBody extends RuntimeException { return this; } - public RefreshLibraryResponseBody build() { - return new RefreshLibraryResponseBody( + public GetBannerImageResponseBody build() { + return new GetBannerImageResponseBody( errors, rawResponse); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java index 934776b7..ee7411ff 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetButlerTasksErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetButlerTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetButlerTasksErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetButlerTasksErrors { return this; } - public GetButlerTasksErrors withCode(Optional code) { + public GetButlerTasksErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetButlerTasksErrors { return this; } - public GetButlerTasksErrors withMessage(Optional message) { + public GetButlerTasksErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetButlerTasksErrors { return this; } - public GetButlerTasksErrors withStatus(Optional status) { + public GetButlerTasksErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetButlerTasksErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetButlerTasksErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetButlerTasksErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetButlerTasksErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetButlerTasksErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksResponseBody.java index 92b532e6..8f87249d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetButlerTasksResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetButlerTasksResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetButlerTasksResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetButlerTasksResponseBody withErrors(java.util.List errors) { + public GetButlerTasksResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetButlerTasksResponseBody withErrors(Optional> errors) { + public GetButlerTasksResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetButlerTasksResponseBody extends RuntimeException { } GetButlerTasksResponseBody other = (GetButlerTasksResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetButlerTasksResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetButlerTasksResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java new file mode 100644 index 00000000..a2cf190d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetCompanionsDataErrors { + + @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 GetCompanionsDataErrors( + @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 GetCompanionsDataErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetCompanionsDataErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetCompanionsDataErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetCompanionsDataErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetCompanionsDataErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetCompanionsDataErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetCompanionsDataErrors 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; + } + GetCompanionsDataErrors other = (GetCompanionsDataErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetCompanionsDataErrors.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 GetCompanionsDataErrors build() { + return new GetCompanionsDataErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataResponseBody.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataResponseBody.java index 5589200a..5e88c13b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetCompanionsDataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class GetServerIdentityResponseBody extends RuntimeException { +public class GetCompanionsDataResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public GetServerIdentityResponseBody( - @JsonProperty("errors") Optional> errors, + public GetCompanionsDataResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class GetServerIdentityResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public GetServerIdentityResponseBody() { + public GetCompanionsDataResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetServerIdentityResponseBody withErrors(java.util.List errors) { + public GetCompanionsDataResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetServerIdentityResponseBody withErrors(Optional> errors) { + public GetCompanionsDataResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class GetServerIdentityResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetServerIdentityResponseBody withRawResponse(HttpResponse rawResponse) { + public GetCompanionsDataResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class GetServerIdentityResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetServerIdentityResponseBody withRawResponse(Optional> rawResponse) { + public GetCompanionsDataResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class GetServerIdentityResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - GetServerIdentityResponseBody other = (GetServerIdentityResponseBody) o; + GetCompanionsDataResponseBody other = (GetCompanionsDataResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class GetServerIdentityResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(GetServerIdentityResponseBody.class, + return Utils.toString(GetCompanionsDataResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetServerIdentityResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class GetServerIdentityResponseBody extends RuntimeException { return this; } - public GetServerIdentityResponseBody build() { - return new GetServerIdentityResponseBody( + public GetCompanionsDataResponseBody build() { + return new GetCompanionsDataResponseBody( errors, rawResponse); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java index 8a5c5079..5ca2be81 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetDevicesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetDevicesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetDevicesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetDevicesErrors { return this; } - public GetDevicesErrors withCode(Optional code) { + public GetDevicesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetDevicesErrors { return this; } - public GetDevicesErrors withMessage(Optional message) { + public GetDevicesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetDevicesErrors { return this; } - public GetDevicesErrors withStatus(Optional status) { + public GetDevicesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetDevicesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetDevicesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetDevicesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetDevicesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetDevicesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetDevicesResponseBody.java index 27295acd..8d269da6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetDevicesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetDevicesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetDevicesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetDevicesResponseBody withErrors(java.util.List errors) { + public GetDevicesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetDevicesResponseBody withErrors(Optional> errors) { + public GetDevicesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetDevicesResponseBody extends RuntimeException { } GetDevicesResponseBody other = (GetDevicesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetDevicesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetDevicesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java index a6961706..92973ca6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetFileHashErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetFileHashErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetFileHashErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetFileHashErrors { return this; } - public GetFileHashErrors withCode(Optional code) { + public GetFileHashErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetFileHashErrors { return this; } - public GetFileHashErrors withMessage(Optional message) { + public GetFileHashErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetFileHashErrors { return this; } - public GetFileHashErrors withStatus(Optional status) { + public GetFileHashErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetFileHashErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetFileHashErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetFileHashErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetFileHashErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetFileHashErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetFileHashResponseBody.java index b5df26d9..b9376112 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetFileHashResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetFileHashResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetFileHashResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetFileHashResponseBody withErrors(java.util.List errors) { + public GetFileHashResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetFileHashResponseBody withErrors(Optional> errors) { + public GetFileHashResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetFileHashResponseBody extends RuntimeException { } GetFileHashResponseBody other = (GetFileHashResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetFileHashResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetFileHashResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java new file mode 100644 index 00000000..16be4fde --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetGeoDataErrors { + + @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 GetGeoDataErrors( + @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 GetGeoDataErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetGeoDataErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetGeoDataErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetGeoDataErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetGeoDataErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetGeoDataErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetGeoDataErrors 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; + } + GetGeoDataErrors other = (GetGeoDataErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetGeoDataErrors.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 GetGeoDataErrors build() { + return new GetGeoDataErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataResponseBody.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataResponseBody.java index 98bb21f7..e89f541c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetGeoDataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class GetLibraryResponseBody extends RuntimeException { +public class GetGeoDataResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public GetLibraryResponseBody( - @JsonProperty("errors") Optional> errors, + public GetGeoDataResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class GetLibraryResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public GetLibraryResponseBody() { + public GetGeoDataResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetLibraryResponseBody withErrors(java.util.List errors) { + public GetGeoDataResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetLibraryResponseBody withErrors(Optional> errors) { + public GetGeoDataResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class GetLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibraryResponseBody withRawResponse(HttpResponse rawResponse) { + public GetGeoDataResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class GetLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibraryResponseBody withRawResponse(Optional> rawResponse) { + public GetGeoDataResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class GetLibraryResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryResponseBody other = (GetLibraryResponseBody) o; + GetGeoDataResponseBody other = (GetGeoDataResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class GetLibraryResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(GetLibraryResponseBody.class, + return Utils.toString(GetGeoDataResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetLibraryResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class GetLibraryResponseBody extends RuntimeException { return this; } - public GetLibraryResponseBody build() { - return new GetLibraryResponseBody( + public GetGeoDataResponseBody build() { + return new GetGeoDataResponseBody( errors, rawResponse); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java index 9c2376ee..c73528fc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetGlobalHubsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetGlobalHubsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetGlobalHubsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetGlobalHubsErrors { return this; } - public GetGlobalHubsErrors withCode(Optional code) { + public GetGlobalHubsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetGlobalHubsErrors { return this; } - public GetGlobalHubsErrors withMessage(Optional message) { + public GetGlobalHubsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetGlobalHubsErrors { return this; } - public GetGlobalHubsErrors withStatus(Optional status) { + public GetGlobalHubsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetGlobalHubsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetGlobalHubsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetGlobalHubsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetGlobalHubsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetGlobalHubsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsResponseBody.java index 0d05b510..d7673e3c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetGlobalHubsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetGlobalHubsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetGlobalHubsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetGlobalHubsResponseBody withErrors(java.util.List errors) { + public GetGlobalHubsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetGlobalHubsResponseBody withErrors(Optional> errors) { + public GetGlobalHubsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetGlobalHubsResponseBody extends RuntimeException { } GetGlobalHubsResponseBody other = (GetGlobalHubsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetGlobalHubsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetGlobalHubsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java index d76306dd..99570f79 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetHomeDataErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetHomeDataErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetHomeDataErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetHomeDataErrors { return this; } - public GetHomeDataErrors withCode(Optional code) { + public GetHomeDataErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetHomeDataErrors { return this; } - public GetHomeDataErrors withMessage(Optional message) { + public GetHomeDataErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetHomeDataErrors { return this; } - public GetHomeDataErrors withStatus(Optional status) { + public GetHomeDataErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetHomeDataErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetHomeDataErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetHomeDataErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetHomeDataErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetHomeDataErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataResponseBody.java index d0afa29a..97112763 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetHomeDataResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetHomeDataResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetHomeDataResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetHomeDataResponseBody withErrors(java.util.List errors) { + public GetHomeDataResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetHomeDataResponseBody withErrors(Optional> errors) { + public GetHomeDataResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetHomeDataResponseBody extends RuntimeException { } GetHomeDataResponseBody other = (GetHomeDataResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetHomeDataResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetHomeDataResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java new file mode 100644 index 00000000..cb2c456e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetLibraryDetailsErrors { + + @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 GetLibraryDetailsErrors( + @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 GetLibraryDetailsErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetLibraryDetailsErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetLibraryDetailsErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetLibraryDetailsErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetLibraryDetailsErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetLibraryDetailsErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetLibraryDetailsErrors 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; + } + GetLibraryDetailsErrors other = (GetLibraryDetailsErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetLibraryDetailsErrors.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 GetLibraryDetailsErrors build() { + return new GetLibraryDetailsErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsResponseBody.java new file mode 100644 index 00000000..1900e419 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetLibraryDetailsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetLibraryDetailsResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetLibraryDetailsResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetLibraryDetailsResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetLibraryDetailsResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetLibraryDetailsResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetLibraryDetailsResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetLibraryDetailsResponseBody 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; + } + GetLibraryDetailsResponseBody other = (GetLibraryDetailsResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetLibraryDetailsResponseBody.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(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 GetLibraryDetailsResponseBody build() { + return new GetLibraryDetailsResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java index 1b3d1d86..c00f75ac 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetLibraryHubsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetLibraryHubsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetLibraryHubsErrors { return this; } - public GetLibraryHubsErrors withCode(Optional code) { + public GetLibraryHubsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetLibraryHubsErrors { return this; } - public GetLibraryHubsErrors withMessage(Optional message) { + public GetLibraryHubsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetLibraryHubsErrors { return this; } - public GetLibraryHubsErrors withStatus(Optional status) { + public GetLibraryHubsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetLibraryHubsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetLibraryHubsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetLibraryHubsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetLibraryHubsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetLibraryHubsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsResponseBody.java index 5d2600c9..7bf9ee98 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetLibraryHubsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetLibraryHubsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetLibraryHubsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetLibraryHubsResponseBody withErrors(java.util.List errors) { + public GetLibraryHubsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetLibraryHubsResponseBody withErrors(Optional> errors) { + public GetLibraryHubsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetLibraryHubsResponseBody extends RuntimeException { } GetLibraryHubsResponseBody other = (GetLibraryHubsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetLibraryHubsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetLibraryHubsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java index 9a13dcb2..e39789cd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetLibraryItemsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetLibraryItemsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetLibraryItemsErrors { return this; } - public GetLibraryItemsErrors withCode(Optional code) { + public GetLibraryItemsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetLibraryItemsErrors { return this; } - public GetLibraryItemsErrors withMessage(Optional message) { + public GetLibraryItemsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetLibraryItemsErrors { return this; } - public GetLibraryItemsErrors withStatus(Optional status) { + public GetLibraryItemsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetLibraryItemsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetLibraryItemsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetLibraryItemsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetLibraryItemsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetLibraryItemsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsResponseBody.java index 5a54de27..59cd5390 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetLibraryItemsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetLibraryItemsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetLibraryItemsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetLibraryItemsResponseBody withErrors(java.util.List errors) { + public GetLibraryItemsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetLibraryItemsResponseBody withErrors(Optional> errors) { + public GetLibraryItemsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetLibraryItemsResponseBody extends RuntimeException { } GetLibraryItemsResponseBody other = (GetLibraryItemsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetLibraryItemsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetLibraryItemsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java new file mode 100644 index 00000000..e680c187 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetMediaProvidersErrors { + + @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 GetMediaProvidersErrors( + @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 GetMediaProvidersErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMediaProvidersErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetMediaProvidersErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetMediaProvidersErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetMediaProvidersErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetMediaProvidersErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetMediaProvidersErrors 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; + } + GetMediaProvidersErrors other = (GetMediaProvidersErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetMediaProvidersErrors.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 GetMediaProvidersErrors build() { + return new GetMediaProvidersErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersResponseBody.java similarity index 62% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersResponseBody.java index 331133b6..28063653 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetMediaProvidersResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class GetLibrariesResponseBody extends RuntimeException { +public class GetMediaProvidersResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public GetLibrariesResponseBody( - @JsonProperty("errors") Optional> errors, + public GetMediaProvidersResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class GetLibrariesResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public GetLibrariesResponseBody() { + public GetMediaProvidersResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetLibrariesResponseBody withErrors(java.util.List errors) { + public GetMediaProvidersResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetLibrariesResponseBody withErrors(Optional> errors) { + public GetMediaProvidersResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class GetLibrariesResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibrariesResponseBody withRawResponse(HttpResponse rawResponse) { + public GetMediaProvidersResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class GetLibrariesResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibrariesResponseBody withRawResponse(Optional> rawResponse) { + public GetMediaProvidersResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class GetLibrariesResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - GetLibrariesResponseBody other = (GetLibrariesResponseBody) o; + GetMediaProvidersResponseBody other = (GetMediaProvidersResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class GetLibrariesResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(GetLibrariesResponseBody.class, + return Utils.toString(GetMediaProvidersResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetLibrariesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class GetLibrariesResponseBody extends RuntimeException { return this; } - public GetLibrariesResponseBody build() { - return new GetLibrariesResponseBody( + public GetMediaProvidersResponseBody build() { + return new GetMediaProvidersResponseBody( errors, rawResponse); } diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyErrors.java new file mode 100644 index 00000000..0a673ca9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetMetaDataByRatingKeyErrors { + + @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 GetMetaDataByRatingKeyErrors( + @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 GetMetaDataByRatingKeyErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMetaDataByRatingKeyErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetMetaDataByRatingKeyErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetMetaDataByRatingKeyErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetMetaDataByRatingKeyErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetMetaDataByRatingKeyErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetMetaDataByRatingKeyErrors 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; + } + GetMetaDataByRatingKeyErrors other = (GetMetaDataByRatingKeyErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetMetaDataByRatingKeyErrors.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 GetMetaDataByRatingKeyErrors build() { + return new GetMetaDataByRatingKeyErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyResponseBody.java new file mode 100644 index 00000000..8368641c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetaDataByRatingKeyResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetMetaDataByRatingKeyResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetMetaDataByRatingKeyResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetMetaDataByRatingKeyResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetMetaDataByRatingKeyResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMetaDataByRatingKeyResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetMetaDataByRatingKeyResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetMetaDataByRatingKeyResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetMetaDataByRatingKeyResponseBody 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; + } + GetMetaDataByRatingKeyResponseBody other = (GetMetaDataByRatingKeyResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetMetaDataByRatingKeyResponseBody.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(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 GetMetaDataByRatingKeyResponseBody build() { + return new GetMetaDataByRatingKeyResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java index 34af10d6..9782d79f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMetadataChildrenErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetMetadataChildrenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetMetadataChildrenErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetMetadataChildrenErrors { return this; } - public GetMetadataChildrenErrors withCode(Optional code) { + public GetMetadataChildrenErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetMetadataChildrenErrors { return this; } - public GetMetadataChildrenErrors withMessage(Optional message) { + public GetMetadataChildrenErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetMetadataChildrenErrors { return this; } - public GetMetadataChildrenErrors withStatus(Optional status) { + public GetMetadataChildrenErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetMetadataChildrenErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetMetadataChildrenErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetMetadataChildrenErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetMetadataChildrenErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetMetadataChildrenErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenResponseBody.java index 3d116d1e..1b7d5a49 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetMetadataChildrenResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetMetadataChildrenResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetMetadataChildrenResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetMetadataChildrenResponseBody withErrors(java.util.List errors) { + public GetMetadataChildrenResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetMetadataChildrenResponseBody withErrors(Optional> errors) { + public GetMetadataChildrenResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetMetadataChildrenResponseBody extends RuntimeException { } GetMetadataChildrenResponseBody other = (GetMetadataChildrenResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetMetadataChildrenResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetMetadataChildrenResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java index 56ac78e9..65f9320a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMyPlexAccountErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetMyPlexAccountErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetMyPlexAccountErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetMyPlexAccountErrors { return this; } - public GetMyPlexAccountErrors withCode(Optional code) { + public GetMyPlexAccountErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetMyPlexAccountErrors { return this; } - public GetMyPlexAccountErrors withMessage(Optional message) { + public GetMyPlexAccountErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetMyPlexAccountErrors { return this; } - public GetMyPlexAccountErrors withStatus(Optional status) { + public GetMyPlexAccountErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetMyPlexAccountErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetMyPlexAccountErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetMyPlexAccountErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetMyPlexAccountErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetMyPlexAccountErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountResponseBody.java index 68e2fc0c..b67972cb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetMyPlexAccountResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetMyPlexAccountResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetMyPlexAccountResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetMyPlexAccountResponseBody withErrors(java.util.List errors) { + public GetMyPlexAccountResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetMyPlexAccountResponseBody withErrors(Optional> errors) { + public GetMyPlexAccountResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetMyPlexAccountResponseBody extends RuntimeException { } GetMyPlexAccountResponseBody other = (GetMyPlexAccountResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetMyPlexAccountResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetMyPlexAccountResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckErrors.java index d1f9041c..cd0ac041 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetOnDeckErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetOnDeckErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetOnDeckErrors { return this; } - public GetOnDeckErrors withCode(Optional code) { + public GetOnDeckErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetOnDeckErrors { return this; } - public GetOnDeckErrors withMessage(Optional message) { + public GetOnDeckErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetOnDeckErrors { return this; } - public GetOnDeckErrors withStatus(Optional status) { + public GetOnDeckErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetOnDeckErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetOnDeckErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetOnDeckErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetOnDeckErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetOnDeckErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckResponseBody.java index d97cc4c3..592e0303 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetOnDeckResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetOnDeckResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetOnDeckResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetOnDeckResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetOnDeckResponseBody withErrors(java.util.List errors) { + public GetOnDeckResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetOnDeckResponseBody withErrors(Optional> errors) { + public GetOnDeckResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetOnDeckResponseBody extends RuntimeException { } GetOnDeckResponseBody other = (GetOnDeckResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetOnDeckResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetOnDeckResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java index 9a6bf355..828e21f1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPinErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetPinErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,35 +49,32 @@ public class GetPinErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional code() { - return (Optional) code; + public Optional code() { + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional status() { - return (Optional) status; + public Optional status() { + return status; } public final static Builder builder() { return new Builder(); } - public GetPinErrors withCode(double code) { + public GetPinErrors withCode(long code) { Utils.checkNotNull(code, "code"); this.code = Optional.ofNullable(code); return this; } - public GetPinErrors withCode(Optional code) { + public GetPinErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,19 +86,19 @@ public class GetPinErrors { return this; } - public GetPinErrors withMessage(Optional message) { + public GetPinErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; } - public GetPinErrors withStatus(double status) { + public GetPinErrors withStatus(long status) { Utils.checkNotNull(status, "status"); this.status = Optional.ofNullable(status); return this; } - public GetPinErrors withStatus(Optional status) { + public GetPinErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetPinErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,23 +137,23 @@ public class GetPinErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder code(double code) { + public Builder code(long code) { Utils.checkNotNull(code, "code"); this.code = Optional.ofNullable(code); return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,19 +165,19 @@ public class GetPinErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; } - public Builder status(double status) { + public Builder status(long status) { Utils.checkNotNull(status, "status"); this.status = Optional.ofNullable(status); return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPinResponseBody.java similarity index 73% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPinResponseBody.java index 0c3ce466..c38243d4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPinResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; /** - * GetPinResponseBody - X-Plex-Client-Identifier is missing + * GetPinResponseBody - Bad Request response when the X-Plex-Client-Identifier is missing */ public class GetPinResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetPinResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetPinResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetPinResponseBody withErrors(java.util.List errors) { + public GetPinResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetPinResponseBody withErrors(Optional> errors) { + public GetPinResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetPinResponseBody extends RuntimeException { } GetPinResponseBody other = (GetPinResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetPinResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetPinResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java index a7db9de1..83b5eb66 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetPlaylistContentsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetPlaylistContentsErrors { return this; } - public GetPlaylistContentsErrors withCode(Optional code) { + public GetPlaylistContentsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetPlaylistContentsErrors { return this; } - public GetPlaylistContentsErrors withMessage(Optional message) { + public GetPlaylistContentsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetPlaylistContentsErrors { return this; } - public GetPlaylistContentsErrors withStatus(Optional status) { + public GetPlaylistContentsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetPlaylistContentsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetPlaylistContentsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetPlaylistContentsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetPlaylistContentsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetPlaylistContentsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsResponseBody.java index f5edbf22..dfec2bd8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetPlaylistContentsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetPlaylistContentsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetPlaylistContentsResponseBody withErrors(java.util.List errors) { + public GetPlaylistContentsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetPlaylistContentsResponseBody withErrors(Optional> errors) { + public GetPlaylistContentsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetPlaylistContentsResponseBody extends RuntimeException { } GetPlaylistContentsResponseBody other = (GetPlaylistContentsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetPlaylistContentsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetPlaylistContentsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java index 5d5da5db..29b6df49 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetPlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetPlaylistErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetPlaylistErrors { return this; } - public GetPlaylistErrors withCode(Optional code) { + public GetPlaylistErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetPlaylistErrors { return this; } - public GetPlaylistErrors withMessage(Optional message) { + public GetPlaylistErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetPlaylistErrors { return this; } - public GetPlaylistErrors withStatus(Optional status) { + public GetPlaylistErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetPlaylistErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetPlaylistErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetPlaylistErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetPlaylistErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetPlaylistErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistResponseBody.java index 4a2356db..222ffe97 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetPlaylistResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetPlaylistResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetPlaylistResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetPlaylistResponseBody withErrors(java.util.List errors) { + public GetPlaylistResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetPlaylistResponseBody withErrors(Optional> errors) { + public GetPlaylistResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetPlaylistResponseBody extends RuntimeException { } GetPlaylistResponseBody other = (GetPlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetPlaylistResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetPlaylistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java index 68d1f1ef..a6ed3815 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetPlaylistsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetPlaylistsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetPlaylistsErrors { return this; } - public GetPlaylistsErrors withCode(Optional code) { + public GetPlaylistsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetPlaylistsErrors { return this; } - public GetPlaylistsErrors withMessage(Optional message) { + public GetPlaylistsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetPlaylistsErrors { return this; } - public GetPlaylistsErrors withStatus(Optional status) { + public GetPlaylistsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetPlaylistsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetPlaylistsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetPlaylistsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetPlaylistsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetPlaylistsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsResponseBody.java index 4243d13c..55555e20 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetPlaylistsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetPlaylistsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetPlaylistsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetPlaylistsResponseBody withErrors(java.util.List errors) { + public GetPlaylistsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetPlaylistsResponseBody withErrors(Optional> errors) { + public GetPlaylistsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetPlaylistsResponseBody extends RuntimeException { } GetPlaylistsResponseBody other = (GetPlaylistsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetPlaylistsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetPlaylistsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedErrors.java index 0188f62c..9ee63da4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetRecentlyAddedErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetRecentlyAddedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetRecentlyAddedErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetRecentlyAddedErrors { return this; } - public GetRecentlyAddedErrors withCode(Optional code) { + public GetRecentlyAddedErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetRecentlyAddedErrors { return this; } - public GetRecentlyAddedErrors withMessage(Optional message) { + public GetRecentlyAddedErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetRecentlyAddedErrors { return this; } - public GetRecentlyAddedErrors withStatus(Optional status) { + public GetRecentlyAddedErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetRecentlyAddedErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetRecentlyAddedErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetRecentlyAddedErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetRecentlyAddedErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetRecentlyAddedErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedResponseBody.java index f415515e..4252e09c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetRecentlyAddedResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetRecentlyAddedResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetRecentlyAddedResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetRecentlyAddedResponseBody withErrors(java.util.List errors) { + public GetRecentlyAddedResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetRecentlyAddedResponseBody withErrors(Optional> errors) { + public GetRecentlyAddedResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetRecentlyAddedResponseBody extends RuntimeException { } GetRecentlyAddedResponseBody other = (GetRecentlyAddedResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetRecentlyAddedResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetRecentlyAddedResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java new file mode 100644 index 00000000..a8b00bb5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetRefreshLibraryMetadataErrors { + + @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 GetRefreshLibraryMetadataErrors( + @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 GetRefreshLibraryMetadataErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetRefreshLibraryMetadataErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetRefreshLibraryMetadataErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetRefreshLibraryMetadataErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetRefreshLibraryMetadataErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetRefreshLibraryMetadataErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetRefreshLibraryMetadataErrors 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; + } + GetRefreshLibraryMetadataErrors other = (GetRefreshLibraryMetadataErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetRefreshLibraryMetadataErrors.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 GetRefreshLibraryMetadataErrors build() { + return new GetRefreshLibraryMetadataErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataResponseBody.java new file mode 100644 index 00000000..da882abc --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetRefreshLibraryMetadataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetRefreshLibraryMetadataResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetRefreshLibraryMetadataResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetRefreshLibraryMetadataResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetRefreshLibraryMetadataResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetRefreshLibraryMetadataResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetRefreshLibraryMetadataResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetRefreshLibraryMetadataResponseBody 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; + } + GetRefreshLibraryMetadataResponseBody other = (GetRefreshLibraryMetadataResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetRefreshLibraryMetadataResponseBody.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(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 GetRefreshLibraryMetadataResponseBody build() { + return new GetRefreshLibraryMetadataResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java index b069a637..87767fd1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetResizedPhotoErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetResizedPhotoErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetResizedPhotoErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetResizedPhotoErrors { return this; } - public GetResizedPhotoErrors withCode(Optional code) { + public GetResizedPhotoErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetResizedPhotoErrors { return this; } - public GetResizedPhotoErrors withMessage(Optional message) { + public GetResizedPhotoErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetResizedPhotoErrors { return this; } - public GetResizedPhotoErrors withStatus(Optional status) { + public GetResizedPhotoErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetResizedPhotoErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetResizedPhotoErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetResizedPhotoErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetResizedPhotoErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetResizedPhotoErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoResponseBody.java index 6e31fb88..e8e330a4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetResizedPhotoResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetResizedPhotoResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetResizedPhotoResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetResizedPhotoResponseBody withErrors(java.util.List errors) { + public GetResizedPhotoResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetResizedPhotoResponseBody withErrors(Optional> errors) { + public GetResizedPhotoResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetResizedPhotoResponseBody extends RuntimeException { } GetResizedPhotoResponseBody other = (GetResizedPhotoResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetResizedPhotoResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetResizedPhotoResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java index 61e0f383..2a2ecccf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetResourcesStatisticsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetResourcesStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetResourcesStatisticsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetResourcesStatisticsErrors { return this; } - public GetResourcesStatisticsErrors withCode(Optional code) { + public GetResourcesStatisticsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetResourcesStatisticsErrors { return this; } - public GetResourcesStatisticsErrors withMessage(Optional message) { + public GetResourcesStatisticsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetResourcesStatisticsErrors { return this; } - public GetResourcesStatisticsErrors withStatus(Optional status) { + public GetResourcesStatisticsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetResourcesStatisticsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetResourcesStatisticsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetResourcesStatisticsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetResourcesStatisticsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetResourcesStatisticsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsResponseBody.java index cc381e79..9d082535 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetResourcesStatisticsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetResourcesStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetResourcesStatisticsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetResourcesStatisticsResponseBody withErrors(java.util.List errors) { + public GetResourcesStatisticsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetResourcesStatisticsResponseBody withErrors(Optional> errors) { + public GetResourcesStatisticsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetResourcesStatisticsResponseBody extends RuntimeException { } GetResourcesStatisticsResponseBody other = (GetResourcesStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetResourcesStatisticsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetResourcesStatisticsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java new file mode 100644 index 00000000..ed47bbd5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetSearchLibraryErrors { + + @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 GetSearchLibraryErrors( + @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 GetSearchLibraryErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetSearchLibraryErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetSearchLibraryErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetSearchLibraryErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetSearchLibraryErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetSearchLibraryErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetSearchLibraryErrors 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; + } + GetSearchLibraryErrors other = (GetSearchLibraryErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetSearchLibraryErrors.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 GetSearchLibraryErrors build() { + return new GetSearchLibraryErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryResponseBody.java new file mode 100644 index 00000000..ac183447 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetSearchLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetSearchLibraryResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetSearchLibraryResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetSearchLibraryResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetSearchLibraryResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetSearchLibraryResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSearchLibraryResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSearchLibraryResponseBody 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; + } + GetSearchLibraryResponseBody other = (GetSearchLibraryResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetSearchLibraryResponseBody.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(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 GetSearchLibraryResponseBody build() { + return new GetSearchLibraryResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java index a8138304..e85a6126 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetSearchResultsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetSearchResultsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetSearchResultsErrors { return this; } - public GetSearchResultsErrors withCode(Optional code) { + public GetSearchResultsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetSearchResultsErrors { return this; } - public GetSearchResultsErrors withMessage(Optional message) { + public GetSearchResultsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetSearchResultsErrors { return this; } - public GetSearchResultsErrors withStatus(Optional status) { + public GetSearchResultsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetSearchResultsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetSearchResultsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetSearchResultsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetSearchResultsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetSearchResultsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsResponseBody.java index d890c786..da48beb3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetSearchResultsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetSearchResultsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetSearchResultsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetSearchResultsResponseBody withErrors(java.util.List errors) { + public GetSearchResultsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetSearchResultsResponseBody withErrors(Optional> errors) { + public GetSearchResultsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetSearchResultsResponseBody extends RuntimeException { } GetSearchResultsResponseBody other = (GetSearchResultsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetSearchResultsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetSearchResultsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java index 8095f063..cad9d4f4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerActivitiesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetServerActivitiesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetServerActivitiesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetServerActivitiesErrors { return this; } - public GetServerActivitiesErrors withCode(Optional code) { + public GetServerActivitiesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetServerActivitiesErrors { return this; } - public GetServerActivitiesErrors withMessage(Optional message) { + public GetServerActivitiesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetServerActivitiesErrors { return this; } - public GetServerActivitiesErrors withStatus(Optional status) { + public GetServerActivitiesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetServerActivitiesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetServerActivitiesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetServerActivitiesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetServerActivitiesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetServerActivitiesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesResponseBody.java index 6e08f84f..d1751feb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetServerActivitiesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetServerActivitiesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetServerActivitiesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetServerActivitiesResponseBody withErrors(java.util.List errors) { + public GetServerActivitiesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetServerActivitiesResponseBody withErrors(Optional> errors) { + public GetServerActivitiesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetServerActivitiesResponseBody extends RuntimeException { } GetServerActivitiesResponseBody other = (GetServerActivitiesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetServerActivitiesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetServerActivitiesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesResponseBody.java similarity index 77% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesResponseBody.java index b9fad601..d72d4a91 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetServerCapabilitiesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetServerCapabilitiesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetServerCapabilitiesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetServerCapabilitiesResponseBody withErrors(java.util.List errors) { + public GetServerCapabilitiesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetServerCapabilitiesResponseBody withErrors(Optional> errors) { + public GetServerCapabilitiesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetServerCapabilitiesResponseBody extends RuntimeException { } GetServerCapabilitiesResponseBody other = (GetServerCapabilitiesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetServerCapabilitiesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetServerCapabilitiesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityResponseBody.java new file mode 100644 index 00000000..380ddbf8 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityResponseBody.java @@ -0,0 +1,212 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + +/** + * GetServerIdentityResponseBody - Request Timeout + */ +public class GetServerIdentityResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + private Optional code; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + private Optional message; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetServerIdentityResponseBody( + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(message, "message"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.code = code; + this.message = message; + this.rawResponse = rawResponse; + } + + public GetServerIdentityResponseBody() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + public Optional code(){ + return code; + } + + public Optional message(){ + return message; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetServerIdentityResponseBody withCode(long code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetServerIdentityResponseBody withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetServerIdentityResponseBody withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetServerIdentityResponseBody withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + 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 + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + code, + message, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerIdentityResponseBody.class, + "code", code, + "message", message, + "rawResponse", rawResponse); + } + + public final static class Builder { + + private Optional code = Optional.empty(); + + private Optional message = Optional.empty(); + + private Optional> rawResponse; + + private Builder() { + // force use of static builder() method + } + + public Builder code(long 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; + } + + /** + * 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( + code, + message, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java index 9348e52f..4fbbdb3f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerListErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetServerListErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetServerListErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetServerListErrors { return this; } - public GetServerListErrors withCode(Optional code) { + public GetServerListErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetServerListErrors { return this; } - public GetServerListErrors withMessage(Optional message) { + public GetServerListErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetServerListErrors { return this; } - public GetServerListErrors withStatus(Optional status) { + public GetServerListErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetServerListErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetServerListErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetServerListErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetServerListErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetServerListErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerListResponseBody.java index 146210df..01c15c0d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetServerListResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetServerListResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetServerListResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetServerListResponseBody withErrors(java.util.List errors) { + public GetServerListResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetServerListResponseBody withErrors(Optional> errors) { + public GetServerListResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetServerListResponseBody extends RuntimeException { } GetServerListResponseBody other = (GetServerListResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetServerListResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetServerListResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java index cac60541..fa22ec5a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerPreferencesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetServerPreferencesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetServerPreferencesErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetServerPreferencesErrors { return this; } - public GetServerPreferencesErrors withCode(Optional code) { + public GetServerPreferencesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetServerPreferencesErrors { return this; } - public GetServerPreferencesErrors withMessage(Optional message) { + public GetServerPreferencesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetServerPreferencesErrors { return this; } - public GetServerPreferencesErrors withStatus(Optional status) { + public GetServerPreferencesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetServerPreferencesErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetServerPreferencesErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetServerPreferencesErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetServerPreferencesErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetServerPreferencesErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesResponseBody.java index 2ae84dde..76adc3a3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetServerPreferencesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetServerPreferencesResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetServerPreferencesResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetServerPreferencesResponseBody withErrors(java.util.List errors) { + public GetServerPreferencesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetServerPreferencesResponseBody withErrors(Optional> errors) { + public GetServerPreferencesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetServerPreferencesResponseBody extends RuntimeException { } GetServerPreferencesResponseBody other = (GetServerPreferencesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetServerPreferencesResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetServerPreferencesResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java index 4da85bf8..74252a94 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetTokenErrors { + +public class GetServerResourcesErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator - public GetTokenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + public GetServerResourcesErrors( + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -45,63 +45,60 @@ public class GetTokenErrors { this.status = status; } - public GetTokenErrors() { + public GetServerResourcesErrors() { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { return new Builder(); } - public GetTokenErrors withCode(double code) { + public GetServerResourcesErrors withCode(double code) { Utils.checkNotNull(code, "code"); this.code = Optional.ofNullable(code); return this; } - public GetTokenErrors withCode(Optional code) { + public GetServerResourcesErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; } - public GetTokenErrors withMessage(String message) { + public GetServerResourcesErrors withMessage(String message) { Utils.checkNotNull(message, "message"); this.message = Optional.ofNullable(message); return this; } - public GetTokenErrors withMessage(Optional message) { + public GetServerResourcesErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; } - public GetTokenErrors withStatus(double status) { + public GetServerResourcesErrors withStatus(double status) { Utils.checkNotNull(status, "status"); this.status = Optional.ofNullable(status); return this; } - public GetTokenErrors withStatus(Optional status) { + public GetServerResourcesErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -115,16 +112,16 @@ public class GetTokenErrors { if (o == null || getClass() != o.getClass()) { return false; } - GetTokenErrors other = (GetTokenErrors) o; + GetServerResourcesErrors other = (GetServerResourcesErrors) 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -132,7 +129,7 @@ public class GetTokenErrors { @Override public String toString() { - return Utils.toString(GetTokenErrors.class, + return Utils.toString(GetServerResourcesErrors.class, "code", code, "message", message, "status", status); @@ -140,11 +137,11 @@ public class GetTokenErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTokenErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetTokenErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,14 +177,14 @@ public class GetTokenErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } - public GetTokenErrors build() { - return new GetTokenErrors( + public GetServerResourcesErrors build() { + return new GetServerResourcesErrors( code, message, status); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesResponseBody.java similarity index 62% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesResponseBody.java index 6dc7daa1..efa33bea 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; /** - * GetTokenResponseBody - X-Plex-Client-Identifier is missing + * GetServerResourcesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class GetTokenResponseBody extends RuntimeException { +public class GetServerResourcesResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public GetTokenResponseBody( - @JsonProperty("errors") Optional> errors, + public GetServerResourcesResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class GetTokenResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public GetTokenResponseBody() { + public GetServerResourcesResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetTokenResponseBody withErrors(java.util.List errors) { + public GetServerResourcesResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetTokenResponseBody withErrors(Optional> errors) { + public GetServerResourcesResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class GetTokenResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetTokenResponseBody withRawResponse(HttpResponse rawResponse) { + public GetServerResourcesResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class GetTokenResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetTokenResponseBody withRawResponse(Optional> rawResponse) { + public GetServerResourcesResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class GetTokenResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - GetTokenResponseBody other = (GetTokenResponseBody) o; + GetServerResourcesResponseBody other = (GetServerResourcesResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class GetTokenResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(GetTokenResponseBody.class, + return Utils.toString(GetServerResourcesResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetTokenResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class GetTokenResponseBody extends RuntimeException { return this; } - public GetTokenResponseBody build() { - return new GetTokenResponseBody( + public GetServerResourcesResponseBody build() { + return new GetServerResourcesResponseBody( errors, rawResponse); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java index 4ec504f1..ac9812b5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionHistoryErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetSessionHistoryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetSessionHistoryErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetSessionHistoryErrors { return this; } - public GetSessionHistoryErrors withCode(Optional code) { + public GetSessionHistoryErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetSessionHistoryErrors { return this; } - public GetSessionHistoryErrors withMessage(Optional message) { + public GetSessionHistoryErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetSessionHistoryErrors { return this; } - public GetSessionHistoryErrors withStatus(Optional status) { + public GetSessionHistoryErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetSessionHistoryErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetSessionHistoryErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetSessionHistoryErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetSessionHistoryErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetSessionHistoryErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryResponseBody.java index 6727e55d..b5804d72 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetSessionHistoryResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetSessionHistoryResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetSessionHistoryResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetSessionHistoryResponseBody withErrors(java.util.List errors) { + public GetSessionHistoryResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetSessionHistoryResponseBody withErrors(Optional> errors) { + public GetSessionHistoryResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetSessionHistoryResponseBody extends RuntimeException { } GetSessionHistoryResponseBody other = (GetSessionHistoryResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetSessionHistoryResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetSessionHistoryResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java index 752ead44..ac0e8d4f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetSessionsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetSessionsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetSessionsErrors { return this; } - public GetSessionsErrors withCode(Optional code) { + public GetSessionsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetSessionsErrors { return this; } - public GetSessionsErrors withMessage(Optional message) { + public GetSessionsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetSessionsErrors { return this; } - public GetSessionsErrors withStatus(Optional status) { + public GetSessionsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetSessionsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetSessionsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetSessionsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetSessionsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetSessionsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSessionsResponseBody.java index a6930e0f..8a8cd22b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetSessionsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetSessionsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetSessionsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetSessionsResponseBody withErrors(java.util.List errors) { + public GetSessionsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetSessionsResponseBody withErrors(Optional> errors) { + public GetSessionsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetSessionsResponseBody extends RuntimeException { } GetSessionsResponseBody other = (GetSessionsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetSessionsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetSessionsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java similarity index 71% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java index f834086e..5b8c0601 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSourceConnectionInformationErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetSourceConnectionInformationErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetSourceConnectionInformationErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public GetSourceConnectionInformationErrors withCode(Optional code) { + public GetSourceConnectionInformationErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public GetSourceConnectionInformationErrors withMessage(Optional message) { + public GetSourceConnectionInformationErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public GetSourceConnectionInformationErrors withStatus(Optional status) { + public GetSourceConnectionInformationErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetSourceConnectionInformationErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetSourceConnectionInformationErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetSourceConnectionInformationErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationResponseBody.java index 0df9724c..3e051533 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetSourceConnectionInformationResponseBody extends RuntimeException @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetSourceConnectionInformationResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetSourceConnectionInformationResponseBody extends RuntimeException this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetSourceConnectionInformationResponseBody withErrors(java.util.List errors) { + public GetSourceConnectionInformationResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetSourceConnectionInformationResponseBody withErrors(Optional> errors) { + public GetSourceConnectionInformationResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetSourceConnectionInformationResponseBody extends RuntimeException } GetSourceConnectionInformationResponseBody other = (GetSourceConnectionInformationResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetSourceConnectionInformationResponseBody extends RuntimeException public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetSourceConnectionInformationResponseBody extends RuntimeException // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java index 04fbd168..61e131ea 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetStatisticsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetStatisticsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetStatisticsErrors { return this; } - public GetStatisticsErrors withCode(Optional code) { + public GetStatisticsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetStatisticsErrors { return this; } - public GetStatisticsErrors withMessage(Optional message) { + public GetStatisticsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetStatisticsErrors { return this; } - public GetStatisticsErrors withStatus(Optional status) { + public GetStatisticsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetStatisticsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetStatisticsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetStatisticsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetStatisticsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetStatisticsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsResponseBody.java index ed03f3d9..6aae97cd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetStatisticsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetStatisticsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetStatisticsResponseBody withErrors(java.util.List errors) { + public GetStatisticsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetStatisticsResponseBody withErrors(Optional> errors) { + public GetStatisticsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetStatisticsResponseBody extends RuntimeException { } GetStatisticsResponseBody other = (GetStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetStatisticsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetStatisticsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java new file mode 100644 index 00000000..24dc2e98 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetThumbImageErrors { + + @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 GetThumbImageErrors( + @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 GetThumbImageErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetThumbImageErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetThumbImageErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetThumbImageErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetThumbImageErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetThumbImageErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetThumbImageErrors 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; + } + GetThumbImageErrors other = (GetThumbImageErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetThumbImageErrors.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 GetThumbImageErrors build() { + return new GetThumbImageErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageResponseBody.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageResponseBody.java index f292e3d5..b07cca4f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetThumbImageResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class SearchLibraryResponseBody extends RuntimeException { +public class GetThumbImageResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public SearchLibraryResponseBody( - @JsonProperty("errors") Optional> errors, + public GetThumbImageResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class SearchLibraryResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public SearchLibraryResponseBody() { + public GetThumbImageResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public SearchLibraryResponseBody withErrors(java.util.List errors) { + public GetThumbImageResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public SearchLibraryResponseBody withErrors(Optional> errors) { + public GetThumbImageResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class SearchLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public SearchLibraryResponseBody withRawResponse(HttpResponse rawResponse) { + public GetThumbImageResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class SearchLibraryResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public SearchLibraryResponseBody withRawResponse(Optional> rawResponse) { + public GetThumbImageResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class SearchLibraryResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - SearchLibraryResponseBody other = (SearchLibraryResponseBody) o; + GetThumbImageResponseBody other = (GetThumbImageResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class SearchLibraryResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(SearchLibraryResponseBody.class, + return Utils.toString(GetThumbImageResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class SearchLibraryResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class SearchLibraryResponseBody extends RuntimeException { return this; } - public SearchLibraryResponseBody build() { - return new SearchLibraryResponseBody( + public GetThumbImageResponseBody build() { + return new GetThumbImageResponseBody( errors, rawResponse); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java index 017bd5c7..a7075fe4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTimelineErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetTimelineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetTimelineErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetTimelineErrors { return this; } - public GetTimelineErrors withCode(Optional code) { + public GetTimelineErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetTimelineErrors { return this; } - public GetTimelineErrors withMessage(Optional message) { + public GetTimelineErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetTimelineErrors { return this; } - public GetTimelineErrors withStatus(Optional status) { + public GetTimelineErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetTimelineErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetTimelineErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTimelineErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetTimelineErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetTimelineErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTimelineResponseBody.java index 66e050a3..e8c4dadd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetTimelineResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetTimelineResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetTimelineResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetTimelineResponseBody withErrors(java.util.List errors) { + public GetTimelineResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetTimelineResponseBody withErrors(Optional> errors) { + public GetTimelineResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetTimelineResponseBody extends RuntimeException { } GetTimelineResponseBody other = (GetTimelineResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetTimelineResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetTimelineResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java new file mode 100644 index 00000000..3ea4e5a9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetTokenByPinIdErrors { + + @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 GetTokenByPinIdErrors( + @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 GetTokenByPinIdErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTokenByPinIdErrors withCode(long code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetTokenByPinIdErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetTokenByPinIdErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetTokenByPinIdErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetTokenByPinIdErrors withStatus(long status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetTokenByPinIdErrors 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; + } + GetTokenByPinIdErrors other = (GetTokenByPinIdErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdErrors.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(long 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(long 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 GetTokenByPinIdErrors build() { + return new GetTokenByPinIdErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java new file mode 100644 index 00000000..7d76eaf6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java @@ -0,0 +1,152 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetTokenByPinIdPlexErrors { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + private Optional code; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + private Optional message; + + @JsonCreator + public GetTokenByPinIdPlexErrors( + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message) { + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(message, "message"); + this.code = code; + this.message = message; + } + + public GetTokenByPinIdPlexErrors() { + this(Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTokenByPinIdPlexErrors withCode(long code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetTokenByPinIdPlexErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetTokenByPinIdPlexErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetTokenByPinIdPlexErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTokenByPinIdPlexErrors other = (GetTokenByPinIdPlexErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdPlexErrors.class, + "code", code, + "message", message); + } + + public final static class Builder { + + private Optional code = Optional.empty(); + + private Optional message = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder code(long 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 GetTokenByPinIdPlexErrors build() { + return new GetTokenByPinIdPlexErrors( + code, + message); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexResponseBody.java new file mode 100644 index 00000000..bfab92a2 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetTokenByPinIdPlexResponseBody - Not Found or Expired + */ +public class GetTokenByPinIdPlexResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetTokenByPinIdPlexResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetTokenByPinIdPlexResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTokenByPinIdPlexResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetTokenByPinIdPlexResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTokenByPinIdPlexResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTokenByPinIdPlexResponseBody 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; + } + GetTokenByPinIdPlexResponseBody other = (GetTokenByPinIdPlexResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdPlexResponseBody.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(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 GetTokenByPinIdPlexResponseBody build() { + return new GetTokenByPinIdPlexResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java new file mode 100644 index 00000000..6e69052a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetTokenByPinIdResponseBody - Bad Request response when the X-Plex-Client-Identifier is missing + */ +public class GetTokenByPinIdResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetTokenByPinIdResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetTokenByPinIdResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTokenByPinIdResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetTokenByPinIdResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTokenByPinIdResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTokenByPinIdResponseBody 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; + } + GetTokenByPinIdResponseBody other = (GetTokenByPinIdResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdResponseBody.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(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 GetTokenByPinIdResponseBody build() { + return new GetTokenByPinIdResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java new file mode 100644 index 00000000..d7e97635 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetTopWatchedContentErrors { + + @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 GetTopWatchedContentErrors( + @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 GetTopWatchedContentErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTopWatchedContentErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetTopWatchedContentErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetTopWatchedContentErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetTopWatchedContentErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetTopWatchedContentErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetTopWatchedContentErrors 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; + } + GetTopWatchedContentErrors other = (GetTopWatchedContentErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetTopWatchedContentErrors.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 GetTopWatchedContentErrors build() { + return new GetTopWatchedContentErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentResponseBody.java new file mode 100644 index 00000000..98b22ddd --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetTopWatchedContentResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetTopWatchedContentResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetTopWatchedContentResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetTopWatchedContentResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTopWatchedContentResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetTopWatchedContentResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTopWatchedContentResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTopWatchedContentResponseBody 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; + } + GetTopWatchedContentResponseBody other = (GetTopWatchedContentResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetTopWatchedContentResponseBody.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(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 GetTopWatchedContentResponseBody build() { + return new GetTopWatchedContentResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java index fad2c81c..ce54d313 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTranscodeSessionsErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetTranscodeSessionsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetTranscodeSessionsErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetTranscodeSessionsErrors { return this; } - public GetTranscodeSessionsErrors withCode(Optional code) { + public GetTranscodeSessionsErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetTranscodeSessionsErrors { return this; } - public GetTranscodeSessionsErrors withMessage(Optional message) { + public GetTranscodeSessionsErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetTranscodeSessionsErrors { return this; } - public GetTranscodeSessionsErrors withStatus(Optional status) { + public GetTranscodeSessionsErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetTranscodeSessionsErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetTranscodeSessionsErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTranscodeSessionsErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetTranscodeSessionsErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetTranscodeSessionsErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsResponseBody.java index d4453c9b..1450f8d8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetTranscodeSessionsResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetTranscodeSessionsResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetTranscodeSessionsResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetTranscodeSessionsResponseBody withErrors(java.util.List errors) { + public GetTranscodeSessionsResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetTranscodeSessionsResponseBody withErrors(Optional> errors) { + public GetTranscodeSessionsResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetTranscodeSessionsResponseBody extends RuntimeException { } GetTranscodeSessionsResponseBody other = (GetTranscodeSessionsResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetTranscodeSessionsResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetTranscodeSessionsResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java index 53df23ef..5b3f7dfe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTransientTokenErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetTransientTokenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetTransientTokenErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetTransientTokenErrors { return this; } - public GetTransientTokenErrors withCode(Optional code) { + public GetTransientTokenErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetTransientTokenErrors { return this; } - public GetTransientTokenErrors withMessage(Optional message) { + public GetTransientTokenErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetTransientTokenErrors { return this; } - public GetTransientTokenErrors withStatus(Optional status) { + public GetTransientTokenErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetTransientTokenErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetTransientTokenErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTransientTokenErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetTransientTokenErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetTransientTokenErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenResponseBody.java index bbdcfd39..f2a3f366 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetTransientTokenResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetTransientTokenResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetTransientTokenResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetTransientTokenResponseBody withErrors(java.util.List errors) { + public GetTransientTokenResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetTransientTokenResponseBody withErrors(Optional> errors) { + public GetTransientTokenResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetTransientTokenResponseBody extends RuntimeException { } GetTransientTokenResponseBody other = (GetTransientTokenResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetTransientTokenResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetTransientTokenResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java index b2f6f297..330f79e9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetUpdateStatusErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public GetUpdateStatusErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class GetUpdateStatusErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetUpdateStatusErrors { return this; } - public GetUpdateStatusErrors withCode(Optional code) { + public GetUpdateStatusErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class GetUpdateStatusErrors { return this; } - public GetUpdateStatusErrors withMessage(Optional message) { + public GetUpdateStatusErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class GetUpdateStatusErrors { return this; } - public GetUpdateStatusErrors withStatus(Optional status) { + public GetUpdateStatusErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class GetUpdateStatusErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class GetUpdateStatusErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetUpdateStatusErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class GetUpdateStatusErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class GetUpdateStatusErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusResponseBody.java index b9772d86..e80d0dbd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class GetUpdateStatusResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public GetUpdateStatusResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class GetUpdateStatusResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetUpdateStatusResponseBody withErrors(java.util.List errors) { + public GetUpdateStatusResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetUpdateStatusResponseBody withErrors(Optional> errors) { + public GetUpdateStatusResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class GetUpdateStatusResponseBody extends RuntimeException { } GetUpdateStatusResponseBody other = (GetUpdateStatusResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class GetUpdateStatusResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetUpdateStatusResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsErrors.java new file mode 100644 index 00000000..3a964334 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetUserDetailsErrors { + + @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 GetUserDetailsErrors( + @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 GetUserDetailsErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetUserDetailsErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetUserDetailsErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetUserDetailsErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetUserDetailsErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetUserDetailsErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetUserDetailsErrors 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; + } + GetUserDetailsErrors other = (GetUserDetailsErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsErrors.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 GetUserDetailsErrors build() { + return new GetUserDetailsErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsResponseBody.java new file mode 100644 index 00000000..b2bd7c19 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserDetailsResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetUserDetailsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetUserDetailsResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetUserDetailsResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetUserDetailsResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetUserDetailsResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetUserDetailsResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserDetailsResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserDetailsResponseBody 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; + } + GetUserDetailsResponseBody other = (GetUserDetailsResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsResponseBody.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(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 GetUserDetailsResponseBody build() { + return new GetUserDetailsResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java new file mode 100644 index 00000000..261e9451 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetUserFriendsErrors { + + @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 GetUserFriendsErrors( + @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 GetUserFriendsErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetUserFriendsErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public GetUserFriendsErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetUserFriendsErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public GetUserFriendsErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public GetUserFriendsErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public GetUserFriendsErrors 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; + } + GetUserFriendsErrors other = (GetUserFriendsErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(GetUserFriendsErrors.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 GetUserFriendsErrors build() { + return new GetUserFriendsErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsResponseBody.java new file mode 100644 index 00000000..6d0d7349 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * GetUserFriendsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class GetUserFriendsResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public GetUserFriendsResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public GetUserFriendsResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetUserFriendsResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public GetUserFriendsResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserFriendsResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserFriendsResponseBody 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; + } + GetUserFriendsResponseBody other = (GetUserFriendsResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetUserFriendsResponseBody.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(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 GetUserFriendsResponseBody build() { + return new GetUserFriendsResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java new file mode 100644 index 00000000..cb6bf899 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +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()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return 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 + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return 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/dev/plexapi/sdk/models/errors/GetWatchListResponseBody.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/GetWatchListResponseBody.java index 6a3fa6dc..d9e19dad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListResponseBody.java @@ -1,43 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. + * GetWatchListResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ -public class GetWatchlistResponseBody extends RuntimeException { +public class GetWatchListResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator - public GetWatchlistResponseBody( - @JsonProperty("errors") Optional> errors, + public GetWatchListResponseBody( + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -45,32 +44,34 @@ public class GetWatchlistResponseBody extends RuntimeException { this.rawResponse = rawResponse; } - public GetWatchlistResponseBody() { + public GetWatchListResponseBody() { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public GetWatchlistResponseBody withErrors(java.util.List errors) { + public GetWatchListResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public GetWatchlistResponseBody withErrors(Optional> errors) { + public GetWatchListResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -79,7 +80,7 @@ public class GetWatchlistResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetWatchlistResponseBody withRawResponse(HttpResponse rawResponse) { + public GetWatchListResponseBody withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = Optional.ofNullable(rawResponse); return this; @@ -88,7 +89,7 @@ public class GetWatchlistResponseBody extends RuntimeException { /** * Raw HTTP response; suitable for custom response parsing */ - public GetWatchlistResponseBody withRawResponse(Optional> rawResponse) { + public GetWatchListResponseBody withRawResponse(Optional> rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -102,10 +103,10 @@ public class GetWatchlistResponseBody extends RuntimeException { if (o == null || getClass() != o.getClass()) { return false; } - GetWatchlistResponseBody other = (GetWatchlistResponseBody) o; + GetWatchListResponseBody other = (GetWatchListResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -117,14 +118,14 @@ public class GetWatchlistResponseBody extends RuntimeException { @Override public String toString() { - return Utils.toString(GetWatchlistResponseBody.class, + return Utils.toString(GetWatchListResponseBody.class, "errors", errors, "rawResponse", rawResponse); } public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class GetWatchlistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -162,8 +163,8 @@ public class GetWatchlistResponseBody extends RuntimeException { return this; } - public GetWatchlistResponseBody build() { - return new GetWatchlistResponseBody( + 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/dev/plexapi/sdk/models/errors/LogLineErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java index bc8befba..f0739a02 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class LogLineErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public LogLineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class LogLineErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class LogLineErrors { return this; } - public LogLineErrors withCode(Optional code) { + public LogLineErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class LogLineErrors { return this; } - public LogLineErrors withMessage(Optional message) { + public LogLineErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class LogLineErrors { return this; } - public LogLineErrors withStatus(Optional status) { + public LogLineErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class LogLineErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class LogLineErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class LogLineErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class LogLineErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class LogLineErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/LogLineResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/LogLineResponseBody.java index b897dd76..edf8af26 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class LogLineResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public LogLineResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class LogLineResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public LogLineResponseBody withErrors(java.util.List errors) { + public LogLineResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public LogLineResponseBody withErrors(Optional> errors) { + public LogLineResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class LogLineResponseBody extends RuntimeException { } LogLineResponseBody other = (LogLineResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class LogLineResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class LogLineResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java index 6515594a..831ffb55 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class LogMultiLineErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public LogMultiLineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class LogMultiLineErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class LogMultiLineErrors { return this; } - public LogMultiLineErrors withCode(Optional code) { + public LogMultiLineErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class LogMultiLineErrors { return this; } - public LogMultiLineErrors withMessage(Optional message) { + public LogMultiLineErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class LogMultiLineErrors { return this; } - public LogMultiLineErrors withStatus(Optional status) { + public LogMultiLineErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class LogMultiLineErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class LogMultiLineErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class LogMultiLineErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class LogMultiLineErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class LogMultiLineErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineResponseBody.java index b41dd8d0..5e59a4e0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class LogMultiLineResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public LogMultiLineResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class LogMultiLineResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public LogMultiLineResponseBody withErrors(java.util.List errors) { + public LogMultiLineResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public LogMultiLineResponseBody withErrors(Optional> errors) { + public LogMultiLineResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class LogMultiLineResponseBody extends RuntimeException { } LogMultiLineResponseBody other = (LogMultiLineResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class LogMultiLineResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class LogMultiLineResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java index f0eb3d1a..c69118f3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class MarkPlayedErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public MarkPlayedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class MarkPlayedErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class MarkPlayedErrors { return this; } - public MarkPlayedErrors withCode(Optional code) { + public MarkPlayedErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class MarkPlayedErrors { return this; } - public MarkPlayedErrors withMessage(Optional message) { + public MarkPlayedErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class MarkPlayedErrors { return this; } - public MarkPlayedErrors withStatus(Optional status) { + public MarkPlayedErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class MarkPlayedErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class MarkPlayedErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class MarkPlayedErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class MarkPlayedErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class MarkPlayedErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedResponseBody.java index 4e86f6b2..8b883b78 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class MarkPlayedResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public MarkPlayedResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class MarkPlayedResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public MarkPlayedResponseBody withErrors(java.util.List errors) { + public MarkPlayedResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public MarkPlayedResponseBody withErrors(Optional> errors) { + public MarkPlayedResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class MarkPlayedResponseBody extends RuntimeException { } MarkPlayedResponseBody other = (MarkPlayedResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class MarkPlayedResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class MarkPlayedResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java index 5f485d95..04c44168 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class MarkUnplayedErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public MarkUnplayedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class MarkUnplayedErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class MarkUnplayedErrors { return this; } - public MarkUnplayedErrors withCode(Optional code) { + public MarkUnplayedErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class MarkUnplayedErrors { return this; } - public MarkUnplayedErrors withMessage(Optional message) { + public MarkUnplayedErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class MarkUnplayedErrors { return this; } - public MarkUnplayedErrors withStatus(Optional status) { + public MarkUnplayedErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class MarkUnplayedErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class MarkUnplayedErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class MarkUnplayedErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class MarkUnplayedErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class MarkUnplayedErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedResponseBody.java index a83beff9..93e94ad9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class MarkUnplayedResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public MarkUnplayedResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class MarkUnplayedResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public MarkUnplayedResponseBody withErrors(java.util.List errors) { + public MarkUnplayedResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public MarkUnplayedResponseBody withErrors(Optional> errors) { + public MarkUnplayedResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class MarkUnplayedResponseBody extends RuntimeException { } MarkUnplayedResponseBody other = (MarkUnplayedResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class MarkUnplayedResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class MarkUnplayedResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java index 29ab6a22..745fef65 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class PerformSearchErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public PerformSearchErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class PerformSearchErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class PerformSearchErrors { return this; } - public PerformSearchErrors withCode(Optional code) { + public PerformSearchErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class PerformSearchErrors { return this; } - public PerformSearchErrors withMessage(Optional message) { + public PerformSearchErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class PerformSearchErrors { return this; } - public PerformSearchErrors withStatus(Optional status) { + public PerformSearchErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class PerformSearchErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class PerformSearchErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class PerformSearchErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class PerformSearchErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class PerformSearchErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/PerformSearchResponseBody.java index ee4978a1..b788d737 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class PerformSearchResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public PerformSearchResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class PerformSearchResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public PerformSearchResponseBody withErrors(java.util.List errors) { + public PerformSearchResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public PerformSearchResponseBody withErrors(Optional> errors) { + public PerformSearchResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class PerformSearchResponseBody extends RuntimeException { } PerformSearchResponseBody other = (PerformSearchResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class PerformSearchResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class PerformSearchResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java index 8369c2e0..9de28911 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class PerformVoiceSearchErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public PerformVoiceSearchErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class PerformVoiceSearchErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class PerformVoiceSearchErrors { return this; } - public PerformVoiceSearchErrors withCode(Optional code) { + public PerformVoiceSearchErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class PerformVoiceSearchErrors { return this; } - public PerformVoiceSearchErrors withMessage(Optional message) { + public PerformVoiceSearchErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class PerformVoiceSearchErrors { return this; } - public PerformVoiceSearchErrors withStatus(Optional status) { + public PerformVoiceSearchErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class PerformVoiceSearchErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class PerformVoiceSearchErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class PerformVoiceSearchErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class PerformVoiceSearchErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class PerformVoiceSearchErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchResponseBody.java index 710af69d..ac10ae1f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class PerformVoiceSearchResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public PerformVoiceSearchResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class PerformVoiceSearchResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public PerformVoiceSearchResponseBody withErrors(java.util.List errors) { + public PerformVoiceSearchResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public PerformVoiceSearchResponseBody withErrors(Optional> errors) { + public PerformVoiceSearchResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class PerformVoiceSearchResponseBody extends RuntimeException { } PerformVoiceSearchResponseBody other = (PerformVoiceSearchResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class PerformVoiceSearchResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class PerformVoiceSearchResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java new file mode 100644 index 00000000..009caad3 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class PostUsersSignInDataErrors { + + @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 PostUsersSignInDataErrors( + @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 PostUsersSignInDataErrors() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional code() { + return code; + } + + @JsonIgnore + public Optional message() { + return message; + } + + @JsonIgnore + public Optional status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public PostUsersSignInDataErrors withCode(double code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + public PostUsersSignInDataErrors withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public PostUsersSignInDataErrors withMessage(String message) { + Utils.checkNotNull(message, "message"); + this.message = Optional.ofNullable(message); + return this; + } + + public PostUsersSignInDataErrors withMessage(Optional message) { + Utils.checkNotNull(message, "message"); + this.message = message; + return this; + } + + public PostUsersSignInDataErrors withStatus(double status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + public PostUsersSignInDataErrors 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; + } + PostUsersSignInDataErrors other = (PostUsersSignInDataErrors) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + message, + status); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataErrors.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 PostUsersSignInDataErrors build() { + return new PostUsersSignInDataErrors( + code, + message, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataResponseBody.java new file mode 100644 index 00000000..c4c5d525 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataResponseBody.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + +/** + * PostUsersSignInDataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ +public class PostUsersSignInDataResponseBody extends RuntimeException { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RawResponse") + private Optional> rawResponse; + + @JsonCreator + public PostUsersSignInDataResponseBody( + @JsonProperty("errors") Optional> errors, + @JsonProperty("RawResponse") Optional> rawResponse) { + Utils.checkNotNull(errors, "errors"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.errors = errors; + this.rawResponse = rawResponse; + } + + public PostUsersSignInDataResponseBody() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; + } + + public final static Builder builder() { + return new Builder(); + } + + public PostUsersSignInDataResponseBody withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + public PostUsersSignInDataResponseBody withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PostUsersSignInDataResponseBody withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = Optional.ofNullable(rawResponse); + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PostUsersSignInDataResponseBody 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; + } + PostUsersSignInDataResponseBody other = (PostUsersSignInDataResponseBody) o; + return + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + errors, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataResponseBody.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(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 PostUsersSignInDataResponseBody build() { + return new PostUsersSignInDataResponseBody( + errors, + rawResponse); + } + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java b/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java similarity index 92% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java rename to src/main/java/dev/plexapi/sdk/models/errors/SDKError.java index 03bdfe4f..99a67c43 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java @@ -1,12 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.models.errors; import java.net.http.HttpResponse; import java.io.InputStream; -import lukehagar.plexapi.plexapi.utils.Utils; +import dev.plexapi.sdk.utils.Utils; /** * Thrown by a service call when an error response occurs. Contains details about the response. diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java index 8a7f794a..97b4a04e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StartAllTasksErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StartAllTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StartAllTasksErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StartAllTasksErrors { return this; } - public StartAllTasksErrors withCode(Optional code) { + public StartAllTasksErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StartAllTasksErrors { return this; } - public StartAllTasksErrors withMessage(Optional message) { + public StartAllTasksErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StartAllTasksErrors { return this; } - public StartAllTasksErrors withStatus(Optional status) { + public StartAllTasksErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StartAllTasksErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StartAllTasksErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StartAllTasksErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StartAllTasksErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StartAllTasksErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksResponseBody.java index 63181357..ee903e41 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StartAllTasksResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StartAllTasksResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StartAllTasksResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StartAllTasksResponseBody withErrors(java.util.List errors) { + public StartAllTasksResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StartAllTasksResponseBody withErrors(Optional> errors) { + public StartAllTasksResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StartAllTasksResponseBody extends RuntimeException { } StartAllTasksResponseBody other = (StartAllTasksResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StartAllTasksResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StartAllTasksResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java index 74253502..9af3cab5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StartTaskErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StartTaskErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StartTaskErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StartTaskErrors { return this; } - public StartTaskErrors withCode(Optional code) { + public StartTaskErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StartTaskErrors { return this; } - public StartTaskErrors withMessage(Optional message) { + public StartTaskErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StartTaskErrors { return this; } - public StartTaskErrors withStatus(Optional status) { + public StartTaskErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StartTaskErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StartTaskErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StartTaskErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StartTaskErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StartTaskErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartTaskResponseBody.java index d8574b53..107d19dc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StartTaskResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StartTaskResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StartTaskResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StartTaskResponseBody withErrors(java.util.List errors) { + public StartTaskResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StartTaskResponseBody withErrors(Optional> errors) { + public StartTaskResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StartTaskResponseBody extends RuntimeException { } StartTaskResponseBody other = (StartTaskResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StartTaskResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StartTaskResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java index 3cadb915..fe71121d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StartUniversalTranscodeErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StartUniversalTranscodeErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StartUniversalTranscodeErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StartUniversalTranscodeErrors { return this; } - public StartUniversalTranscodeErrors withCode(Optional code) { + public StartUniversalTranscodeErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StartUniversalTranscodeErrors { return this; } - public StartUniversalTranscodeErrors withMessage(Optional message) { + public StartUniversalTranscodeErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StartUniversalTranscodeErrors { return this; } - public StartUniversalTranscodeErrors withStatus(Optional status) { + public StartUniversalTranscodeErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StartUniversalTranscodeErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StartUniversalTranscodeErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StartUniversalTranscodeErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StartUniversalTranscodeErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StartUniversalTranscodeErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeResponseBody.java index af84337e..71c3bc13 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StartUniversalTranscodeResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StartUniversalTranscodeResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StartUniversalTranscodeResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StartUniversalTranscodeResponseBody withErrors(java.util.List errors) { + public StartUniversalTranscodeResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StartUniversalTranscodeResponseBody withErrors(Optional> errors) { + public StartUniversalTranscodeResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StartUniversalTranscodeResponseBody extends RuntimeException { } StartUniversalTranscodeResponseBody other = (StartUniversalTranscodeResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StartUniversalTranscodeResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StartUniversalTranscodeResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java index cb94aa93..b864587c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StopAllTasksErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StopAllTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StopAllTasksErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StopAllTasksErrors { return this; } - public StopAllTasksErrors withCode(Optional code) { + public StopAllTasksErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StopAllTasksErrors { return this; } - public StopAllTasksErrors withMessage(Optional message) { + public StopAllTasksErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StopAllTasksErrors { return this; } - public StopAllTasksErrors withStatus(Optional status) { + public StopAllTasksErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StopAllTasksErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StopAllTasksErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StopAllTasksErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StopAllTasksErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StopAllTasksErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksResponseBody.java index 18d0d9c0..2e399e32 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StopAllTasksResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StopAllTasksResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StopAllTasksResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StopAllTasksResponseBody withErrors(java.util.List errors) { + public StopAllTasksResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StopAllTasksResponseBody withErrors(Optional> errors) { + public StopAllTasksResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StopAllTasksResponseBody extends RuntimeException { } StopAllTasksResponseBody other = (StopAllTasksResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StopAllTasksResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StopAllTasksResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java index 76d95a09..94a173ff 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StopTaskErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StopTaskErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StopTaskErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StopTaskErrors { return this; } - public StopTaskErrors withCode(Optional code) { + public StopTaskErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StopTaskErrors { return this; } - public StopTaskErrors withMessage(Optional message) { + public StopTaskErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StopTaskErrors { return this; } - public StopTaskErrors withStatus(Optional status) { + public StopTaskErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StopTaskErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StopTaskErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StopTaskErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StopTaskErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StopTaskErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskResponseBody.java similarity index 74% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopTaskResponseBody.java index 48de29be..8c33291a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StopTaskResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StopTaskResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StopTaskResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StopTaskResponseBody withErrors(java.util.List errors) { + public StopTaskResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StopTaskResponseBody withErrors(Optional> errors) { + public StopTaskResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StopTaskResponseBody extends RuntimeException { } StopTaskResponseBody other = (StopTaskResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StopTaskResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StopTaskResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java index 1d7dc06d..5068e951 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StopTranscodeSessionErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public StopTranscodeSessionErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class StopTranscodeSessionErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class StopTranscodeSessionErrors { return this; } - public StopTranscodeSessionErrors withCode(Optional code) { + public StopTranscodeSessionErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class StopTranscodeSessionErrors { return this; } - public StopTranscodeSessionErrors withMessage(Optional message) { + public StopTranscodeSessionErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class StopTranscodeSessionErrors { return this; } - public StopTranscodeSessionErrors withStatus(Optional status) { + public StopTranscodeSessionErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class StopTranscodeSessionErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class StopTranscodeSessionErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class StopTranscodeSessionErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class StopTranscodeSessionErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class StopTranscodeSessionErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionResponseBody.java index e4983bb4..de752089 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class StopTranscodeSessionResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public StopTranscodeSessionResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class StopTranscodeSessionResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public StopTranscodeSessionResponseBody withErrors(java.util.List errors) { + public StopTranscodeSessionResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public StopTranscodeSessionResponseBody withErrors(Optional> errors) { + public StopTranscodeSessionResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class StopTranscodeSessionResponseBody extends RuntimeException { } StopTranscodeSessionResponseBody other = (StopTranscodeSessionResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class StopTranscodeSessionResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class StopTranscodeSessionResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java index b4c2c7b9..89eb1080 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class UpdatePlayProgressErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public UpdatePlayProgressErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class UpdatePlayProgressErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class UpdatePlayProgressErrors { return this; } - public UpdatePlayProgressErrors withCode(Optional code) { + public UpdatePlayProgressErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class UpdatePlayProgressErrors { return this; } - public UpdatePlayProgressErrors withMessage(Optional message) { + public UpdatePlayProgressErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class UpdatePlayProgressErrors { return this; } - public UpdatePlayProgressErrors withStatus(Optional status) { + public UpdatePlayProgressErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class UpdatePlayProgressErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class UpdatePlayProgressErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class UpdatePlayProgressErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class UpdatePlayProgressErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class UpdatePlayProgressErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressResponseBody.java index 64bfee76..bbd10412 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class UpdatePlayProgressResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public UpdatePlayProgressResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class UpdatePlayProgressResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public UpdatePlayProgressResponseBody withErrors(java.util.List errors) { + public UpdatePlayProgressResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public UpdatePlayProgressResponseBody withErrors(Optional> errors) { + public UpdatePlayProgressResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class UpdatePlayProgressResponseBody extends RuntimeException { } UpdatePlayProgressResponseBody other = (UpdatePlayProgressResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class UpdatePlayProgressResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class UpdatePlayProgressResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java index 060ec334..a8c13db4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class UpdatePlaylistErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public UpdatePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class UpdatePlaylistErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class UpdatePlaylistErrors { return this; } - public UpdatePlaylistErrors withCode(Optional code) { + public UpdatePlaylistErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class UpdatePlaylistErrors { return this; } - public UpdatePlaylistErrors withMessage(Optional message) { + public UpdatePlaylistErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class UpdatePlaylistErrors { return this; } - public UpdatePlaylistErrors withStatus(Optional status) { + public UpdatePlaylistErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class UpdatePlaylistErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class UpdatePlaylistErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class UpdatePlaylistErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class UpdatePlaylistErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class UpdatePlaylistErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistResponseBody.java index 17c1b88e..b60fc040 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class UpdatePlaylistResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public UpdatePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class UpdatePlaylistResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public UpdatePlaylistResponseBody withErrors(java.util.List errors) { + public UpdatePlaylistResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public UpdatePlaylistResponseBody withErrors(Optional> errors) { + public UpdatePlaylistResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class UpdatePlaylistResponseBody extends RuntimeException { } UpdatePlaylistResponseBody other = (UpdatePlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class UpdatePlaylistResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class UpdatePlaylistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java rename to src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java index af74b8b4..3e5a84c1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class UploadPlaylistErrors { @JsonInclude(Include.NON_ABSENT) @JsonProperty("code") - private Optional code; + private Optional code; @JsonInclude(Include.NON_ABSENT) @JsonProperty("message") - private Optional message; + private Optional message; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonCreator public UploadPlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { + @JsonProperty("code") Optional code, + @JsonProperty("message") Optional message, + @JsonProperty("status") Optional status) { Utils.checkNotNull(code, "code"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(status, "status"); @@ -49,22 +49,19 @@ public class UploadPlaylistErrors { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional code() { - return (Optional) code; + return code; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional message() { - return (Optional) message; + return message; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class UploadPlaylistErrors { return this; } - public UploadPlaylistErrors withCode(Optional code) { + public UploadPlaylistErrors withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -89,7 +86,7 @@ public class UploadPlaylistErrors { return this; } - public UploadPlaylistErrors withMessage(Optional message) { + public UploadPlaylistErrors withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -101,7 +98,7 @@ public class UploadPlaylistErrors { return this; } - public UploadPlaylistErrors withStatus(Optional status) { + public UploadPlaylistErrors withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -117,14 +114,14 @@ public class UploadPlaylistErrors { } 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); + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( code, message, status); @@ -140,11 +137,11 @@ public class UploadPlaylistErrors { public final static class Builder { - private Optional code = Optional.empty(); + private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class UploadPlaylistErrors { return this; } - public Builder code(Optional code) { + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; return this; @@ -168,7 +165,7 @@ public class UploadPlaylistErrors { return this; } - public Builder message(Optional message) { + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; return this; @@ -180,7 +177,7 @@ public class UploadPlaylistErrors { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistResponseBody.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistResponseBody.java index 5eb96d1d..0b584b28 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistResponseBody.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.errors; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; 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. @@ -26,18 +25,18 @@ public class UploadPlaylistResponseBody extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; /** * Raw HTTP response; suitable for custom response parsing */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") + @JsonProperty("RawResponse") private Optional> rawResponse; @JsonCreator public UploadPlaylistResponseBody( - @JsonProperty("errors") Optional> errors, + @JsonProperty("errors") Optional> errors, @JsonProperty("RawResponse") Optional> rawResponse) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -49,28 +48,30 @@ public class UploadPlaylistResponseBody extends RuntimeException { this(Optional.empty(), Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } /** * Raw HTTP response; suitable for custom response parsing */ - public Optional> rawResponse(){ - return rawResponse; + @SuppressWarnings("unchecked") + public Optional> rawResponse(){ + return (Optional>) rawResponse; } public final static Builder builder() { return new Builder(); } - public UploadPlaylistResponseBody withErrors(java.util.List errors) { + public UploadPlaylistResponseBody withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public UploadPlaylistResponseBody withErrors(Optional> errors) { + public UploadPlaylistResponseBody withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -104,8 +105,8 @@ public class UploadPlaylistResponseBody extends RuntimeException { } UploadPlaylistResponseBody other = (UploadPlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); + Objects.deepEquals(this.errors, other.errors) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override @@ -124,7 +125,7 @@ public class UploadPlaylistResponseBody extends RuntimeException { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Optional> rawResponse; @@ -132,13 +133,13 @@ public class UploadPlaylistResponseBody extends RuntimeException { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java b/src/main/java/dev/plexapi/sdk/models/operations/Account.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java rename to src/main/java/dev/plexapi/sdk/models/operations/Account.java index f367f5e0..6d9fba07 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Account.java @@ -1,67 +1,68 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Account { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultAudioLanguage") - private Optional defaultAudioLanguage; + private Optional defaultAudioLanguage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("autoSelectAudio") - private Optional autoSelectAudio; + private Optional autoSelectAudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultSubtitleLanguage") - private Optional defaultSubtitleLanguage; + private Optional defaultSubtitleLanguage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subtitleMode") - private Optional subtitleMode; + private Optional subtitleMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + @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"); @@ -84,52 +85,44 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional defaultAudioLanguage() { - return (Optional) defaultAudioLanguage; + return defaultAudioLanguage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional autoSelectAudio() { - return (Optional) autoSelectAudio; + return autoSelectAudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional defaultSubtitleLanguage() { - return (Optional) defaultSubtitleLanguage; + return defaultSubtitleLanguage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtitleMode() { - return (Optional) subtitleMode; + return subtitleMode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { @@ -142,7 +135,7 @@ public class Account { return this; } - public Account withId(Optional id) { + public Account withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -154,7 +147,7 @@ public class Account { return this; } - public Account withKey(Optional key) { + public Account withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -166,7 +159,7 @@ public class Account { return this; } - public Account withName(Optional name) { + public Account withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -178,7 +171,7 @@ public class Account { return this; } - public Account withDefaultAudioLanguage(Optional defaultAudioLanguage) { + public Account withDefaultAudioLanguage(Optional defaultAudioLanguage) { Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); this.defaultAudioLanguage = defaultAudioLanguage; return this; @@ -190,7 +183,7 @@ public class Account { return this; } - public Account withAutoSelectAudio(Optional autoSelectAudio) { + public Account withAutoSelectAudio(Optional autoSelectAudio) { Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); this.autoSelectAudio = autoSelectAudio; return this; @@ -202,7 +195,7 @@ public class Account { return this; } - public Account withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + public Account withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); this.defaultSubtitleLanguage = defaultSubtitleLanguage; return this; @@ -214,7 +207,7 @@ public class Account { return this; } - public Account withSubtitleMode(Optional subtitleMode) { + public Account withSubtitleMode(Optional subtitleMode) { Utils.checkNotNull(subtitleMode, "subtitleMode"); this.subtitleMode = subtitleMode; return this; @@ -226,7 +219,7 @@ public class Account { return this; } - public Account withThumb(Optional thumb) { + public Account withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -242,19 +235,19 @@ public class Account { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && + Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && + Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && + Objects.deepEquals(this.subtitleMode, other.subtitleMode) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, name, @@ -280,21 +273,21 @@ public class Account { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional defaultAudioLanguage = Optional.empty(); + private Optional defaultAudioLanguage = Optional.empty(); - private Optional autoSelectAudio = Optional.empty(); + private Optional autoSelectAudio = Optional.empty(); - private Optional defaultSubtitleLanguage = Optional.empty(); + private Optional defaultSubtitleLanguage = Optional.empty(); - private Optional subtitleMode = Optional.empty(); + private Optional subtitleMode = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -306,7 +299,7 @@ public class Account { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -318,7 +311,7 @@ public class Account { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -330,7 +323,7 @@ public class Account { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -342,7 +335,7 @@ public class Account { return this; } - public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { + public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); this.defaultAudioLanguage = defaultAudioLanguage; return this; @@ -354,7 +347,7 @@ public class Account { return this; } - public Builder autoSelectAudio(Optional autoSelectAudio) { + public Builder autoSelectAudio(Optional autoSelectAudio) { Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); this.autoSelectAudio = autoSelectAudio; return this; @@ -366,7 +359,7 @@ public class Account { return this; } - public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); this.defaultSubtitleLanguage = defaultSubtitleLanguage; return this; @@ -378,7 +371,7 @@ public class Account { return this; } - public Builder subtitleMode(Optional subtitleMode) { + public Builder subtitleMode(Optional subtitleMode) { Utils.checkNotNull(subtitleMode, "subtitleMode"); this.subtitleMode = subtitleMode; return this; @@ -390,7 +383,7 @@ public class Account { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java b/src/main/java/dev/plexapi/sdk/models/operations/Activity.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java rename to src/main/java/dev/plexapi/sdk/models/operations/Activity.java index 62e86624..5e4d19d8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Activity.java @@ -1,52 +1,54 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Activity { @JsonInclude(Include.NON_ABSENT) @JsonProperty("uuid") - private Optional uuid; + private Optional uuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("cancellable") - private Optional cancellable; + private Optional cancellable; @JsonInclude(Include.NON_ABSENT) @JsonProperty("userID") - private Optional userID; + private Optional userID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subtitle") - private Optional subtitle; + private Optional subtitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("progress") - private Optional progress; + private Optional progress; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Context") @@ -54,13 +56,13 @@ public class Activity { @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("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"); @@ -84,46 +86,39 @@ public class 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; + return uuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional cancellable() { - return (Optional) cancellable; + return cancellable; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional userID() { - return (Optional) userID; + return userID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtitle() { - return (Optional) subtitle; + return subtitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional progress() { - return (Optional) progress; + return progress; } @SuppressWarnings("unchecked") @@ -142,7 +137,7 @@ public class Activity { return this; } - public Activity withUuid(Optional uuid) { + public Activity withUuid(Optional uuid) { Utils.checkNotNull(uuid, "uuid"); this.uuid = uuid; return this; @@ -154,7 +149,7 @@ public class Activity { return this; } - public Activity withType(Optional type) { + public Activity withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -166,7 +161,7 @@ public class Activity { return this; } - public Activity withCancellable(Optional cancellable) { + public Activity withCancellable(Optional cancellable) { Utils.checkNotNull(cancellable, "cancellable"); this.cancellable = cancellable; return this; @@ -178,7 +173,7 @@ public class Activity { return this; } - public Activity withUserID(Optional userID) { + public Activity withUserID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; @@ -190,7 +185,7 @@ public class Activity { return this; } - public Activity withTitle(Optional title) { + public Activity withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -202,7 +197,7 @@ public class Activity { return this; } - public Activity withSubtitle(Optional subtitle) { + public Activity withSubtitle(Optional subtitle) { Utils.checkNotNull(subtitle, "subtitle"); this.subtitle = subtitle; return this; @@ -214,7 +209,7 @@ public class Activity { return this; } - public Activity withProgress(Optional progress) { + public Activity withProgress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -242,19 +237,19 @@ public class Activity { } 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); + Objects.deepEquals(this.uuid, other.uuid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.cancellable, other.cancellable) && + Objects.deepEquals(this.userID, other.userID) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.subtitle, other.subtitle) && + Objects.deepEquals(this.progress, other.progress) && + Objects.deepEquals(this.context, other.context); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( uuid, type, cancellable, @@ -280,19 +275,19 @@ public class Activity { public final static class Builder { - private Optional uuid = Optional.empty(); + private Optional uuid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional cancellable = Optional.empty(); + private Optional cancellable = Optional.empty(); - private Optional userID = Optional.empty(); + private Optional userID = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional subtitle = Optional.empty(); + private Optional subtitle = Optional.empty(); - private Optional progress = Optional.empty(); + private Optional progress = Optional.empty(); private Optional context = Optional.empty(); @@ -306,7 +301,7 @@ public class Activity { return this; } - public Builder uuid(Optional uuid) { + public Builder uuid(Optional uuid) { Utils.checkNotNull(uuid, "uuid"); this.uuid = uuid; return this; @@ -318,7 +313,7 @@ public class Activity { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -330,7 +325,7 @@ public class Activity { return this; } - public Builder cancellable(Optional cancellable) { + public Builder cancellable(Optional cancellable) { Utils.checkNotNull(cancellable, "cancellable"); this.cancellable = cancellable; return this; @@ -342,7 +337,7 @@ public class Activity { return this; } - public Builder userID(Optional userID) { + public Builder userID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; @@ -354,7 +349,7 @@ public class Activity { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -366,7 +361,7 @@ public class Activity { return this; } - public Builder subtitle(Optional subtitle) { + public Builder subtitle(Optional subtitle) { Utils.checkNotNull(subtitle, "subtitle"); this.subtitle = subtitle; return this; @@ -378,7 +373,7 @@ public class Activity { return this; } - public Builder progress(Optional progress) { + public Builder progress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java index 68a1bff0..cba2fe81 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java @@ -1,47 +1,49 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class AddPlaylistContentsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCountAdded") - private Optional leafCountAdded; + private Optional leafCountAdded; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCountRequested") - private Optional leafCountRequested; + private Optional leafCountRequested; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public AddPlaylistContentsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("leafCountAdded") Optional leafCountAdded, - @JsonProperty("leafCountRequested") Optional leafCountRequested, - @JsonProperty("Metadata") Optional> metadata) { + @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"); @@ -56,28 +58,25 @@ public class AddPlaylistContentsMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCountAdded() { - return (Optional) leafCountAdded; + return leafCountAdded; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCountRequested() { - return (Optional) leafCountRequested; + return leafCountRequested; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -90,7 +89,7 @@ public class AddPlaylistContentsMediaContainer { return this; } - public AddPlaylistContentsMediaContainer withSize(Optional size) { + public AddPlaylistContentsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -102,7 +101,7 @@ public class AddPlaylistContentsMediaContainer { return this; } - public AddPlaylistContentsMediaContainer withLeafCountAdded(Optional leafCountAdded) { + public AddPlaylistContentsMediaContainer withLeafCountAdded(Optional leafCountAdded) { Utils.checkNotNull(leafCountAdded, "leafCountAdded"); this.leafCountAdded = leafCountAdded; return this; @@ -114,19 +113,19 @@ public class AddPlaylistContentsMediaContainer { return this; } - public AddPlaylistContentsMediaContainer withLeafCountRequested(Optional leafCountRequested) { + public AddPlaylistContentsMediaContainer withLeafCountRequested(Optional leafCountRequested) { Utils.checkNotNull(leafCountRequested, "leafCountRequested"); this.leafCountRequested = leafCountRequested; return this; } - public AddPlaylistContentsMediaContainer withMetadata(java.util.List metadata) { + public AddPlaylistContentsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public AddPlaylistContentsMediaContainer withMetadata(Optional> metadata) { + public AddPlaylistContentsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -142,15 +141,15 @@ public class AddPlaylistContentsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.leafCountAdded, other.leafCountAdded) && + Objects.deepEquals(this.leafCountRequested, other.leafCountRequested) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, leafCountAdded, leafCountRequested, @@ -168,13 +167,13 @@ public class AddPlaylistContentsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional leafCountAdded = Optional.empty(); + private Optional leafCountAdded = Optional.empty(); - private Optional leafCountRequested = Optional.empty(); + private Optional leafCountRequested = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,7 +185,7 @@ public class AddPlaylistContentsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -198,7 +197,7 @@ public class AddPlaylistContentsMediaContainer { return this; } - public Builder leafCountAdded(Optional leafCountAdded) { + public Builder leafCountAdded(Optional leafCountAdded) { Utils.checkNotNull(leafCountAdded, "leafCountAdded"); this.leafCountAdded = leafCountAdded; return this; @@ -210,19 +209,19 @@ public class AddPlaylistContentsMediaContainer { return this; } - public Builder leafCountRequested(Optional leafCountRequested) { + public Builder leafCountRequested(Optional leafCountRequested) { Utils.checkNotNull(leafCountRequested, "leafCountRequested"); this.leafCountRequested = leafCountRequested; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java index 2a44cda8..0e4657f3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java @@ -1,92 +1,93 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class AddPlaylistContentsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional 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) { + @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"); @@ -119,82 +120,69 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { @@ -207,7 +195,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withRatingKey(Optional ratingKey) { + public AddPlaylistContentsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -219,7 +207,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withKey(Optional key) { + public AddPlaylistContentsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -231,7 +219,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withGuid(Optional guid) { + public AddPlaylistContentsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -243,7 +231,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withType(Optional type) { + public AddPlaylistContentsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -255,7 +243,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withTitle(Optional title) { + public AddPlaylistContentsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -267,7 +255,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withSummary(Optional summary) { + public AddPlaylistContentsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -279,7 +267,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withSmart(Optional smart) { + public AddPlaylistContentsMetadata withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -291,7 +279,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withPlaylistType(Optional playlistType) { + public AddPlaylistContentsMetadata withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -303,7 +291,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withComposite(Optional composite) { + public AddPlaylistContentsMetadata withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -315,7 +303,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withDuration(Optional duration) { + public AddPlaylistContentsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -327,7 +315,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withLeafCount(Optional leafCount) { + public AddPlaylistContentsMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -339,7 +327,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withAddedAt(Optional addedAt) { + public AddPlaylistContentsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -351,7 +339,7 @@ public class AddPlaylistContentsMetadata { return this; } - public AddPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { + public AddPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -367,24 +355,24 @@ public class AddPlaylistContentsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -420,31 +408,31 @@ public class AddPlaylistContentsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -456,7 +444,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -468,7 +456,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -480,7 +468,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -492,7 +480,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -504,7 +492,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -516,7 +504,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -528,7 +516,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -540,7 +528,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -552,7 +540,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -564,7 +552,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -576,7 +564,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -588,7 +576,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -600,7 +588,7 @@ public class AddPlaylistContentsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java index 414ef883..4f3af44d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class AddPlaylistContentsRequest { @@ -34,13 +34,13 @@ public class AddPlaylistContentsRequest { * the play queue to add to a playlist */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") - private Optional playQueueID; + private Optional playQueueID; @JsonCreator public AddPlaylistContentsRequest( double playlistID, String uri, - Optional playQueueID) { + Optional playQueueID) { Utils.checkNotNull(playlistID, "playlistID"); Utils.checkNotNull(uri, "uri"); Utils.checkNotNull(playQueueID, "playQueueID"); @@ -74,10 +74,9 @@ public class AddPlaylistContentsRequest { /** * the play queue to add to a playlist */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playQueueID() { - return (Optional) playQueueID; + return playQueueID; } public final static Builder builder() { @@ -114,7 +113,7 @@ public class AddPlaylistContentsRequest { /** * the play queue to add to a playlist */ - public AddPlaylistContentsRequest withPlayQueueID(Optional playQueueID) { + public AddPlaylistContentsRequest withPlayQueueID(Optional playQueueID) { Utils.checkNotNull(playQueueID, "playQueueID"); this.playQueueID = playQueueID; return this; @@ -130,14 +129,14 @@ public class AddPlaylistContentsRequest { } 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); + Objects.deepEquals(this.playlistID, other.playlistID) && + Objects.deepEquals(this.uri, other.uri) && + Objects.deepEquals(this.playQueueID, other.playQueueID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID, uri, playQueueID); @@ -157,7 +156,7 @@ public class AddPlaylistContentsRequest { private String uri; - private Optional playQueueID = Optional.empty(); + private Optional playQueueID = Optional.empty(); private Builder() { // force use of static builder() method @@ -193,7 +192,7 @@ public class AddPlaylistContentsRequest { /** * the play queue to add to a playlist */ - public Builder playQueueID(Optional playQueueID) { + public Builder playQueueID(Optional playQueueID) { Utils.checkNotNull(playQueueID, "playQueueID"); this.playQueueID = playQueueID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java index 9b74e390..c5e886b5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java @@ -1,27 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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 Optional playQueueID = Optional.empty(); private final SDKMethodInterfaces.MethodCallAddPlaylistContents sdk; public AddPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallAddPlaylistContents sdk) { @@ -34,7 +26,7 @@ public class AddPlaylistContentsRequestBuilder { return this; } - public AddPlaylistContentsRequestBuilder uri(String uri) { + public AddPlaylistContentsRequestBuilder uri(java.lang.String uri) { Utils.checkNotNull(uri, "uri"); this.uri = uri; return this; @@ -46,7 +38,7 @@ public class AddPlaylistContentsRequestBuilder { return this; } - public AddPlaylistContentsRequestBuilder playQueueID(Optional playQueueID) { + public AddPlaylistContentsRequestBuilder playQueueID(java.util.Optional playQueueID) { Utils.checkNotNull(playQueueID, "playQueueID"); this.playQueueID = playQueueID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java index 829d9543..885377df 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class AddPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class AddPlaylistContentsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class AddPlaylistContentsResponse implements lukehagar.plexapi.plexapi.ut } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java index 4485abff..4c300717 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * AddPlaylistContentsResponseBody - Playlist Updated */ @@ -70,12 +70,12 @@ public class AddPlaylistContentsResponseBody { } AddPlaylistContentsResponseBody other = (AddPlaylistContentsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java similarity index 81% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java index 17950e45..62d34321 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class ApplyUpdatesRequest { @@ -25,7 +25,7 @@ public class ApplyUpdatesRequest { 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`. + * 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; @@ -54,7 +54,7 @@ public class ApplyUpdatesRequest { } /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + * 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 @@ -85,7 +85,7 @@ public class ApplyUpdatesRequest { } /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + * 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"); @@ -94,7 +94,7 @@ public class ApplyUpdatesRequest { } /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + * 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"); @@ -112,13 +112,13 @@ public class ApplyUpdatesRequest { } ApplyUpdatesRequest other = (ApplyUpdatesRequest) o; return - java.util.Objects.deepEquals(this.tonight, other.tonight) && - java.util.Objects.deepEquals(this.skip, other.skip); + Objects.deepEquals(this.tonight, other.tonight) && + Objects.deepEquals(this.skip, other.skip); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tonight, skip); } @@ -159,7 +159,7 @@ public class ApplyUpdatesRequest { } /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + * 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"); @@ -168,7 +168,7 @@ public class ApplyUpdatesRequest { } /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + * 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"); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java similarity index 54% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java index f3d258cf..cf12fc43 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; 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 { @@ -27,25 +17,25 @@ public class ApplyUpdatesRequestBuilder { this.sdk = sdk; } - public ApplyUpdatesRequestBuilder tonight(Tonight tonight) { + public ApplyUpdatesRequestBuilder tonight(dev.plexapi.sdk.models.operations.Tonight tonight) { Utils.checkNotNull(tonight, "tonight"); this.tonight = Optional.of(tonight); return this; } - public ApplyUpdatesRequestBuilder tonight(Optional tonight) { + public ApplyUpdatesRequestBuilder tonight(java.util.Optional tonight) { Utils.checkNotNull(tonight, "tonight"); this.tonight = tonight; return this; } - public ApplyUpdatesRequestBuilder skip(Skip skip) { + public ApplyUpdatesRequestBuilder skip(dev.plexapi.sdk.models.operations.Skip skip) { Utils.checkNotNull(skip, "skip"); this.skip = Optional.of(skip); return this; } - public ApplyUpdatesRequestBuilder skip(Optional skip) { + public ApplyUpdatesRequestBuilder skip(java.util.Optional skip) { Utils.checkNotNull(skip, "skip"); this.skip = skip; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java index d51f79d3..2d1a5b62 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class ApplyUpdatesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class ApplyUpdatesResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class ApplyUpdatesResponse implements lukehagar.plexapi.plexapi.utils.Res } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java b/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java new file mode 100644 index 00000000..204bd3a0 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ +public enum AutoSelectSubtitle { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private AutoSelectSubtitle(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Billing.java b/src/main/java/dev/plexapi/sdk/models/operations/Billing.java new file mode 100644 index 00000000..b4f65c7a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Billing.java @@ -0,0 +1,140 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class Billing { + + @JsonProperty("internalPaymentMethod") + private InternalPaymentMethod internalPaymentMethod; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("paymentMethodId") + private Optional paymentMethodId; + + @JsonCreator + public Billing( + @JsonProperty("internalPaymentMethod") InternalPaymentMethod internalPaymentMethod, + @JsonProperty("paymentMethodId") Optional paymentMethodId) { + Utils.checkNotNull(internalPaymentMethod, "internalPaymentMethod"); + Utils.checkNotNull(paymentMethodId, "paymentMethodId"); + this.internalPaymentMethod = internalPaymentMethod; + this.paymentMethodId = paymentMethodId; + } + + public Billing( + InternalPaymentMethod internalPaymentMethod) { + this(internalPaymentMethod, Optional.empty()); + } + + @JsonIgnore + public InternalPaymentMethod internalPaymentMethod() { + return internalPaymentMethod; + } + + @JsonIgnore + public Optional paymentMethodId() { + return paymentMethodId; + } + + public final static Builder builder() { + return new Builder(); + } + + public Billing withInternalPaymentMethod(InternalPaymentMethod internalPaymentMethod) { + Utils.checkNotNull(internalPaymentMethod, "internalPaymentMethod"); + this.internalPaymentMethod = internalPaymentMethod; + return this; + } + + public Billing withPaymentMethodId(long paymentMethodId) { + Utils.checkNotNull(paymentMethodId, "paymentMethodId"); + this.paymentMethodId = Optional.ofNullable(paymentMethodId); + return this; + } + + public Billing withPaymentMethodId(Optional paymentMethodId) { + Utils.checkNotNull(paymentMethodId, "paymentMethodId"); + this.paymentMethodId = paymentMethodId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Billing other = (Billing) o; + return + Objects.deepEquals(this.internalPaymentMethod, other.internalPaymentMethod) && + Objects.deepEquals(this.paymentMethodId, other.paymentMethodId); + } + + @Override + public int hashCode() { + return Objects.hash( + internalPaymentMethod, + paymentMethodId); + } + + @Override + public String toString() { + return Utils.toString(Billing.class, + "internalPaymentMethod", internalPaymentMethod, + "paymentMethodId", paymentMethodId); + } + + public final static class Builder { + + private InternalPaymentMethod internalPaymentMethod; + + private Optional paymentMethodId = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder internalPaymentMethod(InternalPaymentMethod internalPaymentMethod) { + Utils.checkNotNull(internalPaymentMethod, "internalPaymentMethod"); + this.internalPaymentMethod = internalPaymentMethod; + return this; + } + + public Builder paymentMethodId(long paymentMethodId) { + Utils.checkNotNull(paymentMethodId, "paymentMethodId"); + this.paymentMethodId = Optional.ofNullable(paymentMethodId); + return this; + } + + public Builder paymentMethodId(Optional paymentMethodId) { + Utils.checkNotNull(paymentMethodId, "paymentMethodId"); + this.paymentMethodId = paymentMethodId; + return this; + } + + public Billing build() { + return new Billing( + internalPaymentMethod, + paymentMethodId); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java rename to src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java index 4e708e59..bbfe5f99 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java @@ -1,57 +1,58 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class ButlerTask { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("interval") - private Optional interval; + private Optional interval; @JsonInclude(Include.NON_ABSENT) @JsonProperty("scheduleRandomized") - private Optional scheduleRandomized; + private Optional scheduleRandomized; @JsonInclude(Include.NON_ABSENT) @JsonProperty("enabled") - private Optional enabled; + private Optional enabled; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("description") - private Optional 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) { + @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"); @@ -70,40 +71,34 @@ public class ButlerTask { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional interval() { - return (Optional) interval; + return interval; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional scheduleRandomized() { - return (Optional) scheduleRandomized; + return scheduleRandomized; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional enabled() { - return (Optional) enabled; + return enabled; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional description() { - return (Optional) description; + return description; } public final static Builder builder() { @@ -116,7 +111,7 @@ public class ButlerTask { return this; } - public ButlerTask withName(Optional name) { + public ButlerTask withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -128,7 +123,7 @@ public class ButlerTask { return this; } - public ButlerTask withInterval(Optional interval) { + public ButlerTask withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -140,7 +135,7 @@ public class ButlerTask { return this; } - public ButlerTask withScheduleRandomized(Optional scheduleRandomized) { + public ButlerTask withScheduleRandomized(Optional scheduleRandomized) { Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); this.scheduleRandomized = scheduleRandomized; return this; @@ -152,7 +147,7 @@ public class ButlerTask { return this; } - public ButlerTask withEnabled(Optional enabled) { + public ButlerTask withEnabled(Optional enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = enabled; return this; @@ -164,7 +159,7 @@ public class ButlerTask { return this; } - public ButlerTask withTitle(Optional title) { + public ButlerTask withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -176,7 +171,7 @@ public class ButlerTask { return this; } - public ButlerTask withDescription(Optional description) { + public ButlerTask withDescription(Optional description) { Utils.checkNotNull(description, "description"); this.description = description; return this; @@ -192,17 +187,17 @@ public class ButlerTask { } 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); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.interval, other.interval) && + Objects.deepEquals(this.scheduleRandomized, other.scheduleRandomized) && + Objects.deepEquals(this.enabled, other.enabled) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.description, other.description); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, interval, scheduleRandomized, @@ -224,17 +219,17 @@ public class ButlerTask { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional interval = Optional.empty(); + private Optional interval = Optional.empty(); - private Optional scheduleRandomized = Optional.empty(); + private Optional scheduleRandomized = Optional.empty(); - private Optional enabled = Optional.empty(); + private Optional enabled = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional description = Optional.empty(); + private Optional description = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +241,7 @@ public class ButlerTask { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -258,7 +253,7 @@ public class ButlerTask { return this; } - public Builder interval(Optional interval) { + public Builder interval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -270,7 +265,7 @@ public class ButlerTask { return this; } - public Builder scheduleRandomized(Optional scheduleRandomized) { + public Builder scheduleRandomized(Optional scheduleRandomized) { Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); this.scheduleRandomized = scheduleRandomized; return this; @@ -282,7 +277,7 @@ public class ButlerTask { return this; } - public Builder enabled(Optional enabled) { + public Builder enabled(Optional enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = enabled; return this; @@ -294,7 +289,7 @@ public class ButlerTask { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -306,7 +301,7 @@ public class ButlerTask { return this; } - public Builder description(Optional description) { + public Builder description(Optional description) { Utils.checkNotNull(description, "description"); this.description = description; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java similarity index 62% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java rename to src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java index b5e4092f..71b57d5d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java @@ -1,32 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class ButlerTasks { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ButlerTask") - private Optional> butlerTask; + private Optional> butlerTask; @JsonCreator public ButlerTasks( - @JsonProperty("ButlerTask") Optional> butlerTask) { + @JsonProperty("ButlerTask") Optional> butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); this.butlerTask = butlerTask; } @@ -37,21 +38,21 @@ public class ButlerTasks { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> butlerTask() { - return (Optional>) butlerTask; + public Optional> butlerTask() { + return (Optional>) butlerTask; } public final static Builder builder() { return new Builder(); } - public ButlerTasks withButlerTask(java.util.List butlerTask) { + public ButlerTasks withButlerTask(List butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); this.butlerTask = Optional.ofNullable(butlerTask); return this; } - public ButlerTasks withButlerTask(Optional> butlerTask) { + public ButlerTasks withButlerTask(Optional> butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); this.butlerTask = butlerTask; return this; @@ -67,12 +68,12 @@ public class ButlerTasks { } ButlerTasks other = (ButlerTasks) o; return - java.util.Objects.deepEquals(this.butlerTask, other.butlerTask); + Objects.deepEquals(this.butlerTask, other.butlerTask); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( butlerTask); } @@ -84,19 +85,19 @@ public class ButlerTasks { public final static class Builder { - private Optional> butlerTask = Optional.empty(); + private Optional> butlerTask = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder butlerTask(java.util.List butlerTask) { + public Builder butlerTask(List butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); this.butlerTask = Optional.ofNullable(butlerTask); return this; } - public Builder butlerTask(Optional> butlerTask) { + public Builder butlerTask(Optional> butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); this.butlerTask = butlerTask; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java index 61005fb6..286a44f2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class CancelServerActivitiesRequest { @@ -61,12 +60,12 @@ public class CancelServerActivitiesRequest { } CancelServerActivitiesRequest other = (CancelServerActivitiesRequest) o; return - java.util.Objects.deepEquals(this.activityUUID, other.activityUUID); + Objects.deepEquals(this.activityUUID, other.activityUUID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( activityUUID); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java new file mode 100644 index 00000000..0b8f713a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class CancelServerActivitiesRequestBuilder { + + private String activityUUID; + private final SDKMethodInterfaces.MethodCallCancelServerActivities sdk; + + public CancelServerActivitiesRequestBuilder(SDKMethodInterfaces.MethodCallCancelServerActivities sdk) { + this.sdk = sdk; + } + + public CancelServerActivitiesRequestBuilder activityUUID(java.lang.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/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java index 92db5bd2..2710376e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class CancelServerActivitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class CancelServerActivitiesResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class CancelServerActivitiesResponse implements lukehagar.plexapi.plexapi } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java similarity index 84% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java index cc319c12..c81df85a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CheckForUpdatesRequest { @@ -76,12 +76,12 @@ public class CheckForUpdatesRequest { } CheckForUpdatesRequest other = (CheckForUpdatesRequest) o; return - java.util.Objects.deepEquals(this.download, other.download); + Objects.deepEquals(this.download, other.download); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( download); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java similarity index 51% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java index 6d786564..ab034bcc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; 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 { @@ -26,13 +16,13 @@ public class CheckForUpdatesRequestBuilder { this.sdk = sdk; } - public CheckForUpdatesRequestBuilder download(Download download) { + public CheckForUpdatesRequestBuilder download(dev.plexapi.sdk.models.operations.Download download) { Utils.checkNotNull(download, "download"); this.download = Optional.of(download); return this; } - public CheckForUpdatesRequestBuilder download(Optional download) { + public CheckForUpdatesRequestBuilder download(java.util.Optional download) { Utils.checkNotNull(download, "download"); this.download = download; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java index c08748fd..a3b4be7d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class CheckForUpdatesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class CheckForUpdatesResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class CheckForUpdatesResponse implements lukehagar.plexapi.plexapi.utils. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java index 52830a8c..03bb34e0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class ClearPlaylistContentsRequest { @@ -61,12 +61,12 @@ public class ClearPlaylistContentsRequest { } ClearPlaylistContentsRequest other = (ClearPlaylistContentsRequest) o; return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); + Objects.deepEquals(this.playlistID, other.playlistID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java index 87385609..242779f5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; public class ClearPlaylistContentsRequestBuilder { diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java index dc845b85..579e1105 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class ClearPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class ClearPlaylistContentsResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class ClearPlaylistContentsResponse implements lukehagar.plexapi.plexapi. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Connections.java b/src/main/java/dev/plexapi/sdk/models/operations/Connections.java new file mode 100644 index 00000000..225c6e23 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Connections.java @@ -0,0 +1,265 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class Connections { + + @JsonProperty("protocol") + private String protocol; + + @JsonProperty("address") + private String address; + + @JsonProperty("port") + private double port; + + @JsonProperty("uri") + private String uri; + + @JsonProperty("local") + private boolean local; + + @JsonProperty("relay") + private boolean relay; + + @JsonProperty("IPv6") + private boolean iPv6; + + @JsonCreator + public Connections( + @JsonProperty("protocol") String protocol, + @JsonProperty("address") String address, + @JsonProperty("port") double port, + @JsonProperty("uri") String uri, + @JsonProperty("local") boolean local, + @JsonProperty("relay") boolean relay, + @JsonProperty("IPv6") boolean iPv6) { + Utils.checkNotNull(protocol, "protocol"); + Utils.checkNotNull(address, "address"); + Utils.checkNotNull(port, "port"); + Utils.checkNotNull(uri, "uri"); + Utils.checkNotNull(local, "local"); + Utils.checkNotNull(relay, "relay"); + Utils.checkNotNull(iPv6, "iPv6"); + this.protocol = protocol; + this.address = address; + this.port = port; + this.uri = uri; + this.local = local; + this.relay = relay; + this.iPv6 = iPv6; + } + + @JsonIgnore + public String protocol() { + return protocol; + } + + @JsonIgnore + public String address() { + return address; + } + + @JsonIgnore + public double port() { + return port; + } + + @JsonIgnore + public String uri() { + return uri; + } + + @JsonIgnore + public boolean local() { + return local; + } + + @JsonIgnore + public boolean relay() { + return relay; + } + + @JsonIgnore + public boolean iPv6() { + return iPv6; + } + + public final static Builder builder() { + return new Builder(); + } + + public Connections withProtocol(String protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = protocol; + return this; + } + + public Connections withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public Connections withPort(double port) { + Utils.checkNotNull(port, "port"); + this.port = port; + return this; + } + + public Connections withUri(String uri) { + Utils.checkNotNull(uri, "uri"); + this.uri = uri; + return this; + } + + public Connections withLocal(boolean local) { + Utils.checkNotNull(local, "local"); + this.local = local; + return this; + } + + public Connections withRelay(boolean relay) { + Utils.checkNotNull(relay, "relay"); + this.relay = relay; + return this; + } + + public Connections withIPv6(boolean iPv6) { + Utils.checkNotNull(iPv6, "iPv6"); + this.iPv6 = iPv6; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Connections other = (Connections) o; + return + Objects.deepEquals(this.protocol, other.protocol) && + Objects.deepEquals(this.address, other.address) && + Objects.deepEquals(this.port, other.port) && + Objects.deepEquals(this.uri, other.uri) && + Objects.deepEquals(this.local, other.local) && + Objects.deepEquals(this.relay, other.relay) && + Objects.deepEquals(this.iPv6, other.iPv6); + } + + @Override + public int hashCode() { + return Objects.hash( + protocol, + address, + port, + uri, + local, + relay, + iPv6); + } + + @Override + public String toString() { + return Utils.toString(Connections.class, + "protocol", protocol, + "address", address, + "port", port, + "uri", uri, + "local", local, + "relay", relay, + "iPv6", iPv6); + } + + public final static class Builder { + + private String protocol; + + private String address; + + private Double port; + + private String uri; + + private Boolean local; + + private Boolean relay; + + private Boolean iPv6; + + private Builder() { + // force use of static builder() method + } + + public Builder protocol(String protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = protocol; + return this; + } + + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public Builder port(double port) { + Utils.checkNotNull(port, "port"); + this.port = port; + return this; + } + + public Builder uri(String uri) { + Utils.checkNotNull(uri, "uri"); + this.uri = uri; + return this; + } + + public Builder local(boolean local) { + Utils.checkNotNull(local, "local"); + this.local = local; + return this; + } + + public Builder relay(boolean relay) { + Utils.checkNotNull(relay, "relay"); + this.relay = relay; + return this; + } + + public Builder iPv6(boolean iPv6) { + Utils.checkNotNull(iPv6, "iPv6"); + this.iPv6 = iPv6; + return this; + } + + public Connections build() { + return new Connections( + protocol, + address, + port, + uri, + local, + relay, + iPv6); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java b/src/main/java/dev/plexapi/sdk/models/operations/Context.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java rename to src/main/java/dev/plexapi/sdk/models/operations/Context.java index 1d6e528d..b33fa19b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Context.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Context { @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonCreator public Context( - @JsonProperty("librarySectionID") Optional librarySectionID) { + @JsonProperty("librarySectionID") Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; } @@ -35,10 +34,9 @@ public class Context { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Context { return this; } - public Context withLibrarySectionID(Optional librarySectionID) { + public Context withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -67,12 +65,12 @@ public class Context { } Context other = (Context) o; return - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID); + Objects.deepEquals(this.librarySectionID, other.librarySectionID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( librarySectionID); } @@ -84,7 +82,7 @@ public class Context { public final static class Builder { - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Context { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java b/src/main/java/dev/plexapi/sdk/models/operations/Country.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java rename to src/main/java/dev/plexapi/sdk/models/operations/Country.java index 272c0640..85c85d40 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Country.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Country { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public Country( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class Country { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Country { return this; } - public Country withTag(Optional tag) { + public Country withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class Country { } Country other = (Country) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class Country { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Country { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java index ae93834f..68024051 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CreatePlaylistMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public CreatePlaylistMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { + @JsonProperty("size") Optional size, + @JsonProperty("Metadata") Optional> metadata) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(metadata, "metadata"); this.size = size; @@ -42,16 +44,15 @@ public class CreatePlaylistMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class CreatePlaylistMediaContainer { return this; } - public CreatePlaylistMediaContainer withSize(Optional size) { + public CreatePlaylistMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public CreatePlaylistMediaContainer withMetadata(java.util.List metadata) { + public CreatePlaylistMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public CreatePlaylistMediaContainer withMetadata(Optional> metadata) { + public CreatePlaylistMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -92,13 +93,13 @@ public class CreatePlaylistMediaContainer { } CreatePlaylistMediaContainer other = (CreatePlaylistMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, metadata); } @@ -112,9 +113,9 @@ public class CreatePlaylistMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class CreatePlaylistMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java index c2bff368..2d445a27 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java @@ -1,107 +1,108 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CreatePlaylistMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("icon") - private Optional icon; + private Optional icon; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional 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) { + @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"); @@ -140,100 +141,84 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional icon() { - return (Optional) icon; + return icon; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } public final static Builder builder() { @@ -246,7 +231,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withRatingKey(Optional ratingKey) { + public CreatePlaylistMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -258,7 +243,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withKey(Optional key) { + public CreatePlaylistMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -270,7 +255,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withGuid(Optional guid) { + public CreatePlaylistMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -282,7 +267,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withType(Optional type) { + public CreatePlaylistMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -294,7 +279,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withTitle(Optional title) { + public CreatePlaylistMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -306,7 +291,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withSummary(Optional summary) { + public CreatePlaylistMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -318,7 +303,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withSmart(Optional smart) { + public CreatePlaylistMetadata withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -330,7 +315,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withPlaylistType(Optional playlistType) { + public CreatePlaylistMetadata withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -342,7 +327,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withIcon(Optional icon) { + public CreatePlaylistMetadata withIcon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -354,7 +339,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withViewCount(Optional viewCount) { + public CreatePlaylistMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -366,7 +351,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withLastViewedAt(Optional lastViewedAt) { + public CreatePlaylistMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -378,7 +363,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withLeafCount(Optional leafCount) { + public CreatePlaylistMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -390,7 +375,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withAddedAt(Optional addedAt) { + public CreatePlaylistMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -402,7 +387,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withUpdatedAt(Optional updatedAt) { + public CreatePlaylistMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -414,7 +399,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withComposite(Optional composite) { + public CreatePlaylistMetadata withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -426,7 +411,7 @@ public class CreatePlaylistMetadata { return this; } - public CreatePlaylistMetadata withDuration(Optional duration) { + public CreatePlaylistMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -442,27 +427,27 @@ public class CreatePlaylistMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.icon, other.icon) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.duration, other.duration); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -504,37 +489,37 @@ public class CreatePlaylistMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional icon = Optional.empty(); + private Optional icon = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); private Builder() { // force use of static builder() method @@ -546,7 +531,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -558,7 +543,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -570,7 +555,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -582,7 +567,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -594,7 +579,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -606,7 +591,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -618,7 +603,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -630,7 +615,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -642,7 +627,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder icon(Optional icon) { + public Builder icon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -654,7 +639,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -666,7 +651,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -678,7 +663,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -690,7 +675,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -702,7 +687,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -714,7 +699,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -726,7 +711,7 @@ public class CreatePlaylistMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java new file mode 100644 index 00000000..d5449e89 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * CreatePlaylistQueryParamType - type of playlist to create + */ +public enum CreatePlaylistQueryParamType { + AUDIO("audio"), + VIDEO("video"), + PHOTO("photo"); + + @JsonValue + private final String value; + + private CreatePlaylistQueryParamType(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java index 7978d402..977ae0fd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class CreatePlaylistRequest { @@ -28,7 +28,7 @@ public class CreatePlaylistRequest { * type of playlist to create */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private QueryParamType type; + private CreatePlaylistQueryParamType type; /** * whether the playlist is smart or not @@ -46,15 +46,15 @@ public class CreatePlaylistRequest { * the play queue to copy to a playlist */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") - private Optional playQueueID; + private Optional playQueueID; @JsonCreator public CreatePlaylistRequest( String title, - QueryParamType type, + CreatePlaylistQueryParamType type, Smart smart, String uri, - Optional playQueueID) { + Optional playQueueID) { Utils.checkNotNull(title, "title"); Utils.checkNotNull(type, "type"); Utils.checkNotNull(smart, "smart"); @@ -69,7 +69,7 @@ public class CreatePlaylistRequest { public CreatePlaylistRequest( String title, - QueryParamType type, + CreatePlaylistQueryParamType type, Smart smart, String uri) { this(title, type, smart, uri, Optional.empty()); @@ -87,7 +87,7 @@ public class CreatePlaylistRequest { * type of playlist to create */ @JsonIgnore - public QueryParamType type() { + public CreatePlaylistQueryParamType type() { return type; } @@ -110,10 +110,9 @@ public class CreatePlaylistRequest { /** * the play queue to copy to a playlist */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playQueueID() { - return (Optional) playQueueID; + return playQueueID; } public final static Builder builder() { @@ -132,7 +131,7 @@ public class CreatePlaylistRequest { /** * type of playlist to create */ - public CreatePlaylistRequest withType(QueryParamType type) { + public CreatePlaylistRequest withType(CreatePlaylistQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -168,7 +167,7 @@ public class CreatePlaylistRequest { /** * the play queue to copy to a playlist */ - public CreatePlaylistRequest withPlayQueueID(Optional playQueueID) { + public CreatePlaylistRequest withPlayQueueID(Optional playQueueID) { Utils.checkNotNull(playQueueID, "playQueueID"); this.playQueueID = playQueueID; return this; @@ -184,16 +183,16 @@ public class CreatePlaylistRequest { } 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); + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.uri, other.uri) && + Objects.deepEquals(this.playQueueID, other.playQueueID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( title, type, smart, @@ -215,13 +214,13 @@ public class CreatePlaylistRequest { private String title; - private QueryParamType type; + private CreatePlaylistQueryParamType type; private Smart smart; private String uri; - private Optional playQueueID = Optional.empty(); + private Optional playQueueID = Optional.empty(); private Builder() { // force use of static builder() method @@ -239,7 +238,7 @@ public class CreatePlaylistRequest { /** * type of playlist to create */ - public Builder type(QueryParamType type) { + public Builder type(CreatePlaylistQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -275,7 +274,7 @@ public class CreatePlaylistRequest { /** * the play queue to copy to a playlist */ - public Builder playQueueID(Optional playQueueID) { + public Builder playQueueID(Optional playQueueID) { Utils.checkNotNull(playQueueID, "playQueueID"); this.playQueueID = playQueueID; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java new file mode 100644 index 00000000..4bb062e9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class CreatePlaylistRequestBuilder { + + private CreatePlaylistRequest request; + private final SDKMethodInterfaces.MethodCallCreatePlaylist sdk; + + public CreatePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallCreatePlaylist sdk) { + this.sdk = sdk; + } + + public CreatePlaylistRequestBuilder request(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java index 30f531d3..234a7c18 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class CreatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class CreatePlaylistResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class CreatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java index 3250a628..692b5779 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * CreatePlaylistResponseBody - returns all playlists */ @@ -70,12 +70,12 @@ public class CreatePlaylistResponseBody { } CreatePlaylistResponseBody other = (CreatePlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java new file mode 100644 index 00000000..af50d7e0 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ +public enum DefaultSubtitleAccessibility { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private DefaultSubtitleAccessibility(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java new file mode 100644 index 00000000..993322d3 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ +public enum DefaultSubtitleForced { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private DefaultSubtitleForced(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java new file mode 100644 index 00000000..6daf364c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java @@ -0,0 +1,110 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class DeleteLibraryRequest { + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey") + private int sectionKey; + + @JsonCreator + public DeleteLibraryRequest( + int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @JsonIgnore + public int sectionKey() { + return sectionKey; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public DeleteLibraryRequest withSectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + 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 + Objects.deepEquals(this.sectionKey, other.sectionKey); + } + + @Override + public int hashCode() { + return Objects.hash( + sectionKey); + } + + @Override + public String toString() { + return Utils.toString(DeleteLibraryRequest.class, + "sectionKey", sectionKey); + } + + public final static class Builder { + + private Integer sectionKey; + + private Builder() { + // force use of static builder() method + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public Builder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + public DeleteLibraryRequest build() { + return new DeleteLibraryRequest( + sectionKey); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java new file mode 100644 index 00000000..3b59bfdc --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; + +public class DeleteLibraryRequestBuilder { + + private Integer sectionKey; + private final SDKMethodInterfaces.MethodCallDeleteLibrary sdk; + + public DeleteLibraryRequestBuilder(SDKMethodInterfaces.MethodCallDeleteLibrary sdk) { + this.sdk = sdk; + } + + public DeleteLibraryRequestBuilder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + public DeleteLibraryResponse call() throws Exception { + + return sdk.deleteLibrary( + sectionKey); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java index 140a8f45..8b50a772 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class DeleteLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class DeleteLibraryResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class DeleteLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java index 0b07d522..ae76abdd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class DeletePlaylistRequest { @@ -61,12 +61,12 @@ public class DeletePlaylistRequest { } DeletePlaylistRequest other = (DeletePlaylistRequest) o; return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); + Objects.deepEquals(this.playlistID, other.playlistID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java similarity index 51% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java index 12e13e42..1e109c4f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; public class DeletePlaylistRequestBuilder { diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java index b4a1fa50..0721b350 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class DeletePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class DeletePlaylistResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class DeletePlaylistResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java b/src/main/java/dev/plexapi/sdk/models/operations/Device.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java rename to src/main/java/dev/plexapi/sdk/models/operations/Device.java index 52955c43..f3ad8d25 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Device.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Device { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platform") - private Optional platform; + private Optional platform; @JsonInclude(Include.NON_ABSENT) @JsonProperty("clientIdentifier") - private Optional clientIdentifier; + private Optional clientIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional 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) { + @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"); @@ -63,34 +63,29 @@ public class Device { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platform() { - return (Optional) platform; + return platform; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional clientIdentifier() { - return (Optional) clientIdentifier; + return clientIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } public final static Builder builder() { @@ -103,7 +98,7 @@ public class Device { return this; } - public Device withId(Optional id) { + public Device withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -115,7 +110,7 @@ public class Device { return this; } - public Device withName(Optional name) { + public Device withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -127,7 +122,7 @@ public class Device { return this; } - public Device withPlatform(Optional platform) { + public Device withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -139,7 +134,7 @@ public class Device { return this; } - public Device withClientIdentifier(Optional clientIdentifier) { + public Device withClientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -151,7 +146,7 @@ public class Device { return this; } - public Device withCreatedAt(Optional createdAt) { + public Device withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -167,16 +162,16 @@ public class Device { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.createdAt, other.createdAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, platform, @@ -196,15 +191,15 @@ public class Device { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); - private Optional clientIdentifier = Optional.empty(); + private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class Device { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class Device { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -240,7 +235,7 @@ public class Device { return this; } - public Builder platform(Optional platform) { + public Builder platform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -252,7 +247,7 @@ public class Device { return this; } - public Builder clientIdentifier(Optional clientIdentifier) { + public Builder clientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -264,7 +259,7 @@ public class Device { return this; } - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java b/src/main/java/dev/plexapi/sdk/models/operations/Director.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java rename to src/main/java/dev/plexapi/sdk/models/operations/Director.java index 63661e1c..3f891951 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Director.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Director { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public Director( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class Director { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Director { return this; } - public Director withTag(Optional tag) { + public Director withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class Director { } Director other = (Director) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class Director { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Director { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java b/src/main/java/dev/plexapi/sdk/models/operations/Directory.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java rename to src/main/java/dev/plexapi/sdk/models/operations/Directory.java index 17e4fce4..33648bf6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Directory.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Directory { @JsonInclude(Include.NON_ABSENT) @JsonProperty("count") - private Optional count; + private Optional count; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonCreator public Directory( - @JsonProperty("count") Optional count, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { + @JsonProperty("count") Optional count, + @JsonProperty("key") Optional key, + @JsonProperty("title") Optional title) { Utils.checkNotNull(count, "count"); Utils.checkNotNull(key, "key"); Utils.checkNotNull(title, "title"); @@ -49,22 +49,19 @@ public class Directory { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional count() { - return (Optional) count; + return count; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class Directory { return this; } - public Directory withCount(Optional count) { + public Directory withCount(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -89,7 +86,7 @@ public class Directory { return this; } - public Directory withKey(Optional key) { + public Directory withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -101,7 +98,7 @@ public class Directory { return this; } - public Directory withTitle(Optional title) { + public Directory withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -117,14 +114,14 @@ public class Directory { } 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); + Objects.deepEquals(this.count, other.count) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( count, key, title); @@ -140,11 +137,11 @@ public class Directory { public final static class Builder { - private Optional count = Optional.empty(); + private Optional count = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class Directory { return this; } - public Builder count(Optional count) { + public Builder count(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -168,7 +165,7 @@ public class Directory { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -180,7 +177,7 @@ public class Directory { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Download.java b/src/main/java/dev/plexapi/sdk/models/operations/Download.java new file mode 100644 index 00000000..c74b6382 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Download.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java new file mode 100644 index 00000000..c6e1fdc4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java index 04349d9f..dab4fb4d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class EnablePaperTrailResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class EnablePaperTrailResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class EnablePaperTrailResponse implements lukehagar.plexapi.plexapi.utils } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Feature.java b/src/main/java/dev/plexapi/sdk/models/operations/Feature.java new file mode 100644 index 00000000..49288338 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Feature.java @@ -0,0 +1,196 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class Feature { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + private Optional key; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional type; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Directory") + private Optional> directory; + + @JsonCreator + public Feature( + @JsonProperty("key") Optional key, + @JsonProperty("type") Optional type, + @JsonProperty("Directory") Optional> directory) { + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(directory, "directory"); + this.key = key; + this.type = type; + this.directory = directory; + } + + public Feature() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional key() { + return key; + } + + @JsonIgnore + public Optional type() { + return type; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> directory() { + return (Optional>) directory; + } + + public final static Builder builder() { + return new Builder(); + } + + public Feature withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + public Feature withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public Feature withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + public Feature withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Feature withDirectory(List directory) { + Utils.checkNotNull(directory, "directory"); + this.directory = Optional.ofNullable(directory); + return this; + } + + public Feature 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; + } + Feature other = (Feature) o; + return + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.directory, other.directory); + } + + @Override + public int hashCode() { + return Objects.hash( + key, + type, + directory); + } + + @Override + public String toString() { + return Utils.toString(Feature.class, + "key", key, + "type", type, + "directory", directory); + } + + public final static class Builder { + + private Optional key = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional> directory = 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 directory(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 Feature build() { + return new Feature( + key, + type, + directory); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Features.java b/src/main/java/dev/plexapi/sdk/models/operations/Features.java new file mode 100644 index 00000000..65dd6bd4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Features.java @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum Features { + ANDROID_DOLBY_VISION("Android - Dolby Vision"), + ANDROID_PI_P("Android - PiP"), + CU_SUNSET("CU Sunset"), + HRK_ENABLE_EUR("HRK_enable_EUR"), + TREBLE_SHOW_FEATURES("TREBLE-show-features"), + AD_COUNTDOWN_TIMER("ad-countdown-timer"), + ADAPTIVE_BITRATE("adaptive_bitrate"), + AMAZON_LOOP_DEBUG("amazon-loop-debug"), + AVOD_AD_ANALYSIS("avod-ad-analysis"), + AVOD_NEW_MEDIA("avod-new-media"), + BLACKLIST_GET_SIGNIN("blacklist_get_signin"), + CLIENT_RADIO_STATIONS("client-radio-stations"), + CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), + COLLECTIONS("collections"), + COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), + COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), + COMPANIONS_SONOS("companions_sonos"), + CUSTOM_HOME_REMOVAL("custom-home-removal"), + DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), + DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), + DRM_SUPPORT("drm_support"), + EXCLUDE_RESTRICTIONS("exclude restrictions"), + FEDERATED_AUTH("federated-auth"), + FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), + GUIDED_UPGRADE("guided-upgrade"), + HOME("home"), + INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), + IOS14_PRIVACY_BANNER("ios14-privacy-banner"), + ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), + KEEP_PAYMENT_METHOD("keep-payment-method"), + KEVIN_BACON("kevin-bacon"), + KOREA_CONSENT("korea-consent"), + LE_ISRG_ROOT_X1("le_isrg_root_x1"), + LETS_ENCRYPT("lets_encrypt"), + LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), + LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), + LIVETV("livetv"), + METADATA_SEARCH("metadata_search"), + NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), + NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), + PHOTOS_FAVORITES("photos-favorites"), + PHOTOS_METADATA_EDITION("photos-metadata-edition"), + PMS_HEALTH("pms_health"), + RADIO("radio"), + RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), + SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), + SHARED_SERVER_NOTIFICATION("shared_server_notification"), + SHARED_SOURCE_NOTIFICATION("shared_source_notification"), + SIGNIN_WITH_APPLE("signin_with_apple"), + SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), + TRANSCODER_CACHE("transcoder_cache"), + TUNER_SHARING("tuner-sharing"), + TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), + UNSUPPORTEDTUNERS("unsupportedtuners"), + UPGRADE3DS2("upgrade-3ds2"), + VOD_SCHEMA("vod-schema"), + VOD_CLOUDFLARE("vod_cloudflare"), + WATCH_TOGETHER_INVITE("watch-together-invite"), + WEB_SERVER_DASHBOARD("web_server_dashboard"); + + @JsonValue + private final String value; + + private Features(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java b/src/main/java/dev/plexapi/sdk/models/operations/Field.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java rename to src/main/java/dev/plexapi/sdk/models/operations/Field.java index b999837b..c88819c4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Field.java @@ -1,47 +1,46 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Field { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subType") - private Optional subType; + private Optional subType; @JsonCreator public Field( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type, - @JsonProperty("subType") Optional subType) { + @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"); @@ -56,28 +55,24 @@ public class Field { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subType() { - return (Optional) subType; + return subType; } public final static Builder builder() { @@ -90,7 +85,7 @@ public class Field { return this; } - public Field withKey(Optional key) { + public Field withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -102,7 +97,7 @@ public class Field { return this; } - public Field withTitle(Optional title) { + public Field withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -114,7 +109,7 @@ public class Field { return this; } - public Field withType(Optional type) { + public Field withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -126,7 +121,7 @@ public class Field { return this; } - public Field withSubType(Optional subType) { + public Field withSubType(Optional subType) { Utils.checkNotNull(subType, "subType"); this.subType = subType; return this; @@ -142,15 +137,15 @@ public class Field { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.subType, other.subType); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, title, type, @@ -168,13 +163,13 @@ public class Field { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,7 +181,7 @@ public class Field { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -198,7 +193,7 @@ public class Field { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -210,7 +205,7 @@ public class Field { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -222,7 +217,7 @@ public class Field { return this; } - public Builder subType(Optional subType) { + public Builder subType(Optional subType) { Utils.checkNotNull(subType, "subType"); this.subType = subType; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java rename to src/main/java/dev/plexapi/sdk/models/operations/FieldType.java index cada09db..e2602c95 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java @@ -1,37 +1,38 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class FieldType { @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Operator") - private Optional> operator; + private Optional> operator; @JsonCreator public FieldType( - @JsonProperty("type") Optional type, - @JsonProperty("Operator") Optional> operator) { + @JsonProperty("type") Optional type, + @JsonProperty("Operator") Optional> operator) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(operator, "operator"); this.type = type; @@ -42,16 +43,15 @@ public class FieldType { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> operator() { - return (Optional>) operator; + public Optional> operator() { + return (Optional>) operator; } public final static Builder builder() { @@ -64,19 +64,19 @@ public class FieldType { return this; } - public FieldType withType(Optional type) { + public FieldType withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public FieldType withOperator(java.util.List operator) { + public FieldType withOperator(List operator) { Utils.checkNotNull(operator, "operator"); this.operator = Optional.ofNullable(operator); return this; } - public FieldType withOperator(Optional> operator) { + public FieldType withOperator(Optional> operator) { Utils.checkNotNull(operator, "operator"); this.operator = operator; return this; @@ -92,13 +92,13 @@ public class FieldType { } FieldType other = (FieldType) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.operator, other.operator); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.operator, other.operator); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, operator); } @@ -112,9 +112,9 @@ public class FieldType { public final static class Builder { - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional> operator = Optional.empty(); + private Optional> operator = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +126,19 @@ public class FieldType { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public Builder operator(java.util.List operator) { + public Builder operator(List operator) { Utils.checkNotNull(operator, "operator"); this.operator = Optional.ofNullable(operator); return this; } - public Builder operator(Optional> operator) { + public Builder operator(Optional> operator) { Utils.checkNotNull(operator, "operator"); this.operator = operator; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Filter.java b/src/main/java/dev/plexapi/sdk/models/operations/Filter.java new file mode 100644 index 00000000..42a20309 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Filter.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * Filter - Filter + */ +public enum Filter { + ALL("all"), + AVAILABLE("available"), + RELEASED("released"); + + @JsonValue + private final String value; + + private Filter(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Force.java b/src/main/java/dev/plexapi/sdk/models/operations/Force.java new file mode 100644 index 00000000..f491dda0 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Force.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Force - Force the refresh even if the library is already being refreshed. + */ +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/dev/plexapi/sdk/models/operations/Friend.java b/src/main/java/dev/plexapi/sdk/models/operations/Friend.java new file mode 100644 index 00000000..6d6b1556 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Friend.java @@ -0,0 +1,596 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class Friend { + + /** + * The account email address + */ + @JsonProperty("email") + private String email; + + /** + * The account full name + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("friendlyName") + private Optional friendlyName; + + /** + * If the account is a Plex Home user + */ + @JsonProperty("home") + private boolean home; + + /** + * The Plex account ID + */ + @JsonProperty("id") + private int id; + + /** + * If the account is a Plex Home managed user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("restricted") + private Optional restricted; + + @JsonProperty("sharedServers") + private List sharedServers; + + @JsonProperty("sharedSources") + private List sharedSources; + + /** + * Current friend request status + */ + @JsonProperty("status") + private Status status; + + /** + * URL of the account thumbnail + */ + @JsonProperty("thumb") + private String thumb; + + /** + * The title of the account (username or friendly name) + */ + @JsonProperty("title") + private String title; + + /** + * The account username + */ + @JsonProperty("username") + private String username; + + /** + * The account Universally Unique Identifier (UUID) + */ + @JsonProperty("uuid") + private String uuid; + + @JsonCreator + public Friend( + @JsonProperty("email") String email, + @JsonProperty("friendlyName") Optional friendlyName, + @JsonProperty("home") boolean home, + @JsonProperty("id") int id, + @JsonProperty("restricted") Optional restricted, + @JsonProperty("sharedServers") List sharedServers, + @JsonProperty("sharedSources") List sharedSources, + @JsonProperty("status") Status status, + @JsonProperty("thumb") String thumb, + @JsonProperty("title") String title, + @JsonProperty("username") String username, + @JsonProperty("uuid") String uuid) { + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(friendlyName, "friendlyName"); + Utils.checkNotNull(home, "home"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(restricted, "restricted"); + Utils.checkNotNull(sharedServers, "sharedServers"); + Utils.checkNotNull(sharedSources, "sharedSources"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(thumb, "thumb"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(username, "username"); + Utils.checkNotNull(uuid, "uuid"); + this.email = email; + this.friendlyName = friendlyName; + this.home = home; + this.id = id; + this.restricted = restricted; + this.sharedServers = sharedServers; + this.sharedSources = sharedSources; + this.status = status; + this.thumb = thumb; + this.title = title; + this.username = username; + this.uuid = uuid; + } + + public Friend( + String email, + boolean home, + int id, + List sharedServers, + List sharedSources, + Status status, + String thumb, + String title, + String username, + String uuid) { + this(email, Optional.empty(), home, id, Optional.empty(), sharedServers, sharedSources, status, thumb, title, username, uuid); + } + + /** + * The account email address + */ + @JsonIgnore + public String email() { + return email; + } + + /** + * The account full name + */ + @JsonIgnore + public Optional friendlyName() { + return friendlyName; + } + + /** + * If the account is a Plex Home user + */ + @JsonIgnore + public boolean home() { + return home; + } + + /** + * The Plex account ID + */ + @JsonIgnore + public int id() { + return id; + } + + /** + * If the account is a Plex Home managed user + */ + @JsonIgnore + public Optional restricted() { + return restricted; + } + + @JsonIgnore + public List sharedServers() { + return sharedServers; + } + + @JsonIgnore + public List sharedSources() { + return sharedSources; + } + + /** + * Current friend request status + */ + @JsonIgnore + public Status status() { + return status; + } + + /** + * URL of the account thumbnail + */ + @JsonIgnore + public String thumb() { + return thumb; + } + + /** + * The title of the account (username or friendly name) + */ + @JsonIgnore + public String title() { + return title; + } + + /** + * The account username + */ + @JsonIgnore + public String username() { + return username; + } + + /** + * The account Universally Unique Identifier (UUID) + */ + @JsonIgnore + public String uuid() { + return uuid; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The account email address + */ + public Friend withEmail(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * The account full name + */ + public Friend withFriendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = Optional.ofNullable(friendlyName); + return this; + } + + /** + * The account full name + */ + public Friend withFriendlyName(Optional friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * If the account is a Plex Home user + */ + public Friend withHome(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * The Plex account ID + */ + public Friend withId(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Friend withRestricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Friend withRestricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + public Friend withSharedServers(List sharedServers) { + Utils.checkNotNull(sharedServers, "sharedServers"); + this.sharedServers = sharedServers; + return this; + } + + public Friend withSharedSources(List sharedSources) { + Utils.checkNotNull(sharedSources, "sharedSources"); + this.sharedSources = sharedSources; + return this; + } + + /** + * Current friend request status + */ + public Friend withStatus(Status status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * URL of the account thumbnail + */ + public Friend withThumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public Friend withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * The account username + */ + public Friend withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account Universally Unique Identifier (UUID) + */ + public Friend withUuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Friend other = (Friend) o; + return + Objects.deepEquals(this.email, other.email) && + Objects.deepEquals(this.friendlyName, other.friendlyName) && + Objects.deepEquals(this.home, other.home) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.restricted, other.restricted) && + Objects.deepEquals(this.sharedServers, other.sharedServers) && + Objects.deepEquals(this.sharedSources, other.sharedSources) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.username, other.username) && + Objects.deepEquals(this.uuid, other.uuid); + } + + @Override + public int hashCode() { + return Objects.hash( + email, + friendlyName, + home, + id, + restricted, + sharedServers, + sharedSources, + status, + thumb, + title, + username, + uuid); + } + + @Override + public String toString() { + return Utils.toString(Friend.class, + "email", email, + "friendlyName", friendlyName, + "home", home, + "id", id, + "restricted", restricted, + "sharedServers", sharedServers, + "sharedSources", sharedSources, + "status", status, + "thumb", thumb, + "title", title, + "username", username, + "uuid", uuid); + } + + public final static class Builder { + + private String email; + + private Optional friendlyName = Optional.empty(); + + private Boolean home; + + private Integer id; + + private Optional restricted; + + private List sharedServers; + + private List sharedSources; + + private Status status; + + private String thumb; + + private String title; + + private String username; + + private String uuid; + + private Builder() { + // force use of static builder() method + } + + /** + * The account email address + */ + public Builder email(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * The account full name + */ + public Builder friendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = Optional.ofNullable(friendlyName); + return this; + } + + /** + * The account full name + */ + public Builder friendlyName(Optional friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * If the account is a Plex Home user + */ + public Builder home(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * The Plex account ID + */ + public Builder id(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + public Builder sharedServers(List sharedServers) { + Utils.checkNotNull(sharedServers, "sharedServers"); + this.sharedServers = sharedServers; + return this; + } + + public Builder sharedSources(List sharedSources) { + Utils.checkNotNull(sharedSources, "sharedSources"); + this.sharedSources = sharedSources; + return this; + } + + /** + * Current friend request status + */ + public Builder status(Status status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * URL of the account thumbnail + */ + public Builder thumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * The account username + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account Universally Unique Identifier (UUID) + */ + public Builder uuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + public Friend build() { + if (restricted == null) { + restricted = _SINGLETON_VALUE_Restricted.value(); + } return new Friend( + email, + friendlyName, + home, + id, + restricted, + sharedServers, + sharedSources, + status, + thumb, + title, + username, + uuid); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Restricted = + new LazySingletonValue<>( + "restricted", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java b/src/main/java/dev/plexapi/sdk/models/operations/Genre.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java rename to src/main/java/dev/plexapi/sdk/models/operations/Genre.java index c9206374..f68d2413 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Genre.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Genre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public Genre( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class Genre { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Genre { return this; } - public Genre withTag(Optional tag) { + public Genre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class Genre { } Genre other = (Genre) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class Genre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Genre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java b/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java new file mode 100644 index 00000000..aa46f55b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java @@ -0,0 +1,616 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * GeoData - Geo location data + */ + +public class GeoData { + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonProperty("code") + private String code; + + /** + * The continent code where the country is located. + */ + @JsonProperty("continent_code") + private String continentCode; + + /** + * The official name of the country. + */ + @JsonProperty("country") + private String country; + + /** + * The name of the city. + */ + @JsonProperty("city") + private String city; + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("european_union_member") + private Optional europeanUnionMember; + + /** + * The time zone of the country. + */ + @JsonProperty("time_zone") + private String timeZone; + + /** + * The postal code of the location. + */ + @JsonProperty("postal_code") + private long postalCode; + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_country") + private Optional inPrivacyRestrictedCountry; + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_region") + private Optional inPrivacyRestrictedRegion; + + /** + * The name of the primary administrative subdivision. + */ + @JsonProperty("subdivisions") + private String subdivisions; + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonProperty("coordinates") + private String coordinates; + + @JsonCreator + public GeoData( + @JsonProperty("code") String code, + @JsonProperty("continent_code") String continentCode, + @JsonProperty("country") String country, + @JsonProperty("city") String city, + @JsonProperty("european_union_member") Optional europeanUnionMember, + @JsonProperty("time_zone") String timeZone, + @JsonProperty("postal_code") long postalCode, + @JsonProperty("in_privacy_restricted_country") Optional inPrivacyRestrictedCountry, + @JsonProperty("in_privacy_restricted_region") Optional inPrivacyRestrictedRegion, + @JsonProperty("subdivisions") String subdivisions, + @JsonProperty("coordinates") String coordinates) { + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(continentCode, "continentCode"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(city, "city"); + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + Utils.checkNotNull(timeZone, "timeZone"); + Utils.checkNotNull(postalCode, "postalCode"); + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + Utils.checkNotNull(subdivisions, "subdivisions"); + Utils.checkNotNull(coordinates, "coordinates"); + this.code = code; + this.continentCode = continentCode; + this.country = country; + this.city = city; + this.europeanUnionMember = europeanUnionMember; + this.timeZone = timeZone; + this.postalCode = postalCode; + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + this.subdivisions = subdivisions; + this.coordinates = coordinates; + } + + public GeoData( + String code, + String continentCode, + String country, + String city, + String timeZone, + long postalCode, + String subdivisions, + String coordinates) { + this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonIgnore + public String code() { + return code; + } + + /** + * The continent code where the country is located. + */ + @JsonIgnore + public String continentCode() { + return continentCode; + } + + /** + * The official name of the country. + */ + @JsonIgnore + public String country() { + return country; + } + + /** + * The name of the city. + */ + @JsonIgnore + public String city() { + return city; + } + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonIgnore + public Optional europeanUnionMember() { + return europeanUnionMember; + } + + /** + * The time zone of the country. + */ + @JsonIgnore + public String timeZone() { + return timeZone; + } + + /** + * The postal code of the location. + */ + @JsonIgnore + public long postalCode() { + return postalCode; + } + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedCountry() { + return inPrivacyRestrictedCountry; + } + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedRegion() { + return inPrivacyRestrictedRegion; + } + + /** + * The name of the primary administrative subdivision. + */ + @JsonIgnore + public String subdivisions() { + return subdivisions; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonIgnore + public String coordinates() { + return coordinates; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public GeoData withCode(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public GeoData withContinentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public GeoData withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public GeoData withCity(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GeoData withEuropeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GeoData withEuropeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public GeoData withTimeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public GeoData withPostalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GeoData withInPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GeoData withInPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GeoData withInPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GeoData withInPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public GeoData withSubdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public GeoData withCoordinates(String 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; + } + GeoData other = (GeoData) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.continentCode, other.continentCode) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.city, other.city) && + Objects.deepEquals(this.europeanUnionMember, other.europeanUnionMember) && + Objects.deepEquals(this.timeZone, other.timeZone) && + Objects.deepEquals(this.postalCode, other.postalCode) && + Objects.deepEquals(this.inPrivacyRestrictedCountry, other.inPrivacyRestrictedCountry) && + Objects.deepEquals(this.inPrivacyRestrictedRegion, other.inPrivacyRestrictedRegion) && + Objects.deepEquals(this.subdivisions, other.subdivisions) && + Objects.deepEquals(this.coordinates, other.coordinates); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + @Override + public String toString() { + return Utils.toString(GeoData.class, + "code", code, + "continentCode", continentCode, + "country", country, + "city", city, + "europeanUnionMember", europeanUnionMember, + "timeZone", timeZone, + "postalCode", postalCode, + "inPrivacyRestrictedCountry", inPrivacyRestrictedCountry, + "inPrivacyRestrictedRegion", inPrivacyRestrictedRegion, + "subdivisions", subdivisions, + "coordinates", coordinates); + } + + public final static class Builder { + + private String code; + + private String continentCode; + + private String country; + + private String city; + + private Optional europeanUnionMember; + + private String timeZone; + + private Long postalCode; + + private Optional inPrivacyRestrictedCountry; + + private Optional inPrivacyRestrictedRegion; + + private String subdivisions; + + private String coordinates; + + private Builder() { + // force use of static builder() method + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public Builder code(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public Builder continentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public Builder city(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public Builder timeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public Builder postalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public Builder subdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public Builder coordinates(String coordinates) { + Utils.checkNotNull(coordinates, "coordinates"); + this.coordinates = coordinates; + return this; + } + + public GeoData build() { + if (europeanUnionMember == null) { + europeanUnionMember = _SINGLETON_VALUE_EuropeanUnionMember.value(); + } + if (inPrivacyRestrictedCountry == null) { + inPrivacyRestrictedCountry = _SINGLETON_VALUE_InPrivacyRestrictedCountry.value(); + } + if (inPrivacyRestrictedRegion == null) { + inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); + } return new GeoData( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_EuropeanUnionMember = + new LazySingletonValue<>( + "european_union_member", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedCountry = + new LazySingletonValue<>( + "in_privacy_restricted_country", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedRegion = + new LazySingletonValue<>( + "in_privacy_restricted_region", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java index c1ceb26a..b10b8c76 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java @@ -1,132 +1,144 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibrariesDirectory { + +public class GetAllLibrariesDirectory { @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filters") - private Optional filters; + private Optional filters; @JsonInclude(Include.NON_ABSENT) @JsonProperty("refreshing") - private Optional refreshing; + private Optional refreshing; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("agent") - private Optional agent; + private Optional agent; @JsonInclude(Include.NON_ABSENT) @JsonProperty("scanner") - private Optional scanner; + private Optional scanner; @JsonInclude(Include.NON_ABSENT) @JsonProperty("language") - private Optional language; + private Optional language; @JsonInclude(Include.NON_ABSENT) @JsonProperty("uuid") - private Optional uuid; + private Optional uuid; + /** + * Unix epoch datetime + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; + /** + * Unix epoch datetime + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; + /** + * Unix epoch datetime + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("scannedAt") - private Optional scannedAt; + private Optional scannedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("content") - private Optional content; + private Optional content; @JsonInclude(Include.NON_ABSENT) @JsonProperty("directory") - private Optional directory; + private Optional directory; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentChangedAt") - private Optional contentChangedAt; + private Optional contentChangedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hidden") - private Optional hidden; + private Optional hidden; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Location") - private Optional> 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) { + public GetAllLibrariesDirectory( + @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"); @@ -171,387 +183,394 @@ public class GetLibrariesDirectory { this.location = location; } - public GetLibrariesDirectory() { + public GetAllLibrariesDirectory() { 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; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filters() { - return (Optional) filters; + return filters; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional refreshing() { - return (Optional) refreshing; + return refreshing; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional agent() { - return (Optional) agent; + return agent; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional scanner() { - return (Optional) scanner; + return scanner; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional language() { - return (Optional) language; + return language; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional uuid() { - return (Optional) uuid; + return uuid; } - @SuppressWarnings("unchecked") + /** + * Unix epoch datetime + */ @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") + /** + * Unix epoch datetime + */ @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } - @SuppressWarnings("unchecked") + /** + * Unix epoch datetime + */ @JsonIgnore public Optional scannedAt() { - return (Optional) scannedAt; + return scannedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional content() { - return (Optional) content; + return content; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional directory() { - return (Optional) directory; + return directory; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentChangedAt() { - return (Optional) contentChangedAt; + return contentChangedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hidden() { - return (Optional) hidden; + return hidden; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> location() { - return (Optional>) location; + public Optional> location() { + return (Optional>) location; } public final static Builder builder() { return new Builder(); } - public GetLibrariesDirectory withAllowSync(boolean allowSync) { + public GetAllLibrariesDirectory withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = Optional.ofNullable(allowSync); return this; } - public GetLibrariesDirectory withAllowSync(Optional allowSync) { + public GetAllLibrariesDirectory withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; } - public GetLibrariesDirectory withArt(String art) { + public GetAllLibrariesDirectory withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } - public GetLibrariesDirectory withArt(Optional art) { + public GetAllLibrariesDirectory withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } - public GetLibrariesDirectory withComposite(String composite) { + public GetAllLibrariesDirectory withComposite(String composite) { Utils.checkNotNull(composite, "composite"); this.composite = Optional.ofNullable(composite); return this; } - public GetLibrariesDirectory withComposite(Optional composite) { + public GetAllLibrariesDirectory withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; } - public GetLibrariesDirectory withFilters(boolean filters) { + public GetAllLibrariesDirectory withFilters(boolean filters) { Utils.checkNotNull(filters, "filters"); this.filters = Optional.ofNullable(filters); return this; } - public GetLibrariesDirectory withFilters(Optional filters) { + public GetAllLibrariesDirectory withFilters(Optional filters) { Utils.checkNotNull(filters, "filters"); this.filters = filters; return this; } - public GetLibrariesDirectory withRefreshing(boolean refreshing) { + public GetAllLibrariesDirectory withRefreshing(boolean refreshing) { Utils.checkNotNull(refreshing, "refreshing"); this.refreshing = Optional.ofNullable(refreshing); return this; } - public GetLibrariesDirectory withRefreshing(Optional refreshing) { + public GetAllLibrariesDirectory withRefreshing(Optional refreshing) { Utils.checkNotNull(refreshing, "refreshing"); this.refreshing = refreshing; return this; } - public GetLibrariesDirectory withThumb(String thumb) { + public GetAllLibrariesDirectory withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetLibrariesDirectory withThumb(Optional thumb) { + public GetAllLibrariesDirectory withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetLibrariesDirectory withKey(String key) { + public GetAllLibrariesDirectory withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetLibrariesDirectory withKey(Optional key) { + public GetAllLibrariesDirectory withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetLibrariesDirectory withType(String type) { + public GetAllLibrariesDirectory withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public GetLibrariesDirectory withType(Optional type) { + public GetAllLibrariesDirectory withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public GetLibrariesDirectory withTitle(String title) { + public GetAllLibrariesDirectory withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public GetLibrariesDirectory withTitle(Optional title) { + public GetAllLibrariesDirectory withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetLibrariesDirectory withAgent(String agent) { + public GetAllLibrariesDirectory withAgent(String agent) { Utils.checkNotNull(agent, "agent"); this.agent = Optional.ofNullable(agent); return this; } - public GetLibrariesDirectory withAgent(Optional agent) { + public GetAllLibrariesDirectory withAgent(Optional agent) { Utils.checkNotNull(agent, "agent"); this.agent = agent; return this; } - public GetLibrariesDirectory withScanner(String scanner) { + public GetAllLibrariesDirectory withScanner(String scanner) { Utils.checkNotNull(scanner, "scanner"); this.scanner = Optional.ofNullable(scanner); return this; } - public GetLibrariesDirectory withScanner(Optional scanner) { + public GetAllLibrariesDirectory withScanner(Optional scanner) { Utils.checkNotNull(scanner, "scanner"); this.scanner = scanner; return this; } - public GetLibrariesDirectory withLanguage(String language) { + public GetAllLibrariesDirectory withLanguage(String language) { Utils.checkNotNull(language, "language"); this.language = Optional.ofNullable(language); return this; } - public GetLibrariesDirectory withLanguage(Optional language) { + public GetAllLibrariesDirectory withLanguage(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; } - public GetLibrariesDirectory withUuid(String uuid) { + public GetAllLibrariesDirectory withUuid(String uuid) { Utils.checkNotNull(uuid, "uuid"); this.uuid = Optional.ofNullable(uuid); return this; } - public GetLibrariesDirectory withUuid(Optional uuid) { + public GetAllLibrariesDirectory withUuid(Optional uuid) { Utils.checkNotNull(uuid, "uuid"); this.uuid = uuid; return this; } - public GetLibrariesDirectory withUpdatedAt(int updatedAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withUpdatedAt(int updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } - public GetLibrariesDirectory withUpdatedAt(Optional updatedAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public GetLibrariesDirectory withCreatedAt(int createdAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withCreatedAt(int createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = Optional.ofNullable(createdAt); return this; } - public GetLibrariesDirectory withCreatedAt(Optional createdAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } - public GetLibrariesDirectory withScannedAt(int scannedAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withScannedAt(int scannedAt) { Utils.checkNotNull(scannedAt, "scannedAt"); this.scannedAt = Optional.ofNullable(scannedAt); return this; } - public GetLibrariesDirectory withScannedAt(Optional scannedAt) { + /** + * Unix epoch datetime + */ + public GetAllLibrariesDirectory withScannedAt(Optional scannedAt) { Utils.checkNotNull(scannedAt, "scannedAt"); this.scannedAt = scannedAt; return this; } - public GetLibrariesDirectory withContent(boolean content) { + public GetAllLibrariesDirectory withContent(boolean content) { Utils.checkNotNull(content, "content"); this.content = Optional.ofNullable(content); return this; } - public GetLibrariesDirectory withContent(Optional content) { + public GetAllLibrariesDirectory withContent(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; } - public GetLibrariesDirectory withDirectory(boolean directory) { + public GetAllLibrariesDirectory withDirectory(boolean directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public GetLibrariesDirectory withDirectory(Optional directory) { + public GetAllLibrariesDirectory withDirectory(Optional directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public GetLibrariesDirectory withContentChangedAt(int contentChangedAt) { + public GetAllLibrariesDirectory withContentChangedAt(int contentChangedAt) { Utils.checkNotNull(contentChangedAt, "contentChangedAt"); this.contentChangedAt = Optional.ofNullable(contentChangedAt); return this; } - public GetLibrariesDirectory withContentChangedAt(Optional contentChangedAt) { + public GetAllLibrariesDirectory withContentChangedAt(Optional contentChangedAt) { Utils.checkNotNull(contentChangedAt, "contentChangedAt"); this.contentChangedAt = contentChangedAt; return this; } - public GetLibrariesDirectory withHidden(int hidden) { + public GetAllLibrariesDirectory withHidden(int hidden) { Utils.checkNotNull(hidden, "hidden"); this.hidden = Optional.ofNullable(hidden); return this; } - public GetLibrariesDirectory withHidden(Optional hidden) { + public GetAllLibrariesDirectory withHidden(Optional hidden) { Utils.checkNotNull(hidden, "hidden"); this.hidden = hidden; return this; } - public GetLibrariesDirectory withLocation(java.util.List location) { + public GetAllLibrariesDirectory withLocation(List location) { Utils.checkNotNull(location, "location"); this.location = Optional.ofNullable(location); return this; } - public GetLibrariesDirectory withLocation(Optional> location) { + public GetAllLibrariesDirectory withLocation(Optional> location) { Utils.checkNotNull(location, "location"); this.location = location; return this; @@ -565,34 +584,34 @@ public class GetLibrariesDirectory { if (o == null || getClass() != o.getClass()) { return false; } - GetLibrariesDirectory other = (GetLibrariesDirectory) o; + GetAllLibrariesDirectory other = (GetAllLibrariesDirectory) 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); + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.filters, other.filters) && + Objects.deepEquals(this.refreshing, other.refreshing) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.agent, other.agent) && + Objects.deepEquals(this.scanner, other.scanner) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.uuid, other.uuid) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.scannedAt, other.scannedAt) && + Objects.deepEquals(this.content, other.content) && + Objects.deepEquals(this.directory, other.directory) && + Objects.deepEquals(this.contentChangedAt, other.contentChangedAt) && + Objects.deepEquals(this.hidden, other.hidden) && + Objects.deepEquals(this.location, other.location); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( allowSync, art, composite, @@ -618,7 +637,7 @@ public class GetLibrariesDirectory { @Override public String toString() { - return Utils.toString(GetLibrariesDirectory.class, + return Utils.toString(GetAllLibrariesDirectory.class, "allowSync", allowSync, "art", art, "composite", composite, @@ -644,47 +663,47 @@ public class GetLibrariesDirectory { public final static class Builder { - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional filters = Optional.empty(); + private Optional filters = Optional.empty(); - private Optional refreshing = Optional.empty(); + private Optional refreshing = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional agent = Optional.empty(); + private Optional agent = Optional.empty(); - private Optional scanner = Optional.empty(); + private Optional scanner = Optional.empty(); - private Optional language = Optional.empty(); + private Optional language = Optional.empty(); - private Optional uuid = Optional.empty(); + private Optional uuid = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional scannedAt = Optional.empty(); + private Optional scannedAt = Optional.empty(); - private Optional content = Optional.empty(); + private Optional content = Optional.empty(); - private Optional directory = Optional.empty(); + private Optional directory = Optional.empty(); - private Optional contentChangedAt = Optional.empty(); + private Optional contentChangedAt = Optional.empty(); - private Optional hidden = Optional.empty(); + private Optional hidden = Optional.empty(); - private Optional> location = Optional.empty(); + private Optional> location = Optional.empty(); private Builder() { // force use of static builder() method @@ -696,7 +715,7 @@ public class GetLibrariesDirectory { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -708,7 +727,7 @@ public class GetLibrariesDirectory { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -720,7 +739,7 @@ public class GetLibrariesDirectory { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -732,7 +751,7 @@ public class GetLibrariesDirectory { return this; } - public Builder filters(Optional filters) { + public Builder filters(Optional filters) { Utils.checkNotNull(filters, "filters"); this.filters = filters; return this; @@ -744,7 +763,7 @@ public class GetLibrariesDirectory { return this; } - public Builder refreshing(Optional refreshing) { + public Builder refreshing(Optional refreshing) { Utils.checkNotNull(refreshing, "refreshing"); this.refreshing = refreshing; return this; @@ -756,7 +775,7 @@ public class GetLibrariesDirectory { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -768,7 +787,7 @@ public class GetLibrariesDirectory { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -780,7 +799,7 @@ public class GetLibrariesDirectory { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -792,7 +811,7 @@ public class GetLibrariesDirectory { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -804,7 +823,7 @@ public class GetLibrariesDirectory { return this; } - public Builder agent(Optional agent) { + public Builder agent(Optional agent) { Utils.checkNotNull(agent, "agent"); this.agent = agent; return this; @@ -816,7 +835,7 @@ public class GetLibrariesDirectory { return this; } - public Builder scanner(Optional scanner) { + public Builder scanner(Optional scanner) { Utils.checkNotNull(scanner, "scanner"); this.scanner = scanner; return this; @@ -828,7 +847,7 @@ public class GetLibrariesDirectory { return this; } - public Builder language(Optional language) { + public Builder language(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; @@ -840,43 +859,61 @@ public class GetLibrariesDirectory { return this; } - public Builder uuid(Optional uuid) { + public Builder uuid(Optional uuid) { Utils.checkNotNull(uuid, "uuid"); this.uuid = uuid; return this; } + /** + * Unix epoch datetime + */ public Builder updatedAt(int updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } - public Builder updatedAt(Optional updatedAt) { + /** + * Unix epoch datetime + */ + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } + /** + * Unix epoch datetime + */ public Builder createdAt(int createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = Optional.ofNullable(createdAt); return this; } - public Builder createdAt(Optional createdAt) { + /** + * Unix epoch datetime + */ + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } + /** + * Unix epoch datetime + */ public Builder scannedAt(int scannedAt) { Utils.checkNotNull(scannedAt, "scannedAt"); this.scannedAt = Optional.ofNullable(scannedAt); return this; } - public Builder scannedAt(Optional scannedAt) { + /** + * Unix epoch datetime + */ + public Builder scannedAt(Optional scannedAt) { Utils.checkNotNull(scannedAt, "scannedAt"); this.scannedAt = scannedAt; return this; @@ -888,7 +925,7 @@ public class GetLibrariesDirectory { return this; } - public Builder content(Optional content) { + public Builder content(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; @@ -900,7 +937,7 @@ public class GetLibrariesDirectory { return this; } - public Builder directory(Optional directory) { + public Builder directory(Optional directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; @@ -912,7 +949,7 @@ public class GetLibrariesDirectory { return this; } - public Builder contentChangedAt(Optional contentChangedAt) { + public Builder contentChangedAt(Optional contentChangedAt) { Utils.checkNotNull(contentChangedAt, "contentChangedAt"); this.contentChangedAt = contentChangedAt; return this; @@ -924,26 +961,26 @@ public class GetLibrariesDirectory { return this; } - public Builder hidden(Optional hidden) { + public Builder hidden(Optional hidden) { Utils.checkNotNull(hidden, "hidden"); this.hidden = hidden; return this; } - public Builder location(java.util.List location) { + public Builder location(List location) { Utils.checkNotNull(location, "location"); this.location = Optional.ofNullable(location); return this; } - public Builder location(Optional> location) { + public Builder location(Optional> location) { Utils.checkNotNull(location, "location"); this.location = location; return this; } - public GetLibrariesDirectory build() { - return new GetLibrariesDirectory( + public GetAllLibrariesDirectory build() { + return new GetAllLibrariesDirectory( allowSync, art, composite, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java new file mode 100644 index 00000000..e4b81195 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetAllLibrariesMediaContainer { + + @JsonProperty("size") + private int size; + + @JsonProperty("allowSync") + private boolean allowSync; + + @JsonProperty("title1") + private String title1; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Directory") + private Optional> directory; + + @JsonCreator + public GetAllLibrariesMediaContainer( + @JsonProperty("size") int size, + @JsonProperty("allowSync") boolean allowSync, + @JsonProperty("title1") String 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 GetAllLibrariesMediaContainer( + int size, + boolean allowSync, + String title1) { + this(size, allowSync, title1, Optional.empty()); + } + + @JsonIgnore + public int size() { + return size; + } + + @JsonIgnore + public boolean allowSync() { + return allowSync; + } + + @JsonIgnore + public String title1() { + return title1; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> directory() { + return (Optional>) directory; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetAllLibrariesMediaContainer withSize(int size) { + Utils.checkNotNull(size, "size"); + this.size = size; + return this; + } + + public GetAllLibrariesMediaContainer withAllowSync(boolean allowSync) { + Utils.checkNotNull(allowSync, "allowSync"); + this.allowSync = allowSync; + return this; + } + + public GetAllLibrariesMediaContainer withTitle1(String title1) { + Utils.checkNotNull(title1, "title1"); + this.title1 = title1; + return this; + } + + public GetAllLibrariesMediaContainer withDirectory(List directory) { + Utils.checkNotNull(directory, "directory"); + this.directory = Optional.ofNullable(directory); + return this; + } + + public GetAllLibrariesMediaContainer 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; + } + GetAllLibrariesMediaContainer other = (GetAllLibrariesMediaContainer) o; + return + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.title1, other.title1) && + Objects.deepEquals(this.directory, other.directory); + } + + @Override + public int hashCode() { + return Objects.hash( + size, + allowSync, + title1, + directory); + } + + @Override + public String toString() { + return Utils.toString(GetAllLibrariesMediaContainer.class, + "size", size, + "allowSync", allowSync, + "title1", title1, + "directory", directory); + } + + public final static class Builder { + + private Integer size; + + private Boolean allowSync; + + private String title1; + + private Optional> directory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder size(int size) { + Utils.checkNotNull(size, "size"); + this.size = size; + return this; + } + + public Builder allowSync(boolean allowSync) { + Utils.checkNotNull(allowSync, "allowSync"); + this.allowSync = allowSync; + return this; + } + + public Builder title1(String title1) { + Utils.checkNotNull(title1, "title1"); + this.title1 = title1; + return this; + } + + public Builder directory(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 GetAllLibrariesMediaContainer build() { + return new GetAllLibrariesMediaContainer( + size, + allowSync, + title1, + directory); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java new file mode 100644 index 00000000..d2760b32 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +public class GetAllLibrariesRequestBuilder { + + private final SDKMethodInterfaces.MethodCallGetAllLibraries sdk; + + public GetAllLibrariesRequestBuilder(SDKMethodInterfaces.MethodCallGetAllLibraries sdk) { + this.sdk = sdk; + } + + public GetAllLibrariesResponse call() throws Exception { + + return sdk.getAllLibrariesDirect(); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java similarity index 72% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java index 74c339ec..74cb1487 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetAllLibrariesResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +39,14 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * The libraries available on the Server */ - private Optional object; + private Optional object; @JsonCreator - public GetLibrariesResponse( + public GetAllLibrariesResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res this.object = object; } - public GetLibrariesResponse( + public GetAllLibrariesResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -90,8 +93,8 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * HTTP response content type for this operation */ - public GetLibrariesResponse withContentType(String contentType) { + public GetAllLibrariesResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * HTTP response status code for this operation */ - public GetLibrariesResponse withStatusCode(int statusCode) { + public GetAllLibrariesResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,7 +122,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibrariesResponse withRawResponse(HttpResponse rawResponse) { + public GetAllLibrariesResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -128,7 +131,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * The libraries available on the Server */ - public GetLibrariesResponse withObject(GetLibrariesResponseBody object) { + public GetAllLibrariesResponse withObject(GetAllLibrariesResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -137,7 +140,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * The libraries available on the Server */ - public GetLibrariesResponse withObject(Optional object) { + public GetAllLibrariesResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res if (o == null || getClass() != o.getClass()) { return false; } - GetLibrariesResponse other = (GetLibrariesResponse) o; + GetAllLibrariesResponse other = (GetAllLibrariesResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res @Override public String toString() { - return Utils.toString(GetLibrariesResponse.class, + return Utils.toString(GetAllLibrariesResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +224,7 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * The libraries available on the Server */ - public Builder object(GetLibrariesResponseBody object) { + public Builder object(GetAllLibrariesResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -230,14 +233,14 @@ public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Res /** * The libraries available on the Server */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public GetLibrariesResponse build() { - return new GetLibrariesResponse( + public GetAllLibrariesResponse build() { + return new GetAllLibrariesResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java new file mode 100644 index 00000000..c748ee5f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * GetAllLibrariesResponseBody - The libraries available on the Server + */ + +public class GetAllLibrariesResponseBody { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + private Optional mediaContainer; + + @JsonCreator + public GetAllLibrariesResponseBody( + @JsonProperty("MediaContainer") Optional mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = mediaContainer; + } + + public GetAllLibrariesResponseBody() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mediaContainer() { + return (Optional) mediaContainer; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetAllLibrariesResponseBody withMediaContainer(GetAllLibrariesMediaContainer mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = Optional.ofNullable(mediaContainer); + return this; + } + + public GetAllLibrariesResponseBody 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; + } + GetAllLibrariesResponseBody other = (GetAllLibrariesResponseBody) o; + return + Objects.deepEquals(this.mediaContainer, other.mediaContainer); + } + + @Override + public int hashCode() { + return Objects.hash( + mediaContainer); + } + + @Override + public String toString() { + return Utils.toString(GetAllLibrariesResponseBody.class, + "mediaContainer", mediaContainer); + } + + public final static class Builder { + + private Optional mediaContainer = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder mediaContainer(GetAllLibrariesMediaContainer 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 GetAllLibrariesResponseBody build() { + return new GetAllLibrariesResponseBody( + mediaContainer); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java index 5011c7ce..a37779aa 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetAvailableClientsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Server") - private Optional> server; + private Optional> server; @JsonCreator public GetAvailableClientsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Server") Optional> server) { + @JsonProperty("size") Optional size, + @JsonProperty("Server") Optional> server) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(server, "server"); this.size = size; @@ -42,16 +44,15 @@ public class GetAvailableClientsMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> server() { - return (Optional>) server; + public Optional> server() { + return (Optional>) server; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetAvailableClientsMediaContainer { return this; } - public GetAvailableClientsMediaContainer withSize(Optional size) { + public GetAvailableClientsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetAvailableClientsMediaContainer withServer(java.util.List server) { + public GetAvailableClientsMediaContainer withServer(List server) { Utils.checkNotNull(server, "server"); this.server = Optional.ofNullable(server); return this; } - public GetAvailableClientsMediaContainer withServer(Optional> server) { + public GetAvailableClientsMediaContainer withServer(Optional> server) { Utils.checkNotNull(server, "server"); this.server = server; return this; @@ -92,13 +93,13 @@ public class GetAvailableClientsMediaContainer { } GetAvailableClientsMediaContainer other = (GetAvailableClientsMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.server, other.server); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.server, other.server); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, server); } @@ -112,9 +113,9 @@ public class GetAvailableClientsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> server = Optional.empty(); + private Optional> server = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetAvailableClientsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder server(java.util.List server) { + public Builder server(List server) { Utils.checkNotNull(server, "server"); this.server = Optional.ofNullable(server); return this; } - public Builder server(Optional> server) { + public Builder server(Optional> server) { Utils.checkNotNull(server, "server"); this.server = server; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java new file mode 100644 index 00000000..3198ed08 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java index 9e772e64..c3807d5a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetAvailableClientsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetAvailableClientsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetAvailableClientsResponse implements lukehagar.plexapi.plexapi.ut } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java index 678bf7f3..d81e3ed2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetAvailableClientsResponseBody - Available Clients */ @@ -70,12 +70,12 @@ public class GetAvailableClientsResponseBody { } GetAvailableClientsResponseBody other = (GetAvailableClientsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java index f6d92eb0..03388590 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java @@ -1,67 +1,68 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetBandwidthStatisticsAccount { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultAudioLanguage") - private Optional defaultAudioLanguage; + private Optional defaultAudioLanguage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("autoSelectAudio") - private Optional autoSelectAudio; + private Optional autoSelectAudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultSubtitleLanguage") - private Optional defaultSubtitleLanguage; + private Optional defaultSubtitleLanguage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subtitleMode") - private Optional subtitleMode; + private Optional subtitleMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + @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"); @@ -84,52 +85,44 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional defaultAudioLanguage() { - return (Optional) defaultAudioLanguage; + return defaultAudioLanguage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional autoSelectAudio() { - return (Optional) autoSelectAudio; + return autoSelectAudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional defaultSubtitleLanguage() { - return (Optional) defaultSubtitleLanguage; + return defaultSubtitleLanguage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtitleMode() { - return (Optional) subtitleMode; + return subtitleMode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { @@ -142,7 +135,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withId(Optional id) { + public GetBandwidthStatisticsAccount withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -154,7 +147,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withKey(Optional key) { + public GetBandwidthStatisticsAccount withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -166,7 +159,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withName(Optional name) { + public GetBandwidthStatisticsAccount withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -178,7 +171,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withDefaultAudioLanguage(Optional defaultAudioLanguage) { + public GetBandwidthStatisticsAccount withDefaultAudioLanguage(Optional defaultAudioLanguage) { Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); this.defaultAudioLanguage = defaultAudioLanguage; return this; @@ -190,7 +183,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withAutoSelectAudio(Optional autoSelectAudio) { + public GetBandwidthStatisticsAccount withAutoSelectAudio(Optional autoSelectAudio) { Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); this.autoSelectAudio = autoSelectAudio; return this; @@ -202,7 +195,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + public GetBandwidthStatisticsAccount withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); this.defaultSubtitleLanguage = defaultSubtitleLanguage; return this; @@ -214,7 +207,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withSubtitleMode(Optional subtitleMode) { + public GetBandwidthStatisticsAccount withSubtitleMode(Optional subtitleMode) { Utils.checkNotNull(subtitleMode, "subtitleMode"); this.subtitleMode = subtitleMode; return this; @@ -226,7 +219,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public GetBandwidthStatisticsAccount withThumb(Optional thumb) { + public GetBandwidthStatisticsAccount withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -242,19 +235,19 @@ public class GetBandwidthStatisticsAccount { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && + Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && + Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && + Objects.deepEquals(this.subtitleMode, other.subtitleMode) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, name, @@ -280,21 +273,21 @@ public class GetBandwidthStatisticsAccount { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional defaultAudioLanguage = Optional.empty(); + private Optional defaultAudioLanguage = Optional.empty(); - private Optional autoSelectAudio = Optional.empty(); + private Optional autoSelectAudio = Optional.empty(); - private Optional defaultSubtitleLanguage = Optional.empty(); + private Optional defaultSubtitleLanguage = Optional.empty(); - private Optional subtitleMode = Optional.empty(); + private Optional subtitleMode = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -306,7 +299,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -318,7 +311,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -330,7 +323,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -342,7 +335,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { + public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); this.defaultAudioLanguage = defaultAudioLanguage; return this; @@ -354,7 +347,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder autoSelectAudio(Optional autoSelectAudio) { + public Builder autoSelectAudio(Optional autoSelectAudio) { Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); this.autoSelectAudio = autoSelectAudio; return this; @@ -366,7 +359,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); this.defaultSubtitleLanguage = defaultSubtitleLanguage; return this; @@ -378,7 +371,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder subtitleMode(Optional subtitleMode) { + public Builder subtitleMode(Optional subtitleMode) { Utils.checkNotNull(subtitleMode, "subtitleMode"); this.subtitleMode = subtitleMode; return this; @@ -390,7 +383,7 @@ public class GetBandwidthStatisticsAccount { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java index 3fd6d871..ef01f1c2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetBandwidthStatisticsDevice { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platform") - private Optional platform; + private Optional platform; @JsonInclude(Include.NON_ABSENT) @JsonProperty("clientIdentifier") - private Optional clientIdentifier; + private Optional clientIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional 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) { + @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"); @@ -63,34 +63,29 @@ public class GetBandwidthStatisticsDevice { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platform() { - return (Optional) platform; + return platform; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional clientIdentifier() { - return (Optional) clientIdentifier; + return clientIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } public final static Builder builder() { @@ -103,7 +98,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public GetBandwidthStatisticsDevice withId(Optional id) { + public GetBandwidthStatisticsDevice withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -115,7 +110,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public GetBandwidthStatisticsDevice withName(Optional name) { + public GetBandwidthStatisticsDevice withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -127,7 +122,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public GetBandwidthStatisticsDevice withPlatform(Optional platform) { + public GetBandwidthStatisticsDevice withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -139,7 +134,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public GetBandwidthStatisticsDevice withClientIdentifier(Optional clientIdentifier) { + public GetBandwidthStatisticsDevice withClientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -151,7 +146,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public GetBandwidthStatisticsDevice withCreatedAt(Optional createdAt) { + public GetBandwidthStatisticsDevice withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -167,16 +162,16 @@ public class GetBandwidthStatisticsDevice { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.createdAt, other.createdAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, platform, @@ -196,15 +191,15 @@ public class GetBandwidthStatisticsDevice { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); - private Optional clientIdentifier = Optional.empty(); + private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -240,7 +235,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public Builder platform(Optional platform) { + public Builder platform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -252,7 +247,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public Builder clientIdentifier(Optional clientIdentifier) { + public Builder clientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -264,7 +259,7 @@ public class GetBandwidthStatisticsDevice { return this; } - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java index c7176e19..1263c673 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java @@ -1,47 +1,49 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetBandwidthStatisticsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Device") - private Optional> device; + private Optional> device; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Account") - private Optional> account; + private Optional> account; @JsonInclude(Include.NON_ABSENT) @JsonProperty("StatisticsBandwidth") - private Optional> statisticsBandwidth; + private Optional> statisticsBandwidth; @JsonCreator public GetBandwidthStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Device") Optional> device, - @JsonProperty("Account") Optional> account, - @JsonProperty("StatisticsBandwidth") Optional> statisticsBandwidth) { + @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"); @@ -56,28 +58,27 @@ public class GetBandwidthStatisticsMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> device() { - return (Optional>) device; + public Optional> device() { + return (Optional>) device; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> account() { - return (Optional>) account; + public Optional> account() { + return (Optional>) account; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> statisticsBandwidth() { - return (Optional>) statisticsBandwidth; + public Optional> statisticsBandwidth() { + return (Optional>) statisticsBandwidth; } public final static Builder builder() { @@ -90,43 +91,43 @@ public class GetBandwidthStatisticsMediaContainer { return this; } - public GetBandwidthStatisticsMediaContainer withSize(Optional size) { + public GetBandwidthStatisticsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetBandwidthStatisticsMediaContainer withDevice(java.util.List device) { + public GetBandwidthStatisticsMediaContainer withDevice(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public GetBandwidthStatisticsMediaContainer withDevice(Optional> device) { + public GetBandwidthStatisticsMediaContainer withDevice(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; } - public GetBandwidthStatisticsMediaContainer withAccount(java.util.List account) { + public GetBandwidthStatisticsMediaContainer withAccount(List account) { Utils.checkNotNull(account, "account"); this.account = Optional.ofNullable(account); return this; } - public GetBandwidthStatisticsMediaContainer withAccount(Optional> account) { + public GetBandwidthStatisticsMediaContainer withAccount(Optional> account) { Utils.checkNotNull(account, "account"); this.account = account; return this; } - public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(java.util.List statisticsBandwidth) { + public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(List statisticsBandwidth) { Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); this.statisticsBandwidth = Optional.ofNullable(statisticsBandwidth); return this; } - public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(Optional> statisticsBandwidth) { + public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(Optional> statisticsBandwidth) { Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); this.statisticsBandwidth = statisticsBandwidth; return this; @@ -142,15 +143,15 @@ public class GetBandwidthStatisticsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.device, other.device) && + Objects.deepEquals(this.account, other.account) && + Objects.deepEquals(this.statisticsBandwidth, other.statisticsBandwidth); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, device, account, @@ -168,13 +169,13 @@ public class GetBandwidthStatisticsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> device = Optional.empty(); + private Optional> device = Optional.empty(); - private Optional> account = Optional.empty(); + private Optional> account = Optional.empty(); - private Optional> statisticsBandwidth = Optional.empty(); + private Optional> statisticsBandwidth = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,43 +187,43 @@ public class GetBandwidthStatisticsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder device(java.util.List device) { + public Builder device(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public Builder device(Optional> device) { + public Builder device(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; } - public Builder account(java.util.List account) { + public Builder account(List account) { Utils.checkNotNull(account, "account"); this.account = Optional.ofNullable(account); return this; } - public Builder account(Optional> account) { + public Builder account(Optional> account) { Utils.checkNotNull(account, "account"); this.account = account; return this; } - public Builder statisticsBandwidth(java.util.List statisticsBandwidth) { + public Builder statisticsBandwidth(List statisticsBandwidth) { Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); this.statisticsBandwidth = Optional.ofNullable(statisticsBandwidth); return this; } - public Builder statisticsBandwidth(Optional> statisticsBandwidth) { + public Builder statisticsBandwidth(Optional> statisticsBandwidth) { Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); this.statisticsBandwidth = statisticsBandwidth; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java index ae0da93a..3f3191bb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetBandwidthStatisticsRequest { @@ -24,11 +24,11 @@ public class GetBandwidthStatisticsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; + private Optional timespan; @JsonCreator public GetBandwidthStatisticsRequest( - Optional timespan) { + Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; } @@ -42,10 +42,9 @@ public class GetBandwidthStatisticsRequest { * the exact meaning of this parameter is not known * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } public final static Builder builder() { @@ -68,7 +67,7 @@ public class GetBandwidthStatisticsRequest { * the exact meaning of this parameter is not known * */ - public GetBandwidthStatisticsRequest withTimespan(Optional timespan) { + public GetBandwidthStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -84,12 +83,12 @@ public class GetBandwidthStatisticsRequest { } GetBandwidthStatisticsRequest other = (GetBandwidthStatisticsRequest) o; return - java.util.Objects.deepEquals(this.timespan, other.timespan); + Objects.deepEquals(this.timespan, other.timespan); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( timespan); } @@ -101,7 +100,7 @@ public class GetBandwidthStatisticsRequest { public final static class Builder { - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); private Builder() { // force use of static builder() method @@ -123,7 +122,7 @@ public class GetBandwidthStatisticsRequest { * the exact meaning of this parameter is not known * */ - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java similarity index 52% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java index 8d2e7608..8ed888bc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java @@ -1,25 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; 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 Optional timespan = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetBandwidthStatistics sdk; public GetBandwidthStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetBandwidthStatistics sdk) { @@ -32,7 +23,7 @@ public class GetBandwidthStatisticsRequestBuilder { return this; } - public GetBandwidthStatisticsRequestBuilder timespan(Optional timespan) { + public GetBandwidthStatisticsRequestBuilder timespan(java.util.Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java index e5a09de0..033a37ac 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetBandwidthStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetBandwidthStatisticsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetBandwidthStatisticsResponse implements lukehagar.plexapi.plexapi } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java index b73b1a2f..ae9ce96b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetBandwidthStatisticsResponseBody - Bandwidth Statistics */ @@ -70,12 +70,12 @@ public class GetBandwidthStatisticsResponseBody { } GetBandwidthStatisticsResponseBody other = (GetBandwidthStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java new file mode 100644 index 00000000..f7b1e79b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java @@ -0,0 +1,259 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class GetBannerImageRequest { + + /** + * the id of the library item to return the children of. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") + private long ratingKey; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=width") + private long width; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=height") + private long height; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=minSize") + private long minSize; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=upscale") + private long upscale; + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; + + @JsonCreator + public GetBannerImageRequest( + long ratingKey, + long width, + long height, + long minSize, + long upscale, + String xPlexToken) { + Utils.checkNotNull(ratingKey, "ratingKey"); + Utils.checkNotNull(width, "width"); + Utils.checkNotNull(height, "height"); + Utils.checkNotNull(minSize, "minSize"); + Utils.checkNotNull(upscale, "upscale"); + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.ratingKey = ratingKey; + this.width = width; + this.height = height; + this.minSize = minSize; + this.upscale = upscale; + this.xPlexToken = xPlexToken; + } + + /** + * the id of the library item to return the children of. + */ + @JsonIgnore + public long ratingKey() { + return ratingKey; + } + + @JsonIgnore + public long width() { + return width; + } + + @JsonIgnore + public long height() { + return height; + } + + @JsonIgnore + public long minSize() { + return minSize; + } + + @JsonIgnore + public long upscale() { + return upscale; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * the id of the library item to return the children of. + */ + public GetBannerImageRequest withRatingKey(long ratingKey) { + Utils.checkNotNull(ratingKey, "ratingKey"); + this.ratingKey = ratingKey; + return this; + } + + public GetBannerImageRequest withWidth(long width) { + Utils.checkNotNull(width, "width"); + this.width = width; + return this; + } + + public GetBannerImageRequest withHeight(long height) { + Utils.checkNotNull(height, "height"); + this.height = height; + return this; + } + + public GetBannerImageRequest withMinSize(long minSize) { + Utils.checkNotNull(minSize, "minSize"); + this.minSize = minSize; + return this; + } + + public GetBannerImageRequest withUpscale(long upscale) { + Utils.checkNotNull(upscale, "upscale"); + this.upscale = upscale; + return this; + } + + /** + * Plex Authentication Token + */ + public GetBannerImageRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBannerImageRequest other = (GetBannerImageRequest) o; + return + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.minSize, other.minSize) && + Objects.deepEquals(this.upscale, other.upscale) && + Objects.deepEquals(this.xPlexToken, other.xPlexToken); + } + + @Override + public int hashCode() { + return Objects.hash( + ratingKey, + width, + height, + minSize, + upscale, + xPlexToken); + } + + @Override + public String toString() { + return Utils.toString(GetBannerImageRequest.class, + "ratingKey", ratingKey, + "width", width, + "height", height, + "minSize", minSize, + "upscale", upscale, + "xPlexToken", xPlexToken); + } + + public final static class Builder { + + private Long ratingKey; + + private Long width; + + private Long height; + + private Long minSize; + + private Long upscale; + + private String xPlexToken; + + private Builder() { + // force use of static builder() method + } + + /** + * the id of the library item to return the children of. + */ + public Builder ratingKey(long ratingKey) { + Utils.checkNotNull(ratingKey, "ratingKey"); + this.ratingKey = ratingKey; + return this; + } + + public Builder width(long width) { + Utils.checkNotNull(width, "width"); + this.width = width; + return this; + } + + public Builder height(long height) { + Utils.checkNotNull(height, "height"); + this.height = height; + return this; + } + + public Builder minSize(long minSize) { + Utils.checkNotNull(minSize, "minSize"); + this.minSize = minSize; + return this; + } + + public Builder upscale(long upscale) { + Utils.checkNotNull(upscale, "upscale"); + this.upscale = upscale; + return this; + } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetBannerImageRequest build() { + return new GetBannerImageRequest( + ratingKey, + width, + height, + minSize, + upscale, + xPlexToken); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java new file mode 100644 index 00000000..0af62625 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class GetBannerImageRequestBuilder { + + private GetBannerImageRequest request; + private final SDKMethodInterfaces.MethodCallGetBannerImage sdk; + + public GetBannerImageRequestBuilder(SDKMethodInterfaces.MethodCallGetBannerImage sdk) { + this.sdk = sdk; + } + + public GetBannerImageRequestBuilder request(dev.plexapi.sdk.models.operations.GetBannerImageRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetBannerImageResponse call() throws Exception { + + return sdk.getBannerImage( + request); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java new file mode 100644 index 00000000..83a7b77a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + + +public class GetBannerImageResponse implements 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; + + /** + * Successful response returning an image + */ + private Optional responseStream; + + private Map> headers; + + @JsonCreator + public GetBannerImageResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional responseStream, + Map> headers) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(responseStream, "responseStream"); + headers = Utils.emptyMapIfNull(headers); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.responseStream = responseStream; + this.headers = headers; + } + + public GetBannerImageResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Map> headers) { + this(contentType, statusCode, rawResponse, Optional.empty(), headers); + } + + /** + * 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; + } + + /** + * Successful response returning an image + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional responseStream() { + return (Optional) responseStream; + } + + @JsonIgnore + public Map> headers() { + return headers; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetBannerImageResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetBannerImageResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetBannerImageResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response returning an image + */ + public GetBannerImageResponse withResponseStream(InputStream responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = Optional.ofNullable(responseStream); + return this; + } + + /** + * Successful response returning an image + */ + public GetBannerImageResponse withResponseStream(Optional responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = responseStream; + return this; + } + + public GetBannerImageResponse withHeaders(Map> headers) { + Utils.checkNotNull(headers, "headers"); + this.headers = headers; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBannerImageResponse other = (GetBannerImageResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.responseStream, other.responseStream) && + Objects.deepEquals(this.headers, other.headers); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + responseStream, + headers); + } + + @Override + public String toString() { + return Utils.toString(GetBannerImageResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "responseStream", responseStream, + "headers", headers); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional responseStream = Optional.empty(); + + private Map> headers; + + 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; + } + + /** + * Successful response returning an image + */ + public Builder responseStream(InputStream responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = Optional.ofNullable(responseStream); + return this; + } + + /** + * Successful response returning an image + */ + public Builder responseStream(Optional responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = responseStream; + return this; + } + + public Builder headers(Map> headers) { + Utils.checkNotNull(headers, "headers"); + this.headers = headers; + return this; + } + + public GetBannerImageResponse build() { + return new GetBannerImageResponse( + contentType, + statusCode, + rawResponse, + responseStream, + headers); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java new file mode 100644 index 00000000..5e683331 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java index d7be4b47..9beb7c00 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetButlerTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetButlerTasksResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetButlerTasksResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java index 43a4b19f..acb43a4b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetButlerTasksResponseBody - All butler tasks */ @@ -70,12 +70,12 @@ public class GetButlerTasksResponseBody { } GetButlerTasksResponseBody other = (GetButlerTasksResponseBody) o; return - java.util.Objects.deepEquals(this.butlerTasks, other.butlerTasks); + Objects.deepEquals(this.butlerTasks, other.butlerTasks); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( butlerTasks); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java new file mode 100644 index 00000000..15113066 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetCompanionsDataRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetCompanionsData sdk; + + public GetCompanionsDataRequestBuilder(SDKMethodInterfaces.MethodCallGetCompanionsData sdk) { + this.sdk = sdk; + } + + public GetCompanionsDataRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetCompanionsDataRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetCompanionsDataResponse call() throws Exception { + + return sdk.getCompanionsData( + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java new file mode 100644 index 00000000..69b56f52 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java @@ -0,0 +1,252 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetCompanionsDataResponse implements 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; + + /** + * Companions Data + */ + private Optional> responseBodies; + + @JsonCreator + public GetCompanionsDataResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional> responseBodies) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(responseBodies, "responseBodies"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.responseBodies = responseBodies; + } + + public GetCompanionsDataResponse( + 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; + } + + /** + * Companions Data + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> responseBodies() { + return (Optional>) responseBodies; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetCompanionsDataResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetCompanionsDataResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetCompanionsDataResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Companions Data + */ + public GetCompanionsDataResponse withResponseBodies(List responseBodies) { + Utils.checkNotNull(responseBodies, "responseBodies"); + this.responseBodies = Optional.ofNullable(responseBodies); + return this; + } + + /** + * Companions Data + */ + public GetCompanionsDataResponse withResponseBodies(Optional> responseBodies) { + Utils.checkNotNull(responseBodies, "responseBodies"); + this.responseBodies = responseBodies; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCompanionsDataResponse other = (GetCompanionsDataResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.responseBodies, other.responseBodies); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + responseBodies); + } + + @Override + public String toString() { + return Utils.toString(GetCompanionsDataResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "responseBodies", responseBodies); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional> responseBodies = 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; + } + + /** + * Companions Data + */ + public Builder responseBodies(List responseBodies) { + Utils.checkNotNull(responseBodies, "responseBodies"); + this.responseBodies = Optional.ofNullable(responseBodies); + return this; + } + + /** + * Companions Data + */ + public Builder responseBodies(Optional> responseBodies) { + Utils.checkNotNull(responseBodies, "responseBodies"); + this.responseBodies = responseBodies; + return this; + } + + public GetCompanionsDataResponse build() { + return new GetCompanionsDataResponse( + contentType, + statusCode, + rawResponse, + responseBodies); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java index dbbfeb75..695aaaee 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java @@ -1,42 +1,44 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetDevicesMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Device") - private Optional> device; + private Optional> device; @JsonCreator public GetDevicesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("Device") Optional> device) { + @JsonProperty("size") Optional size, + @JsonProperty("identifier") Optional identifier, + @JsonProperty("Device") Optional> device) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(identifier, "identifier"); Utils.checkNotNull(device, "device"); @@ -49,22 +51,20 @@ public class GetDevicesMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> device() { - return (Optional>) device; + public Optional> device() { + return (Optional>) device; } public final static Builder builder() { @@ -77,7 +77,7 @@ public class GetDevicesMediaContainer { return this; } - public GetDevicesMediaContainer withSize(Optional size) { + public GetDevicesMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -89,19 +89,19 @@ public class GetDevicesMediaContainer { return this; } - public GetDevicesMediaContainer withIdentifier(Optional identifier) { + public GetDevicesMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public GetDevicesMediaContainer withDevice(java.util.List device) { + public GetDevicesMediaContainer withDevice(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public GetDevicesMediaContainer withDevice(Optional> device) { + public GetDevicesMediaContainer withDevice(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; @@ -117,14 +117,14 @@ public class GetDevicesMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.device, other.device); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, identifier, device); @@ -140,11 +140,11 @@ public class GetDevicesMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional> device = Optional.empty(); + private Optional> device = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +156,7 @@ public class GetDevicesMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -168,19 +168,19 @@ public class GetDevicesMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public Builder device(java.util.List device) { + public Builder device(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public Builder device(Optional> device) { + public Builder device(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java new file mode 100644 index 00000000..a7a6546b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetDevicesResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java index 7d593daa..634a5912 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetDevicesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetDevicesResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetDevicesResponse implements lukehagar.plexapi.plexapi.utils.Respo } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java index c5d1f9bc..b9041e16 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetDevicesResponseBody - Devices */ @@ -70,12 +70,12 @@ public class GetDevicesResponseBody { } GetDevicesResponseBody other = (GetDevicesResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java similarity index 76% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java index 9d73d246..261b6d14 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetFileHashRequest { @@ -28,12 +28,12 @@ public class GetFileHashRequest { * Item type */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private Optional type; + private Optional type; @JsonCreator public GetFileHashRequest( String url, - Optional type) { + Optional type) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(type, "type"); this.url = url; @@ -56,10 +56,9 @@ public class GetFileHashRequest { /** * Item type */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } public final static Builder builder() { @@ -87,7 +86,7 @@ public class GetFileHashRequest { /** * Item type */ - public GetFileHashRequest withType(Optional type) { + public GetFileHashRequest withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -103,13 +102,13 @@ public class GetFileHashRequest { } GetFileHashRequest other = (GetFileHashRequest) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.type, other.type); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.type, other.type); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, type); } @@ -125,7 +124,7 @@ public class GetFileHashRequest { private String url; - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -152,7 +151,7 @@ public class GetFileHashRequest { /** * Item type */ - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java similarity index 51% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java index 77bec0a9..0915387e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java @@ -1,33 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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 Optional type = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetFileHash sdk; public GetFileHashRequestBuilder(SDKMethodInterfaces.MethodCallGetFileHash sdk) { this.sdk = sdk; } - public GetFileHashRequestBuilder url(String url) { + public GetFileHashRequestBuilder url(java.lang.String url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -39,7 +31,7 @@ public class GetFileHashRequestBuilder { return this; } - public GetFileHashRequestBuilder type(Optional type) { + public GetFileHashRequestBuilder type(java.util.Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java index 1446279a..2414e589 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class GetFileHashResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetFileHashResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class GetFileHashResponse implements lukehagar.plexapi.plexapi.utils.Resp } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java new file mode 100644 index 00000000..37431de2 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java @@ -0,0 +1,616 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * GetGeoDataGeoData - Geo location data + */ + +public class GetGeoDataGeoData { + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonProperty("code") + private String code; + + /** + * The continent code where the country is located. + */ + @JsonProperty("continent_code") + private String continentCode; + + /** + * The official name of the country. + */ + @JsonProperty("country") + private String country; + + /** + * The name of the city. + */ + @JsonProperty("city") + private String city; + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("european_union_member") + private Optional europeanUnionMember; + + /** + * The time zone of the country. + */ + @JsonProperty("time_zone") + private String timeZone; + + /** + * The postal code of the location. + */ + @JsonProperty("postal_code") + private long postalCode; + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_country") + private Optional inPrivacyRestrictedCountry; + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_region") + private Optional inPrivacyRestrictedRegion; + + /** + * The name of the primary administrative subdivision. + */ + @JsonProperty("subdivisions") + private String subdivisions; + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonProperty("coordinates") + private String coordinates; + + @JsonCreator + public GetGeoDataGeoData( + @JsonProperty("code") String code, + @JsonProperty("continent_code") String continentCode, + @JsonProperty("country") String country, + @JsonProperty("city") String city, + @JsonProperty("european_union_member") Optional europeanUnionMember, + @JsonProperty("time_zone") String timeZone, + @JsonProperty("postal_code") long postalCode, + @JsonProperty("in_privacy_restricted_country") Optional inPrivacyRestrictedCountry, + @JsonProperty("in_privacy_restricted_region") Optional inPrivacyRestrictedRegion, + @JsonProperty("subdivisions") String subdivisions, + @JsonProperty("coordinates") String coordinates) { + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(continentCode, "continentCode"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(city, "city"); + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + Utils.checkNotNull(timeZone, "timeZone"); + Utils.checkNotNull(postalCode, "postalCode"); + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + Utils.checkNotNull(subdivisions, "subdivisions"); + Utils.checkNotNull(coordinates, "coordinates"); + this.code = code; + this.continentCode = continentCode; + this.country = country; + this.city = city; + this.europeanUnionMember = europeanUnionMember; + this.timeZone = timeZone; + this.postalCode = postalCode; + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + this.subdivisions = subdivisions; + this.coordinates = coordinates; + } + + public GetGeoDataGeoData( + String code, + String continentCode, + String country, + String city, + String timeZone, + long postalCode, + String subdivisions, + String coordinates) { + this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonIgnore + public String code() { + return code; + } + + /** + * The continent code where the country is located. + */ + @JsonIgnore + public String continentCode() { + return continentCode; + } + + /** + * The official name of the country. + */ + @JsonIgnore + public String country() { + return country; + } + + /** + * The name of the city. + */ + @JsonIgnore + public String city() { + return city; + } + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonIgnore + public Optional europeanUnionMember() { + return europeanUnionMember; + } + + /** + * The time zone of the country. + */ + @JsonIgnore + public String timeZone() { + return timeZone; + } + + /** + * The postal code of the location. + */ + @JsonIgnore + public long postalCode() { + return postalCode; + } + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedCountry() { + return inPrivacyRestrictedCountry; + } + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedRegion() { + return inPrivacyRestrictedRegion; + } + + /** + * The name of the primary administrative subdivision. + */ + @JsonIgnore + public String subdivisions() { + return subdivisions; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonIgnore + public String coordinates() { + return coordinates; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public GetGeoDataGeoData withCode(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public GetGeoDataGeoData withContinentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public GetGeoDataGeoData withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public GetGeoDataGeoData withCity(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GetGeoDataGeoData withEuropeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GetGeoDataGeoData withEuropeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public GetGeoDataGeoData withTimeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public GetGeoDataGeoData withPostalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GetGeoDataGeoData withInPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GetGeoDataGeoData withInPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GetGeoDataGeoData withInPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GetGeoDataGeoData withInPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public GetGeoDataGeoData withSubdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public GetGeoDataGeoData withCoordinates(String 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; + } + GetGeoDataGeoData other = (GetGeoDataGeoData) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.continentCode, other.continentCode) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.city, other.city) && + Objects.deepEquals(this.europeanUnionMember, other.europeanUnionMember) && + Objects.deepEquals(this.timeZone, other.timeZone) && + Objects.deepEquals(this.postalCode, other.postalCode) && + Objects.deepEquals(this.inPrivacyRestrictedCountry, other.inPrivacyRestrictedCountry) && + Objects.deepEquals(this.inPrivacyRestrictedRegion, other.inPrivacyRestrictedRegion) && + Objects.deepEquals(this.subdivisions, other.subdivisions) && + Objects.deepEquals(this.coordinates, other.coordinates); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + @Override + public String toString() { + return Utils.toString(GetGeoDataGeoData.class, + "code", code, + "continentCode", continentCode, + "country", country, + "city", city, + "europeanUnionMember", europeanUnionMember, + "timeZone", timeZone, + "postalCode", postalCode, + "inPrivacyRestrictedCountry", inPrivacyRestrictedCountry, + "inPrivacyRestrictedRegion", inPrivacyRestrictedRegion, + "subdivisions", subdivisions, + "coordinates", coordinates); + } + + public final static class Builder { + + private String code; + + private String continentCode; + + private String country; + + private String city; + + private Optional europeanUnionMember; + + private String timeZone; + + private Long postalCode; + + private Optional inPrivacyRestrictedCountry; + + private Optional inPrivacyRestrictedRegion; + + private String subdivisions; + + private String coordinates; + + private Builder() { + // force use of static builder() method + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public Builder code(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public Builder continentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public Builder city(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public Builder timeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public Builder postalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public Builder subdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public Builder coordinates(String coordinates) { + Utils.checkNotNull(coordinates, "coordinates"); + this.coordinates = coordinates; + return this; + } + + public GetGeoDataGeoData build() { + if (europeanUnionMember == null) { + europeanUnionMember = _SINGLETON_VALUE_EuropeanUnionMember.value(); + } + if (inPrivacyRestrictedCountry == null) { + inPrivacyRestrictedCountry = _SINGLETON_VALUE_InPrivacyRestrictedCountry.value(); + } + if (inPrivacyRestrictedRegion == null) { + inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); + } return new GetGeoDataGeoData( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_EuropeanUnionMember = + new LazySingletonValue<>( + "european_union_member", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedCountry = + new LazySingletonValue<>( + "in_privacy_restricted_country", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedRegion = + new LazySingletonValue<>( + "in_privacy_restricted_region", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java new file mode 100644 index 00000000..9381a877 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetGeoDataRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetGeoData sdk; + + public GetGeoDataRequestBuilder(SDKMethodInterfaces.MethodCallGetGeoData sdk) { + this.sdk = sdk; + } + + public GetGeoDataRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetGeoDataRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetGeoDataResponse call() throws Exception { + + return sdk.getGeoData( + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java new file mode 100644 index 00000000..b90942d9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + + +public class GetGeoDataResponse implements 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; + + /** + * Gets the geo location data of the user + */ + private Optional geoData; + + @JsonCreator + public GetGeoDataResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional geoData) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(geoData, "geoData"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.geoData = geoData; + } + + public GetGeoDataResponse( + 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; + } + + /** + * Gets the geo location data of the user + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional geoData() { + return (Optional) geoData; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetGeoDataResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetGeoDataResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetGeoDataResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Gets the geo location data of the user + */ + public GetGeoDataResponse withGeoData(GetGeoDataGeoData geoData) { + Utils.checkNotNull(geoData, "geoData"); + this.geoData = Optional.ofNullable(geoData); + return this; + } + + /** + * Gets the geo location data of the user + */ + public GetGeoDataResponse withGeoData(Optional geoData) { + Utils.checkNotNull(geoData, "geoData"); + this.geoData = geoData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetGeoDataResponse other = (GetGeoDataResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.geoData, other.geoData); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + geoData); + } + + @Override + public String toString() { + return Utils.toString(GetGeoDataResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "geoData", geoData); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional geoData = 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; + } + + /** + * Gets the geo location data of the user + */ + public Builder geoData(GetGeoDataGeoData geoData) { + Utils.checkNotNull(geoData, "geoData"); + this.geoData = Optional.ofNullable(geoData); + return this; + } + + /** + * Gets the geo location data of the user + */ + public Builder geoData(Optional geoData) { + Utils.checkNotNull(geoData, "geoData"); + this.geoData = geoData; + return this; + } + + public GetGeoDataResponse build() { + return new GetGeoDataResponse( + contentType, + statusCode, + rawResponse, + geoData); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java index b88f5120..9a2ec603 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java @@ -1,47 +1,50 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetGlobalHubsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Hub") - private Optional> hub; + private Optional> hub; @JsonCreator public GetGlobalHubsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("Hub") Optional> hub) { + @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"); @@ -56,28 +59,25 @@ public class GetGlobalHubsMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> hub() { - return (Optional>) hub; + public Optional> hub() { + return (Optional>) hub; } public final static Builder builder() { @@ -90,7 +90,7 @@ public class GetGlobalHubsMediaContainer { return this; } - public GetGlobalHubsMediaContainer withSize(Optional size) { + public GetGlobalHubsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -102,7 +102,7 @@ public class GetGlobalHubsMediaContainer { return this; } - public GetGlobalHubsMediaContainer withAllowSync(Optional allowSync) { + public GetGlobalHubsMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -114,19 +114,19 @@ public class GetGlobalHubsMediaContainer { return this; } - public GetGlobalHubsMediaContainer withIdentifier(Optional identifier) { + public GetGlobalHubsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public GetGlobalHubsMediaContainer withHub(java.util.List hub) { + public GetGlobalHubsMediaContainer withHub(List hub) { Utils.checkNotNull(hub, "hub"); this.hub = Optional.ofNullable(hub); return this; } - public GetGlobalHubsMediaContainer withHub(Optional> hub) { + public GetGlobalHubsMediaContainer withHub(Optional> hub) { Utils.checkNotNull(hub, "hub"); this.hub = hub; return this; @@ -142,15 +142,15 @@ public class GetGlobalHubsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.hub, other.hub); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -168,13 +168,13 @@ public class GetGlobalHubsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional> hub = Optional.empty(); + private Optional> hub = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,7 +186,7 @@ public class GetGlobalHubsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -198,7 +198,7 @@ public class GetGlobalHubsMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -210,19 +210,19 @@ public class GetGlobalHubsMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public Builder hub(java.util.List hub) { + public Builder hub(List hub) { Utils.checkNotNull(hub, "hub"); this.hub = Optional.ofNullable(hub); return this; } - public Builder hub(Optional> hub) { + public Builder hub(Optional> hub) { Utils.checkNotNull(hub, "hub"); this.hub = hub; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java index dc56d3c3..97fe9f96 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java @@ -1,112 +1,113 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetGlobalHubsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("titleSort") - private Optional titleSort; + private Optional titleSort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("icon") - private Optional icon; + private Optional icon; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional 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) { + @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"); @@ -147,106 +148,89 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional titleSort() { - return (Optional) titleSort; + return titleSort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional icon() { - return (Optional) icon; + return icon; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { @@ -259,7 +243,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withRatingKey(Optional ratingKey) { + public GetGlobalHubsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -271,7 +255,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withKey(Optional key) { + public GetGlobalHubsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -283,7 +267,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withGuid(Optional guid) { + public GetGlobalHubsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -295,7 +279,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withType(Optional type) { + public GetGlobalHubsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -307,7 +291,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withTitle(Optional title) { + public GetGlobalHubsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -319,7 +303,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withTitleSort(Optional titleSort) { + public GetGlobalHubsMetadata withTitleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -331,7 +315,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withSummary(Optional summary) { + public GetGlobalHubsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -343,7 +327,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withSmart(Optional smart) { + public GetGlobalHubsMetadata withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -355,7 +339,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withPlaylistType(Optional playlistType) { + public GetGlobalHubsMetadata withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -367,7 +351,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withComposite(Optional composite) { + public GetGlobalHubsMetadata withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -379,7 +363,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withIcon(Optional icon) { + public GetGlobalHubsMetadata withIcon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -391,7 +375,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withViewCount(Optional viewCount) { + public GetGlobalHubsMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -403,7 +387,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withLastViewedAt(Optional lastViewedAt) { + public GetGlobalHubsMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -415,7 +399,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withDuration(Optional duration) { + public GetGlobalHubsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -427,7 +411,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withLeafCount(Optional leafCount) { + public GetGlobalHubsMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -439,7 +423,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withAddedAt(Optional addedAt) { + public GetGlobalHubsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -451,7 +435,7 @@ public class GetGlobalHubsMetadata { return this; } - public GetGlobalHubsMetadata withUpdatedAt(Optional updatedAt) { + public GetGlobalHubsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -467,28 +451,28 @@ public class GetGlobalHubsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.titleSort, other.titleSort) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.icon, other.icon) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -532,39 +516,39 @@ public class GetGlobalHubsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional titleSort = Optional.empty(); + private Optional titleSort = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional icon = Optional.empty(); + private Optional icon = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -576,7 +560,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -588,7 +572,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -600,7 +584,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -612,7 +596,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -624,7 +608,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -636,7 +620,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder titleSort(Optional titleSort) { + public Builder titleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -648,7 +632,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -660,7 +644,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -672,7 +656,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -684,7 +668,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -696,7 +680,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder icon(Optional icon) { + public Builder icon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -708,7 +692,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -720,7 +704,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -732,7 +716,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -744,7 +728,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -756,7 +740,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -768,7 +752,7 @@ public class GetGlobalHubsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java similarity index 83% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java index 2a7328f2..629b189d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java @@ -1,20 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetGlobalHubsRequest { @@ -22,7 +23,7 @@ public class GetGlobalHubsRequest { * The number of items to return with each hub. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") - private Optional 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). @@ -32,7 +33,7 @@ public class GetGlobalHubsRequest { @JsonCreator public GetGlobalHubsRequest( - Optional count, + Optional count, Optional onlyTransient) { Utils.checkNotNull(count, "count"); Utils.checkNotNull(onlyTransient, "onlyTransient"); @@ -47,10 +48,9 @@ public class GetGlobalHubsRequest { /** * The number of items to return with each hub. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional count() { - return (Optional) count; + return count; } /** @@ -78,7 +78,7 @@ public class GetGlobalHubsRequest { /** * The number of items to return with each hub. */ - public GetGlobalHubsRequest withCount(Optional count) { + public GetGlobalHubsRequest withCount(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -112,13 +112,13 @@ public class GetGlobalHubsRequest { } GetGlobalHubsRequest other = (GetGlobalHubsRequest) o; return - java.util.Objects.deepEquals(this.count, other.count) && - java.util.Objects.deepEquals(this.onlyTransient, other.onlyTransient); + Objects.deepEquals(this.count, other.count) && + Objects.deepEquals(this.onlyTransient, other.onlyTransient); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( count, onlyTransient); } @@ -132,7 +132,7 @@ public class GetGlobalHubsRequest { public final static class Builder { - private Optional count = Optional.empty(); + private Optional count = Optional.empty(); private Optional onlyTransient = Optional.empty(); @@ -152,7 +152,7 @@ public class GetGlobalHubsRequest { /** * The number of items to return with each hub. */ - public Builder count(Optional count) { + public Builder count(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java similarity index 55% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java index f79e45df..de01765c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java @@ -1,25 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; 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 count = Optional.empty(); private Optional onlyTransient = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetGlobalHubs sdk; @@ -33,19 +24,19 @@ public class GetGlobalHubsRequestBuilder { return this; } - public GetGlobalHubsRequestBuilder count(Optional count) { + public GetGlobalHubsRequestBuilder count(java.util.Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; } - public GetGlobalHubsRequestBuilder onlyTransient(OnlyTransient onlyTransient) { + public GetGlobalHubsRequestBuilder onlyTransient(dev.plexapi.sdk.models.operations.OnlyTransient onlyTransient) { Utils.checkNotNull(onlyTransient, "onlyTransient"); this.onlyTransient = Optional.of(onlyTransient); return this; } - public GetGlobalHubsRequestBuilder onlyTransient(Optional onlyTransient) { + public GetGlobalHubsRequestBuilder onlyTransient(java.util.Optional onlyTransient) { Utils.checkNotNull(onlyTransient, "onlyTransient"); this.onlyTransient = onlyTransient; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java index 12407ec6..cd1f4651 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetGlobalHubsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetGlobalHubsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetGlobalHubsResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java index 2c79f4b2..a6155faf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetGlobalHubsResponseBody - returns global hubs */ @@ -70,12 +70,12 @@ public class GetGlobalHubsResponseBody { } GetGlobalHubsResponseBody other = (GetGlobalHubsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java new file mode 100644 index 00000000..016d51c0 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java index 73e54742..96bc8a0e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetHomeDataResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetHomeDataResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetHomeDataResponse implements lukehagar.plexapi.plexapi.utils.Resp } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java index 306bc3d3..b0dd150f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetHomeDataResponseBody - Home Data */ @@ -25,36 +26,36 @@ public class GetHomeDataResponseBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guestUserID") - private Optional guestUserID; + private Optional guestUserID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guestUserUUID") - private Optional guestUserUUID; + private Optional guestUserUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guestEnabled") - private Optional guestEnabled; + private Optional guestEnabled; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subscription") - private Optional 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) { + @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"); @@ -73,40 +74,34 @@ public class GetHomeDataResponseBody { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guestUserID() { - return (Optional) guestUserID; + return guestUserID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guestUserUUID() { - return (Optional) guestUserUUID; + return guestUserUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guestEnabled() { - return (Optional) guestEnabled; + return guestEnabled; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subscription() { - return (Optional) subscription; + return subscription; } public final static Builder builder() { @@ -119,7 +114,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withId(Optional id) { + public GetHomeDataResponseBody withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -131,7 +126,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withName(Optional name) { + public GetHomeDataResponseBody withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -143,7 +138,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withGuestUserID(Optional guestUserID) { + public GetHomeDataResponseBody withGuestUserID(Optional guestUserID) { Utils.checkNotNull(guestUserID, "guestUserID"); this.guestUserID = guestUserID; return this; @@ -155,7 +150,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withGuestUserUUID(Optional guestUserUUID) { + public GetHomeDataResponseBody withGuestUserUUID(Optional guestUserUUID) { Utils.checkNotNull(guestUserUUID, "guestUserUUID"); this.guestUserUUID = guestUserUUID; return this; @@ -167,7 +162,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withGuestEnabled(Optional guestEnabled) { + public GetHomeDataResponseBody withGuestEnabled(Optional guestEnabled) { Utils.checkNotNull(guestEnabled, "guestEnabled"); this.guestEnabled = guestEnabled; return this; @@ -179,7 +174,7 @@ public class GetHomeDataResponseBody { return this; } - public GetHomeDataResponseBody withSubscription(Optional subscription) { + public GetHomeDataResponseBody withSubscription(Optional subscription) { Utils.checkNotNull(subscription, "subscription"); this.subscription = subscription; return this; @@ -195,17 +190,17 @@ public class GetHomeDataResponseBody { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.guestUserID, other.guestUserID) && + Objects.deepEquals(this.guestUserUUID, other.guestUserUUID) && + Objects.deepEquals(this.guestEnabled, other.guestEnabled) && + Objects.deepEquals(this.subscription, other.subscription); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, guestUserID, @@ -227,17 +222,17 @@ public class GetHomeDataResponseBody { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional guestUserID = Optional.empty(); + private Optional guestUserID = Optional.empty(); - private Optional guestUserUUID = Optional.empty(); + private Optional guestUserUUID = Optional.empty(); - private Optional guestEnabled = Optional.empty(); + private Optional guestEnabled = Optional.empty(); - private Optional subscription = Optional.empty(); + private Optional subscription = Optional.empty(); private Builder() { // force use of static builder() method @@ -249,7 +244,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -261,7 +256,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -273,7 +268,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder guestUserID(Optional guestUserID) { + public Builder guestUserID(Optional guestUserID) { Utils.checkNotNull(guestUserID, "guestUserID"); this.guestUserID = guestUserID; return this; @@ -285,7 +280,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder guestUserUUID(Optional guestUserUUID) { + public Builder guestUserUUID(Optional guestUserUUID) { Utils.checkNotNull(guestUserUUID, "guestUserUUID"); this.guestUserUUID = guestUserUUID; return this; @@ -297,7 +292,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder guestEnabled(Optional guestEnabled) { + public Builder guestEnabled(Optional guestEnabled) { Utils.checkNotNull(guestEnabled, "guestEnabled"); this.guestEnabled = guestEnabled; return this; @@ -309,7 +304,7 @@ public class GetHomeDataResponseBody { return this; } - public Builder subscription(Optional subscription) { + public Builder subscription(Optional subscription) { Utils.checkNotNull(subscription, "subscription"); this.subscription = subscription; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java index 9bb0d734..fb4262fe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryDirectory { + +public class GetLibraryDetailsDirectory { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("secondary") - private Optional secondary; + private Optional secondary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("prompt") - private Optional prompt; + private Optional prompt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("search") - private Optional 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) { + public GetLibraryDetailsDirectory( + @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"); @@ -59,99 +59,94 @@ public class GetLibraryDirectory { this.search = search; } - public GetLibraryDirectory() { + public GetLibraryDetailsDirectory() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional secondary() { - return (Optional) secondary; + return secondary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional prompt() { - return (Optional) prompt; + return prompt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional search() { - return (Optional) search; + return search; } public final static Builder builder() { return new Builder(); } - public GetLibraryDirectory withKey(String key) { + public GetLibraryDetailsDirectory withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetLibraryDirectory withKey(Optional key) { + public GetLibraryDetailsDirectory withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetLibraryDirectory withTitle(String title) { + public GetLibraryDetailsDirectory withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public GetLibraryDirectory withTitle(Optional title) { + public GetLibraryDetailsDirectory withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetLibraryDirectory withSecondary(boolean secondary) { + public GetLibraryDetailsDirectory withSecondary(boolean secondary) { Utils.checkNotNull(secondary, "secondary"); this.secondary = Optional.ofNullable(secondary); return this; } - public GetLibraryDirectory withSecondary(Optional secondary) { + public GetLibraryDetailsDirectory withSecondary(Optional secondary) { Utils.checkNotNull(secondary, "secondary"); this.secondary = secondary; return this; } - public GetLibraryDirectory withPrompt(String prompt) { + public GetLibraryDetailsDirectory withPrompt(String prompt) { Utils.checkNotNull(prompt, "prompt"); this.prompt = Optional.ofNullable(prompt); return this; } - public GetLibraryDirectory withPrompt(Optional prompt) { + public GetLibraryDetailsDirectory withPrompt(Optional prompt) { Utils.checkNotNull(prompt, "prompt"); this.prompt = prompt; return this; } - public GetLibraryDirectory withSearch(boolean search) { + public GetLibraryDetailsDirectory withSearch(boolean search) { Utils.checkNotNull(search, "search"); this.search = Optional.ofNullable(search); return this; } - public GetLibraryDirectory withSearch(Optional search) { + public GetLibraryDetailsDirectory withSearch(Optional search) { Utils.checkNotNull(search, "search"); this.search = search; return this; @@ -165,18 +160,18 @@ public class GetLibraryDirectory { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryDirectory other = (GetLibraryDirectory) o; + GetLibraryDetailsDirectory other = (GetLibraryDetailsDirectory) 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.secondary, other.secondary) && + Objects.deepEquals(this.prompt, other.prompt) && + Objects.deepEquals(this.search, other.search); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, title, secondary, @@ -186,7 +181,7 @@ public class GetLibraryDirectory { @Override public String toString() { - return Utils.toString(GetLibraryDirectory.class, + return Utils.toString(GetLibraryDetailsDirectory.class, "key", key, "title", title, "secondary", secondary, @@ -196,15 +191,15 @@ public class GetLibraryDirectory { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional secondary = Optional.empty(); + private Optional secondary = Optional.empty(); - private Optional prompt = Optional.empty(); + private Optional prompt = Optional.empty(); - private Optional search = Optional.empty(); + private Optional search = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetLibraryDirectory { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -228,7 +223,7 @@ public class GetLibraryDirectory { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -240,7 +235,7 @@ public class GetLibraryDirectory { return this; } - public Builder secondary(Optional secondary) { + public Builder secondary(Optional secondary) { Utils.checkNotNull(secondary, "secondary"); this.secondary = secondary; return this; @@ -252,7 +247,7 @@ public class GetLibraryDirectory { return this; } - public Builder prompt(Optional prompt) { + public Builder prompt(Optional prompt) { Utils.checkNotNull(prompt, "prompt"); this.prompt = prompt; return this; @@ -264,14 +259,14 @@ public class GetLibraryDirectory { return this; } - public Builder search(Optional search) { + public Builder search(Optional search) { Utils.checkNotNull(search, "search"); this.search = search; return this; } - public GetLibraryDirectory build() { - return new GetLibraryDirectory( + public GetLibraryDetailsDirectory build() { + return new GetLibraryDetailsDirectory( key, title, secondary, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java index 2ba9e778..62b478c8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java @@ -1,52 +1,51 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryFilter { + +public class GetLibraryDetailsFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filterType") - private Optional filterType; + private Optional filterType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional 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) { + public GetLibraryDetailsFilter( + @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"); @@ -59,99 +58,94 @@ public class GetLibraryFilter { this.type = type; } - public GetLibraryFilter() { + public GetLibraryDetailsFilter() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filterType() { - return (Optional) filterType; + return filterType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } public final static Builder builder() { return new Builder(); } - public GetLibraryFilter withFilter(String filter) { + public GetLibraryDetailsFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetLibraryFilter withFilter(Optional filter) { + public GetLibraryDetailsFilter withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetLibraryFilter withFilterType(String filterType) { + public GetLibraryDetailsFilter withFilterType(String filterType) { Utils.checkNotNull(filterType, "filterType"); this.filterType = Optional.ofNullable(filterType); return this; } - public GetLibraryFilter withFilterType(Optional filterType) { + public GetLibraryDetailsFilter withFilterType(Optional filterType) { Utils.checkNotNull(filterType, "filterType"); this.filterType = filterType; return this; } - public GetLibraryFilter withKey(String key) { + public GetLibraryDetailsFilter withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetLibraryFilter withKey(Optional key) { + public GetLibraryDetailsFilter withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetLibraryFilter withTitle(String title) { + public GetLibraryDetailsFilter withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public GetLibraryFilter withTitle(Optional title) { + public GetLibraryDetailsFilter withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetLibraryFilter withType(String type) { + public GetLibraryDetailsFilter withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public GetLibraryFilter withType(Optional type) { + public GetLibraryDetailsFilter withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -165,18 +159,18 @@ public class GetLibraryFilter { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryFilter other = (GetLibraryFilter) o; + GetLibraryDetailsFilter other = (GetLibraryDetailsFilter) 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); + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.filterType, other.filterType) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( filter, filterType, key, @@ -186,7 +180,7 @@ public class GetLibraryFilter { @Override public String toString() { - return Utils.toString(GetLibraryFilter.class, + return Utils.toString(GetLibraryDetailsFilter.class, "filter", filter, "filterType", filterType, "key", key, @@ -196,15 +190,15 @@ public class GetLibraryFilter { public final static class Builder { - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional filterType = Optional.empty(); + private Optional filterType = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +210,7 @@ public class GetLibraryFilter { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -228,7 +222,7 @@ public class GetLibraryFilter { return this; } - public Builder filterType(Optional filterType) { + public Builder filterType(Optional filterType) { Utils.checkNotNull(filterType, "filterType"); this.filterType = filterType; return this; @@ -240,7 +234,7 @@ public class GetLibraryFilter { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -252,7 +246,7 @@ public class GetLibraryFilter { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -264,14 +258,14 @@ public class GetLibraryFilter { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public GetLibraryFilter build() { - return new GetLibraryFilter( + public GetLibraryDetailsFilter build() { + return new GetLibraryDetailsFilter( filter, filterType, key, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java similarity index 58% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java index e9b6755b..7c67f4d7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java @@ -1,102 +1,105 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryMediaContainer { + +public class GetLibraryDetailsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("content") - private Optional content; + private Optional content; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title1") - private Optional title1; + private Optional title1; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewGroup") - private Optional viewGroup; + private Optional viewGroup; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewMode") - private Optional viewMode; + private Optional viewMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Directory") - private Optional> directory; + private Optional> directory; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Type") - private Optional> type; + private Optional> type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("FieldType") - private Optional> 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) { + public GetLibraryDetailsMediaContainer( + @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"); @@ -129,279 +132,267 @@ public class GetLibraryMediaContainer { this.fieldType = fieldType; } - public GetLibraryMediaContainer() { + public GetLibraryDetailsMediaContainer() { 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional content() { - return (Optional) content; + return content; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title1() { - return (Optional) title1; + return title1; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewGroup() { - return (Optional) viewGroup; + return viewGroup; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewMode() { - return (Optional) viewMode; + return viewMode; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> directory() { - return (Optional>) directory; + public Optional> directory() { + return (Optional>) directory; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> type() { - return (Optional>) type; + public Optional> type() { + return (Optional>) type; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> fieldType() { - return (Optional>) fieldType; + public Optional> fieldType() { + return (Optional>) fieldType; } public final static Builder builder() { return new Builder(); } - public GetLibraryMediaContainer withSize(int size) { + public GetLibraryDetailsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public GetLibraryMediaContainer withSize(Optional size) { + public GetLibraryDetailsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetLibraryMediaContainer withAllowSync(boolean allowSync) { + public GetLibraryDetailsMediaContainer withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = Optional.ofNullable(allowSync); return this; } - public GetLibraryMediaContainer withAllowSync(Optional allowSync) { + public GetLibraryDetailsMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; } - public GetLibraryMediaContainer withArt(String art) { + public GetLibraryDetailsMediaContainer withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } - public GetLibraryMediaContainer withArt(Optional art) { + public GetLibraryDetailsMediaContainer withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } - public GetLibraryMediaContainer withContent(String content) { + public GetLibraryDetailsMediaContainer withContent(String content) { Utils.checkNotNull(content, "content"); this.content = Optional.ofNullable(content); return this; } - public GetLibraryMediaContainer withContent(Optional content) { + public GetLibraryDetailsMediaContainer withContent(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; } - public GetLibraryMediaContainer withIdentifier(String identifier) { + public GetLibraryDetailsMediaContainer withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = Optional.ofNullable(identifier); return this; } - public GetLibraryMediaContainer withIdentifier(Optional identifier) { + public GetLibraryDetailsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public GetLibraryMediaContainer withLibrarySectionID(int librarySectionID) { + public GetLibraryDetailsMediaContainer withLibrarySectionID(int librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = Optional.ofNullable(librarySectionID); return this; } - public GetLibraryMediaContainer withLibrarySectionID(Optional librarySectionID) { + public GetLibraryDetailsMediaContainer withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; } - public GetLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + public GetLibraryDetailsMediaContainer withMediaTagPrefix(String mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); return this; } - public GetLibraryMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetLibraryDetailsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; } - public GetLibraryMediaContainer withMediaTagVersion(int mediaTagVersion) { + public GetLibraryDetailsMediaContainer withMediaTagVersion(int mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); return this; } - public GetLibraryMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetLibraryDetailsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public GetLibraryMediaContainer withThumb(String thumb) { + public GetLibraryDetailsMediaContainer withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetLibraryMediaContainer withThumb(Optional thumb) { + public GetLibraryDetailsMediaContainer withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetLibraryMediaContainer withTitle1(String title1) { + public GetLibraryDetailsMediaContainer withTitle1(String title1) { Utils.checkNotNull(title1, "title1"); this.title1 = Optional.ofNullable(title1); return this; } - public GetLibraryMediaContainer withTitle1(Optional title1) { + public GetLibraryDetailsMediaContainer withTitle1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; } - public GetLibraryMediaContainer withViewGroup(String viewGroup) { + public GetLibraryDetailsMediaContainer withViewGroup(String viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = Optional.ofNullable(viewGroup); return this; } - public GetLibraryMediaContainer withViewGroup(Optional viewGroup) { + public GetLibraryDetailsMediaContainer withViewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; } - public GetLibraryMediaContainer withViewMode(int viewMode) { + public GetLibraryDetailsMediaContainer withViewMode(int viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = Optional.ofNullable(viewMode); return this; } - public GetLibraryMediaContainer withViewMode(Optional viewMode) { + public GetLibraryDetailsMediaContainer withViewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public GetLibraryMediaContainer withDirectory(java.util.List directory) { + public GetLibraryDetailsMediaContainer withDirectory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public GetLibraryMediaContainer withDirectory(Optional> directory) { + public GetLibraryDetailsMediaContainer withDirectory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public GetLibraryMediaContainer withType(java.util.List type) { + public GetLibraryDetailsMediaContainer withType(List type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public GetLibraryMediaContainer withType(Optional> type) { + public GetLibraryDetailsMediaContainer withType(Optional> type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public GetLibraryMediaContainer withFieldType(java.util.List fieldType) { + public GetLibraryDetailsMediaContainer withFieldType(List fieldType) { Utils.checkNotNull(fieldType, "fieldType"); this.fieldType = Optional.ofNullable(fieldType); return this; } - public GetLibraryMediaContainer withFieldType(Optional> fieldType) { + public GetLibraryDetailsMediaContainer withFieldType(Optional> fieldType) { Utils.checkNotNull(fieldType, "fieldType"); this.fieldType = fieldType; return this; @@ -415,28 +406,28 @@ public class GetLibraryMediaContainer { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryMediaContainer other = (GetLibraryMediaContainer) o; + GetLibraryDetailsMediaContainer other = (GetLibraryDetailsMediaContainer) 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.content, other.content) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title1, other.title1) && + Objects.deepEquals(this.viewGroup, other.viewGroup) && + Objects.deepEquals(this.viewMode, other.viewMode) && + Objects.deepEquals(this.directory, other.directory) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.fieldType, other.fieldType); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, art, @@ -456,7 +447,7 @@ public class GetLibraryMediaContainer { @Override public String toString() { - return Utils.toString(GetLibraryMediaContainer.class, + return Utils.toString(GetLibraryDetailsMediaContainer.class, "size", size, "allowSync", allowSync, "art", art, @@ -476,35 +467,35 @@ public class GetLibraryMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional content = Optional.empty(); + private Optional content = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title1 = Optional.empty(); + private Optional title1 = Optional.empty(); - private Optional viewGroup = Optional.empty(); + private Optional viewGroup = Optional.empty(); - private Optional viewMode = Optional.empty(); + private Optional viewMode = Optional.empty(); - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); - private Optional> type = Optional.empty(); + private Optional> type = Optional.empty(); - private Optional> fieldType = Optional.empty(); + private Optional> fieldType = Optional.empty(); private Builder() { // force use of static builder() method @@ -516,7 +507,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -528,7 +519,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -540,7 +531,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -552,7 +543,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder content(Optional content) { + public Builder content(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; @@ -564,7 +555,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -576,7 +567,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -588,7 +579,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -600,7 +591,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -612,7 +603,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -624,7 +615,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder title1(Optional title1) { + public Builder title1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -636,7 +627,7 @@ public class GetLibraryMediaContainer { return this; } - public Builder viewGroup(Optional viewGroup) { + public Builder viewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -648,50 +639,50 @@ public class GetLibraryMediaContainer { return this; } - public Builder viewMode(Optional viewMode) { + public Builder viewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public Builder directory(java.util.List directory) { + public Builder directory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public Builder directory(Optional> directory) { + public Builder directory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public Builder type(java.util.List type) { + public Builder type(List type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public Builder type(Optional> type) { + public Builder type(Optional> type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public Builder fieldType(java.util.List fieldType) { + public Builder fieldType(List fieldType) { Utils.checkNotNull(fieldType, "fieldType"); this.fieldType = Optional.ofNullable(fieldType); return this; } - public Builder fieldType(Optional> fieldType) { + public Builder fieldType(Optional> fieldType) { Utils.checkNotNull(fieldType, "fieldType"); this.fieldType = fieldType; return this; } - public GetLibraryMediaContainer build() { - return new GetLibraryMediaContainer( + public GetLibraryDetailsMediaContainer build() { + return new GetLibraryDetailsMediaContainer( size, allowSync, art, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java index 936e51c3..4bfca0bb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java @@ -1,29 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; 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 { + +public class GetLibraryDetailsRequest { /** - * the Id of the library to query + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private double sectionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey") + private int sectionKey; /** * Whether or not to include details for a section (types, filters, and sorts). @@ -34,26 +38,28 @@ public class GetLibraryRequest { private Optional includeDetails; @JsonCreator - public GetLibraryRequest( - double sectionId, + public GetLibraryDetailsRequest( + int sectionKey, Optional includeDetails) { - Utils.checkNotNull(sectionId, "sectionId"); + Utils.checkNotNull(sectionKey, "sectionKey"); Utils.checkNotNull(includeDetails, "includeDetails"); - this.sectionId = sectionId; + this.sectionKey = sectionKey; this.includeDetails = includeDetails; } - public GetLibraryRequest( - double sectionId) { - this(sectionId, Optional.empty()); + public GetLibraryDetailsRequest( + int sectionKey) { + this(sectionKey, Optional.empty()); } /** - * the Id of the library to query + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * */ @JsonIgnore - public double sectionId() { - return sectionId; + public int sectionKey() { + return sectionKey; } /** @@ -72,11 +78,13 @@ public class GetLibraryRequest { } /** - * the Id of the library to query + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * */ - public GetLibraryRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; + public GetLibraryDetailsRequest withSectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; return this; } @@ -85,7 +93,7 @@ public class GetLibraryRequest { * Only exists for backwards compatibility, media providers other than the server libraries have it on always. * */ - public GetLibraryRequest withIncludeDetails(IncludeDetails includeDetails) { + public GetLibraryDetailsRequest withIncludeDetails(IncludeDetails includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); this.includeDetails = Optional.ofNullable(includeDetails); return this; @@ -96,7 +104,7 @@ public class GetLibraryRequest { * Only exists for backwards compatibility, media providers other than the server libraries have it on always. * */ - public GetLibraryRequest withIncludeDetails(Optional includeDetails) { + public GetLibraryDetailsRequest withIncludeDetails(Optional includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); this.includeDetails = includeDetails; return this; @@ -110,29 +118,29 @@ public class GetLibraryRequest { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryRequest other = (GetLibraryRequest) o; + GetLibraryDetailsRequest other = (GetLibraryDetailsRequest) o; return - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.includeDetails, other.includeDetails); + Objects.deepEquals(this.sectionKey, other.sectionKey) && + Objects.deepEquals(this.includeDetails, other.includeDetails); } @Override public int hashCode() { - return java.util.Objects.hash( - sectionId, + return Objects.hash( + sectionKey, includeDetails); } @Override public String toString() { - return Utils.toString(GetLibraryRequest.class, - "sectionId", sectionId, + return Utils.toString(GetLibraryDetailsRequest.class, + "sectionKey", sectionKey, "includeDetails", includeDetails); } public final static class Builder { - private Double sectionId; + private Integer sectionKey; private Optional includeDetails; @@ -141,11 +149,13 @@ public class GetLibraryRequest { } /** - * the Id of the library to query + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; + public Builder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; return this; } @@ -171,12 +181,11 @@ public class GetLibraryRequest { return this; } - public GetLibraryRequest build() { + public GetLibraryDetailsRequest build() { if (includeDetails == null) { includeDetails = _SINGLETON_VALUE_IncludeDetails.value(); - } - return new GetLibraryRequest( - sectionId, + } return new GetLibraryDetailsRequest( + sectionKey, includeDetails); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java similarity index 50% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java index e67444a4..a5f0f54d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java @@ -1,60 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; 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 GetLibraryDetailsRequestBuilder { -public class GetLibraryRequestBuilder { - - private Double sectionId; + private Integer sectionKey; private Optional includeDetails = Utils.readDefaultOrConstValue( "includeDetails", "0", new TypeReference>() {}); - private final SDKMethodInterfaces.MethodCallGetLibrary sdk; + private final SDKMethodInterfaces.MethodCallGetLibraryDetails sdk; - public GetLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetLibrary sdk) { + public GetLibraryDetailsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryDetails sdk) { this.sdk = sdk; } - public GetLibraryRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; + public GetLibraryDetailsRequestBuilder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; return this; } - public GetLibraryRequestBuilder includeDetails(IncludeDetails includeDetails) { + public GetLibraryDetailsRequestBuilder includeDetails(dev.plexapi.sdk.models.operations.IncludeDetails includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); this.includeDetails = Optional.of(includeDetails); return this; } - public GetLibraryRequestBuilder includeDetails(Optional includeDetails) { + public GetLibraryDetailsRequestBuilder includeDetails(java.util.Optional includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); this.includeDetails = includeDetails; return this; } - public GetLibraryResponse call() throws Exception { + public GetLibraryDetailsResponse call() throws Exception { if (includeDetails == null) { includeDetails = _SINGLETON_VALUE_IncludeDetails.value(); } - - return sdk.getLibrary( - sectionId, + return sdk.getLibraryDetails( + sectionKey, includeDetails); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java similarity index 72% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java index 8d74462c..23f88c3f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetLibraryDetailsResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +39,14 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * The details of the library */ - private Optional object; + private Optional object; @JsonCreator - public GetLibraryResponse( + public GetLibraryDetailsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo this.object = object; } - public GetLibraryResponse( + public GetLibraryDetailsResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -90,8 +93,8 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * HTTP response content type for this operation */ - public GetLibraryResponse withContentType(String contentType) { + public GetLibraryDetailsResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * HTTP response status code for this operation */ - public GetLibraryResponse withStatusCode(int statusCode) { + public GetLibraryDetailsResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,7 +122,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * Raw HTTP response; suitable for custom response parsing */ - public GetLibraryResponse withRawResponse(HttpResponse rawResponse) { + public GetLibraryDetailsResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -128,7 +131,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * The details of the library */ - public GetLibraryResponse withObject(GetLibraryResponseBody object) { + public GetLibraryDetailsResponse withObject(GetLibraryDetailsResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -137,7 +140,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * The details of the library */ - public GetLibraryResponse withObject(Optional object) { + public GetLibraryDetailsResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryResponse other = (GetLibraryResponse) o; + GetLibraryDetailsResponse other = (GetLibraryDetailsResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo @Override public String toString() { - return Utils.toString(GetLibraryResponse.class, + return Utils.toString(GetLibraryDetailsResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +224,7 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * The details of the library */ - public Builder object(GetLibraryResponseBody object) { + public Builder object(GetLibraryDetailsResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -230,14 +233,14 @@ public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Respo /** * The details of the library */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public GetLibraryResponse build() { - return new GetLibraryResponse( + public GetLibraryDetailsResponse build() { + return new GetLibraryDetailsResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java similarity index 56% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java index c23b0c7e..ff818199 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java @@ -1,60 +1,60 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** - * GetLibraryResponseBody - The details of the library + * GetLibraryDetailsResponseBody - The details of the library */ -public class GetLibraryResponseBody { +public class GetLibraryDetailsResponseBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("MediaContainer") - private Optional mediaContainer; + private Optional mediaContainer; @JsonCreator - public GetLibraryResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { + public GetLibraryDetailsResponseBody( + @JsonProperty("MediaContainer") Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; } - public GetLibraryResponseBody() { + public GetLibraryDetailsResponseBody() { this(Optional.empty()); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; + public Optional mediaContainer() { + return (Optional) mediaContainer; } public final static Builder builder() { return new Builder(); } - public GetLibraryResponseBody withMediaContainer(GetLibraryMediaContainer mediaContainer) { + public GetLibraryDetailsResponseBody withMediaContainer(GetLibraryDetailsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public GetLibraryResponseBody withMediaContainer(Optional mediaContainer) { + public GetLibraryDetailsResponseBody withMediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; @@ -68,45 +68,45 @@ public class GetLibraryResponseBody { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryResponseBody other = (GetLibraryResponseBody) o; + GetLibraryDetailsResponseBody other = (GetLibraryDetailsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } @Override public String toString() { - return Utils.toString(GetLibraryResponseBody.class, + return Utils.toString(GetLibraryDetailsResponseBody.class, "mediaContainer", mediaContainer); } public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder mediaContainer(GetLibraryMediaContainer mediaContainer) { + public Builder mediaContainer(GetLibraryDetailsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public Builder mediaContainer(Optional mediaContainer) { + public Builder mediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; } - public GetLibraryResponseBody build() { - return new GetLibraryResponseBody( + public GetLibraryDetailsResponseBody build() { + return new GetLibraryDetailsResponseBody( mediaContainer); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java similarity index 56% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java index a0f6ee3d..ccc58ac1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java @@ -1,62 +1,64 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryType { + +public class GetLibraryDetailsType { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("active") - private Optional active; + private Optional active; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Filter") - private Optional> filter; + private Optional> filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Sort") - private Optional> sort; + private Optional> sort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Field") - private Optional> 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) { + public GetLibraryDetailsType( + @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"); @@ -73,135 +75,131 @@ public class GetLibraryType { this.field = field; } - public GetLibraryType() { + public GetLibraryDetailsType() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional active() { - return (Optional) active; + return active; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> filter() { - return (Optional>) filter; + public Optional> filter() { + return (Optional>) filter; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> sort() { - return (Optional>) sort; + public Optional> sort() { + return (Optional>) sort; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> field() { - return (Optional>) field; + public Optional> field() { + return (Optional>) field; } public final static Builder builder() { return new Builder(); } - public GetLibraryType withKey(String key) { + public GetLibraryDetailsType withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetLibraryType withKey(Optional key) { + public GetLibraryDetailsType withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetLibraryType withType(String type) { + public GetLibraryDetailsType withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public GetLibraryType withType(Optional type) { + public GetLibraryDetailsType withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public GetLibraryType withTitle(String title) { + public GetLibraryDetailsType withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public GetLibraryType withTitle(Optional title) { + public GetLibraryDetailsType withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetLibraryType withActive(boolean active) { + public GetLibraryDetailsType withActive(boolean active) { Utils.checkNotNull(active, "active"); this.active = Optional.ofNullable(active); return this; } - public GetLibraryType withActive(Optional active) { + public GetLibraryDetailsType withActive(Optional active) { Utils.checkNotNull(active, "active"); this.active = active; return this; } - public GetLibraryType withFilter(java.util.List filter) { + public GetLibraryDetailsType withFilter(List filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetLibraryType withFilter(Optional> filter) { + public GetLibraryDetailsType withFilter(Optional> filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetLibraryType withSort(java.util.List sort) { + public GetLibraryDetailsType withSort(List sort) { Utils.checkNotNull(sort, "sort"); this.sort = Optional.ofNullable(sort); return this; } - public GetLibraryType withSort(Optional> sort) { + public GetLibraryDetailsType withSort(Optional> sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; } - public GetLibraryType withField(java.util.List field) { + public GetLibraryDetailsType withField(List field) { Utils.checkNotNull(field, "field"); this.field = Optional.ofNullable(field); return this; } - public GetLibraryType withField(Optional> field) { + public GetLibraryDetailsType withField(Optional> field) { Utils.checkNotNull(field, "field"); this.field = field; return this; @@ -215,20 +213,20 @@ public class GetLibraryType { if (o == null || getClass() != o.getClass()) { return false; } - GetLibraryType other = (GetLibraryType) o; + GetLibraryDetailsType other = (GetLibraryDetailsType) 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.active, other.active) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.sort, other.sort) && + Objects.deepEquals(this.field, other.field); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, type, title, @@ -240,7 +238,7 @@ public class GetLibraryType { @Override public String toString() { - return Utils.toString(GetLibraryType.class, + return Utils.toString(GetLibraryDetailsType.class, "key", key, "type", type, "title", title, @@ -252,19 +250,19 @@ public class GetLibraryType { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional active = Optional.empty(); + private Optional active = Optional.empty(); - private Optional> filter = Optional.empty(); + private Optional> filter = Optional.empty(); - private Optional> sort = Optional.empty(); + private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +274,7 @@ public class GetLibraryType { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -288,7 +286,7 @@ public class GetLibraryType { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -300,7 +298,7 @@ public class GetLibraryType { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -312,50 +310,50 @@ public class GetLibraryType { return this; } - public Builder active(Optional active) { + public Builder active(Optional active) { Utils.checkNotNull(active, "active"); this.active = active; return this; } - public Builder filter(java.util.List filter) { + public Builder filter(List filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public Builder filter(Optional> filter) { + public Builder filter(Optional> filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public Builder sort(java.util.List sort) { + public Builder sort(List sort) { Utils.checkNotNull(sort, "sort"); this.sort = Optional.ofNullable(sort); return this; } - public Builder sort(Optional> sort) { + public Builder sort(Optional> sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; } - public Builder field(java.util.List field) { + public Builder field(List field) { Utils.checkNotNull(field, "field"); this.field = Optional.ofNullable(field); return this; } - public Builder field(Optional> field) { + public Builder field(Optional> field) { Utils.checkNotNull(field, "field"); this.field = field; return this; } - public GetLibraryType build() { - return new GetLibraryType( + public GetLibraryDetailsType build() { + return new GetLibraryDetailsType( key, type, title, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java index 3596b570..2a75d524 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryHubsCountry( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryHubsCountry { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryHubsCountry { return this; } - public GetLibraryHubsCountry withTag(Optional tag) { + public GetLibraryHubsCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryHubsCountry { } GetLibraryHubsCountry other = (GetLibraryHubsCountry) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryHubsCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryHubsCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java index 7f4b3e57..11a4c1c9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsDirector { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryHubsDirector( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryHubsDirector { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryHubsDirector { return this; } - public GetLibraryHubsDirector withTag(Optional tag) { + public GetLibraryHubsDirector withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryHubsDirector { } GetLibraryHubsDirector other = (GetLibraryHubsDirector) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryHubsDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryHubsDirector { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java index 12177dbf..61afe652 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryHubsGenre( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryHubsGenre { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryHubsGenre { return this; } - public GetLibraryHubsGenre withTag(Optional tag) { + public GetLibraryHubsGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryHubsGenre { } GetLibraryHubsGenre other = (GetLibraryHubsGenre) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryHubsGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryHubsGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java index b4b0e6dc..81028fa3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java @@ -1,87 +1,90 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsHub { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hubIdentifier") - private Optional hubIdentifier; + private Optional hubIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("context") - private Optional context; + private Optional context; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("more") - private Optional more; + private Optional more; @JsonInclude(Include.NON_ABSENT) @JsonProperty("style") - private Optional style; + private Optional style; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hubKey") - private Optional hubKey; + private Optional hubKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonInclude(Include.NON_ABSENT) @JsonProperty("promoted") - private Optional promoted; + private Optional promoted; @JsonInclude(Include.NON_ABSENT) @JsonProperty("random") - private Optional 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) { + @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"); @@ -112,76 +115,65 @@ public class 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; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hubIdentifier() { - return (Optional) hubIdentifier; + return hubIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional context() { - return (Optional) context; + return context; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional more() { - return (Optional) more; + return more; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional style() { - return (Optional) style; + return style; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hubKey() { - return (Optional) hubKey; + return hubKey; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional promoted() { - return (Optional) promoted; + return promoted; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional random() { - return (Optional) random; + return random; } public final static Builder builder() { @@ -194,7 +186,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withKey(Optional key) { + public GetLibraryHubsHub withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -206,7 +198,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withTitle(Optional title) { + public GetLibraryHubsHub withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -218,7 +210,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withType(Optional type) { + public GetLibraryHubsHub withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -230,7 +222,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withHubIdentifier(Optional hubIdentifier) { + public GetLibraryHubsHub withHubIdentifier(Optional hubIdentifier) { Utils.checkNotNull(hubIdentifier, "hubIdentifier"); this.hubIdentifier = hubIdentifier; return this; @@ -242,7 +234,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withContext(Optional context) { + public GetLibraryHubsHub withContext(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -254,7 +246,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withSize(Optional size) { + public GetLibraryHubsHub withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -266,7 +258,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withMore(Optional more) { + public GetLibraryHubsHub withMore(Optional more) { Utils.checkNotNull(more, "more"); this.more = more; return this; @@ -278,7 +270,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withStyle(Optional style) { + public GetLibraryHubsHub withStyle(Optional style) { Utils.checkNotNull(style, "style"); this.style = style; return this; @@ -290,19 +282,19 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withHubKey(Optional hubKey) { + public GetLibraryHubsHub withHubKey(Optional hubKey) { Utils.checkNotNull(hubKey, "hubKey"); this.hubKey = hubKey; return this; } - public GetLibraryHubsHub withMetadata(java.util.List metadata) { + public GetLibraryHubsHub withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetLibraryHubsHub withMetadata(Optional> metadata) { + public GetLibraryHubsHub withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -314,7 +306,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withPromoted(Optional promoted) { + public GetLibraryHubsHub withPromoted(Optional promoted) { Utils.checkNotNull(promoted, "promoted"); this.promoted = promoted; return this; @@ -326,7 +318,7 @@ public class GetLibraryHubsHub { return this; } - public GetLibraryHubsHub withRandom(Optional random) { + public GetLibraryHubsHub withRandom(Optional random) { Utils.checkNotNull(random, "random"); this.random = random; return this; @@ -342,23 +334,23 @@ public class GetLibraryHubsHub { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.hubIdentifier, other.hubIdentifier) && + Objects.deepEquals(this.context, other.context) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.more, other.more) && + Objects.deepEquals(this.style, other.style) && + Objects.deepEquals(this.hubKey, other.hubKey) && + Objects.deepEquals(this.metadata, other.metadata) && + Objects.deepEquals(this.promoted, other.promoted) && + Objects.deepEquals(this.random, other.random); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, title, type, @@ -392,29 +384,29 @@ public class GetLibraryHubsHub { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional hubIdentifier = Optional.empty(); + private Optional hubIdentifier = Optional.empty(); - private Optional context = Optional.empty(); + private Optional context = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional more = Optional.empty(); + private Optional more = Optional.empty(); - private Optional style = Optional.empty(); + private Optional style = Optional.empty(); - private Optional hubKey = Optional.empty(); + private Optional hubKey = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); - private Optional promoted = Optional.empty(); + private Optional promoted = Optional.empty(); - private Optional random = Optional.empty(); + private Optional random = Optional.empty(); private Builder() { // force use of static builder() method @@ -426,7 +418,7 @@ public class GetLibraryHubsHub { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -438,7 +430,7 @@ public class GetLibraryHubsHub { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -450,7 +442,7 @@ public class GetLibraryHubsHub { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -462,7 +454,7 @@ public class GetLibraryHubsHub { return this; } - public Builder hubIdentifier(Optional hubIdentifier) { + public Builder hubIdentifier(Optional hubIdentifier) { Utils.checkNotNull(hubIdentifier, "hubIdentifier"); this.hubIdentifier = hubIdentifier; return this; @@ -474,7 +466,7 @@ public class GetLibraryHubsHub { return this; } - public Builder context(Optional context) { + public Builder context(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -486,7 +478,7 @@ public class GetLibraryHubsHub { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -498,7 +490,7 @@ public class GetLibraryHubsHub { return this; } - public Builder more(Optional more) { + public Builder more(Optional more) { Utils.checkNotNull(more, "more"); this.more = more; return this; @@ -510,7 +502,7 @@ public class GetLibraryHubsHub { return this; } - public Builder style(Optional style) { + public Builder style(Optional style) { Utils.checkNotNull(style, "style"); this.style = style; return this; @@ -522,19 +514,19 @@ public class GetLibraryHubsHub { return this; } - public Builder hubKey(Optional hubKey) { + public Builder hubKey(Optional hubKey) { Utils.checkNotNull(hubKey, "hubKey"); this.hubKey = hubKey; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -546,7 +538,7 @@ public class GetLibraryHubsHub { return this; } - public Builder promoted(Optional promoted) { + public Builder promoted(Optional promoted) { Utils.checkNotNull(promoted, "promoted"); this.promoted = promoted; return this; @@ -558,7 +550,7 @@ public class GetLibraryHubsHub { return this; } - public Builder random(Optional random) { + public Builder random(Optional random) { Utils.checkNotNull(random, "random"); this.random = random; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java index 275735e5..727363da 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java @@ -1,112 +1,116 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -147,106 +151,90 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -259,7 +247,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withId(Optional id) { + public GetLibraryHubsMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -271,7 +259,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withDuration(Optional duration) { + public GetLibraryHubsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -283,7 +271,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withBitrate(Optional bitrate) { + public GetLibraryHubsMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -295,7 +283,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withWidth(Optional width) { + public GetLibraryHubsMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -307,7 +295,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withHeight(Optional height) { + public GetLibraryHubsMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -319,7 +307,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withAspectRatio(Optional aspectRatio) { + public GetLibraryHubsMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -331,7 +319,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withAudioChannels(Optional audioChannels) { + public GetLibraryHubsMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -343,7 +331,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withAudioCodec(Optional audioCodec) { + public GetLibraryHubsMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -355,7 +343,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withVideoCodec(Optional videoCodec) { + public GetLibraryHubsMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -367,7 +355,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withVideoResolution(Optional videoResolution) { + public GetLibraryHubsMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -379,7 +367,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withContainer(Optional container) { + public GetLibraryHubsMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -391,7 +379,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withVideoFrameRate(Optional videoFrameRate) { + public GetLibraryHubsMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -403,7 +391,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetLibraryHubsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -415,7 +403,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withAudioProfile(Optional audioProfile) { + public GetLibraryHubsMedia withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -427,7 +415,7 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withHas64bitOffsets(Optional has64bitOffsets) { + public GetLibraryHubsMedia withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -439,19 +427,19 @@ public class GetLibraryHubsMedia { return this; } - public GetLibraryHubsMedia withVideoProfile(Optional videoProfile) { + public GetLibraryHubsMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetLibraryHubsMedia withPart(java.util.List part) { + public GetLibraryHubsMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetLibraryHubsMedia withPart(Optional> part) { + public GetLibraryHubsMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -467,28 +455,28 @@ public class GetLibraryHubsMedia { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -532,39 +520,39 @@ public class GetLibraryHubsMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -576,7 +564,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -588,7 +576,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -600,7 +588,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -612,7 +600,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -624,7 +612,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -636,7 +624,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -648,7 +636,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -660,7 +648,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -672,7 +660,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -684,7 +672,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -696,7 +684,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -708,7 +696,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -720,7 +708,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -732,7 +720,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -744,7 +732,7 @@ public class GetLibraryHubsMedia { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -756,19 +744,19 @@ public class GetLibraryHubsMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java index 066c4fa0..367e308a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java @@ -1,62 +1,65 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Hub") - private Optional> 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) { + @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"); @@ -77,46 +80,40 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> hub() { - return (Optional>) hub; + public Optional> hub() { + return (Optional>) hub; } public final static Builder builder() { @@ -129,7 +126,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withSize(Optional size) { + public GetLibraryHubsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -141,7 +138,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withAllowSync(Optional allowSync) { + public GetLibraryHubsMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -153,7 +150,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withIdentifier(Optional identifier) { + public GetLibraryHubsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -165,7 +162,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withLibrarySectionID(Optional librarySectionID) { + public GetLibraryHubsMediaContainer withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -177,7 +174,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { + public GetLibraryHubsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -189,19 +186,19 @@ public class GetLibraryHubsMediaContainer { return this; } - public GetLibraryHubsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { + public GetLibraryHubsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; } - public GetLibraryHubsMediaContainer withHub(java.util.List hub) { + public GetLibraryHubsMediaContainer withHub(List hub) { Utils.checkNotNull(hub, "hub"); this.hub = Optional.ofNullable(hub); return this; } - public GetLibraryHubsMediaContainer withHub(Optional> hub) { + public GetLibraryHubsMediaContainer withHub(Optional> hub) { Utils.checkNotNull(hub, "hub"); this.hub = hub; return this; @@ -217,18 +214,18 @@ public class GetLibraryHubsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.hub, other.hub); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -252,19 +249,19 @@ public class GetLibraryHubsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional> hub = Optional.empty(); + private Optional> hub = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +273,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -288,7 +285,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -300,7 +297,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -312,7 +309,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -324,7 +321,7 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -336,19 +333,19 @@ public class GetLibraryHubsMediaContainer { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; } - public Builder hub(java.util.List hub) { + public Builder hub(List hub) { Utils.checkNotNull(hub, "hub"); this.hub = Optional.ofNullable(hub); return this; } - public Builder hub(Optional> hub) { + public Builder hub(Optional> hub) { Utils.checkNotNull(hub, "hub"); this.hub = hub; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java index 34d1f030..ce0090c5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java @@ -1,198 +1,201 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; + private Optional primaryExtraKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> role; + private Optional> role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("skipCount") - private Optional skipCount; + private Optional skipCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chapterSource") - private Optional 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) { + @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"); @@ -267,208 +270,180 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; + return primaryExtraKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional skipCount() { - return (Optional) skipCount; + return skipCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chapterSource() { - return (Optional) chapterSource; + return chapterSource; } public final static Builder builder() { @@ -481,7 +456,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withRatingKey(Optional ratingKey) { + public GetLibraryHubsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -493,7 +468,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withKey(Optional key) { + public GetLibraryHubsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -505,7 +480,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withGuid(Optional guid) { + public GetLibraryHubsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -517,7 +492,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withStudio(Optional studio) { + public GetLibraryHubsMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -529,7 +504,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withType(Optional type) { + public GetLibraryHubsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -541,7 +516,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withTitle(Optional title) { + public GetLibraryHubsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -553,7 +528,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetLibraryHubsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -565,7 +540,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withLibrarySectionID(Optional librarySectionID) { + public GetLibraryHubsMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -577,7 +552,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetLibraryHubsMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -589,7 +564,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withContentRating(Optional contentRating) { + public GetLibraryHubsMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -601,7 +576,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withSummary(Optional summary) { + public GetLibraryHubsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -613,7 +588,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withRating(Optional rating) { + public GetLibraryHubsMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -625,7 +600,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withAudienceRating(Optional audienceRating) { + public GetLibraryHubsMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -637,7 +612,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withViewCount(Optional viewCount) { + public GetLibraryHubsMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -649,7 +624,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withLastViewedAt(Optional lastViewedAt) { + public GetLibraryHubsMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -661,7 +636,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withYear(Optional year) { + public GetLibraryHubsMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -673,7 +648,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withTagline(Optional tagline) { + public GetLibraryHubsMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -685,7 +660,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withThumb(Optional thumb) { + public GetLibraryHubsMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -697,7 +672,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withArt(Optional art) { + public GetLibraryHubsMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -709,7 +684,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withDuration(Optional duration) { + public GetLibraryHubsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -721,7 +696,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetLibraryHubsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -733,7 +708,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withAddedAt(Optional addedAt) { + public GetLibraryHubsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -745,7 +720,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withUpdatedAt(Optional updatedAt) { + public GetLibraryHubsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -757,7 +732,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetLibraryHubsMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -769,7 +744,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { + public GetLibraryHubsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -781,79 +756,79 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withRatingImage(Optional ratingImage) { + public GetLibraryHubsMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public GetLibraryHubsMetadata withMedia(java.util.List media) { + public GetLibraryHubsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetLibraryHubsMetadata withMedia(Optional> media) { + public GetLibraryHubsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetLibraryHubsMetadata withGenre(java.util.List genre) { + public GetLibraryHubsMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetLibraryHubsMetadata withGenre(Optional> genre) { + public GetLibraryHubsMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetLibraryHubsMetadata withCountry(java.util.List country) { + public GetLibraryHubsMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetLibraryHubsMetadata withCountry(Optional> country) { + public GetLibraryHubsMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetLibraryHubsMetadata withDirector(java.util.List director) { + public GetLibraryHubsMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetLibraryHubsMetadata withDirector(Optional> director) { + public GetLibraryHubsMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetLibraryHubsMetadata withRole(java.util.List role) { + public GetLibraryHubsMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetLibraryHubsMetadata withRole(Optional> role) { + public GetLibraryHubsMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public GetLibraryHubsMetadata withWriter(java.util.List writer) { + public GetLibraryHubsMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetLibraryHubsMetadata withWriter(Optional> writer) { + public GetLibraryHubsMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; @@ -865,7 +840,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withSkipCount(Optional skipCount) { + public GetLibraryHubsMetadata withSkipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -877,7 +852,7 @@ public class GetLibraryHubsMetadata { return this; } - public GetLibraryHubsMetadata withChapterSource(Optional chapterSource) { + public GetLibraryHubsMetadata withChapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -893,45 +868,45 @@ public class GetLibraryHubsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.skipCount, other.skipCount) && + Objects.deepEquals(this.chapterSource, other.chapterSource); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -1009,73 +984,73 @@ public class GetLibraryHubsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional primaryExtraKey = Optional.empty(); + private Optional primaryExtraKey = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional skipCount = Optional.empty(); + private Optional skipCount = Optional.empty(); - private Optional chapterSource = Optional.empty(); + private Optional chapterSource = Optional.empty(); private Builder() { // force use of static builder() method @@ -1087,7 +1062,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1099,7 +1074,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1111,7 +1086,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1123,7 +1098,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1135,7 +1110,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1147,7 +1122,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1159,7 +1134,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1171,7 +1146,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1183,7 +1158,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1195,7 +1170,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1207,7 +1182,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1219,7 +1194,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1231,7 +1206,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1243,7 +1218,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -1255,7 +1230,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -1267,7 +1242,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1279,7 +1254,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1291,7 +1266,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1303,7 +1278,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1315,7 +1290,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1327,7 +1302,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1339,7 +1314,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1351,7 +1326,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1363,7 +1338,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1375,7 +1350,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder primaryExtraKey(Optional primaryExtraKey) { + public Builder primaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -1387,79 +1362,79 @@ public class GetLibraryHubsMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; @@ -1471,7 +1446,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder skipCount(Optional skipCount) { + public Builder skipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -1483,7 +1458,7 @@ public class GetLibraryHubsMetadata { return this; } - public Builder chapterSource(Optional chapterSource) { + public Builder chapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java index 764ee443..f68dbe11 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java @@ -1,77 +1,78 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional 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) { + @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"); @@ -98,64 +99,54 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } public final static Builder builder() { @@ -168,7 +159,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withId(Optional id) { + public GetLibraryHubsPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -180,7 +171,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withKey(Optional key) { + public GetLibraryHubsPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -192,7 +183,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withDuration(Optional duration) { + public GetLibraryHubsPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -204,7 +195,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withFile(Optional file) { + public GetLibraryHubsPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -216,7 +207,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withSize(Optional size) { + public GetLibraryHubsPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -228,7 +219,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withAudioProfile(Optional audioProfile) { + public GetLibraryHubsPart withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -240,7 +231,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withContainer(Optional container) { + public GetLibraryHubsPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -252,7 +243,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withHas64bitOffsets(Optional has64bitOffsets) { + public GetLibraryHubsPart withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -264,7 +255,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetLibraryHubsPart withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -276,7 +267,7 @@ public class GetLibraryHubsPart { return this; } - public GetLibraryHubsPart withVideoProfile(Optional videoProfile) { + public GetLibraryHubsPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; @@ -292,21 +283,21 @@ public class GetLibraryHubsPart { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.videoProfile, other.videoProfile); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -336,25 +327,25 @@ public class GetLibraryHubsPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -366,7 +357,7 @@ public class GetLibraryHubsPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -378,7 +369,7 @@ public class GetLibraryHubsPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -390,7 +381,7 @@ public class GetLibraryHubsPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -402,7 +393,7 @@ public class GetLibraryHubsPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -414,7 +405,7 @@ public class GetLibraryHubsPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -426,7 +417,7 @@ public class GetLibraryHubsPart { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -438,7 +429,7 @@ public class GetLibraryHubsPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -450,7 +441,7 @@ public class GetLibraryHubsPart { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -462,7 +453,7 @@ public class GetLibraryHubsPart { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -474,7 +465,7 @@ public class GetLibraryHubsPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java index 568efd05..89ea80f2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java @@ -1,20 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsRequest { @@ -28,7 +29,7 @@ public class GetLibraryHubsRequest { * The number of items to return with each hub. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") - private Optional 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). @@ -39,7 +40,7 @@ public class GetLibraryHubsRequest { @JsonCreator public GetLibraryHubsRequest( double sectionId, - Optional count, + Optional count, Optional onlyTransient) { Utils.checkNotNull(sectionId, "sectionId"); Utils.checkNotNull(count, "count"); @@ -65,10 +66,9 @@ public class GetLibraryHubsRequest { /** * The number of items to return with each hub. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional count() { - return (Optional) count; + return count; } /** @@ -105,7 +105,7 @@ public class GetLibraryHubsRequest { /** * The number of items to return with each hub. */ - public GetLibraryHubsRequest withCount(Optional count) { + public GetLibraryHubsRequest withCount(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -139,14 +139,14 @@ public class GetLibraryHubsRequest { } 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); + Objects.deepEquals(this.sectionId, other.sectionId) && + Objects.deepEquals(this.count, other.count) && + Objects.deepEquals(this.onlyTransient, other.onlyTransient); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( sectionId, count, onlyTransient); @@ -164,7 +164,7 @@ public class GetLibraryHubsRequest { private Double sectionId; - private Optional count = Optional.empty(); + private Optional count = Optional.empty(); private Optional onlyTransient = Optional.empty(); @@ -193,7 +193,7 @@ public class GetLibraryHubsRequest { /** * The number of items to return with each hub. */ - public Builder count(Optional count) { + public Builder count(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java index e9c97f5d..8ffb0dc9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java @@ -1,26 +1,17 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; 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 count = Optional.empty(); private Optional onlyTransient = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetLibraryHubs sdk; @@ -40,19 +31,19 @@ public class GetLibraryHubsRequestBuilder { return this; } - public GetLibraryHubsRequestBuilder count(Optional count) { + public GetLibraryHubsRequestBuilder count(java.util.Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; } - public GetLibraryHubsRequestBuilder onlyTransient(QueryParamOnlyTransient onlyTransient) { + public GetLibraryHubsRequestBuilder onlyTransient(dev.plexapi.sdk.models.operations.QueryParamOnlyTransient onlyTransient) { Utils.checkNotNull(onlyTransient, "onlyTransient"); this.onlyTransient = Optional.of(onlyTransient); return this; } - public GetLibraryHubsRequestBuilder onlyTransient(Optional onlyTransient) { + public GetLibraryHubsRequestBuilder onlyTransient(java.util.Optional onlyTransient) { Utils.checkNotNull(onlyTransient, "onlyTransient"); this.onlyTransient = onlyTransient; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java index 00b4a484..cb576bae 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryHubsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetLibraryHubsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetLibraryHubsResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java index 59bdcafa..a40677cf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetLibraryHubsResponseBody - The hubs specific to the library */ @@ -70,12 +70,12 @@ public class GetLibraryHubsResponseBody { } GetLibraryHubsResponseBody other = (GetLibraryHubsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java index 02eecf73..751b2ba2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryHubsRole( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryHubsRole { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryHubsRole { return this; } - public GetLibraryHubsRole withTag(Optional tag) { + public GetLibraryHubsRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryHubsRole { } GetLibraryHubsRole other = (GetLibraryHubsRole) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryHubsRole { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryHubsRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java index 2ed2f3c6..039f05ff 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryHubsWriter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryHubsWriter( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryHubsWriter { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryHubsWriter { return this; } - public GetLibraryHubsWriter withTag(Optional tag) { + public GetLibraryHubsWriter withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryHubsWriter { } GetLibraryHubsWriter other = (GetLibraryHubsWriter) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryHubsWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryHubsWriter { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java index 3c5e0603..1b252755 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryItemsCountry( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryItemsCountry { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryItemsCountry { return this; } - public GetLibraryItemsCountry withTag(Optional tag) { + public GetLibraryItemsCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryItemsCountry { } GetLibraryItemsCountry other = (GetLibraryItemsCountry) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryItemsCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryItemsCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java index 9fb8c0a9..070fb4da 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsDirector { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryItemsDirector( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryItemsDirector { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryItemsDirector { return this; } - public GetLibraryItemsDirector withTag(Optional tag) { + public GetLibraryItemsDirector withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryItemsDirector { } GetLibraryItemsDirector other = (GetLibraryItemsDirector) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryItemsDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryItemsDirector { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java index 556135e4..f00f8cc1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryItemsGenre( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryItemsGenre { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryItemsGenre { return this; } - public GetLibraryItemsGenre withTag(Optional tag) { + public GetLibraryItemsGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryItemsGenre { } GetLibraryItemsGenre other = (GetLibraryItemsGenre) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryItemsGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryItemsGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java index edb8299a..cb185399 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java @@ -1,97 +1,100 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -126,88 +129,75 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -220,7 +210,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withId(Optional id) { + public GetLibraryItemsMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -232,7 +222,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withDuration(Optional duration) { + public GetLibraryItemsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -244,7 +234,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withBitrate(Optional bitrate) { + public GetLibraryItemsMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -256,7 +246,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withWidth(Optional width) { + public GetLibraryItemsMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -268,7 +258,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withHeight(Optional height) { + public GetLibraryItemsMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -280,7 +270,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withAspectRatio(Optional aspectRatio) { + public GetLibraryItemsMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -292,7 +282,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withAudioChannels(Optional audioChannels) { + public GetLibraryItemsMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -304,7 +294,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withAudioCodec(Optional audioCodec) { + public GetLibraryItemsMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -316,7 +306,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withVideoCodec(Optional videoCodec) { + public GetLibraryItemsMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -328,7 +318,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withVideoResolution(Optional videoResolution) { + public GetLibraryItemsMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -340,7 +330,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withContainer(Optional container) { + public GetLibraryItemsMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -352,7 +342,7 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withVideoFrameRate(Optional videoFrameRate) { + public GetLibraryItemsMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -364,19 +354,19 @@ public class GetLibraryItemsMedia { return this; } - public GetLibraryItemsMedia withVideoProfile(Optional videoProfile) { + public GetLibraryItemsMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetLibraryItemsMedia withPart(java.util.List part) { + public GetLibraryItemsMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetLibraryItemsMedia withPart(Optional> part) { + public GetLibraryItemsMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -392,25 +382,25 @@ public class GetLibraryItemsMedia { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -448,33 +438,33 @@ public class GetLibraryItemsMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -486,7 +476,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -498,7 +488,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -510,7 +500,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -522,7 +512,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -534,7 +524,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -546,7 +536,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -558,7 +548,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -570,7 +560,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -582,7 +572,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -594,7 +584,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -606,7 +596,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -618,7 +608,7 @@ public class GetLibraryItemsMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -630,19 +620,19 @@ public class GetLibraryItemsMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java index cb24c80a..3d221230 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java @@ -1,40 +1,43 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") @@ -42,66 +45,66 @@ public class GetLibraryItemsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title1") - private Optional title1; + private Optional title1; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title2") - private Optional title2; + private Optional title2; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewGroup") - private Optional viewGroup; + private Optional viewGroup; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewMode") - private Optional viewMode; + private Optional viewMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mixedParents") - private Optional mixedParents; + private Optional mixedParents; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public GetLibraryItemsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("identifier") Optional identifier, + @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) { + @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"); @@ -140,28 +143,24 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } @SuppressWarnings("unchecked") @@ -170,70 +169,60 @@ public class GetLibraryItemsMediaContainer { return (Optional) librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title1() { - return (Optional) title1; + return title1; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title2() { - return (Optional) title2; + return title2; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewGroup() { - return (Optional) viewGroup; + return viewGroup; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewMode() { - return (Optional) viewMode; + return viewMode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mixedParents() { - return (Optional) mixedParents; + return mixedParents; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -246,7 +235,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withSize(Optional size) { + public GetLibraryItemsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -258,7 +247,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withAllowSync(Optional allowSync) { + public GetLibraryItemsMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -270,7 +259,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withArt(Optional art) { + public GetLibraryItemsMediaContainer withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -282,7 +271,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withIdentifier(Optional identifier) { + public GetLibraryItemsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -306,7 +295,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { + public GetLibraryItemsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -318,7 +307,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { + public GetLibraryItemsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -330,7 +319,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetLibraryItemsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -342,7 +331,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetLibraryItemsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -354,7 +343,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withThumb(Optional thumb) { + public GetLibraryItemsMediaContainer withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -366,7 +355,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withTitle1(Optional title1) { + public GetLibraryItemsMediaContainer withTitle1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -378,7 +367,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withTitle2(Optional title2) { + public GetLibraryItemsMediaContainer withTitle2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; @@ -390,7 +379,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withViewGroup(Optional viewGroup) { + public GetLibraryItemsMediaContainer withViewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -402,7 +391,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withViewMode(Optional viewMode) { + public GetLibraryItemsMediaContainer withViewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; @@ -414,19 +403,19 @@ public class GetLibraryItemsMediaContainer { return this; } - public GetLibraryItemsMediaContainer withMixedParents(Optional mixedParents) { + public GetLibraryItemsMediaContainer withMixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public GetLibraryItemsMediaContainer withMetadata(java.util.List metadata) { + public GetLibraryItemsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetLibraryItemsMediaContainer withMetadata(Optional> metadata) { + public GetLibraryItemsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -442,27 +431,27 @@ public class GetLibraryItemsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title1, other.title1) && + Objects.deepEquals(this.title2, other.title2) && + Objects.deepEquals(this.viewGroup, other.viewGroup) && + Objects.deepEquals(this.viewMode, other.viewMode) && + Objects.deepEquals(this.mixedParents, other.mixedParents) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, art, @@ -504,37 +493,37 @@ public class GetLibraryItemsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title1 = Optional.empty(); + private Optional title1 = Optional.empty(); - private Optional title2 = Optional.empty(); + private Optional title2 = Optional.empty(); - private Optional viewGroup = Optional.empty(); + private Optional viewGroup = Optional.empty(); - private Optional viewMode = Optional.empty(); + private Optional viewMode = Optional.empty(); - private Optional mixedParents = Optional.empty(); + private Optional mixedParents = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -546,7 +535,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -558,7 +547,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -570,7 +559,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -582,7 +571,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -606,7 +595,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -618,7 +607,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -630,7 +619,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -642,7 +631,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -654,7 +643,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -666,7 +655,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder title1(Optional title1) { + public Builder title1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -678,7 +667,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder title2(Optional title2) { + public Builder title2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; @@ -690,7 +679,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder viewGroup(Optional viewGroup) { + public Builder viewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -702,7 +691,7 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder viewMode(Optional viewMode) { + public Builder viewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; @@ -714,19 +703,19 @@ public class GetLibraryItemsMediaContainer { return this; } - public Builder mixedParents(Optional mixedParents) { + public Builder mixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java index f73c1dc1..b0629ddf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java @@ -1,313 +1,316 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chapterSource") - private Optional chapterSource; + private Optional chapterSource; @JsonInclude(Include.NON_ABSENT) @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; + private Optional primaryExtraKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; + private Optional grandparentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentGuid") - private Optional grandparentGuid; + private Optional grandparentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentKey") - private Optional grandparentKey; + private Optional grandparentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTitle") - private Optional grandparentTitle; + private Optional grandparentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentThumb") - private Optional grandparentThumb; + private Optional grandparentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentArt") - private Optional grandparentArt; + private Optional grandparentArt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTheme") - private Optional grandparentTheme; + private Optional grandparentTheme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> role; + private Optional> role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("titleSort") - private Optional titleSort; + private Optional titleSort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originalTitle") - private Optional originalTitle; + private Optional originalTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewOffset") - private Optional viewOffset; + private Optional viewOffset; @JsonInclude(Include.NON_ABSENT) @JsonProperty("skipCount") - private Optional skipCount; + private Optional skipCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("theme") - private Optional theme; + private Optional theme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; + private Optional viewedLeafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("childCount") - private Optional childCount; + private Optional childCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasPremiumExtras") - private Optional hasPremiumExtras; + private Optional hasPremiumExtras; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; + private Optional hasPremiumPrimaryExtra; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") - private Optional parentRatingKey; + private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") - private Optional parentGuid; + private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentStudio") - private Optional parentStudio; + private Optional parentStudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") - private Optional parentYear; + private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTheme") - private Optional 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) { + @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"); @@ -428,346 +431,295 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chapterSource() { - return (Optional) chapterSource; + return chapterSource; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; + return primaryExtraKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; + return grandparentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentGuid() { - return (Optional) grandparentGuid; + return grandparentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentKey() { - return (Optional) grandparentKey; + return grandparentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTitle() { - return (Optional) grandparentTitle; + return grandparentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentThumb() { - return (Optional) grandparentThumb; + return grandparentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentArt() { - return (Optional) grandparentArt; + return grandparentArt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTheme() { - return (Optional) grandparentTheme; + return grandparentTheme; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional titleSort() { - return (Optional) titleSort; + return titleSort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originalTitle() { - return (Optional) originalTitle; + return originalTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewOffset() { - return (Optional) viewOffset; + return viewOffset; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional skipCount() { - return (Optional) skipCount; + return skipCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional theme() { - return (Optional) theme; + return theme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; + return viewedLeafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional childCount() { - return (Optional) childCount; + return childCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasPremiumExtras() { - return (Optional) hasPremiumExtras; + return hasPremiumExtras; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; + return hasPremiumPrimaryExtra; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentRatingKey() { - return (Optional) parentRatingKey; + return parentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentGuid() { - return (Optional) parentGuid; + return parentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentStudio() { - return (Optional) parentStudio; + return parentStudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentYear() { - return (Optional) parentYear; + return parentYear; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTheme() { - return (Optional) parentTheme; + return parentTheme; } public final static Builder builder() { @@ -780,7 +732,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withRatingKey(Optional ratingKey) { + public GetLibraryItemsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -792,7 +744,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withKey(Optional key) { + public GetLibraryItemsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -804,7 +756,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGuid(Optional guid) { + public GetLibraryItemsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -816,7 +768,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withStudio(Optional studio) { + public GetLibraryItemsMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -828,7 +780,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withType(Optional type) { + public GetLibraryItemsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -840,7 +792,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withTitle(Optional title) { + public GetLibraryItemsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -852,7 +804,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withContentRating(Optional contentRating) { + public GetLibraryItemsMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -864,7 +816,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withSummary(Optional summary) { + public GetLibraryItemsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -876,7 +828,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withRating(Optional rating) { + public GetLibraryItemsMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -888,7 +840,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withAudienceRating(Optional audienceRating) { + public GetLibraryItemsMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -900,7 +852,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withYear(Optional year) { + public GetLibraryItemsMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -912,7 +864,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withTagline(Optional tagline) { + public GetLibraryItemsMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -924,7 +876,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withThumb(Optional thumb) { + public GetLibraryItemsMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -936,7 +888,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withArt(Optional art) { + public GetLibraryItemsMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -948,7 +900,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withDuration(Optional duration) { + public GetLibraryItemsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -960,7 +912,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetLibraryItemsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -972,7 +924,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withAddedAt(Optional addedAt) { + public GetLibraryItemsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -984,7 +936,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withUpdatedAt(Optional updatedAt) { + public GetLibraryItemsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -996,7 +948,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetLibraryItemsMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1008,7 +960,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withChapterSource(Optional chapterSource) { + public GetLibraryItemsMetadata withChapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -1020,7 +972,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { + public GetLibraryItemsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -1032,7 +984,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withRatingImage(Optional ratingImage) { + public GetLibraryItemsMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; @@ -1044,7 +996,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { + public GetLibraryItemsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -1056,7 +1008,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentGuid(Optional grandparentGuid) { + public GetLibraryItemsMetadata withGrandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -1068,7 +1020,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentKey(Optional grandparentKey) { + public GetLibraryItemsMetadata withGrandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -1080,7 +1032,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentTitle(Optional grandparentTitle) { + public GetLibraryItemsMetadata withGrandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -1092,7 +1044,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentThumb(Optional grandparentThumb) { + public GetLibraryItemsMetadata withGrandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -1104,7 +1056,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentArt(Optional grandparentArt) { + public GetLibraryItemsMetadata withGrandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -1116,79 +1068,79 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withGrandparentTheme(Optional grandparentTheme) { + public GetLibraryItemsMetadata withGrandparentTheme(Optional grandparentTheme) { Utils.checkNotNull(grandparentTheme, "grandparentTheme"); this.grandparentTheme = grandparentTheme; return this; } - public GetLibraryItemsMetadata withMedia(java.util.List media) { + public GetLibraryItemsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetLibraryItemsMetadata withMedia(Optional> media) { + public GetLibraryItemsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetLibraryItemsMetadata withGenre(java.util.List genre) { + public GetLibraryItemsMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetLibraryItemsMetadata withGenre(Optional> genre) { + public GetLibraryItemsMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetLibraryItemsMetadata withCountry(java.util.List country) { + public GetLibraryItemsMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetLibraryItemsMetadata withCountry(Optional> country) { + public GetLibraryItemsMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetLibraryItemsMetadata withDirector(java.util.List director) { + public GetLibraryItemsMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetLibraryItemsMetadata withDirector(Optional> director) { + public GetLibraryItemsMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetLibraryItemsMetadata withWriter(java.util.List writer) { + public GetLibraryItemsMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetLibraryItemsMetadata withWriter(Optional> writer) { + public GetLibraryItemsMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public GetLibraryItemsMetadata withRole(java.util.List role) { + public GetLibraryItemsMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetLibraryItemsMetadata withRole(Optional> role) { + public GetLibraryItemsMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -1200,7 +1152,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withTitleSort(Optional titleSort) { + public GetLibraryItemsMetadata withTitleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -1212,7 +1164,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withViewCount(Optional viewCount) { + public GetLibraryItemsMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -1224,7 +1176,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withLastViewedAt(Optional lastViewedAt) { + public GetLibraryItemsMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -1236,7 +1188,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withOriginalTitle(Optional originalTitle) { + public GetLibraryItemsMetadata withOriginalTitle(Optional originalTitle) { Utils.checkNotNull(originalTitle, "originalTitle"); this.originalTitle = originalTitle; return this; @@ -1248,7 +1200,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withViewOffset(Optional viewOffset) { + public GetLibraryItemsMetadata withViewOffset(Optional viewOffset) { Utils.checkNotNull(viewOffset, "viewOffset"); this.viewOffset = viewOffset; return this; @@ -1260,7 +1212,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withSkipCount(Optional skipCount) { + public GetLibraryItemsMetadata withSkipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -1272,7 +1224,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withIndex(Optional index) { + public GetLibraryItemsMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1284,7 +1236,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withTheme(Optional theme) { + public GetLibraryItemsMetadata withTheme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -1296,7 +1248,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withLeafCount(Optional leafCount) { + public GetLibraryItemsMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -1308,7 +1260,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withViewedLeafCount(Optional viewedLeafCount) { + public GetLibraryItemsMetadata withViewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -1320,7 +1272,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withChildCount(Optional childCount) { + public GetLibraryItemsMetadata withChildCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -1332,7 +1284,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { + public GetLibraryItemsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); this.hasPremiumExtras = hasPremiumExtras; return this; @@ -1344,7 +1296,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public GetLibraryItemsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; @@ -1356,7 +1308,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentRatingKey(Optional parentRatingKey) { + public GetLibraryItemsMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -1368,7 +1320,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentGuid(Optional parentGuid) { + public GetLibraryItemsMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -1380,7 +1332,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentStudio(Optional parentStudio) { + public GetLibraryItemsMetadata withParentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -1392,7 +1344,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentKey(Optional parentKey) { + public GetLibraryItemsMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -1404,7 +1356,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentTitle(Optional parentTitle) { + public GetLibraryItemsMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -1416,7 +1368,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentIndex(Optional parentIndex) { + public GetLibraryItemsMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -1428,7 +1380,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentYear(Optional parentYear) { + public GetLibraryItemsMetadata withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -1440,7 +1392,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentThumb(Optional parentThumb) { + public GetLibraryItemsMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -1452,7 +1404,7 @@ public class GetLibraryItemsMetadata { return this; } - public GetLibraryItemsMetadata withParentTheme(Optional parentTheme) { + public GetLibraryItemsMetadata withParentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; @@ -1468,68 +1420,68 @@ public class GetLibraryItemsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.chapterSource, other.chapterSource) && + Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && + Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && + Objects.deepEquals(this.grandparentKey, other.grandparentKey) && + Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && + Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && + Objects.deepEquals(this.grandparentArt, other.grandparentArt) && + Objects.deepEquals(this.grandparentTheme, other.grandparentTheme) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.titleSort, other.titleSort) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.originalTitle, other.originalTitle) && + Objects.deepEquals(this.viewOffset, other.viewOffset) && + Objects.deepEquals(this.skipCount, other.skipCount) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.theme, other.theme) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && + Objects.deepEquals(this.childCount, other.childCount) && + Objects.deepEquals(this.hasPremiumExtras, other.hasPremiumExtras) && + Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && + Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && + Objects.deepEquals(this.parentGuid, other.parentGuid) && + Objects.deepEquals(this.parentStudio, other.parentStudio) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.parentYear, other.parentYear) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.parentTheme, other.parentTheme); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -1653,119 +1605,119 @@ public class GetLibraryItemsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional chapterSource = Optional.empty(); + private Optional chapterSource = Optional.empty(); - private Optional primaryExtraKey = Optional.empty(); + private Optional primaryExtraKey = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional grandparentRatingKey = Optional.empty(); + private Optional grandparentRatingKey = Optional.empty(); - private Optional grandparentGuid = Optional.empty(); + private Optional grandparentGuid = Optional.empty(); - private Optional grandparentKey = Optional.empty(); + private Optional grandparentKey = Optional.empty(); - private Optional grandparentTitle = Optional.empty(); + private Optional grandparentTitle = Optional.empty(); - private Optional grandparentThumb = Optional.empty(); + private Optional grandparentThumb = Optional.empty(); - private Optional grandparentArt = Optional.empty(); + private Optional grandparentArt = Optional.empty(); - private Optional grandparentTheme = Optional.empty(); + private Optional grandparentTheme = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); - private Optional titleSort = Optional.empty(); + private Optional titleSort = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional originalTitle = Optional.empty(); + private Optional originalTitle = Optional.empty(); - private Optional viewOffset = Optional.empty(); + private Optional viewOffset = Optional.empty(); - private Optional skipCount = Optional.empty(); + private Optional skipCount = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional theme = Optional.empty(); + private Optional theme = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional viewedLeafCount = Optional.empty(); + private Optional viewedLeafCount = Optional.empty(); - private Optional childCount = Optional.empty(); + private Optional childCount = Optional.empty(); - private Optional hasPremiumExtras = Optional.empty(); + private Optional hasPremiumExtras = Optional.empty(); - private Optional hasPremiumPrimaryExtra = Optional.empty(); + private Optional hasPremiumPrimaryExtra = Optional.empty(); - private Optional parentRatingKey = Optional.empty(); + private Optional parentRatingKey = Optional.empty(); - private Optional parentGuid = Optional.empty(); + private Optional parentGuid = Optional.empty(); - private Optional parentStudio = Optional.empty(); + private Optional parentStudio = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional parentYear = Optional.empty(); + private Optional parentYear = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional parentTheme = Optional.empty(); + private Optional parentTheme = Optional.empty(); private Builder() { // force use of static builder() method @@ -1777,7 +1729,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1789,7 +1741,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1801,7 +1753,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1813,7 +1765,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1825,7 +1777,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1837,7 +1789,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1849,7 +1801,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1861,7 +1813,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1873,7 +1825,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1885,7 +1837,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1897,7 +1849,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1909,7 +1861,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1921,7 +1873,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1933,7 +1885,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1945,7 +1897,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1957,7 +1909,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1969,7 +1921,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1981,7 +1933,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1993,7 +1945,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -2005,7 +1957,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder chapterSource(Optional chapterSource) { + public Builder chapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -2017,7 +1969,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder primaryExtraKey(Optional primaryExtraKey) { + public Builder primaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -2029,7 +1981,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; @@ -2041,7 +1993,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentRatingKey(Optional grandparentRatingKey) { + public Builder grandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -2053,7 +2005,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentGuid(Optional grandparentGuid) { + public Builder grandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -2065,7 +2017,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentKey(Optional grandparentKey) { + public Builder grandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -2077,7 +2029,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentTitle(Optional grandparentTitle) { + public Builder grandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -2089,7 +2041,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentThumb(Optional grandparentThumb) { + public Builder grandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -2101,7 +2053,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentArt(Optional grandparentArt) { + public Builder grandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -2113,79 +2065,79 @@ public class GetLibraryItemsMetadata { return this; } - public Builder grandparentTheme(Optional grandparentTheme) { + public Builder grandparentTheme(Optional grandparentTheme) { Utils.checkNotNull(grandparentTheme, "grandparentTheme"); this.grandparentTheme = grandparentTheme; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -2197,7 +2149,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder titleSort(Optional titleSort) { + public Builder titleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -2209,7 +2161,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -2221,7 +2173,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -2233,7 +2185,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder originalTitle(Optional originalTitle) { + public Builder originalTitle(Optional originalTitle) { Utils.checkNotNull(originalTitle, "originalTitle"); this.originalTitle = originalTitle; return this; @@ -2245,7 +2197,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder viewOffset(Optional viewOffset) { + public Builder viewOffset(Optional viewOffset) { Utils.checkNotNull(viewOffset, "viewOffset"); this.viewOffset = viewOffset; return this; @@ -2257,7 +2209,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder skipCount(Optional skipCount) { + public Builder skipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -2269,7 +2221,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -2281,7 +2233,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder theme(Optional theme) { + public Builder theme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -2293,7 +2245,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -2305,7 +2257,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder viewedLeafCount(Optional viewedLeafCount) { + public Builder viewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -2317,7 +2269,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder childCount(Optional childCount) { + public Builder childCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -2329,7 +2281,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder hasPremiumExtras(Optional hasPremiumExtras) { + public Builder hasPremiumExtras(Optional hasPremiumExtras) { Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); this.hasPremiumExtras = hasPremiumExtras; return this; @@ -2341,7 +2293,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; @@ -2353,7 +2305,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentRatingKey(Optional parentRatingKey) { + public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -2365,7 +2317,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentGuid(Optional parentGuid) { + public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -2377,7 +2329,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentStudio(Optional parentStudio) { + public Builder parentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -2389,7 +2341,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -2401,7 +2353,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -2413,7 +2365,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -2425,7 +2377,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentYear(Optional parentYear) { + public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -2437,7 +2389,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -2449,7 +2401,7 @@ public class GetLibraryItemsMetadata { return this; } - public Builder parentTheme(Optional parentTheme) { + public Builder parentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java index 3030623f..0f77640b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java @@ -1,62 +1,63 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional 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) { + @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"); @@ -77,46 +78,39 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } public final static Builder builder() { @@ -129,7 +123,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withId(Optional id) { + public GetLibraryItemsPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -141,7 +135,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withKey(Optional key) { + public GetLibraryItemsPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -153,7 +147,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withDuration(Optional duration) { + public GetLibraryItemsPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -165,7 +159,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withFile(Optional file) { + public GetLibraryItemsPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -177,7 +171,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withSize(Optional size) { + public GetLibraryItemsPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -189,7 +183,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withContainer(Optional container) { + public GetLibraryItemsPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -201,7 +195,7 @@ public class GetLibraryItemsPart { return this; } - public GetLibraryItemsPart withVideoProfile(Optional videoProfile) { + public GetLibraryItemsPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; @@ -217,18 +211,18 @@ public class GetLibraryItemsPart { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoProfile, other.videoProfile); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -252,19 +246,19 @@ public class GetLibraryItemsPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +270,7 @@ public class GetLibraryItemsPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -288,7 +282,7 @@ public class GetLibraryItemsPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -300,7 +294,7 @@ public class GetLibraryItemsPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -312,7 +306,7 @@ public class GetLibraryItemsPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -324,7 +318,7 @@ public class GetLibraryItemsPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -336,7 +330,7 @@ public class GetLibraryItemsPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -348,7 +342,7 @@ public class GetLibraryItemsPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java new file mode 100644 index 00000000..d88c7ac9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java @@ -0,0 +1,530 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class GetLibraryItemsRequest { + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey") + private int sectionKey; + + /** + * 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; + + /** + * Adds the Meta object to the response + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta") + private Optional includeMeta; + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + private Type type; + + /** + * 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. + * By default this is 0 + * + */ + @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. + * By default this is 50 + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size") + private Optional xPlexContainerSize; + + @JsonCreator + public GetLibraryItemsRequest( + int sectionKey, + Tag tag, + Optional includeGuids, + Optional includeMeta, + Type type, + Optional xPlexContainerStart, + Optional xPlexContainerSize) { + Utils.checkNotNull(sectionKey, "sectionKey"); + Utils.checkNotNull(tag, "tag"); + Utils.checkNotNull(includeGuids, "includeGuids"); + Utils.checkNotNull(includeMeta, "includeMeta"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.sectionKey = sectionKey; + this.tag = tag; + this.includeGuids = includeGuids; + this.includeMeta = includeMeta; + this.type = type; + this.xPlexContainerStart = xPlexContainerStart; + this.xPlexContainerSize = xPlexContainerSize; + } + + public GetLibraryItemsRequest( + int sectionKey, + Tag tag, + Type type) { + this(sectionKey, tag, Optional.empty(), Optional.empty(), type, Optional.empty(), Optional.empty()); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @JsonIgnore + public int sectionKey() { + return sectionKey; + } + + /** + * 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; + } + + /** + * Adds the Meta object to the response + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional includeMeta() { + return (Optional) includeMeta; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + @JsonIgnore + public Type type() { + return type; + } + + /** + * 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. + * By default this is 0 + * + */ + @JsonIgnore + public Optional xPlexContainerStart() { + return 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. + * By default this is 50 + * + */ + @JsonIgnore + public Optional xPlexContainerSize() { + return xPlexContainerSize; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public GetLibraryItemsRequest withSectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + 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(IncludeGuids 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; + } + + /** + * Adds the Meta object to the response + * + */ + public GetLibraryItemsRequest withIncludeMeta(IncludeMeta includeMeta) { + Utils.checkNotNull(includeMeta, "includeMeta"); + this.includeMeta = Optional.ofNullable(includeMeta); + return this; + } + + /** + * Adds the Meta object to the response + * + */ + public GetLibraryItemsRequest withIncludeMeta(Optional includeMeta) { + Utils.checkNotNull(includeMeta, "includeMeta"); + this.includeMeta = includeMeta; + return this; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + public GetLibraryItemsRequest withType(Type type) { + Utils.checkNotNull(type, "type"); + this.type = type; + 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. + * By default this is 0 + * + */ + public GetLibraryItemsRequest 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. + * By default this is 0 + * + */ + public GetLibraryItemsRequest 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. + * By default this is 50 + * + */ + public GetLibraryItemsRequest 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. + * By default this is 50 + * + */ + public GetLibraryItemsRequest 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; + } + GetLibraryItemsRequest other = (GetLibraryItemsRequest) o; + return + Objects.deepEquals(this.sectionKey, other.sectionKey) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.includeGuids, other.includeGuids) && + Objects.deepEquals(this.includeMeta, other.includeMeta) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) && + Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize); + } + + @Override + public int hashCode() { + return Objects.hash( + sectionKey, + tag, + includeGuids, + includeMeta, + type, + xPlexContainerStart, + xPlexContainerSize); + } + + @Override + public String toString() { + return Utils.toString(GetLibraryItemsRequest.class, + "sectionKey", sectionKey, + "tag", tag, + "includeGuids", includeGuids, + "includeMeta", includeMeta, + "type", type, + "xPlexContainerStart", xPlexContainerStart, + "xPlexContainerSize", xPlexContainerSize); + } + + public final static class Builder { + + private Integer sectionKey; + + private Tag tag; + + private Optional includeGuids = Optional.empty(); + + private Optional includeMeta = Optional.empty(); + + private Type type; + + private Optional xPlexContainerStart; + + private Optional xPlexContainerSize; + + private Builder() { + // force use of static builder() method + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public Builder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + 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(IncludeGuids 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; + } + + /** + * Adds the Meta object to the response + * + */ + public Builder includeMeta(IncludeMeta includeMeta) { + Utils.checkNotNull(includeMeta, "includeMeta"); + this.includeMeta = Optional.ofNullable(includeMeta); + return this; + } + + /** + * Adds the Meta object to the response + * + */ + public Builder includeMeta(Optional includeMeta) { + Utils.checkNotNull(includeMeta, "includeMeta"); + this.includeMeta = includeMeta; + return this; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + public Builder type(Type type) { + Utils.checkNotNull(type, "type"); + this.type = type; + 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. + * By default this is 0 + * + */ + 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. + * By default this is 0 + * + */ + 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. + * By default this is 50 + * + */ + 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. + * By default this is 50 + * + */ + public Builder xPlexContainerSize(Optional xPlexContainerSize) { + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.xPlexContainerSize = xPlexContainerSize; + return this; + } + + public GetLibraryItemsRequest build() { + if (xPlexContainerStart == null) { + xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value(); + } + if (xPlexContainerSize == null) { + xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); + } return new GetLibraryItemsRequest( + sectionKey, + tag, + includeGuids, + includeMeta, + type, + xPlexContainerStart, + xPlexContainerSize); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerStart = + new LazySingletonValue<>( + "X-Plex-Container-Start", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerSize = + new LazySingletonValue<>( + "X-Plex-Container-Size", + "50", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java new file mode 100644 index 00000000..866ca99a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class GetLibraryItemsRequestBuilder { + + private GetLibraryItemsRequest request; + private final SDKMethodInterfaces.MethodCallGetLibraryItems sdk; + + public GetLibraryItemsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryItems sdk) { + this.sdk = sdk; + } + + public GetLibraryItemsRequestBuilder request(dev.plexapi.sdk.models.operations.GetLibraryItemsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetLibraryItemsResponse call() throws Exception { + + return sdk.getLibraryItems( + request); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java index b02ae3d5..de5ad70c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibraryItemsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetLibraryItemsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetLibraryItemsResponse implements lukehagar.plexapi.plexapi.utils. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java index c71bfc4e..3c226180 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetLibraryItemsResponseBody - The contents of the library by section and tag */ @@ -70,12 +70,12 @@ public class GetLibraryItemsResponseBody { } GetLibraryItemsResponseBody other = (GetLibraryItemsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java index 0b4224e5..78106ba4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryItemsRole( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryItemsRole { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryItemsRole { return this; } - public GetLibraryItemsRole withTag(Optional tag) { + public GetLibraryItemsRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryItemsRole { } GetLibraryItemsRole other = (GetLibraryItemsRole) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryItemsRole { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryItemsRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java index e1f15e62..0f808e77 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetLibraryItemsWriter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetLibraryItemsWriter( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetLibraryItemsWriter { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetLibraryItemsWriter { return this; } - public GetLibraryItemsWriter withTag(Optional tag) { + public GetLibraryItemsWriter withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetLibraryItemsWriter { } GetLibraryItemsWriter other = (GetLibraryItemsWriter) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetLibraryItemsWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetLibraryItemsWriter { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java new file mode 100644 index 00000000..d8785b74 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java @@ -0,0 +1,660 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetMediaProvidersDirectory { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hubKey") + private Optional hubKey; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + private Optional title; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agent") + private Optional agent; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("language") + private Optional language; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("refreshing") + private Optional refreshing; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scanner") + private Optional scanner; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("uuid") + private Optional uuid; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + private Optional key; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional type; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subtype") + private Optional subtype; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + private Optional updatedAt; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scannedAt") + private Optional scannedAt; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Pivot") + private Optional> pivot; + + @JsonCreator + public GetMediaProvidersDirectory( + @JsonProperty("hubKey") Optional hubKey, + @JsonProperty("title") Optional title, + @JsonProperty("agent") Optional agent, + @JsonProperty("language") Optional language, + @JsonProperty("refreshing") Optional refreshing, + @JsonProperty("scanner") Optional scanner, + @JsonProperty("uuid") Optional uuid, + @JsonProperty("id") Optional id, + @JsonProperty("key") Optional key, + @JsonProperty("type") Optional type, + @JsonProperty("subtype") Optional subtype, + @JsonProperty("updatedAt") Optional updatedAt, + @JsonProperty("scannedAt") Optional scannedAt, + @JsonProperty("Pivot") Optional> pivot) { + Utils.checkNotNull(hubKey, "hubKey"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(agent, "agent"); + Utils.checkNotNull(language, "language"); + Utils.checkNotNull(refreshing, "refreshing"); + Utils.checkNotNull(scanner, "scanner"); + Utils.checkNotNull(uuid, "uuid"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(subtype, "subtype"); + Utils.checkNotNull(updatedAt, "updatedAt"); + Utils.checkNotNull(scannedAt, "scannedAt"); + Utils.checkNotNull(pivot, "pivot"); + this.hubKey = hubKey; + this.title = title; + this.agent = agent; + this.language = language; + this.refreshing = refreshing; + this.scanner = scanner; + this.uuid = uuid; + this.id = id; + this.key = key; + this.type = type; + this.subtype = subtype; + this.updatedAt = updatedAt; + this.scannedAt = scannedAt; + this.pivot = pivot; + } + + public GetMediaProvidersDirectory() { + 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()); + } + + @JsonIgnore + public Optional hubKey() { + return hubKey; + } + + @JsonIgnore + public Optional title() { + return title; + } + + @JsonIgnore + public Optional agent() { + return agent; + } + + @JsonIgnore + public Optional language() { + return language; + } + + @JsonIgnore + public Optional refreshing() { + return refreshing; + } + + @JsonIgnore + public Optional scanner() { + return scanner; + } + + @JsonIgnore + public Optional uuid() { + return uuid; + } + + @JsonIgnore + public Optional id() { + return id; + } + + @JsonIgnore + public Optional key() { + return key; + } + + @JsonIgnore + public Optional type() { + return type; + } + + @JsonIgnore + public Optional subtype() { + return subtype; + } + + @JsonIgnore + public Optional updatedAt() { + return updatedAt; + } + + @JsonIgnore + public Optional scannedAt() { + return scannedAt; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> pivot() { + return (Optional>) pivot; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMediaProvidersDirectory withHubKey(String hubKey) { + Utils.checkNotNull(hubKey, "hubKey"); + this.hubKey = Optional.ofNullable(hubKey); + return this; + } + + public GetMediaProvidersDirectory withHubKey(Optional hubKey) { + Utils.checkNotNull(hubKey, "hubKey"); + this.hubKey = hubKey; + return this; + } + + public GetMediaProvidersDirectory withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = Optional.ofNullable(title); + return this; + } + + public GetMediaProvidersDirectory withTitle(Optional title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + public GetMediaProvidersDirectory withAgent(String agent) { + Utils.checkNotNull(agent, "agent"); + this.agent = Optional.ofNullable(agent); + return this; + } + + public GetMediaProvidersDirectory withAgent(Optional agent) { + Utils.checkNotNull(agent, "agent"); + this.agent = agent; + return this; + } + + public GetMediaProvidersDirectory withLanguage(String language) { + Utils.checkNotNull(language, "language"); + this.language = Optional.ofNullable(language); + return this; + } + + public GetMediaProvidersDirectory withLanguage(Optional language) { + Utils.checkNotNull(language, "language"); + this.language = language; + return this; + } + + public GetMediaProvidersDirectory withRefreshing(boolean refreshing) { + Utils.checkNotNull(refreshing, "refreshing"); + this.refreshing = Optional.ofNullable(refreshing); + return this; + } + + public GetMediaProvidersDirectory withRefreshing(Optional refreshing) { + Utils.checkNotNull(refreshing, "refreshing"); + this.refreshing = refreshing; + return this; + } + + public GetMediaProvidersDirectory withScanner(String scanner) { + Utils.checkNotNull(scanner, "scanner"); + this.scanner = Optional.ofNullable(scanner); + return this; + } + + public GetMediaProvidersDirectory withScanner(Optional scanner) { + Utils.checkNotNull(scanner, "scanner"); + this.scanner = scanner; + return this; + } + + public GetMediaProvidersDirectory withUuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = Optional.ofNullable(uuid); + return this; + } + + public GetMediaProvidersDirectory withUuid(Optional uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + public GetMediaProvidersDirectory withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public GetMediaProvidersDirectory withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public GetMediaProvidersDirectory withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + public GetMediaProvidersDirectory withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public GetMediaProvidersDirectory withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + public GetMediaProvidersDirectory withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public GetMediaProvidersDirectory withSubtype(String subtype) { + Utils.checkNotNull(subtype, "subtype"); + this.subtype = Optional.ofNullable(subtype); + return this; + } + + public GetMediaProvidersDirectory withSubtype(Optional subtype) { + Utils.checkNotNull(subtype, "subtype"); + this.subtype = subtype; + return this; + } + + public GetMediaProvidersDirectory withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public GetMediaProvidersDirectory withUpdatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public GetMediaProvidersDirectory withScannedAt(long scannedAt) { + Utils.checkNotNull(scannedAt, "scannedAt"); + this.scannedAt = Optional.ofNullable(scannedAt); + return this; + } + + public GetMediaProvidersDirectory withScannedAt(Optional scannedAt) { + Utils.checkNotNull(scannedAt, "scannedAt"); + this.scannedAt = scannedAt; + return this; + } + + public GetMediaProvidersDirectory withPivot(List pivot) { + Utils.checkNotNull(pivot, "pivot"); + this.pivot = Optional.ofNullable(pivot); + return this; + } + + public GetMediaProvidersDirectory withPivot(Optional> pivot) { + Utils.checkNotNull(pivot, "pivot"); + this.pivot = pivot; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetMediaProvidersDirectory other = (GetMediaProvidersDirectory) o; + return + Objects.deepEquals(this.hubKey, other.hubKey) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.agent, other.agent) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.refreshing, other.refreshing) && + Objects.deepEquals(this.scanner, other.scanner) && + Objects.deepEquals(this.uuid, other.uuid) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.subtype, other.subtype) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.scannedAt, other.scannedAt) && + Objects.deepEquals(this.pivot, other.pivot); + } + + @Override + public int hashCode() { + return Objects.hash( + hubKey, + title, + agent, + language, + refreshing, + scanner, + uuid, + id, + key, + type, + subtype, + updatedAt, + scannedAt, + pivot); + } + + @Override + public String toString() { + return Utils.toString(GetMediaProvidersDirectory.class, + "hubKey", hubKey, + "title", title, + "agent", agent, + "language", language, + "refreshing", refreshing, + "scanner", scanner, + "uuid", uuid, + "id", id, + "key", key, + "type", type, + "subtype", subtype, + "updatedAt", updatedAt, + "scannedAt", scannedAt, + "pivot", pivot); + } + + public final static class Builder { + + private Optional hubKey = Optional.empty(); + + private Optional title = Optional.empty(); + + private Optional agent = Optional.empty(); + + private Optional language = Optional.empty(); + + private Optional refreshing = Optional.empty(); + + private Optional scanner = Optional.empty(); + + private Optional uuid = Optional.empty(); + + private Optional id = Optional.empty(); + + private Optional key = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional subtype = Optional.empty(); + + private Optional updatedAt = Optional.empty(); + + private Optional scannedAt = Optional.empty(); + + private Optional> pivot = 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 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 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 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 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 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 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 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 Builder updatedAt(long 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 scannedAt(long 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 pivot(List pivot) { + Utils.checkNotNull(pivot, "pivot"); + this.pivot = Optional.ofNullable(pivot); + return this; + } + + public Builder pivot(Optional> pivot) { + Utils.checkNotNull(pivot, "pivot"); + this.pivot = pivot; + return this; + } + + public GetMediaProvidersDirectory build() { + return new GetMediaProvidersDirectory( + hubKey, + title, + agent, + language, + refreshing, + scanner, + uuid, + id, + key, + type, + subtype, + updatedAt, + scannedAt, + pivot); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java new file mode 100644 index 00000000..e3a35a0a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java @@ -0,0 +1,1920 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetMediaProvidersMediaContainer { + + @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("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("livetv") + private Optional livetv; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("machineIdentifier") + private Optional machineIdentifier; + + @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("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("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("MediaProvider") + private Optional> mediaProvider; + + @JsonCreator + public GetMediaProvidersMediaContainer( + @JsonProperty("size") Optional size, + @JsonProperty("allowCameraUpload") Optional allowCameraUpload, + @JsonProperty("allowChannelAccess") Optional allowChannelAccess, + @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("livetv") Optional livetv, + @JsonProperty("machineIdentifier") Optional machineIdentifier, + @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("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("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("MediaProvider") Optional> mediaProvider) { + Utils.checkNotNull(size, "size"); + Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); + Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); + 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(livetv, "livetv"); + Utils.checkNotNull(machineIdentifier, "machineIdentifier"); + 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(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(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(mediaProvider, "mediaProvider"); + this.size = size; + this.allowCameraUpload = allowCameraUpload; + this.allowChannelAccess = allowChannelAccess; + 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.livetv = livetv; + this.machineIdentifier = machineIdentifier; + 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.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.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.mediaProvider = mediaProvider; + } + + public GetMediaProvidersMediaContainer() { + 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()); + } + + @JsonIgnore + public Optional size() { + return size; + } + + @JsonIgnore + public Optional allowCameraUpload() { + return allowCameraUpload; + } + + @JsonIgnore + public Optional allowChannelAccess() { + return allowChannelAccess; + } + + @JsonIgnore + public Optional allowSharing() { + return allowSharing; + } + + @JsonIgnore + public Optional allowSync() { + return allowSync; + } + + @JsonIgnore + public Optional allowTuners() { + return allowTuners; + } + + @JsonIgnore + public Optional backgroundProcessing() { + return backgroundProcessing; + } + + @JsonIgnore + public Optional certificate() { + return certificate; + } + + @JsonIgnore + public Optional companionProxy() { + return companionProxy; + } + + @JsonIgnore + public Optional countryCode() { + return countryCode; + } + + @JsonIgnore + public Optional diagnostics() { + return diagnostics; + } + + @JsonIgnore + public Optional eventStream() { + return eventStream; + } + + @JsonIgnore + public Optional friendlyName() { + return friendlyName; + } + + @JsonIgnore + public Optional livetv() { + return livetv; + } + + @JsonIgnore + public Optional machineIdentifier() { + return machineIdentifier; + } + + @JsonIgnore + public Optional musicAnalysis() { + return musicAnalysis; + } + + @JsonIgnore + public Optional myPlex() { + return myPlex; + } + + @JsonIgnore + public Optional myPlexMappingState() { + return myPlexMappingState; + } + + @JsonIgnore + public Optional myPlexSigninState() { + return myPlexSigninState; + } + + @JsonIgnore + public Optional myPlexSubscription() { + return myPlexSubscription; + } + + @JsonIgnore + public Optional myPlexUsername() { + return myPlexUsername; + } + + @JsonIgnore + public Optional offlineTranscode() { + return offlineTranscode; + } + + @JsonIgnore + public Optional ownerFeatures() { + return ownerFeatures; + } + + @JsonIgnore + public Optional platform() { + return platform; + } + + @JsonIgnore + public Optional platformVersion() { + return platformVersion; + } + + @JsonIgnore + public Optional pluginHost() { + return pluginHost; + } + + @JsonIgnore + public Optional pushNotifications() { + return pushNotifications; + } + + @JsonIgnore + public Optional readOnlyLibraries() { + return readOnlyLibraries; + } + + @JsonIgnore + public Optional streamingBrainABRVersion() { + return streamingBrainABRVersion; + } + + @JsonIgnore + public Optional streamingBrainVersion() { + return streamingBrainVersion; + } + + @JsonIgnore + public Optional sync() { + return sync; + } + + @JsonIgnore + public Optional transcoderActiveVideoSessions() { + return transcoderActiveVideoSessions; + } + + @JsonIgnore + public Optional transcoderAudio() { + return transcoderAudio; + } + + @JsonIgnore + public Optional transcoderLyrics() { + return transcoderLyrics; + } + + @JsonIgnore + public Optional transcoderSubtitles() { + return transcoderSubtitles; + } + + @JsonIgnore + public Optional transcoderVideo() { + return transcoderVideo; + } + + @JsonIgnore + public Optional transcoderVideoBitrates() { + return transcoderVideoBitrates; + } + + @JsonIgnore + public Optional transcoderVideoQualities() { + return transcoderVideoQualities; + } + + @JsonIgnore + public Optional transcoderVideoResolutions() { + return transcoderVideoResolutions; + } + + @JsonIgnore + public Optional updatedAt() { + return updatedAt; + } + + @JsonIgnore + public Optional updater() { + return updater; + } + + @JsonIgnore + public Optional version() { + return version; + } + + @JsonIgnore + public Optional voiceSearch() { + return voiceSearch; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> mediaProvider() { + return (Optional>) mediaProvider; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMediaProvidersMediaContainer withSize(long size) { + Utils.checkNotNull(size, "size"); + this.size = Optional.ofNullable(size); + return this; + } + + public GetMediaProvidersMediaContainer withSize(Optional size) { + Utils.checkNotNull(size, "size"); + this.size = size; + return this; + } + + public GetMediaProvidersMediaContainer withAllowCameraUpload(boolean allowCameraUpload) { + Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); + this.allowCameraUpload = Optional.ofNullable(allowCameraUpload); + return this; + } + + public GetMediaProvidersMediaContainer withAllowCameraUpload(Optional allowCameraUpload) { + Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); + this.allowCameraUpload = allowCameraUpload; + return this; + } + + public GetMediaProvidersMediaContainer withAllowChannelAccess(boolean allowChannelAccess) { + Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); + this.allowChannelAccess = Optional.ofNullable(allowChannelAccess); + return this; + } + + public GetMediaProvidersMediaContainer withAllowChannelAccess(Optional allowChannelAccess) { + Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); + this.allowChannelAccess = allowChannelAccess; + return this; + } + + public GetMediaProvidersMediaContainer withAllowSharing(boolean allowSharing) { + Utils.checkNotNull(allowSharing, "allowSharing"); + this.allowSharing = Optional.ofNullable(allowSharing); + return this; + } + + public GetMediaProvidersMediaContainer withAllowSharing(Optional allowSharing) { + Utils.checkNotNull(allowSharing, "allowSharing"); + this.allowSharing = allowSharing; + return this; + } + + public GetMediaProvidersMediaContainer withAllowSync(boolean allowSync) { + Utils.checkNotNull(allowSync, "allowSync"); + this.allowSync = Optional.ofNullable(allowSync); + return this; + } + + public GetMediaProvidersMediaContainer withAllowSync(Optional allowSync) { + Utils.checkNotNull(allowSync, "allowSync"); + this.allowSync = allowSync; + return this; + } + + public GetMediaProvidersMediaContainer withAllowTuners(boolean allowTuners) { + Utils.checkNotNull(allowTuners, "allowTuners"); + this.allowTuners = Optional.ofNullable(allowTuners); + return this; + } + + public GetMediaProvidersMediaContainer withAllowTuners(Optional allowTuners) { + Utils.checkNotNull(allowTuners, "allowTuners"); + this.allowTuners = allowTuners; + return this; + } + + public GetMediaProvidersMediaContainer withBackgroundProcessing(boolean backgroundProcessing) { + Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); + this.backgroundProcessing = Optional.ofNullable(backgroundProcessing); + return this; + } + + public GetMediaProvidersMediaContainer withBackgroundProcessing(Optional backgroundProcessing) { + Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); + this.backgroundProcessing = backgroundProcessing; + return this; + } + + public GetMediaProvidersMediaContainer withCertificate(boolean certificate) { + Utils.checkNotNull(certificate, "certificate"); + this.certificate = Optional.ofNullable(certificate); + return this; + } + + public GetMediaProvidersMediaContainer withCertificate(Optional certificate) { + Utils.checkNotNull(certificate, "certificate"); + this.certificate = certificate; + return this; + } + + public GetMediaProvidersMediaContainer withCompanionProxy(boolean companionProxy) { + Utils.checkNotNull(companionProxy, "companionProxy"); + this.companionProxy = Optional.ofNullable(companionProxy); + return this; + } + + public GetMediaProvidersMediaContainer withCompanionProxy(Optional companionProxy) { + Utils.checkNotNull(companionProxy, "companionProxy"); + this.companionProxy = companionProxy; + return this; + } + + public GetMediaProvidersMediaContainer withCountryCode(String countryCode) { + Utils.checkNotNull(countryCode, "countryCode"); + this.countryCode = Optional.ofNullable(countryCode); + return this; + } + + public GetMediaProvidersMediaContainer withCountryCode(Optional countryCode) { + Utils.checkNotNull(countryCode, "countryCode"); + this.countryCode = countryCode; + return this; + } + + public GetMediaProvidersMediaContainer withDiagnostics(String diagnostics) { + Utils.checkNotNull(diagnostics, "diagnostics"); + this.diagnostics = Optional.ofNullable(diagnostics); + return this; + } + + public GetMediaProvidersMediaContainer withDiagnostics(Optional diagnostics) { + Utils.checkNotNull(diagnostics, "diagnostics"); + this.diagnostics = diagnostics; + return this; + } + + public GetMediaProvidersMediaContainer withEventStream(boolean eventStream) { + Utils.checkNotNull(eventStream, "eventStream"); + this.eventStream = Optional.ofNullable(eventStream); + return this; + } + + public GetMediaProvidersMediaContainer withEventStream(Optional eventStream) { + Utils.checkNotNull(eventStream, "eventStream"); + this.eventStream = eventStream; + return this; + } + + public GetMediaProvidersMediaContainer withFriendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = Optional.ofNullable(friendlyName); + return this; + } + + public GetMediaProvidersMediaContainer withFriendlyName(Optional friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + public GetMediaProvidersMediaContainer withLivetv(long livetv) { + Utils.checkNotNull(livetv, "livetv"); + this.livetv = Optional.ofNullable(livetv); + return this; + } + + public GetMediaProvidersMediaContainer withLivetv(Optional livetv) { + Utils.checkNotNull(livetv, "livetv"); + this.livetv = livetv; + return this; + } + + public GetMediaProvidersMediaContainer withMachineIdentifier(String machineIdentifier) { + Utils.checkNotNull(machineIdentifier, "machineIdentifier"); + this.machineIdentifier = Optional.ofNullable(machineIdentifier); + return this; + } + + public GetMediaProvidersMediaContainer withMachineIdentifier(Optional machineIdentifier) { + Utils.checkNotNull(machineIdentifier, "machineIdentifier"); + this.machineIdentifier = machineIdentifier; + return this; + } + + public GetMediaProvidersMediaContainer withMusicAnalysis(long musicAnalysis) { + Utils.checkNotNull(musicAnalysis, "musicAnalysis"); + this.musicAnalysis = Optional.ofNullable(musicAnalysis); + return this; + } + + public GetMediaProvidersMediaContainer withMusicAnalysis(Optional musicAnalysis) { + Utils.checkNotNull(musicAnalysis, "musicAnalysis"); + this.musicAnalysis = musicAnalysis; + return this; + } + + public GetMediaProvidersMediaContainer withMyPlex(boolean myPlex) { + Utils.checkNotNull(myPlex, "myPlex"); + this.myPlex = Optional.ofNullable(myPlex); + return this; + } + + public GetMediaProvidersMediaContainer withMyPlex(Optional myPlex) { + Utils.checkNotNull(myPlex, "myPlex"); + this.myPlex = myPlex; + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexMappingState(String myPlexMappingState) { + Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); + this.myPlexMappingState = Optional.ofNullable(myPlexMappingState); + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexMappingState(Optional myPlexMappingState) { + Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); + this.myPlexMappingState = myPlexMappingState; + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexSigninState(String myPlexSigninState) { + Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); + this.myPlexSigninState = Optional.ofNullable(myPlexSigninState); + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexSigninState(Optional myPlexSigninState) { + Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); + this.myPlexSigninState = myPlexSigninState; + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexSubscription(boolean myPlexSubscription) { + Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); + this.myPlexSubscription = Optional.ofNullable(myPlexSubscription); + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexSubscription(Optional myPlexSubscription) { + Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); + this.myPlexSubscription = myPlexSubscription; + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexUsername(String myPlexUsername) { + Utils.checkNotNull(myPlexUsername, "myPlexUsername"); + this.myPlexUsername = Optional.ofNullable(myPlexUsername); + return this; + } + + public GetMediaProvidersMediaContainer withMyPlexUsername(Optional myPlexUsername) { + Utils.checkNotNull(myPlexUsername, "myPlexUsername"); + this.myPlexUsername = myPlexUsername; + return this; + } + + public GetMediaProvidersMediaContainer withOfflineTranscode(long offlineTranscode) { + Utils.checkNotNull(offlineTranscode, "offlineTranscode"); + this.offlineTranscode = Optional.ofNullable(offlineTranscode); + return this; + } + + public GetMediaProvidersMediaContainer withOfflineTranscode(Optional offlineTranscode) { + Utils.checkNotNull(offlineTranscode, "offlineTranscode"); + this.offlineTranscode = offlineTranscode; + return this; + } + + public GetMediaProvidersMediaContainer withOwnerFeatures(String ownerFeatures) { + Utils.checkNotNull(ownerFeatures, "ownerFeatures"); + this.ownerFeatures = Optional.ofNullable(ownerFeatures); + return this; + } + + public GetMediaProvidersMediaContainer withOwnerFeatures(Optional ownerFeatures) { + Utils.checkNotNull(ownerFeatures, "ownerFeatures"); + this.ownerFeatures = ownerFeatures; + return this; + } + + public GetMediaProvidersMediaContainer withPlatform(String platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = Optional.ofNullable(platform); + return this; + } + + public GetMediaProvidersMediaContainer withPlatform(Optional platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = platform; + return this; + } + + public GetMediaProvidersMediaContainer withPlatformVersion(String platformVersion) { + Utils.checkNotNull(platformVersion, "platformVersion"); + this.platformVersion = Optional.ofNullable(platformVersion); + return this; + } + + public GetMediaProvidersMediaContainer withPlatformVersion(Optional platformVersion) { + Utils.checkNotNull(platformVersion, "platformVersion"); + this.platformVersion = platformVersion; + return this; + } + + public GetMediaProvidersMediaContainer withPluginHost(boolean pluginHost) { + Utils.checkNotNull(pluginHost, "pluginHost"); + this.pluginHost = Optional.ofNullable(pluginHost); + return this; + } + + public GetMediaProvidersMediaContainer withPluginHost(Optional pluginHost) { + Utils.checkNotNull(pluginHost, "pluginHost"); + this.pluginHost = pluginHost; + return this; + } + + public GetMediaProvidersMediaContainer withPushNotifications(boolean pushNotifications) { + Utils.checkNotNull(pushNotifications, "pushNotifications"); + this.pushNotifications = Optional.ofNullable(pushNotifications); + return this; + } + + public GetMediaProvidersMediaContainer withPushNotifications(Optional pushNotifications) { + Utils.checkNotNull(pushNotifications, "pushNotifications"); + this.pushNotifications = pushNotifications; + return this; + } + + public GetMediaProvidersMediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) { + Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); + this.readOnlyLibraries = Optional.ofNullable(readOnlyLibraries); + return this; + } + + public GetMediaProvidersMediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { + Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); + this.readOnlyLibraries = readOnlyLibraries; + return this; + } + + public GetMediaProvidersMediaContainer withStreamingBrainABRVersion(long streamingBrainABRVersion) { + Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); + this.streamingBrainABRVersion = Optional.ofNullable(streamingBrainABRVersion); + return this; + } + + public GetMediaProvidersMediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { + Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); + this.streamingBrainABRVersion = streamingBrainABRVersion; + return this; + } + + public GetMediaProvidersMediaContainer withStreamingBrainVersion(long streamingBrainVersion) { + Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); + this.streamingBrainVersion = Optional.ofNullable(streamingBrainVersion); + return this; + } + + public GetMediaProvidersMediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { + Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); + this.streamingBrainVersion = streamingBrainVersion; + return this; + } + + public GetMediaProvidersMediaContainer withSync(boolean sync) { + Utils.checkNotNull(sync, "sync"); + this.sync = Optional.ofNullable(sync); + return this; + } + + public GetMediaProvidersMediaContainer withSync(Optional sync) { + Utils.checkNotNull(sync, "sync"); + this.sync = sync; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderActiveVideoSessions(long transcoderActiveVideoSessions) { + Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); + this.transcoderActiveVideoSessions = Optional.ofNullable(transcoderActiveVideoSessions); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { + Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); + this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderAudio(boolean transcoderAudio) { + Utils.checkNotNull(transcoderAudio, "transcoderAudio"); + this.transcoderAudio = Optional.ofNullable(transcoderAudio); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderAudio(Optional transcoderAudio) { + Utils.checkNotNull(transcoderAudio, "transcoderAudio"); + this.transcoderAudio = transcoderAudio; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderLyrics(boolean transcoderLyrics) { + Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); + this.transcoderLyrics = Optional.ofNullable(transcoderLyrics); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderLyrics(Optional transcoderLyrics) { + Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); + this.transcoderLyrics = transcoderLyrics; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) { + Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); + this.transcoderSubtitles = Optional.ofNullable(transcoderSubtitles); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { + Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); + this.transcoderSubtitles = transcoderSubtitles; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideo(boolean transcoderVideo) { + Utils.checkNotNull(transcoderVideo, "transcoderVideo"); + this.transcoderVideo = Optional.ofNullable(transcoderVideo); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideo(Optional transcoderVideo) { + Utils.checkNotNull(transcoderVideo, "transcoderVideo"); + this.transcoderVideo = transcoderVideo; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoBitrates(String transcoderVideoBitrates) { + Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); + this.transcoderVideoBitrates = Optional.ofNullable(transcoderVideoBitrates); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { + Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); + this.transcoderVideoBitrates = transcoderVideoBitrates; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) { + Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); + this.transcoderVideoQualities = Optional.ofNullable(transcoderVideoQualities); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { + Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); + this.transcoderVideoQualities = transcoderVideoQualities; + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoResolutions(String transcoderVideoResolutions) { + Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); + this.transcoderVideoResolutions = Optional.ofNullable(transcoderVideoResolutions); + return this; + } + + public GetMediaProvidersMediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { + Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); + this.transcoderVideoResolutions = transcoderVideoResolutions; + return this; + } + + public GetMediaProvidersMediaContainer withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public GetMediaProvidersMediaContainer withUpdatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public GetMediaProvidersMediaContainer withUpdater(boolean updater) { + Utils.checkNotNull(updater, "updater"); + this.updater = Optional.ofNullable(updater); + return this; + } + + public GetMediaProvidersMediaContainer withUpdater(Optional updater) { + Utils.checkNotNull(updater, "updater"); + this.updater = updater; + return this; + } + + public GetMediaProvidersMediaContainer withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public GetMediaProvidersMediaContainer withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public GetMediaProvidersMediaContainer withVoiceSearch(boolean voiceSearch) { + Utils.checkNotNull(voiceSearch, "voiceSearch"); + this.voiceSearch = Optional.ofNullable(voiceSearch); + return this; + } + + public GetMediaProvidersMediaContainer withVoiceSearch(Optional voiceSearch) { + Utils.checkNotNull(voiceSearch, "voiceSearch"); + this.voiceSearch = voiceSearch; + return this; + } + + public GetMediaProvidersMediaContainer withMediaProvider(List mediaProvider) { + Utils.checkNotNull(mediaProvider, "mediaProvider"); + this.mediaProvider = Optional.ofNullable(mediaProvider); + return this; + } + + public GetMediaProvidersMediaContainer withMediaProvider(Optional> mediaProvider) { + Utils.checkNotNull(mediaProvider, "mediaProvider"); + this.mediaProvider = mediaProvider; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetMediaProvidersMediaContainer other = (GetMediaProvidersMediaContainer) o; + return + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowCameraUpload, other.allowCameraUpload) && + Objects.deepEquals(this.allowChannelAccess, other.allowChannelAccess) && + Objects.deepEquals(this.allowSharing, other.allowSharing) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.allowTuners, other.allowTuners) && + Objects.deepEquals(this.backgroundProcessing, other.backgroundProcessing) && + Objects.deepEquals(this.certificate, other.certificate) && + Objects.deepEquals(this.companionProxy, other.companionProxy) && + Objects.deepEquals(this.countryCode, other.countryCode) && + Objects.deepEquals(this.diagnostics, other.diagnostics) && + Objects.deepEquals(this.eventStream, other.eventStream) && + Objects.deepEquals(this.friendlyName, other.friendlyName) && + Objects.deepEquals(this.livetv, other.livetv) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.musicAnalysis, other.musicAnalysis) && + Objects.deepEquals(this.myPlex, other.myPlex) && + Objects.deepEquals(this.myPlexMappingState, other.myPlexMappingState) && + Objects.deepEquals(this.myPlexSigninState, other.myPlexSigninState) && + Objects.deepEquals(this.myPlexSubscription, other.myPlexSubscription) && + Objects.deepEquals(this.myPlexUsername, other.myPlexUsername) && + Objects.deepEquals(this.offlineTranscode, other.offlineTranscode) && + Objects.deepEquals(this.ownerFeatures, other.ownerFeatures) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.platformVersion, other.platformVersion) && + Objects.deepEquals(this.pluginHost, other.pluginHost) && + Objects.deepEquals(this.pushNotifications, other.pushNotifications) && + Objects.deepEquals(this.readOnlyLibraries, other.readOnlyLibraries) && + Objects.deepEquals(this.streamingBrainABRVersion, other.streamingBrainABRVersion) && + Objects.deepEquals(this.streamingBrainVersion, other.streamingBrainVersion) && + Objects.deepEquals(this.sync, other.sync) && + Objects.deepEquals(this.transcoderActiveVideoSessions, other.transcoderActiveVideoSessions) && + Objects.deepEquals(this.transcoderAudio, other.transcoderAudio) && + Objects.deepEquals(this.transcoderLyrics, other.transcoderLyrics) && + Objects.deepEquals(this.transcoderSubtitles, other.transcoderSubtitles) && + Objects.deepEquals(this.transcoderVideo, other.transcoderVideo) && + Objects.deepEquals(this.transcoderVideoBitrates, other.transcoderVideoBitrates) && + Objects.deepEquals(this.transcoderVideoQualities, other.transcoderVideoQualities) && + Objects.deepEquals(this.transcoderVideoResolutions, other.transcoderVideoResolutions) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.updater, other.updater) && + Objects.deepEquals(this.version, other.version) && + Objects.deepEquals(this.voiceSearch, other.voiceSearch) && + Objects.deepEquals(this.mediaProvider, other.mediaProvider); + } + + @Override + public int hashCode() { + return Objects.hash( + size, + allowCameraUpload, + allowChannelAccess, + allowSharing, + allowSync, + allowTuners, + backgroundProcessing, + certificate, + companionProxy, + countryCode, + diagnostics, + eventStream, + friendlyName, + livetv, + machineIdentifier, + musicAnalysis, + myPlex, + myPlexMappingState, + myPlexSigninState, + myPlexSubscription, + myPlexUsername, + offlineTranscode, + ownerFeatures, + platform, + platformVersion, + pluginHost, + pushNotifications, + readOnlyLibraries, + streamingBrainABRVersion, + streamingBrainVersion, + sync, + transcoderActiveVideoSessions, + transcoderAudio, + transcoderLyrics, + transcoderSubtitles, + transcoderVideo, + transcoderVideoBitrates, + transcoderVideoQualities, + transcoderVideoResolutions, + updatedAt, + updater, + version, + voiceSearch, + mediaProvider); + } + + @Override + public String toString() { + return Utils.toString(GetMediaProvidersMediaContainer.class, + "size", size, + "allowCameraUpload", allowCameraUpload, + "allowChannelAccess", allowChannelAccess, + "allowSharing", allowSharing, + "allowSync", allowSync, + "allowTuners", allowTuners, + "backgroundProcessing", backgroundProcessing, + "certificate", certificate, + "companionProxy", companionProxy, + "countryCode", countryCode, + "diagnostics", diagnostics, + "eventStream", eventStream, + "friendlyName", friendlyName, + "livetv", livetv, + "machineIdentifier", machineIdentifier, + "musicAnalysis", musicAnalysis, + "myPlex", myPlex, + "myPlexMappingState", myPlexMappingState, + "myPlexSigninState", myPlexSigninState, + "myPlexSubscription", myPlexSubscription, + "myPlexUsername", myPlexUsername, + "offlineTranscode", offlineTranscode, + "ownerFeatures", ownerFeatures, + "platform", platform, + "platformVersion", platformVersion, + "pluginHost", pluginHost, + "pushNotifications", pushNotifications, + "readOnlyLibraries", readOnlyLibraries, + "streamingBrainABRVersion", streamingBrainABRVersion, + "streamingBrainVersion", streamingBrainVersion, + "sync", sync, + "transcoderActiveVideoSessions", transcoderActiveVideoSessions, + "transcoderAudio", transcoderAudio, + "transcoderLyrics", transcoderLyrics, + "transcoderSubtitles", transcoderSubtitles, + "transcoderVideo", transcoderVideo, + "transcoderVideoBitrates", transcoderVideoBitrates, + "transcoderVideoQualities", transcoderVideoQualities, + "transcoderVideoResolutions", transcoderVideoResolutions, + "updatedAt", updatedAt, + "updater", updater, + "version", version, + "voiceSearch", voiceSearch, + "mediaProvider", mediaProvider); + } + + public final static class Builder { + + private Optional size = Optional.empty(); + + private Optional allowCameraUpload = Optional.empty(); + + private Optional allowChannelAccess = 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 livetv = Optional.empty(); + + private Optional machineIdentifier = 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 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 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> mediaProvider = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + 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 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 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 livetv(long 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 musicAnalysis(long 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(long 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 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(long 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(long 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(long 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 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(long 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 mediaProvider(List mediaProvider) { + Utils.checkNotNull(mediaProvider, "mediaProvider"); + this.mediaProvider = Optional.ofNullable(mediaProvider); + return this; + } + + public Builder mediaProvider(Optional> mediaProvider) { + Utils.checkNotNull(mediaProvider, "mediaProvider"); + this.mediaProvider = mediaProvider; + return this; + } + + public GetMediaProvidersMediaContainer build() { + return new GetMediaProvidersMediaContainer( + size, + allowCameraUpload, + allowChannelAccess, + allowSharing, + allowSync, + allowTuners, + backgroundProcessing, + certificate, + companionProxy, + countryCode, + diagnostics, + eventStream, + friendlyName, + livetv, + machineIdentifier, + musicAnalysis, + myPlex, + myPlexMappingState, + myPlexSigninState, + myPlexSubscription, + myPlexUsername, + offlineTranscode, + ownerFeatures, + platform, + platformVersion, + pluginHost, + pushNotifications, + readOnlyLibraries, + streamingBrainABRVersion, + streamingBrainVersion, + sync, + transcoderActiveVideoSessions, + transcoderAudio, + transcoderLyrics, + transcoderSubtitles, + transcoderVideo, + transcoderVideoBitrates, + transcoderVideoQualities, + transcoderVideoResolutions, + updatedAt, + updater, + version, + voiceSearch, + mediaProvider); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java new file mode 100644 index 00000000..5917f174 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class GetMediaProvidersRequest { + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; + + @JsonCreator + public GetMediaProvidersRequest( + String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Plex Authentication Token + */ + public GetMediaProvidersRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetMediaProvidersRequest other = (GetMediaProvidersRequest) o; + return + Objects.deepEquals(this.xPlexToken, other.xPlexToken); + } + + @Override + public int hashCode() { + return Objects.hash( + xPlexToken); + } + + @Override + public String toString() { + return Utils.toString(GetMediaProvidersRequest.class, + "xPlexToken", xPlexToken); + } + + public final static class Builder { + + private String xPlexToken; + + private Builder() { + // force use of static builder() method + } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetMediaProvidersRequest build() { + return new GetMediaProvidersRequest( + xPlexToken); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java new file mode 100644 index 00000000..9648466a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class GetMediaProvidersRequestBuilder { + + private String xPlexToken; + private final SDKMethodInterfaces.MethodCallGetMediaProviders sdk; + + public GetMediaProvidersRequestBuilder(SDKMethodInterfaces.MethodCallGetMediaProviders sdk) { + this.sdk = sdk; + } + + public GetMediaProvidersRequestBuilder xPlexToken(java.lang.String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetMediaProvidersResponse call() throws Exception { + + return sdk.getMediaProviders( + xPlexToken); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java index 2557104e..a313622b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetMediaProvidersResponse implements Response { /** * HTTP response content type for this operation @@ -34,16 +37,16 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons private HttpResponse rawResponse; /** - * Access Token + * Media providers and their features */ - private Optional object; + private Optional object; @JsonCreator - public GetTokenResponse( + public GetMediaProvidersResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons this.object = object; } - public GetTokenResponse( + public GetMediaProvidersResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -86,12 +89,12 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons } /** - * Access Token + * Media providers and their features */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons /** * HTTP response content type for this operation */ - public GetTokenResponse withContentType(String contentType) { + public GetMediaProvidersResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons /** * HTTP response status code for this operation */ - public GetTokenResponse withStatusCode(int statusCode) { + public GetMediaProvidersResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,25 +122,25 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons /** * Raw HTTP response; suitable for custom response parsing */ - public GetTokenResponse withRawResponse(HttpResponse rawResponse) { + public GetMediaProvidersResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; } /** - * Access Token + * Media providers and their features */ - public GetTokenResponse withObject(GetTokenResponseBody object) { + public GetMediaProvidersResponse withObject(GetMediaProvidersResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; } /** - * Access Token + * Media providers and their features */ - public GetTokenResponse withObject(Optional object) { + public GetMediaProvidersResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons if (o == null || getClass() != o.getClass()) { return false; } - GetTokenResponse other = (GetTokenResponse) o; + GetMediaProvidersResponse other = (GetMediaProvidersResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons @Override public String toString() { - return Utils.toString(GetTokenResponse.class, + return Utils.toString(GetMediaProvidersResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -219,25 +222,25 @@ public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Respons } /** - * Access Token + * Media providers and their features */ - public Builder object(GetTokenResponseBody object) { + public Builder object(GetMediaProvidersResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; } /** - * Access Token + * Media providers and their features */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public GetTokenResponse build() { - return new GetTokenResponse( + public GetMediaProvidersResponse build() { + return new GetMediaProvidersResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java new file mode 100644 index 00000000..7f47a221 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * GetMediaProvidersResponseBody - Media providers and their features + */ + +public class GetMediaProvidersResponseBody { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + private Optional mediaContainer; + + @JsonCreator + public GetMediaProvidersResponseBody( + @JsonProperty("MediaContainer") Optional mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = mediaContainer; + } + + public GetMediaProvidersResponseBody() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mediaContainer() { + return (Optional) mediaContainer; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetMediaProvidersResponseBody withMediaContainer(GetMediaProvidersMediaContainer mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = Optional.ofNullable(mediaContainer); + return this; + } + + public GetMediaProvidersResponseBody 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; + } + GetMediaProvidersResponseBody other = (GetMediaProvidersResponseBody) o; + return + Objects.deepEquals(this.mediaContainer, other.mediaContainer); + } + + @Override + public int hashCode() { + return Objects.hash( + mediaContainer); + } + + @Override + public String toString() { + return Utils.toString(GetMediaProvidersResponseBody.class, + "mediaContainer", mediaContainer); + } + + public final static class Builder { + + private Optional mediaContainer = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder mediaContainer(GetMediaProvidersMediaContainer 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 GetMediaProvidersResponseBody build() { + return new GetMediaProvidersResponseBody( + mediaContainer); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyCountry.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyCountry.java index ceaf3437..42df9e58 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyCountry.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataCountry { + +public class GetMetaDataByRatingKeyCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator - public GetMetadataCountry( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { + public GetMetaDataByRatingKeyCountry( + @JsonProperty("id") Optional id, + @JsonProperty("filter") Optional filter, + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(tag, "tag"); @@ -45,63 +45,60 @@ public class GetMetadataCountry { this.tag = tag; } - public GetMetadataCountry() { + public GetMetaDataByRatingKeyCountry() { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { return new Builder(); } - public GetMetadataCountry withId(int id) { + public GetMetaDataByRatingKeyCountry withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataCountry withId(Optional id) { + public GetMetaDataByRatingKeyCountry withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataCountry withFilter(String filter) { + public GetMetaDataByRatingKeyCountry withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetMetadataCountry withFilter(Optional filter) { + public GetMetaDataByRatingKeyCountry withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetMetadataCountry withTag(String tag) { + public GetMetaDataByRatingKeyCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = Optional.ofNullable(tag); return this; } - public GetMetadataCountry withTag(Optional tag) { + public GetMetaDataByRatingKeyCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -115,16 +112,16 @@ public class GetMetadataCountry { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataCountry other = (GetMetadataCountry) o; + GetMetaDataByRatingKeyCountry other = (GetMetaDataByRatingKeyCountry) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag); @@ -132,7 +129,7 @@ public class GetMetadataCountry { @Override public String toString() { - return Utils.toString(GetMetadataCountry.class, + return Utils.toString(GetMetaDataByRatingKeyCountry.class, "id", id, "filter", filter, "tag", tag); @@ -140,11 +137,11 @@ public class GetMetadataCountry { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetMetadataCountry { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +165,7 @@ public class GetMetadataCountry { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -180,14 +177,14 @@ public class GetMetadataCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - public GetMetadataCountry build() { - return new GetMetadataCountry( + public GetMetaDataByRatingKeyCountry build() { + return new GetMetaDataByRatingKeyCountry( id, filter, tag); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyDirector.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyDirector.java index 48d2ed00..96b0a696 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyDirector.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataWriter { + +public class GetMetaDataByRatingKeyDirector { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagKey") - private Optional tagKey; + private Optional tagKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + public GetMetaDataByRatingKeyDirector( + @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"); @@ -59,99 +59,94 @@ public class GetMetadataWriter { this.thumb = thumb; } - public GetMetadataWriter() { + public GetMetaDataByRatingKeyDirector() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagKey() { - return (Optional) tagKey; + return tagKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { return new Builder(); } - public GetMetadataWriter withId(int id) { + public GetMetaDataByRatingKeyDirector withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataWriter withId(Optional id) { + public GetMetaDataByRatingKeyDirector withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataWriter withFilter(String filter) { + public GetMetaDataByRatingKeyDirector withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetMetadataWriter withFilter(Optional filter) { + public GetMetaDataByRatingKeyDirector withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetMetadataWriter withTag(String tag) { + public GetMetaDataByRatingKeyDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = Optional.ofNullable(tag); return this; } - public GetMetadataWriter withTag(Optional tag) { + public GetMetaDataByRatingKeyDirector withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - public GetMetadataWriter withTagKey(String tagKey) { + public GetMetaDataByRatingKeyDirector withTagKey(String tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = Optional.ofNullable(tagKey); return this; } - public GetMetadataWriter withTagKey(Optional tagKey) { + public GetMetaDataByRatingKeyDirector withTagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; } - public GetMetadataWriter withThumb(String thumb) { + public GetMetaDataByRatingKeyDirector withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetMetadataWriter withThumb(Optional thumb) { + public GetMetaDataByRatingKeyDirector withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -165,18 +160,18 @@ public class GetMetadataWriter { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataWriter other = (GetMetadataWriter) o; + GetMetaDataByRatingKeyDirector other = (GetMetaDataByRatingKeyDirector) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.tagKey, other.tagKey) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag, @@ -186,7 +181,7 @@ public class GetMetadataWriter { @Override public String toString() { - return Utils.toString(GetMetadataWriter.class, + return Utils.toString(GetMetaDataByRatingKeyDirector.class, "id", id, "filter", filter, "tag", tag, @@ -196,15 +191,15 @@ public class GetMetadataWriter { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetMetadataWriter { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class GetMetadataWriter { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -240,7 +235,7 @@ public class GetMetadataWriter { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -252,7 +247,7 @@ public class GetMetadataWriter { return this; } - public Builder tagKey(Optional tagKey) { + public Builder tagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -264,14 +259,14 @@ public class GetMetadataWriter { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetMetadataWriter build() { - return new GetMetadataWriter( + public GetMetaDataByRatingKeyDirector build() { + return new GetMetaDataByRatingKeyDirector( id, filter, tag, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyGenre.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyGenre.java index adee7be6..1956c74f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyGenre.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataGenre { + +public class GetMetaDataByRatingKeyGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator - public GetMetadataGenre( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { + public GetMetaDataByRatingKeyGenre( + @JsonProperty("id") Optional id, + @JsonProperty("filter") Optional filter, + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(tag, "tag"); @@ -45,63 +45,60 @@ public class GetMetadataGenre { this.tag = tag; } - public GetMetadataGenre() { + public GetMetaDataByRatingKeyGenre() { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { return new Builder(); } - public GetMetadataGenre withId(int id) { + public GetMetaDataByRatingKeyGenre withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataGenre withId(Optional id) { + public GetMetaDataByRatingKeyGenre withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataGenre withFilter(String filter) { + public GetMetaDataByRatingKeyGenre withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetMetadataGenre withFilter(Optional filter) { + public GetMetaDataByRatingKeyGenre withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetMetadataGenre withTag(String tag) { + public GetMetaDataByRatingKeyGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = Optional.ofNullable(tag); return this; } - public GetMetadataGenre withTag(Optional tag) { + public GetMetaDataByRatingKeyGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -115,16 +112,16 @@ public class GetMetadataGenre { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataGenre other = (GetMetadataGenre) o; + GetMetaDataByRatingKeyGenre other = (GetMetaDataByRatingKeyGenre) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag); @@ -132,7 +129,7 @@ public class GetMetadataGenre { @Override public String toString() { - return Utils.toString(GetMetadataGenre.class, + return Utils.toString(GetMetaDataByRatingKeyGenre.class, "id", id, "filter", filter, "tag", tag); @@ -140,11 +137,11 @@ public class GetMetadataGenre { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetMetadataGenre { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +165,7 @@ public class GetMetadataGenre { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -180,14 +177,14 @@ public class GetMetadataGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - public GetMetadataGenre build() { - return new GetMetadataGenre( + public GetMetaDataByRatingKeyGenre build() { + return new GetMetaDataByRatingKeyGenre( id, filter, tag); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMedia.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMedia.java index 6b2a484e..eda7939e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMedia.java @@ -1,112 +1,116 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataMedia { + +public class GetMetaDataByRatingKeyMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + public GetMetaDataByRatingKeyMedia( + @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"); @@ -143,315 +147,299 @@ public class GetMetadataMedia { this.part = part; } - public GetMetadataMedia() { + public GetMetaDataByRatingKeyMedia() { 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { return new Builder(); } - public GetMetadataMedia withId(int id) { + public GetMetaDataByRatingKeyMedia withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataMedia withId(Optional id) { + public GetMetaDataByRatingKeyMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataMedia withDuration(int duration) { + public GetMetaDataByRatingKeyMedia withDuration(int duration) { Utils.checkNotNull(duration, "duration"); this.duration = Optional.ofNullable(duration); return this; } - public GetMetadataMedia withDuration(Optional duration) { + public GetMetaDataByRatingKeyMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; } - public GetMetadataMedia withBitrate(int bitrate) { + public GetMetaDataByRatingKeyMedia withBitrate(int bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = Optional.ofNullable(bitrate); return this; } - public GetMetadataMedia withBitrate(Optional bitrate) { + public GetMetaDataByRatingKeyMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; } - public GetMetadataMedia withWidth(int width) { + public GetMetaDataByRatingKeyMedia withWidth(int width) { Utils.checkNotNull(width, "width"); this.width = Optional.ofNullable(width); return this; } - public GetMetadataMedia withWidth(Optional width) { + public GetMetaDataByRatingKeyMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; } - public GetMetadataMedia withHeight(int height) { + public GetMetaDataByRatingKeyMedia withHeight(int height) { Utils.checkNotNull(height, "height"); this.height = Optional.ofNullable(height); return this; } - public GetMetadataMedia withHeight(Optional height) { + public GetMetaDataByRatingKeyMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; } - public GetMetadataMedia withAspectRatio(double aspectRatio) { + public GetMetaDataByRatingKeyMedia withAspectRatio(double aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = Optional.ofNullable(aspectRatio); return this; } - public GetMetadataMedia withAspectRatio(Optional aspectRatio) { + public GetMetaDataByRatingKeyMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; } - public GetMetadataMedia withAudioChannels(int audioChannels) { + public GetMetaDataByRatingKeyMedia withAudioChannels(int audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = Optional.ofNullable(audioChannels); return this; } - public GetMetadataMedia withAudioChannels(Optional audioChannels) { + public GetMetaDataByRatingKeyMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; } - public GetMetadataMedia withAudioCodec(String audioCodec) { + public GetMetaDataByRatingKeyMedia withAudioCodec(String audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = Optional.ofNullable(audioCodec); return this; } - public GetMetadataMedia withAudioCodec(Optional audioCodec) { + public GetMetaDataByRatingKeyMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; } - public GetMetadataMedia withVideoCodec(String videoCodec) { + public GetMetaDataByRatingKeyMedia withVideoCodec(String videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = Optional.ofNullable(videoCodec); return this; } - public GetMetadataMedia withVideoCodec(Optional videoCodec) { + public GetMetaDataByRatingKeyMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; } - public GetMetadataMedia withVideoResolution(String videoResolution) { + public GetMetaDataByRatingKeyMedia withVideoResolution(String videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = Optional.ofNullable(videoResolution); return this; } - public GetMetadataMedia withVideoResolution(Optional videoResolution) { + public GetMetaDataByRatingKeyMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; } - public GetMetadataMedia withContainer(String container) { + public GetMetaDataByRatingKeyMedia withContainer(String container) { Utils.checkNotNull(container, "container"); this.container = Optional.ofNullable(container); return this; } - public GetMetadataMedia withContainer(Optional container) { + public GetMetaDataByRatingKeyMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; } - public GetMetadataMedia withVideoFrameRate(String videoFrameRate) { + public GetMetaDataByRatingKeyMedia withVideoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = Optional.ofNullable(videoFrameRate); return this; } - public GetMetadataMedia withVideoFrameRate(Optional videoFrameRate) { + public GetMetaDataByRatingKeyMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; } - public GetMetadataMedia withOptimizedForStreaming(int optimizedForStreaming) { + public GetMetaDataByRatingKeyMedia withOptimizedForStreaming(int optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); return this; } - public GetMetadataMedia withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetMetaDataByRatingKeyMedia withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; } - public GetMetadataMedia withAudioProfile(String audioProfile) { + public GetMetaDataByRatingKeyMedia withAudioProfile(String audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = Optional.ofNullable(audioProfile); return this; } - public GetMetadataMedia withAudioProfile(Optional audioProfile) { + public GetMetaDataByRatingKeyMedia withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; } - public GetMetadataMedia withHas64bitOffsets(boolean has64bitOffsets) { + public GetMetaDataByRatingKeyMedia withHas64bitOffsets(boolean has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); return this; } - public GetMetadataMedia withHas64bitOffsets(Optional has64bitOffsets) { + public GetMetaDataByRatingKeyMedia withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; } - public GetMetadataMedia withVideoProfile(String videoProfile) { + public GetMetaDataByRatingKeyMedia withVideoProfile(String videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = Optional.ofNullable(videoProfile); return this; } - public GetMetadataMedia withVideoProfile(Optional videoProfile) { + public GetMetaDataByRatingKeyMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetMetadataMedia withPart(java.util.List part) { + public GetMetaDataByRatingKeyMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetMetadataMedia withPart(Optional> part) { + public GetMetaDataByRatingKeyMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -465,30 +453,30 @@ public class GetMetadataMedia { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataMedia other = (GetMetadataMedia) o; + GetMetaDataByRatingKeyMedia other = (GetMetaDataByRatingKeyMedia) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -510,7 +498,7 @@ public class GetMetadataMedia { @Override public String toString() { - return Utils.toString(GetMetadataMedia.class, + return Utils.toString(GetMetaDataByRatingKeyMedia.class, "id", id, "duration", duration, "bitrate", bitrate, @@ -532,39 +520,39 @@ public class GetMetadataMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -576,7 +564,7 @@ public class GetMetadataMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -588,7 +576,7 @@ public class GetMetadataMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -600,7 +588,7 @@ public class GetMetadataMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -612,7 +600,7 @@ public class GetMetadataMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -624,7 +612,7 @@ public class GetMetadataMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -636,7 +624,7 @@ public class GetMetadataMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -648,7 +636,7 @@ public class GetMetadataMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -660,7 +648,7 @@ public class GetMetadataMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -672,7 +660,7 @@ public class GetMetadataMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -684,7 +672,7 @@ public class GetMetadataMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -696,7 +684,7 @@ public class GetMetadataMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -708,7 +696,7 @@ public class GetMetadataMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -720,7 +708,7 @@ public class GetMetadataMedia { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -732,7 +720,7 @@ public class GetMetadataMedia { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -744,7 +732,7 @@ public class GetMetadataMedia { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -756,26 +744,26 @@ public class GetMetadataMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; } - public GetMetadataMedia build() { - return new GetMetadataMedia( + public GetMetaDataByRatingKeyMedia build() { + return new GetMetaDataByRatingKeyMedia( id, duration, bitrate, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMediaContainer.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMediaContainer.java index 77fe06e6..9dffd5fe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMediaContainer.java @@ -1,72 +1,75 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataMediaContainer { + +public class GetMetaDataByRatingKeyMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + public GetMetaDataByRatingKeyMediaContainer( + @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"); @@ -87,171 +90,163 @@ public class GetMetadataMediaContainer { this.metadata = metadata; } - public GetMetadataMediaContainer() { + public GetMetaDataByRatingKeyMediaContainer() { 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { return new Builder(); } - public GetMetadataMediaContainer withSize(int size) { + public GetMetaDataByRatingKeyMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public GetMetadataMediaContainer withSize(Optional size) { + public GetMetaDataByRatingKeyMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetMetadataMediaContainer withAllowSync(boolean allowSync) { + public GetMetaDataByRatingKeyMediaContainer withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = Optional.ofNullable(allowSync); return this; } - public GetMetadataMediaContainer withAllowSync(Optional allowSync) { + public GetMetaDataByRatingKeyMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; } - public GetMetadataMediaContainer withIdentifier(String identifier) { + public GetMetaDataByRatingKeyMediaContainer withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = Optional.ofNullable(identifier); return this; } - public GetMetadataMediaContainer withIdentifier(Optional identifier) { + public GetMetaDataByRatingKeyMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public GetMetadataMediaContainer withLibrarySectionID(int librarySectionID) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionID(int librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = Optional.ofNullable(librarySectionID); return this; } - public GetMetadataMediaContainer withLibrarySectionID(Optional librarySectionID) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; } - public GetMetadataMediaContainer withLibrarySectionTitle(String librarySectionTitle) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionTitle(String librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); return this; } - public GetMetadataMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; } - public GetMetadataMediaContainer withLibrarySectionUUID(String librarySectionUUID) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionUUID(String librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); return this; } - public GetMetadataMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { + public GetMetaDataByRatingKeyMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; } - public GetMetadataMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + public GetMetaDataByRatingKeyMediaContainer withMediaTagPrefix(String mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); return this; } - public GetMetadataMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetMetaDataByRatingKeyMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; } - public GetMetadataMediaContainer withMediaTagVersion(int mediaTagVersion) { + public GetMetaDataByRatingKeyMediaContainer withMediaTagVersion(int mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); return this; } - public GetMetadataMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetMetaDataByRatingKeyMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public GetMetadataMediaContainer withMetadata(java.util.List metadata) { + public GetMetaDataByRatingKeyMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetMetadataMediaContainer withMetadata(Optional> metadata) { + public GetMetaDataByRatingKeyMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -265,22 +260,22 @@ public class GetMetadataMediaContainer { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataMediaContainer other = (GetMetadataMediaContainer) o; + GetMetaDataByRatingKeyMediaContainer other = (GetMetaDataByRatingKeyMediaContainer) 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -294,7 +289,7 @@ public class GetMetadataMediaContainer { @Override public String toString() { - return Utils.toString(GetMetadataMediaContainer.class, + return Utils.toString(GetMetaDataByRatingKeyMediaContainer.class, "size", size, "allowSync", allowSync, "identifier", identifier, @@ -308,23 +303,23 @@ public class GetMetadataMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -336,7 +331,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -348,7 +343,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -360,7 +355,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -372,7 +367,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -384,7 +379,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -396,7 +391,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -408,7 +403,7 @@ public class GetMetadataMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -420,26 +415,26 @@ public class GetMetadataMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; } - public GetMetadataMediaContainer build() { - return new GetMetadataMediaContainer( + public GetMetaDataByRatingKeyMediaContainer build() { + return new GetMetaDataByRatingKeyMediaContainer( size, allowSync, identifier, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMetadata.java similarity index 58% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMetadata.java index aae9eade..d202f111 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyMetadata.java @@ -1,193 +1,196 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataMetadata { + +public class GetMetaDataByRatingKeyMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; + private Optional hasPremiumPrimaryExtra; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Guid") - private Optional> guids; + private Optional> guids; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Rating") - private Optional> ratings; + private Optional> ratings; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> role; + private Optional> role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Producer") - private Optional> 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) { + public GetMetaDataByRatingKeyMetadata( + @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("Guid") Optional> guids, + @JsonProperty("Rating") 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"); @@ -256,603 +259,579 @@ public class GetMetadataMetadata { this.producer = producer; } - public GetMetadataMetadata() { + public GetMetaDataByRatingKeyMetadata() { 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; + return hasPremiumPrimaryExtra; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> guids() { - return (Optional>) guids; + public Optional> guids() { + return (Optional>) guids; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> ratings() { - return (Optional>) ratings; + public Optional> ratings() { + return (Optional>) ratings; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> producer() { - return (Optional>) producer; + public Optional> producer() { + return (Optional>) producer; } public final static Builder builder() { return new Builder(); } - public GetMetadataMetadata withRatingKey(String ratingKey) { + public GetMetaDataByRatingKeyMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = Optional.ofNullable(ratingKey); return this; } - public GetMetadataMetadata withRatingKey(Optional ratingKey) { + public GetMetaDataByRatingKeyMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; } - public GetMetadataMetadata withKey(String key) { + public GetMetaDataByRatingKeyMetadata withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetMetadataMetadata withKey(Optional key) { + public GetMetaDataByRatingKeyMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetMetadataMetadata withGuid(String guid) { + public GetMetaDataByRatingKeyMetadata withGuid(String guid) { Utils.checkNotNull(guid, "guid"); this.guid = Optional.ofNullable(guid); return this; } - public GetMetadataMetadata withGuid(Optional guid) { + public GetMetaDataByRatingKeyMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; } - public GetMetadataMetadata withStudio(String studio) { + public GetMetaDataByRatingKeyMetadata withStudio(String studio) { Utils.checkNotNull(studio, "studio"); this.studio = Optional.ofNullable(studio); return this; } - public GetMetadataMetadata withStudio(Optional studio) { + public GetMetaDataByRatingKeyMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; } - public GetMetadataMetadata withType(String type) { + public GetMetaDataByRatingKeyMetadata withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public GetMetadataMetadata withType(Optional type) { + public GetMetaDataByRatingKeyMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public GetMetadataMetadata withTitle(String title) { + public GetMetaDataByRatingKeyMetadata withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public GetMetadataMetadata withTitle(Optional title) { + public GetMetaDataByRatingKeyMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetMetadataMetadata withLibrarySectionTitle(String librarySectionTitle) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionTitle(String librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); return this; } - public GetMetadataMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; } - public GetMetadataMetadata withLibrarySectionID(int librarySectionID) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionID(int librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = Optional.ofNullable(librarySectionID); return this; } - public GetMetadataMetadata withLibrarySectionID(Optional librarySectionID) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; } - public GetMetadataMetadata withLibrarySectionKey(String librarySectionKey) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionKey(String librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = Optional.ofNullable(librarySectionKey); return this; } - public GetMetadataMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetMetaDataByRatingKeyMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; } - public GetMetadataMetadata withContentRating(String contentRating) { + public GetMetaDataByRatingKeyMetadata withContentRating(String contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = Optional.ofNullable(contentRating); return this; } - public GetMetadataMetadata withContentRating(Optional contentRating) { + public GetMetaDataByRatingKeyMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; } - public GetMetadataMetadata withSummary(String summary) { + public GetMetaDataByRatingKeyMetadata withSummary(String summary) { Utils.checkNotNull(summary, "summary"); this.summary = Optional.ofNullable(summary); return this; } - public GetMetadataMetadata withSummary(Optional summary) { + public GetMetaDataByRatingKeyMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; } - public GetMetadataMetadata withRating(double rating) { + public GetMetaDataByRatingKeyMetadata withRating(double rating) { Utils.checkNotNull(rating, "rating"); this.rating = Optional.ofNullable(rating); return this; } - public GetMetadataMetadata withRating(Optional rating) { + public GetMetaDataByRatingKeyMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; } - public GetMetadataMetadata withAudienceRating(double audienceRating) { + public GetMetaDataByRatingKeyMetadata withAudienceRating(double audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = Optional.ofNullable(audienceRating); return this; } - public GetMetadataMetadata withAudienceRating(Optional audienceRating) { + public GetMetaDataByRatingKeyMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; } - public GetMetadataMetadata withYear(int year) { + public GetMetaDataByRatingKeyMetadata withYear(int year) { Utils.checkNotNull(year, "year"); this.year = Optional.ofNullable(year); return this; } - public GetMetadataMetadata withYear(Optional year) { + public GetMetaDataByRatingKeyMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; } - public GetMetadataMetadata withTagline(String tagline) { + public GetMetaDataByRatingKeyMetadata withTagline(String tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = Optional.ofNullable(tagline); return this; } - public GetMetadataMetadata withTagline(Optional tagline) { + public GetMetaDataByRatingKeyMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; } - public GetMetadataMetadata withThumb(String thumb) { + public GetMetaDataByRatingKeyMetadata withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetMetadataMetadata withThumb(Optional thumb) { + public GetMetaDataByRatingKeyMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetMetadataMetadata withArt(String art) { + public GetMetaDataByRatingKeyMetadata withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } - public GetMetadataMetadata withArt(Optional art) { + public GetMetaDataByRatingKeyMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } - public GetMetadataMetadata withDuration(int duration) { + public GetMetaDataByRatingKeyMetadata withDuration(int duration) { Utils.checkNotNull(duration, "duration"); this.duration = Optional.ofNullable(duration); return this; } - public GetMetadataMetadata withDuration(Optional duration) { + public GetMetaDataByRatingKeyMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; } - public GetMetadataMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { + public GetMetaDataByRatingKeyMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); return this; } - public GetMetadataMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetMetaDataByRatingKeyMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; } - public GetMetadataMetadata withAddedAt(int addedAt) { + public GetMetaDataByRatingKeyMetadata withAddedAt(int addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = Optional.ofNullable(addedAt); return this; } - public GetMetadataMetadata withAddedAt(Optional addedAt) { + public GetMetaDataByRatingKeyMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; } - public GetMetadataMetadata withUpdatedAt(int updatedAt) { + public GetMetaDataByRatingKeyMetadata withUpdatedAt(int updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } - public GetMetadataMetadata withUpdatedAt(Optional updatedAt) { + public GetMetaDataByRatingKeyMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public GetMetadataMetadata withAudienceRatingImage(String audienceRatingImage) { + public GetMetaDataByRatingKeyMetadata withAudienceRatingImage(String audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); return this; } - public GetMetadataMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetMetaDataByRatingKeyMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; } - public GetMetadataMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { + public GetMetaDataByRatingKeyMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); return this; } - public GetMetadataMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public GetMetaDataByRatingKeyMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; } - public GetMetadataMetadata withRatingImage(String ratingImage) { + public GetMetaDataByRatingKeyMetadata withRatingImage(String ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = Optional.ofNullable(ratingImage); return this; } - public GetMetadataMetadata withRatingImage(Optional ratingImage) { + public GetMetaDataByRatingKeyMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public GetMetadataMetadata withMedia(java.util.List media) { + public GetMetaDataByRatingKeyMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetMetadataMetadata withMedia(Optional> media) { + public GetMetaDataByRatingKeyMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetMetadataMetadata withGenre(java.util.List genre) { + public GetMetaDataByRatingKeyMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetMetadataMetadata withGenre(Optional> genre) { + public GetMetaDataByRatingKeyMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetMetadataMetadata withCountry(java.util.List country) { + public GetMetaDataByRatingKeyMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetMetadataMetadata withCountry(Optional> country) { + public GetMetaDataByRatingKeyMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetMetadataMetadata withGuids(java.util.List guids) { + public GetMetaDataByRatingKeyMetadata withGuids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public GetMetadataMetadata withGuids(Optional> guids) { + public GetMetaDataByRatingKeyMetadata withGuids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; } - public GetMetadataMetadata withRatings(java.util.List ratings) { + public GetMetaDataByRatingKeyMetadata withRatings(List ratings) { Utils.checkNotNull(ratings, "ratings"); this.ratings = Optional.ofNullable(ratings); return this; } - public GetMetadataMetadata withRatings(Optional> ratings) { + public GetMetaDataByRatingKeyMetadata withRatings(Optional> ratings) { Utils.checkNotNull(ratings, "ratings"); this.ratings = ratings; return this; } - public GetMetadataMetadata withDirector(java.util.List director) { + public GetMetaDataByRatingKeyMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetMetadataMetadata withDirector(Optional> director) { + public GetMetaDataByRatingKeyMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetMetadataMetadata withWriter(java.util.List writer) { + public GetMetaDataByRatingKeyMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetMetadataMetadata withWriter(Optional> writer) { + public GetMetaDataByRatingKeyMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public GetMetadataMetadata withRole(java.util.List role) { + public GetMetaDataByRatingKeyMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetMetadataMetadata withRole(Optional> role) { + public GetMetaDataByRatingKeyMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public GetMetadataMetadata withProducer(java.util.List producer) { + public GetMetaDataByRatingKeyMetadata withProducer(List producer) { Utils.checkNotNull(producer, "producer"); this.producer = Optional.ofNullable(producer); return this; } - public GetMetadataMetadata withProducer(Optional> producer) { + public GetMetaDataByRatingKeyMetadata withProducer(Optional> producer) { Utils.checkNotNull(producer, "producer"); this.producer = producer; return this; @@ -866,46 +845,46 @@ public class GetMetadataMetadata { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataMetadata other = (GetMetadataMetadata) o; + GetMetaDataByRatingKeyMetadata other = (GetMetaDataByRatingKeyMetadata) 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.guids, other.guids) && + Objects.deepEquals(this.ratings, other.ratings) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.producer, other.producer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -943,7 +922,7 @@ public class GetMetadataMetadata { @Override public String toString() { - return Utils.toString(GetMetadataMetadata.class, + return Utils.toString(GetMetaDataByRatingKeyMetadata.class, "ratingKey", ratingKey, "key", key, "guid", guid, @@ -981,71 +960,71 @@ public class GetMetadataMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional hasPremiumPrimaryExtra = Optional.empty(); + private Optional hasPremiumPrimaryExtra = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> guids = Optional.empty(); + private Optional> guids = Optional.empty(); - private Optional> ratings = Optional.empty(); + private Optional> ratings = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); - private Optional> producer = Optional.empty(); + private Optional> producer = Optional.empty(); private Builder() { // force use of static builder() method @@ -1057,7 +1036,7 @@ public class GetMetadataMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1069,7 +1048,7 @@ public class GetMetadataMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1081,7 +1060,7 @@ public class GetMetadataMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1093,7 +1072,7 @@ public class GetMetadataMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1105,7 +1084,7 @@ public class GetMetadataMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1117,7 +1096,7 @@ public class GetMetadataMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1129,7 +1108,7 @@ public class GetMetadataMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1141,7 +1120,7 @@ public class GetMetadataMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1153,7 +1132,7 @@ public class GetMetadataMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1165,7 +1144,7 @@ public class GetMetadataMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1177,7 +1156,7 @@ public class GetMetadataMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1189,7 +1168,7 @@ public class GetMetadataMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1201,7 +1180,7 @@ public class GetMetadataMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1213,7 +1192,7 @@ public class GetMetadataMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1225,7 +1204,7 @@ public class GetMetadataMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1237,7 +1216,7 @@ public class GetMetadataMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1249,7 +1228,7 @@ public class GetMetadataMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1261,7 +1240,7 @@ public class GetMetadataMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1273,7 +1252,7 @@ public class GetMetadataMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1285,7 +1264,7 @@ public class GetMetadataMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1297,7 +1276,7 @@ public class GetMetadataMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1309,7 +1288,7 @@ public class GetMetadataMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1321,7 +1300,7 @@ public class GetMetadataMetadata { return this; } - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; @@ -1333,122 +1312,122 @@ public class GetMetadataMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder guids(java.util.List guids) { + public Builder guids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public Builder guids(Optional> guids) { + public Builder guids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; } - public Builder ratings(java.util.List ratings) { + public Builder ratings(List ratings) { Utils.checkNotNull(ratings, "ratings"); this.ratings = Optional.ofNullable(ratings); return this; } - public Builder ratings(Optional> ratings) { + public Builder ratings(Optional> ratings) { Utils.checkNotNull(ratings, "ratings"); this.ratings = ratings; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public Builder producer(java.util.List producer) { + public Builder producer(List producer) { Utils.checkNotNull(producer, "producer"); this.producer = Optional.ofNullable(producer); return this; } - public Builder producer(Optional> producer) { + public Builder producer(Optional> producer) { Utils.checkNotNull(producer, "producer"); this.producer = producer; return this; } - public GetMetadataMetadata build() { - return new GetMetadataMetadata( + public GetMetaDataByRatingKeyMetadata build() { + return new GetMetaDataByRatingKeyMetadata( ratingKey, key, guid, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyPart.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyPart.java index 6d065832..15cdbb90 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyPart.java @@ -1,82 +1,85 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataPart { + +public class GetMetaDataByRatingKeyPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Stream") - private Optional> 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) { + public GetMetaDataByRatingKeyPart( + @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"); @@ -101,207 +104,197 @@ public class GetMetadataPart { this.stream = stream; } - public GetMetadataPart() { + public GetMetaDataByRatingKeyPart() { 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> stream() { - return (Optional>) stream; + public Optional> stream() { + return (Optional>) stream; } public final static Builder builder() { return new Builder(); } - public GetMetadataPart withId(int id) { + public GetMetaDataByRatingKeyPart withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataPart withId(Optional id) { + public GetMetaDataByRatingKeyPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataPart withKey(String key) { + public GetMetaDataByRatingKeyPart withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public GetMetadataPart withKey(Optional key) { + public GetMetaDataByRatingKeyPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public GetMetadataPart withDuration(int duration) { + public GetMetaDataByRatingKeyPart withDuration(int duration) { Utils.checkNotNull(duration, "duration"); this.duration = Optional.ofNullable(duration); return this; } - public GetMetadataPart withDuration(Optional duration) { + public GetMetaDataByRatingKeyPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; } - public GetMetadataPart withFile(String file) { + public GetMetaDataByRatingKeyPart withFile(String file) { Utils.checkNotNull(file, "file"); this.file = Optional.ofNullable(file); return this; } - public GetMetadataPart withFile(Optional file) { + public GetMetaDataByRatingKeyPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; } - public GetMetadataPart withSize(int size) { + public GetMetaDataByRatingKeyPart withSize(int size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public GetMetadataPart withSize(Optional size) { + public GetMetaDataByRatingKeyPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetMetadataPart withAudioProfile(String audioProfile) { + public GetMetaDataByRatingKeyPart withAudioProfile(String audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = Optional.ofNullable(audioProfile); return this; } - public GetMetadataPart withAudioProfile(Optional audioProfile) { + public GetMetaDataByRatingKeyPart withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; } - public GetMetadataPart withContainer(String container) { + public GetMetaDataByRatingKeyPart withContainer(String container) { Utils.checkNotNull(container, "container"); this.container = Optional.ofNullable(container); return this; } - public GetMetadataPart withContainer(Optional container) { + public GetMetaDataByRatingKeyPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; } - public GetMetadataPart withHas64bitOffsets(boolean has64bitOffsets) { + public GetMetaDataByRatingKeyPart withHas64bitOffsets(boolean has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); return this; } - public GetMetadataPart withHas64bitOffsets(Optional has64bitOffsets) { + public GetMetaDataByRatingKeyPart withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; } - public GetMetadataPart withOptimizedForStreaming(boolean optimizedForStreaming) { + public GetMetaDataByRatingKeyPart withOptimizedForStreaming(boolean optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); return this; } - public GetMetadataPart withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetMetaDataByRatingKeyPart withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; } - public GetMetadataPart withVideoProfile(String videoProfile) { + public GetMetaDataByRatingKeyPart withVideoProfile(String videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = Optional.ofNullable(videoProfile); return this; } - public GetMetadataPart withVideoProfile(Optional videoProfile) { + public GetMetaDataByRatingKeyPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetMetadataPart withStream(java.util.List stream) { + public GetMetaDataByRatingKeyPart withStream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public GetMetadataPart withStream(Optional> stream) { + public GetMetaDataByRatingKeyPart withStream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -315,24 +308,24 @@ public class GetMetadataPart { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataPart other = (GetMetadataPart) o; + GetMetaDataByRatingKeyPart other = (GetMetaDataByRatingKeyPart) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.stream, other.stream); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -348,7 +341,7 @@ public class GetMetadataPart { @Override public String toString() { - return Utils.toString(GetMetadataPart.class, + return Utils.toString(GetMetaDataByRatingKeyPart.class, "id", id, "key", key, "duration", duration, @@ -364,27 +357,27 @@ public class GetMetadataPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -396,7 +389,7 @@ public class GetMetadataPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -408,7 +401,7 @@ public class GetMetadataPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -420,7 +413,7 @@ public class GetMetadataPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -432,7 +425,7 @@ public class GetMetadataPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -444,7 +437,7 @@ public class GetMetadataPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -456,7 +449,7 @@ public class GetMetadataPart { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -468,7 +461,7 @@ public class GetMetadataPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -480,7 +473,7 @@ public class GetMetadataPart { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -492,7 +485,7 @@ public class GetMetadataPart { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -504,26 +497,26 @@ public class GetMetadataPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder stream(java.util.List stream) { + public Builder stream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public Builder stream(Optional> stream) { + public Builder stream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; } - public GetMetadataPart build() { - return new GetMetadataPart( + public GetMetaDataByRatingKeyPart build() { + return new GetMetaDataByRatingKeyPart( id, key, duration, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequest.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequest.java index 41043e7b..a63db866 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequest.java @@ -1,31 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; -public class GetMetadataRequest { + +public class GetMetaDataByRatingKeyRequest { /** * the id of the library item to return the children of. */ @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") - private double ratingKey; + private long ratingKey; @JsonCreator - public GetMetadataRequest( - double ratingKey) { + public GetMetaDataByRatingKeyRequest( + long ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; } @@ -34,7 +34,7 @@ public class GetMetadataRequest { * the id of the library item to return the children of. */ @JsonIgnore - public double ratingKey() { + public long ratingKey() { return ratingKey; } @@ -45,7 +45,7 @@ public class GetMetadataRequest { /** * the id of the library item to return the children of. */ - public GetMetadataRequest withRatingKey(double ratingKey) { + public GetMetaDataByRatingKeyRequest withRatingKey(long ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -59,26 +59,26 @@ public class GetMetadataRequest { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataRequest other = (GetMetadataRequest) o; + GetMetaDataByRatingKeyRequest other = (GetMetaDataByRatingKeyRequest) o; return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey); + Objects.deepEquals(this.ratingKey, other.ratingKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey); } @Override public String toString() { - return Utils.toString(GetMetadataRequest.class, + return Utils.toString(GetMetaDataByRatingKeyRequest.class, "ratingKey", ratingKey); } public final static class Builder { - private Double ratingKey; + private Long ratingKey; private Builder() { // force use of static builder() method @@ -87,14 +87,14 @@ public class GetMetadataRequest { /** * the id of the library item to return the children of. */ - public Builder ratingKey(double ratingKey) { + public Builder ratingKey(long ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; } - public GetMetadataRequest build() { - return new GetMetadataRequest( + public GetMetaDataByRatingKeyRequest build() { + return new GetMetaDataByRatingKeyRequest( ratingKey); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequestBuilder.java new file mode 100644 index 00000000..818eccbd --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; + +public class GetMetaDataByRatingKeyRequestBuilder { + + private Long ratingKey; + private final SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk; + + public GetMetaDataByRatingKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetMetaDataByRatingKey sdk) { + this.sdk = sdk; + } + + public GetMetaDataByRatingKeyRequestBuilder ratingKey(long ratingKey) { + Utils.checkNotNull(ratingKey, "ratingKey"); + this.ratingKey = ratingKey; + return this; + } + + public GetMetaDataByRatingKeyResponse call() throws Exception { + + return sdk.getMetaDataByRatingKey( + ratingKey); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponse.java similarity index 71% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponse.java index 25009d0c..1350d1b8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetMetaDataByRatingKeyResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +39,14 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * The metadata of the library item. */ - private Optional object; + private Optional object; @JsonCreator - public GetMetadataResponse( + public GetMetaDataByRatingKeyResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp this.object = object; } - public GetMetadataResponse( + public GetMetaDataByRatingKeyResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -90,8 +93,8 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * HTTP response content type for this operation */ - public GetMetadataResponse withContentType(String contentType) { + public GetMetaDataByRatingKeyResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * HTTP response status code for this operation */ - public GetMetadataResponse withStatusCode(int statusCode) { + public GetMetaDataByRatingKeyResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,7 +122,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * Raw HTTP response; suitable for custom response parsing */ - public GetMetadataResponse withRawResponse(HttpResponse rawResponse) { + public GetMetaDataByRatingKeyResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -128,7 +131,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * The metadata of the library item. */ - public GetMetadataResponse withObject(GetMetadataResponseBody object) { + public GetMetaDataByRatingKeyResponse withObject(GetMetaDataByRatingKeyResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -137,7 +140,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * The metadata of the library item. */ - public GetMetadataResponse withObject(Optional object) { + public GetMetaDataByRatingKeyResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataResponse other = (GetMetadataResponse) o; + GetMetaDataByRatingKeyResponse other = (GetMetaDataByRatingKeyResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp @Override public String toString() { - return Utils.toString(GetMetadataResponse.class, + return Utils.toString(GetMetaDataByRatingKeyResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +224,7 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * The metadata of the library item. */ - public Builder object(GetMetadataResponseBody object) { + public Builder object(GetMetaDataByRatingKeyResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -230,14 +233,14 @@ public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Resp /** * The metadata of the library item. */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public GetMetadataResponse build() { - return new GetMetadataResponse( + public GetMetaDataByRatingKeyResponse build() { + return new GetMetaDataByRatingKeyResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponseBody.java similarity index 55% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponseBody.java index 3a4b4657..57389454 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyResponseBody.java @@ -1,60 +1,60 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** - * GetMetadataResponseBody - The metadata of the library item. + * GetMetaDataByRatingKeyResponseBody - The metadata of the library item. */ -public class GetMetadataResponseBody { +public class GetMetaDataByRatingKeyResponseBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("MediaContainer") - private Optional mediaContainer; + private Optional mediaContainer; @JsonCreator - public GetMetadataResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { + public GetMetaDataByRatingKeyResponseBody( + @JsonProperty("MediaContainer") Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; } - public GetMetadataResponseBody() { + public GetMetaDataByRatingKeyResponseBody() { this(Optional.empty()); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; + public Optional mediaContainer() { + return (Optional) mediaContainer; } public final static Builder builder() { return new Builder(); } - public GetMetadataResponseBody withMediaContainer(GetMetadataMediaContainer mediaContainer) { + public GetMetaDataByRatingKeyResponseBody withMediaContainer(GetMetaDataByRatingKeyMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public GetMetadataResponseBody withMediaContainer(Optional mediaContainer) { + public GetMetaDataByRatingKeyResponseBody withMediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; @@ -68,45 +68,45 @@ public class GetMetadataResponseBody { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataResponseBody other = (GetMetadataResponseBody) o; + GetMetaDataByRatingKeyResponseBody other = (GetMetaDataByRatingKeyResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } @Override public String toString() { - return Utils.toString(GetMetadataResponseBody.class, + return Utils.toString(GetMetaDataByRatingKeyResponseBody.class, "mediaContainer", mediaContainer); } public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder mediaContainer(GetMetadataMediaContainer mediaContainer) { + public Builder mediaContainer(GetMetaDataByRatingKeyMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public Builder mediaContainer(Optional mediaContainer) { + public Builder mediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; } - public GetMetadataResponseBody build() { - return new GetMetadataResponseBody( + public GetMetaDataByRatingKeyResponseBody build() { + return new GetMetaDataByRatingKeyResponseBody( mediaContainer); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRole.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRole.java index 3c573a01..a5a665fd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyRole.java @@ -1,57 +1,57 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataRole { + +public class GetMetaDataByRatingKeyRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagKey") - private Optional tagKey; + private Optional tagKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("role") - private Optional role; + private Optional role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + public GetMetaDataByRatingKeyRole( + @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"); @@ -66,117 +66,111 @@ public class GetMetadataRole { this.thumb = thumb; } - public GetMetadataRole() { + public GetMetaDataByRatingKeyRole() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagKey() { - return (Optional) tagKey; + return tagKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional role() { - return (Optional) role; + return role; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { return new Builder(); } - public GetMetadataRole withId(int id) { + public GetMetaDataByRatingKeyRole withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataRole withId(Optional id) { + public GetMetaDataByRatingKeyRole withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataRole withFilter(String filter) { + public GetMetaDataByRatingKeyRole withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetMetadataRole withFilter(Optional filter) { + public GetMetaDataByRatingKeyRole withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetMetadataRole withTag(String tag) { + public GetMetaDataByRatingKeyRole withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = Optional.ofNullable(tag); return this; } - public GetMetadataRole withTag(Optional tag) { + public GetMetaDataByRatingKeyRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - public GetMetadataRole withTagKey(String tagKey) { + public GetMetaDataByRatingKeyRole withTagKey(String tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = Optional.ofNullable(tagKey); return this; } - public GetMetadataRole withTagKey(Optional tagKey) { + public GetMetaDataByRatingKeyRole withTagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; } - public GetMetadataRole withRole(String role) { + public GetMetaDataByRatingKeyRole withRole(String role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetMetadataRole withRole(Optional role) { + public GetMetaDataByRatingKeyRole withRole(Optional role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public GetMetadataRole withThumb(String thumb) { + public GetMetaDataByRatingKeyRole withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetMetadataRole withThumb(Optional thumb) { + public GetMetaDataByRatingKeyRole withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -190,19 +184,19 @@ public class GetMetadataRole { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataRole other = (GetMetadataRole) o; + GetMetaDataByRatingKeyRole other = (GetMetaDataByRatingKeyRole) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.tagKey, other.tagKey) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag, @@ -213,7 +207,7 @@ public class GetMetadataRole { @Override public String toString() { - return Utils.toString(GetMetadataRole.class, + return Utils.toString(GetMetaDataByRatingKeyRole.class, "id", id, "filter", filter, "tag", tag, @@ -224,17 +218,17 @@ public class GetMetadataRole { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); - private Optional role = Optional.empty(); + private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +240,7 @@ public class GetMetadataRole { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -258,7 +252,7 @@ public class GetMetadataRole { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -270,7 +264,7 @@ public class GetMetadataRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -282,7 +276,7 @@ public class GetMetadataRole { return this; } - public Builder tagKey(Optional tagKey) { + public Builder tagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -294,7 +288,7 @@ public class GetMetadataRole { return this; } - public Builder role(Optional role) { + public Builder role(Optional role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -306,14 +300,14 @@ public class GetMetadataRole { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetMetadataRole build() { - return new GetMetadataRole( + public GetMetaDataByRatingKeyRole build() { + return new GetMetaDataByRatingKeyRole( id, filter, tag, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyWriter.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyWriter.java index 39b85b0b..8dd262dd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetaDataByRatingKeyWriter.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataDirector { + +public class GetMetaDataByRatingKeyWriter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagKey") - private Optional tagKey; + private Optional tagKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + public GetMetaDataByRatingKeyWriter( + @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"); @@ -59,99 +59,94 @@ public class GetMetadataDirector { this.thumb = thumb; } - public GetMetadataDirector() { + public GetMetaDataByRatingKeyWriter() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagKey() { - return (Optional) tagKey; + return tagKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { return new Builder(); } - public GetMetadataDirector withId(int id) { + public GetMetaDataByRatingKeyWriter withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetMetadataDirector withId(Optional id) { + public GetMetaDataByRatingKeyWriter withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetMetadataDirector withFilter(String filter) { + public GetMetaDataByRatingKeyWriter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; } - public GetMetadataDirector withFilter(Optional filter) { + public GetMetaDataByRatingKeyWriter withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - public GetMetadataDirector withTag(String tag) { + public GetMetaDataByRatingKeyWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = Optional.ofNullable(tag); return this; } - public GetMetadataDirector withTag(Optional tag) { + public GetMetaDataByRatingKeyWriter withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - public GetMetadataDirector withTagKey(String tagKey) { + public GetMetaDataByRatingKeyWriter withTagKey(String tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = Optional.ofNullable(tagKey); return this; } - public GetMetadataDirector withTagKey(Optional tagKey) { + public GetMetaDataByRatingKeyWriter withTagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; } - public GetMetadataDirector withThumb(String thumb) { + public GetMetaDataByRatingKeyWriter withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public GetMetadataDirector withThumb(Optional thumb) { + public GetMetaDataByRatingKeyWriter withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -165,18 +160,18 @@ public class GetMetadataDirector { if (o == null || getClass() != o.getClass()) { return false; } - GetMetadataDirector other = (GetMetadataDirector) o; + GetMetaDataByRatingKeyWriter other = (GetMetaDataByRatingKeyWriter) 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.tagKey, other.tagKey) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag, @@ -186,7 +181,7 @@ public class GetMetadataDirector { @Override public String toString() { - return Utils.toString(GetMetadataDirector.class, + return Utils.toString(GetMetaDataByRatingKeyWriter.class, "id", id, "filter", filter, "tag", tag, @@ -196,15 +191,15 @@ public class GetMetadataDirector { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetMetadataDirector { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class GetMetadataDirector { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -240,7 +235,7 @@ public class GetMetadataDirector { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -252,7 +247,7 @@ public class GetMetadataDirector { return this; } - public Builder tagKey(Optional tagKey) { + public Builder tagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -264,14 +259,14 @@ public class GetMetadataDirector { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public GetMetadataDirector build() { - return new GetMetadataDirector( + public GetMetaDataByRatingKeyWriter build() { + return new GetMetaDataByRatingKeyWriter( id, filter, tag, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java index 0aade492..a29125b7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMetadataChildrenDirectory { @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; + private Optional viewedLeafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional 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) { + @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"); @@ -63,34 +63,29 @@ public class GetMetadataChildrenDirectory { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; + return viewedLeafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } public final static Builder builder() { @@ -103,7 +98,7 @@ public class GetMetadataChildrenDirectory { return this; } - public GetMetadataChildrenDirectory withLeafCount(Optional leafCount) { + public GetMetadataChildrenDirectory withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -115,7 +110,7 @@ public class GetMetadataChildrenDirectory { return this; } - public GetMetadataChildrenDirectory withThumb(Optional thumb) { + public GetMetadataChildrenDirectory withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -127,7 +122,7 @@ public class GetMetadataChildrenDirectory { return this; } - public GetMetadataChildrenDirectory withViewedLeafCount(Optional viewedLeafCount) { + public GetMetadataChildrenDirectory withViewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -139,7 +134,7 @@ public class GetMetadataChildrenDirectory { return this; } - public GetMetadataChildrenDirectory withKey(Optional key) { + public GetMetadataChildrenDirectory withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -151,7 +146,7 @@ public class GetMetadataChildrenDirectory { return this; } - public GetMetadataChildrenDirectory withTitle(Optional title) { + public GetMetadataChildrenDirectory withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -167,16 +162,16 @@ public class GetMetadataChildrenDirectory { } 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); + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( leafCount, thumb, viewedLeafCount, @@ -196,15 +191,15 @@ public class GetMetadataChildrenDirectory { public final static class Builder { - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional viewedLeafCount = Optional.empty(); + private Optional viewedLeafCount = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetMetadataChildrenDirectory { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -228,7 +223,7 @@ public class GetMetadataChildrenDirectory { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -240,7 +235,7 @@ public class GetMetadataChildrenDirectory { return this; } - public Builder viewedLeafCount(Optional viewedLeafCount) { + public Builder viewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -252,7 +247,7 @@ public class GetMetadataChildrenDirectory { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -264,7 +259,7 @@ public class GetMetadataChildrenDirectory { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java index 46110177..fdab843c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java @@ -1,142 +1,145 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMetadataChildrenMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("nocache") - private Optional nocache; + private Optional nocache; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") - private Optional parentYear; + private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("theme") - private Optional theme; + private Optional theme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title1") - private Optional title1; + private Optional title1; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title2") - private Optional title2; + private Optional title2; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewGroup") - private Optional viewGroup; + private Optional viewGroup; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewMode") - private Optional viewMode; + private Optional viewMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Directory") - private Optional> directory; + private Optional> directory; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -189,142 +192,121 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional nocache() { - return (Optional) nocache; + return nocache; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentYear() { - return (Optional) parentYear; + return parentYear; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional theme() { - return (Optional) theme; + return theme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title1() { - return (Optional) title1; + return title1; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title2() { - return (Optional) title2; + return title2; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewGroup() { - return (Optional) viewGroup; + return viewGroup; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewMode() { - return (Optional) viewMode; + return viewMode; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> directory() { - return (Optional>) directory; + public Optional> directory() { + return (Optional>) directory; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -337,7 +319,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withSize(Optional size) { + public GetMetadataChildrenMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -349,7 +331,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withAllowSync(Optional allowSync) { + public GetMetadataChildrenMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -361,7 +343,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withArt(Optional art) { + public GetMetadataChildrenMediaContainer withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -373,7 +355,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withIdentifier(Optional identifier) { + public GetMetadataChildrenMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -385,7 +367,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withKey(Optional key) { + public GetMetadataChildrenMediaContainer withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -397,7 +379,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withLibrarySectionID(Optional librarySectionID) { + public GetMetadataChildrenMediaContainer withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -409,7 +391,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { + public GetMetadataChildrenMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -421,7 +403,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { + public GetMetadataChildrenMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -433,7 +415,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetMetadataChildrenMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -445,7 +427,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetMetadataChildrenMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -457,7 +439,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withNocache(Optional nocache) { + public GetMetadataChildrenMediaContainer withNocache(Optional nocache) { Utils.checkNotNull(nocache, "nocache"); this.nocache = nocache; return this; @@ -469,7 +451,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withParentIndex(Optional parentIndex) { + public GetMetadataChildrenMediaContainer withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -481,7 +463,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withParentTitle(Optional parentTitle) { + public GetMetadataChildrenMediaContainer withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -493,7 +475,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withParentYear(Optional parentYear) { + public GetMetadataChildrenMediaContainer withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -505,7 +487,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withSummary(Optional summary) { + public GetMetadataChildrenMediaContainer withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -517,7 +499,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withTheme(Optional theme) { + public GetMetadataChildrenMediaContainer withTheme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -529,7 +511,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withThumb(Optional thumb) { + public GetMetadataChildrenMediaContainer withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -541,7 +523,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withTitle1(Optional title1) { + public GetMetadataChildrenMediaContainer withTitle1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -553,7 +535,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withTitle2(Optional title2) { + public GetMetadataChildrenMediaContainer withTitle2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; @@ -565,7 +547,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withViewGroup(Optional viewGroup) { + public GetMetadataChildrenMediaContainer withViewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -577,31 +559,31 @@ public class GetMetadataChildrenMediaContainer { return this; } - public GetMetadataChildrenMediaContainer withViewMode(Optional viewMode) { + public GetMetadataChildrenMediaContainer withViewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public GetMetadataChildrenMediaContainer withDirectory(java.util.List directory) { + public GetMetadataChildrenMediaContainer withDirectory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public GetMetadataChildrenMediaContainer withDirectory(Optional> directory) { + public GetMetadataChildrenMediaContainer withDirectory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public GetMetadataChildrenMediaContainer withMetadata(java.util.List metadata) { + public GetMetadataChildrenMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetMetadataChildrenMediaContainer withMetadata(Optional> metadata) { + public GetMetadataChildrenMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -617,34 +599,34 @@ public class GetMetadataChildrenMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.nocache, other.nocache) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.parentYear, other.parentYear) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.theme, other.theme) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title1, other.title1) && + Objects.deepEquals(this.title2, other.title2) && + Objects.deepEquals(this.viewGroup, other.viewGroup) && + Objects.deepEquals(this.viewMode, other.viewMode) && + Objects.deepEquals(this.directory, other.directory) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, art, @@ -700,51 +682,51 @@ public class GetMetadataChildrenMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional nocache = Optional.empty(); + private Optional nocache = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional parentYear = Optional.empty(); + private Optional parentYear = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional theme = Optional.empty(); + private Optional theme = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title1 = Optional.empty(); + private Optional title1 = Optional.empty(); - private Optional title2 = Optional.empty(); + private Optional title2 = Optional.empty(); - private Optional viewGroup = Optional.empty(); + private Optional viewGroup = Optional.empty(); - private Optional viewMode = Optional.empty(); + private Optional viewMode = Optional.empty(); - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -756,7 +738,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -768,7 +750,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -780,7 +762,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -792,7 +774,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -804,7 +786,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -816,7 +798,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -828,7 +810,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -840,7 +822,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -852,7 +834,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -864,7 +846,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -876,7 +858,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder nocache(Optional nocache) { + public Builder nocache(Optional nocache) { Utils.checkNotNull(nocache, "nocache"); this.nocache = nocache; return this; @@ -888,7 +870,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -900,7 +882,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -912,7 +894,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder parentYear(Optional parentYear) { + public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -924,7 +906,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -936,7 +918,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder theme(Optional theme) { + public Builder theme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -948,7 +930,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -960,7 +942,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder title1(Optional title1) { + public Builder title1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -972,7 +954,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder title2(Optional title2) { + public Builder title2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; @@ -984,7 +966,7 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder viewGroup(Optional viewGroup) { + public Builder viewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -996,31 +978,31 @@ public class GetMetadataChildrenMediaContainer { return this; } - public Builder viewMode(Optional viewMode) { + public Builder viewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public Builder directory(java.util.List directory) { + public Builder directory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public Builder directory(Optional> directory) { + public Builder directory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java index 154c9547..e05ee265 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java @@ -1,162 +1,162 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMetadataChildrenMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") - private Optional parentRatingKey; + private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") - private Optional parentGuid; + private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentStudio") - private Optional parentStudio; + private Optional parentStudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") - private Optional parentYear; + private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTheme") - private Optional parentTheme; + private Optional parentTheme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; + private Optional viewedLeafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("userRating") - private Optional userRating; + private Optional userRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("skipCount") - private Optional skipCount; + private Optional skipCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastRatedAt") - private Optional 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) { + @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"); @@ -217,166 +217,139 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentRatingKey() { - return (Optional) parentRatingKey; + return parentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentGuid() { - return (Optional) parentGuid; + return parentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentStudio() { - return (Optional) parentStudio; + return parentStudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentYear() { - return (Optional) parentYear; + return parentYear; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTheme() { - return (Optional) parentTheme; + return parentTheme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; + return viewedLeafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional userRating() { - return (Optional) userRating; + return userRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional skipCount() { - return (Optional) skipCount; + return skipCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastRatedAt() { - return (Optional) lastRatedAt; + return lastRatedAt; } public final static Builder builder() { @@ -389,7 +362,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withRatingKey(Optional ratingKey) { + public GetMetadataChildrenMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -401,7 +374,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withKey(Optional key) { + public GetMetadataChildrenMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -413,7 +386,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentRatingKey(Optional parentRatingKey) { + public GetMetadataChildrenMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -425,7 +398,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withGuid(Optional guid) { + public GetMetadataChildrenMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -437,7 +410,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentGuid(Optional parentGuid) { + public GetMetadataChildrenMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -449,7 +422,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentStudio(Optional parentStudio) { + public GetMetadataChildrenMetadata withParentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -461,7 +434,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withType(Optional type) { + public GetMetadataChildrenMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -473,7 +446,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withTitle(Optional title) { + public GetMetadataChildrenMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -485,7 +458,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentKey(Optional parentKey) { + public GetMetadataChildrenMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -497,7 +470,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentTitle(Optional parentTitle) { + public GetMetadataChildrenMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -509,7 +482,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withSummary(Optional summary) { + public GetMetadataChildrenMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -521,7 +494,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withIndex(Optional index) { + public GetMetadataChildrenMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -533,7 +506,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentIndex(Optional parentIndex) { + public GetMetadataChildrenMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -545,7 +518,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withViewCount(Optional viewCount) { + public GetMetadataChildrenMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -557,7 +530,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withLastViewedAt(Optional lastViewedAt) { + public GetMetadataChildrenMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -569,7 +542,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentYear(Optional parentYear) { + public GetMetadataChildrenMetadata withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -581,7 +554,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withThumb(Optional thumb) { + public GetMetadataChildrenMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -593,7 +566,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withArt(Optional art) { + public GetMetadataChildrenMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -605,7 +578,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentThumb(Optional parentThumb) { + public GetMetadataChildrenMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -617,7 +590,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withParentTheme(Optional parentTheme) { + public GetMetadataChildrenMetadata withParentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; @@ -629,7 +602,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withLeafCount(Optional leafCount) { + public GetMetadataChildrenMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -641,7 +614,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withViewedLeafCount(Optional viewedLeafCount) { + public GetMetadataChildrenMetadata withViewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -653,7 +626,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withAddedAt(Optional addedAt) { + public GetMetadataChildrenMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -665,7 +638,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withUpdatedAt(Optional updatedAt) { + public GetMetadataChildrenMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -677,7 +650,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withUserRating(Optional userRating) { + public GetMetadataChildrenMetadata withUserRating(Optional userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = userRating; return this; @@ -689,7 +662,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withSkipCount(Optional skipCount) { + public GetMetadataChildrenMetadata withSkipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -701,7 +674,7 @@ public class GetMetadataChildrenMetadata { return this; } - public GetMetadataChildrenMetadata withLastRatedAt(Optional lastRatedAt) { + public GetMetadataChildrenMetadata withLastRatedAt(Optional lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = lastRatedAt; return this; @@ -717,38 +690,38 @@ public class GetMetadataChildrenMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.parentGuid, other.parentGuid) && + Objects.deepEquals(this.parentStudio, other.parentStudio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.parentYear, other.parentYear) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.parentTheme, other.parentTheme) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.userRating, other.userRating) && + Objects.deepEquals(this.skipCount, other.skipCount) && + Objects.deepEquals(this.lastRatedAt, other.lastRatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, parentRatingKey, @@ -812,59 +785,59 @@ public class GetMetadataChildrenMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional parentRatingKey = Optional.empty(); + private Optional parentRatingKey = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional parentGuid = Optional.empty(); + private Optional parentGuid = Optional.empty(); - private Optional parentStudio = Optional.empty(); + private Optional parentStudio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional parentYear = Optional.empty(); + private Optional parentYear = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional parentTheme = Optional.empty(); + private Optional parentTheme = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional viewedLeafCount = Optional.empty(); + private Optional viewedLeafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional userRating = Optional.empty(); + private Optional userRating = Optional.empty(); - private Optional skipCount = Optional.empty(); + private Optional skipCount = Optional.empty(); - private Optional lastRatedAt = Optional.empty(); + private Optional lastRatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -876,7 +849,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -888,7 +861,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -900,7 +873,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentRatingKey(Optional parentRatingKey) { + public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -912,7 +885,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -924,7 +897,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentGuid(Optional parentGuid) { + public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -936,7 +909,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentStudio(Optional parentStudio) { + public Builder parentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -948,7 +921,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -960,7 +933,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -972,7 +945,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -984,7 +957,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -996,7 +969,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1008,7 +981,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1020,7 +993,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -1032,7 +1005,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -1044,7 +1017,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -1056,7 +1029,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentYear(Optional parentYear) { + public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -1068,7 +1041,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1080,7 +1053,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1092,7 +1065,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -1104,7 +1077,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder parentTheme(Optional parentTheme) { + public Builder parentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; @@ -1116,7 +1089,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -1128,7 +1101,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder viewedLeafCount(Optional viewedLeafCount) { + public Builder viewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -1140,7 +1113,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1152,7 +1125,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1164,7 +1137,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder userRating(Optional userRating) { + public Builder userRating(Optional userRating) { Utils.checkNotNull(userRating, "userRating"); this.userRating = userRating; return this; @@ -1176,7 +1149,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder skipCount(Optional skipCount) { + public Builder skipCount(Optional skipCount) { Utils.checkNotNull(skipCount, "skipCount"); this.skipCount = skipCount; return this; @@ -1188,7 +1161,7 @@ public class GetMetadataChildrenMetadata { return this; } - public Builder lastRatedAt(Optional lastRatedAt) { + public Builder lastRatedAt(Optional lastRatedAt) { Utils.checkNotNull(lastRatedAt, "lastRatedAt"); this.lastRatedAt = lastRatedAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java index 35f42b87..6698fe57 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetMetadataChildrenRequest { @@ -29,12 +29,12 @@ public class GetMetadataChildrenRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeElements") - private Optional includeElements; + private Optional includeElements; @JsonCreator public GetMetadataChildrenRequest( double ratingKey, - Optional includeElements) { + Optional includeElements) { Utils.checkNotNull(ratingKey, "ratingKey"); Utils.checkNotNull(includeElements, "includeElements"); this.ratingKey = ratingKey; @@ -58,10 +58,9 @@ public class GetMetadataChildrenRequest { * Adds additional elements to the response. Supported types are (Stream) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional includeElements() { - return (Optional) includeElements; + return includeElements; } public final static Builder builder() { @@ -91,7 +90,7 @@ public class GetMetadataChildrenRequest { * Adds additional elements to the response. Supported types are (Stream) * */ - public GetMetadataChildrenRequest withIncludeElements(Optional includeElements) { + public GetMetadataChildrenRequest withIncludeElements(Optional includeElements) { Utils.checkNotNull(includeElements, "includeElements"); this.includeElements = includeElements; return this; @@ -107,13 +106,13 @@ public class GetMetadataChildrenRequest { } GetMetadataChildrenRequest other = (GetMetadataChildrenRequest) o; return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.includeElements, other.includeElements); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.includeElements, other.includeElements); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, includeElements); } @@ -129,7 +128,7 @@ public class GetMetadataChildrenRequest { private Double ratingKey; - private Optional includeElements = Optional.empty(); + private Optional includeElements = Optional.empty(); private Builder() { // force use of static builder() method @@ -158,7 +157,7 @@ public class GetMetadataChildrenRequest { * Adds additional elements to the response. Supported types are (Stream) * */ - public Builder includeElements(Optional includeElements) { + public Builder includeElements(Optional includeElements) { Utils.checkNotNull(includeElements, "includeElements"); this.includeElements = includeElements; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java similarity index 54% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java index d5cbb61b..c85c1f75 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java @@ -1,26 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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 Optional includeElements = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetMetadataChildren sdk; public GetMetadataChildrenRequestBuilder(SDKMethodInterfaces.MethodCallGetMetadataChildren sdk) { @@ -33,13 +25,13 @@ public class GetMetadataChildrenRequestBuilder { return this; } - public GetMetadataChildrenRequestBuilder includeElements(String includeElements) { + public GetMetadataChildrenRequestBuilder includeElements(java.lang.String includeElements) { Utils.checkNotNull(includeElements, "includeElements"); this.includeElements = Optional.of(includeElements); return this; } - public GetMetadataChildrenRequestBuilder includeElements(Optional includeElements) { + public GetMetadataChildrenRequestBuilder includeElements(java.util.Optional includeElements) { Utils.checkNotNull(includeElements, "includeElements"); this.includeElements = includeElements; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java index 7fc98659..e438bc8d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMetadataChildrenResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetMetadataChildrenResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetMetadataChildrenResponse implements lukehagar.plexapi.plexapi.ut } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java index 855122e1..7360c3f8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetMetadataChildrenResponseBody - The children of the library item. */ @@ -70,12 +70,12 @@ public class GetMetadataChildrenResponseBody { } GetMetadataChildrenResponseBody other = (GetMetadataChildrenResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java new file mode 100644 index 00000000..a8a465c5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java index 3d07ae7f..5e168c84 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetMyPlexAccountResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetMyPlexAccountResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetMyPlexAccountResponse implements lukehagar.plexapi.plexapi.utils } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java similarity index 84% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java index ea4d54aa..1ccc650a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetMyPlexAccountResponseBody - MyPlex Account */ @@ -70,12 +70,12 @@ public class GetMyPlexAccountResponseBody { } GetMyPlexAccountResponseBody other = (GetMyPlexAccountResponseBody) o; return - java.util.Objects.deepEquals(this.myPlex, other.myPlex); + Objects.deepEquals(this.myPlex, other.myPlex); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( myPlex); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckGuids.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckGuids.java index da8ab0ae..8a3aa59a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckGuids.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckGuids { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public GetOnDeckGuids( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -35,10 +34,9 @@ public class GetOnDeckGuids { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetOnDeckGuids { return this; } - public GetOnDeckGuids withId(Optional id) { + public GetOnDeckGuids withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -67,12 +65,12 @@ public class GetOnDeckGuids { } GetOnDeckGuids other = (GetOnDeckGuids) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -84,7 +82,7 @@ public class GetOnDeckGuids { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetOnDeckGuids { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMedia.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMedia.java index 1b45b9fe..8d44a74e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMedia.java @@ -1,102 +1,104 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -133,94 +135,80 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -233,7 +221,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withId(Optional id) { + public GetOnDeckMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -245,7 +233,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withDuration(Optional duration) { + public GetOnDeckMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -257,7 +245,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withBitrate(Optional bitrate) { + public GetOnDeckMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -269,7 +257,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withWidth(Optional width) { + public GetOnDeckMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -281,7 +269,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withHeight(Optional height) { + public GetOnDeckMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -293,7 +281,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withAspectRatio(Optional aspectRatio) { + public GetOnDeckMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -305,7 +293,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withAudioChannels(Optional audioChannels) { + public GetOnDeckMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -317,7 +305,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withAudioCodec(Optional audioCodec) { + public GetOnDeckMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -329,7 +317,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withVideoCodec(Optional videoCodec) { + public GetOnDeckMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -341,7 +329,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withVideoResolution(Optional videoResolution) { + public GetOnDeckMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -353,7 +341,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withContainer(Optional container) { + public GetOnDeckMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -365,7 +353,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withVideoFrameRate(Optional videoFrameRate) { + public GetOnDeckMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -377,7 +365,7 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withAudioProfile(Optional audioProfile) { + public GetOnDeckMedia withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -389,19 +377,19 @@ public class GetOnDeckMedia { return this; } - public GetOnDeckMedia withVideoProfile(Optional videoProfile) { + public GetOnDeckMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetOnDeckMedia withPart(java.util.List part) { + public GetOnDeckMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetOnDeckMedia withPart(Optional> part) { + public GetOnDeckMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -417,26 +405,26 @@ public class GetOnDeckMedia { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -476,35 +464,35 @@ public class GetOnDeckMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -516,7 +504,7 @@ public class GetOnDeckMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -528,7 +516,7 @@ public class GetOnDeckMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -540,7 +528,7 @@ public class GetOnDeckMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -552,7 +540,7 @@ public class GetOnDeckMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -564,7 +552,7 @@ public class GetOnDeckMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -576,7 +564,7 @@ public class GetOnDeckMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -588,7 +576,7 @@ public class GetOnDeckMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -600,7 +588,7 @@ public class GetOnDeckMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -612,7 +600,7 @@ public class GetOnDeckMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -624,7 +612,7 @@ public class GetOnDeckMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -636,7 +624,7 @@ public class GetOnDeckMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -648,7 +636,7 @@ public class GetOnDeckMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -660,7 +648,7 @@ public class GetOnDeckMedia { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -672,19 +660,19 @@ public class GetOnDeckMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMediaContainer.java index 04961f8d..478aaa28 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMediaContainer.java @@ -1,62 +1,65 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mixedParents") - private Optional mixedParents; + private Optional mixedParents; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -77,46 +80,40 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mixedParents() { - return (Optional) mixedParents; + return mixedParents; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -129,7 +126,7 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withSize(Optional size) { + public GetOnDeckMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -141,7 +138,7 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withAllowSync(Optional allowSync) { + public GetOnDeckMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -153,7 +150,7 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withIdentifier(Optional identifier) { + public GetOnDeckMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -165,7 +162,7 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetOnDeckMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -177,7 +174,7 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetOnDeckMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -189,19 +186,19 @@ public class GetOnDeckMediaContainer { return this; } - public GetOnDeckMediaContainer withMixedParents(Optional mixedParents) { + public GetOnDeckMediaContainer withMixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public GetOnDeckMediaContainer withMetadata(java.util.List metadata) { + public GetOnDeckMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetOnDeckMediaContainer withMetadata(Optional> metadata) { + public GetOnDeckMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -217,18 +214,18 @@ public class GetOnDeckMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.mixedParents, other.mixedParents) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -252,19 +249,19 @@ public class GetOnDeckMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional mixedParents = Optional.empty(); + private Optional mixedParents = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +273,7 @@ public class GetOnDeckMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -288,7 +285,7 @@ public class GetOnDeckMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -300,7 +297,7 @@ public class GetOnDeckMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -312,7 +309,7 @@ public class GetOnDeckMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -324,7 +321,7 @@ public class GetOnDeckMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -336,19 +333,19 @@ public class GetOnDeckMediaContainer { return this; } - public Builder mixedParents(Optional mixedParents) { + public Builder mixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMetadata.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMetadata.java index 14d5688e..e6aa47a5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckMetadata.java @@ -1,210 +1,211 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") - private Optional parentRatingKey; + private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; + private Optional grandparentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") - private Optional parentGuid; + private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentGuid") - private Optional grandparentGuid; + private Optional grandparentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentKey") - private Optional grandparentKey; + private Optional grandparentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTitle") - private Optional grandparentTitle; + private Optional grandparentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentThumb") - private Optional grandparentThumb; + private Optional grandparentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentArt") - private Optional grandparentArt; + private Optional grandparentArt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTheme") - private Optional grandparentTheme; + private Optional grandparentTheme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Guid") - private Optional> guids; + 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) { + @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("Guid") Optional> guids) { Utils.checkNotNull(allowSync, "allowSync"); Utils.checkNotNull(librarySectionID, "librarySectionID"); Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); @@ -283,220 +284,186 @@ public class 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; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentRatingKey() { - return (Optional) parentRatingKey; + return parentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; + return grandparentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentGuid() { - return (Optional) parentGuid; + return parentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentGuid() { - return (Optional) grandparentGuid; + return grandparentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentKey() { - return (Optional) grandparentKey; + return grandparentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTitle() { - return (Optional) grandparentTitle; + return grandparentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentThumb() { - return (Optional) grandparentThumb; + return grandparentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentArt() { - return (Optional) grandparentArt; + return grandparentArt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTheme() { - return (Optional) grandparentTheme; + return grandparentTheme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> guids() { - return (Optional>) guids; + public Optional> guids() { + return (Optional>) guids; } public final static Builder builder() { @@ -509,7 +476,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withAllowSync(Optional allowSync) { + public GetOnDeckMetadata withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -521,7 +488,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withLibrarySectionID(Optional librarySectionID) { + public GetOnDeckMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -533,7 +500,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetOnDeckMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -545,7 +512,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withLibrarySectionUUID(Optional librarySectionUUID) { + public GetOnDeckMetadata withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -557,7 +524,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withRatingKey(Optional ratingKey) { + public GetOnDeckMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -569,7 +536,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withKey(Optional key) { + public GetOnDeckMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -581,7 +548,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentRatingKey(Optional parentRatingKey) { + public GetOnDeckMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -593,7 +560,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { + public GetOnDeckMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -605,7 +572,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGuid(Optional guid) { + public GetOnDeckMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -617,7 +584,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentGuid(Optional parentGuid) { + public GetOnDeckMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -629,7 +596,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentGuid(Optional grandparentGuid) { + public GetOnDeckMetadata withGrandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -641,7 +608,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withType(Optional type) { + public GetOnDeckMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -653,7 +620,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withTitle(Optional title) { + public GetOnDeckMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -665,7 +632,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentKey(Optional grandparentKey) { + public GetOnDeckMetadata withGrandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -677,7 +644,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentKey(Optional parentKey) { + public GetOnDeckMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -689,7 +656,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetOnDeckMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -701,7 +668,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentTitle(Optional grandparentTitle) { + public GetOnDeckMetadata withGrandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -713,7 +680,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentTitle(Optional parentTitle) { + public GetOnDeckMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -725,7 +692,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withContentRating(Optional contentRating) { + public GetOnDeckMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -737,7 +704,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withSummary(Optional summary) { + public GetOnDeckMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -749,7 +716,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withIndex(Optional index) { + public GetOnDeckMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -761,7 +728,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentIndex(Optional parentIndex) { + public GetOnDeckMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -773,7 +740,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withLastViewedAt(Optional lastViewedAt) { + public GetOnDeckMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -785,7 +752,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withYear(Optional year) { + public GetOnDeckMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -797,7 +764,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withThumb(Optional thumb) { + public GetOnDeckMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -809,7 +776,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withArt(Optional art) { + public GetOnDeckMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -821,7 +788,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withParentThumb(Optional parentThumb) { + public GetOnDeckMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -833,7 +800,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentThumb(Optional grandparentThumb) { + public GetOnDeckMetadata withGrandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -845,7 +812,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentArt(Optional grandparentArt) { + public GetOnDeckMetadata withGrandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -857,7 +824,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withGrandparentTheme(Optional grandparentTheme) { + public GetOnDeckMetadata withGrandparentTheme(Optional grandparentTheme) { Utils.checkNotNull(grandparentTheme, "grandparentTheme"); this.grandparentTheme = grandparentTheme; return this; @@ -869,7 +836,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withDuration(Optional duration) { + public GetOnDeckMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -881,7 +848,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetOnDeckMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -893,7 +860,7 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withAddedAt(Optional addedAt) { + public GetOnDeckMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -905,31 +872,31 @@ public class GetOnDeckMetadata { return this; } - public GetOnDeckMetadata withUpdatedAt(Optional updatedAt) { + public GetOnDeckMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public GetOnDeckMetadata withMedia(java.util.List media) { + public GetOnDeckMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetOnDeckMetadata withMedia(Optional> media) { + public GetOnDeckMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetOnDeckMetadata withGuids(java.util.List guids) { + public GetOnDeckMetadata withGuids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public GetOnDeckMetadata withGuids(Optional> guids) { + public GetOnDeckMetadata withGuids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; @@ -945,47 +912,47 @@ public class GetOnDeckMetadata { } 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); + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && + Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.parentGuid, other.parentGuid) && + Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.grandparentKey, other.grandparentKey) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && + Objects.deepEquals(this.grandparentArt, other.grandparentArt) && + Objects.deepEquals(this.grandparentTheme, other.grandparentTheme) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.guids, other.guids); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( allowSync, librarySectionID, librarySectionTitle, @@ -1067,77 +1034,77 @@ public class GetOnDeckMetadata { public final static class Builder { - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional parentRatingKey = Optional.empty(); + private Optional parentRatingKey = Optional.empty(); - private Optional grandparentRatingKey = Optional.empty(); + private Optional grandparentRatingKey = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional parentGuid = Optional.empty(); + private Optional parentGuid = Optional.empty(); - private Optional grandparentGuid = Optional.empty(); + private Optional grandparentGuid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional grandparentKey = Optional.empty(); + private Optional grandparentKey = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional grandparentTitle = Optional.empty(); + private Optional grandparentTitle = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional grandparentThumb = Optional.empty(); + private Optional grandparentThumb = Optional.empty(); - private Optional grandparentArt = Optional.empty(); + private Optional grandparentArt = Optional.empty(); - private Optional grandparentTheme = Optional.empty(); + private Optional grandparentTheme = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> guids = Optional.empty(); + private Optional> guids = Optional.empty(); private Builder() { // force use of static builder() method @@ -1149,7 +1116,7 @@ public class GetOnDeckMetadata { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -1161,7 +1128,7 @@ public class GetOnDeckMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1173,7 +1140,7 @@ public class GetOnDeckMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1185,7 +1152,7 @@ public class GetOnDeckMetadata { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -1197,7 +1164,7 @@ public class GetOnDeckMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1209,7 +1176,7 @@ public class GetOnDeckMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1221,7 +1188,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentRatingKey(Optional parentRatingKey) { + public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -1233,7 +1200,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentRatingKey(Optional grandparentRatingKey) { + public Builder grandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -1245,7 +1212,7 @@ public class GetOnDeckMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1257,7 +1224,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentGuid(Optional parentGuid) { + public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -1269,7 +1236,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentGuid(Optional grandparentGuid) { + public Builder grandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -1281,7 +1248,7 @@ public class GetOnDeckMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1293,7 +1260,7 @@ public class GetOnDeckMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1305,7 +1272,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentKey(Optional grandparentKey) { + public Builder grandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -1317,7 +1284,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -1329,7 +1296,7 @@ public class GetOnDeckMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1341,7 +1308,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentTitle(Optional grandparentTitle) { + public Builder grandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -1353,7 +1320,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -1365,7 +1332,7 @@ public class GetOnDeckMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1377,7 +1344,7 @@ public class GetOnDeckMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1389,7 +1356,7 @@ public class GetOnDeckMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1401,7 +1368,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -1413,7 +1380,7 @@ public class GetOnDeckMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -1425,7 +1392,7 @@ public class GetOnDeckMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1437,7 +1404,7 @@ public class GetOnDeckMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1449,7 +1416,7 @@ public class GetOnDeckMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1461,7 +1428,7 @@ public class GetOnDeckMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -1473,7 +1440,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentThumb(Optional grandparentThumb) { + public Builder grandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -1485,7 +1452,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentArt(Optional grandparentArt) { + public Builder grandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -1497,7 +1464,7 @@ public class GetOnDeckMetadata { return this; } - public Builder grandparentTheme(Optional grandparentTheme) { + public Builder grandparentTheme(Optional grandparentTheme) { Utils.checkNotNull(grandparentTheme, "grandparentTheme"); this.grandparentTheme = grandparentTheme; return this; @@ -1509,7 +1476,7 @@ public class GetOnDeckMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1521,7 +1488,7 @@ public class GetOnDeckMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1533,7 +1500,7 @@ public class GetOnDeckMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1545,31 +1512,31 @@ public class GetOnDeckMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder guids(java.util.List guids) { + public Builder guids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public Builder guids(Optional> guids) { + public Builder guids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckPart.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckPart.java index ec348556..cc4a2372 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckPart.java @@ -1,72 +1,74 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Stream") - private Optional> 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) { + @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"); @@ -91,58 +93,50 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> stream() { - return (Optional>) stream; + public Optional> stream() { + return (Optional>) stream; } public final static Builder builder() { @@ -155,7 +149,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withId(Optional id) { + public GetOnDeckPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -167,7 +161,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withKey(Optional key) { + public GetOnDeckPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -179,7 +173,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withDuration(Optional duration) { + public GetOnDeckPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -191,7 +185,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withFile(Optional file) { + public GetOnDeckPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -203,7 +197,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withSize(Optional size) { + public GetOnDeckPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -215,7 +209,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withAudioProfile(Optional audioProfile) { + public GetOnDeckPart withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -227,7 +221,7 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withContainer(Optional container) { + public GetOnDeckPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -239,19 +233,19 @@ public class GetOnDeckPart { return this; } - public GetOnDeckPart withVideoProfile(Optional videoProfile) { + public GetOnDeckPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetOnDeckPart withStream(java.util.List stream) { + public GetOnDeckPart withStream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public GetOnDeckPart withStream(Optional> stream) { + public GetOnDeckPart withStream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -267,20 +261,20 @@ public class GetOnDeckPart { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.stream, other.stream); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -308,23 +302,23 @@ public class GetOnDeckPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -336,7 +330,7 @@ public class GetOnDeckPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -348,7 +342,7 @@ public class GetOnDeckPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -360,7 +354,7 @@ public class GetOnDeckPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -372,7 +366,7 @@ public class GetOnDeckPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -384,7 +378,7 @@ public class GetOnDeckPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -396,7 +390,7 @@ public class GetOnDeckPart { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -408,7 +402,7 @@ public class GetOnDeckPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -420,19 +414,19 @@ public class GetOnDeckPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder stream(java.util.List stream) { + public Builder stream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public Builder stream(Optional> stream) { + public Builder stream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckRequestBuilder.java new file mode 100644 index 00000000..a38f4b36 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetOnDeckResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponse.java index 71e9f2ab..bde65423 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetOnDeckResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetOnDeckResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetOnDeckResponse implements lukehagar.plexapi.plexapi.utils.Respon } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponseBody.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponseBody.java index f478133c..92533d3f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetOnDeckResponseBody - The on Deck content */ @@ -70,12 +70,12 @@ public class GetOnDeckResponseBody { } GetOnDeckResponseBody other = (GetOnDeckResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckStream.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckStream.java index 89d5188c..b48bf2b9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetOnDeckStream.java @@ -1,142 +1,143 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetOnDeckStream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamType") - private Optional streamType; + private Optional streamType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("default") - private Optional default_; + private Optional default_; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") - private Optional codec; + private Optional codec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("language") - private Optional language; + private Optional language; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageTag") - private Optional languageTag; + private Optional languageTag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageCode") - private Optional languageCode; + private Optional languageCode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitDepth") - private Optional bitDepth; + private Optional bitDepth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaLocation") - private Optional chromaLocation; + private Optional chromaLocation; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaSubsampling") - private Optional chromaSubsampling; + private Optional chromaSubsampling; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedHeight") - private Optional codedHeight; + private Optional codedHeight; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedWidth") - private Optional codedWidth; + private Optional codedWidth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorRange") - private Optional colorRange; + private Optional colorRange; @JsonInclude(Include.NON_ABSENT) @JsonProperty("frameRate") - private Optional frameRate; + private Optional frameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("level") - private Optional level; + private Optional level; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") - private Optional profile; + private Optional profile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("refFrames") - private Optional refFrames; + private Optional refFrames; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("displayTitle") - private Optional displayTitle; + private Optional displayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("extendedDisplayTitle") - private Optional 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) { + @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_"); @@ -189,142 +190,119 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamType() { - return (Optional) streamType; + return streamType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional default_() { - return (Optional) default_; + return default_; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codec() { - return (Optional) codec; + return codec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional language() { - return (Optional) language; + return language; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional languageTag() { - return (Optional) languageTag; + return languageTag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional languageCode() { - return (Optional) languageCode; + return languageCode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitDepth() { - return (Optional) bitDepth; + return bitDepth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chromaLocation() { - return (Optional) chromaLocation; + return chromaLocation; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chromaSubsampling() { - return (Optional) chromaSubsampling; + return chromaSubsampling; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codedHeight() { - return (Optional) codedHeight; + return codedHeight; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codedWidth() { - return (Optional) codedWidth; + return codedWidth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional colorRange() { - return (Optional) colorRange; + return colorRange; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional frameRate() { - return (Optional) frameRate; + return frameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional level() { - return (Optional) level; + return level; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional profile() { - return (Optional) profile; + return profile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional refFrames() { - return (Optional) refFrames; + return refFrames; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional displayTitle() { - return (Optional) displayTitle; + return displayTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; + return extendedDisplayTitle; } public final static Builder builder() { @@ -337,7 +315,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withId(Optional id) { + public GetOnDeckStream withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -349,7 +327,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withStreamType(Optional streamType) { + public GetOnDeckStream withStreamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -361,7 +339,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withDefault(Optional default_) { + public GetOnDeckStream withDefault(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -373,7 +351,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withCodec(Optional codec) { + public GetOnDeckStream withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -385,7 +363,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withIndex(Optional index) { + public GetOnDeckStream withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -397,7 +375,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withBitrate(Optional bitrate) { + public GetOnDeckStream withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -409,7 +387,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withLanguage(Optional language) { + public GetOnDeckStream withLanguage(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; @@ -421,7 +399,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withLanguageTag(Optional languageTag) { + public GetOnDeckStream withLanguageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; @@ -433,7 +411,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withLanguageCode(Optional languageCode) { + public GetOnDeckStream withLanguageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; @@ -445,7 +423,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withBitDepth(Optional bitDepth) { + public GetOnDeckStream withBitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -457,7 +435,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withChromaLocation(Optional chromaLocation) { + public GetOnDeckStream withChromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; @@ -469,7 +447,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withChromaSubsampling(Optional chromaSubsampling) { + public GetOnDeckStream withChromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; @@ -481,7 +459,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withCodedHeight(Optional codedHeight) { + public GetOnDeckStream withCodedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; @@ -493,7 +471,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withCodedWidth(Optional codedWidth) { + public GetOnDeckStream withCodedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; @@ -505,7 +483,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withColorRange(Optional colorRange) { + public GetOnDeckStream withColorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; @@ -517,7 +495,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withFrameRate(Optional frameRate) { + public GetOnDeckStream withFrameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; @@ -529,7 +507,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withHeight(Optional height) { + public GetOnDeckStream withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -541,7 +519,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withLevel(Optional level) { + public GetOnDeckStream withLevel(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; @@ -553,7 +531,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withProfile(Optional profile) { + public GetOnDeckStream withProfile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -565,7 +543,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withRefFrames(Optional refFrames) { + public GetOnDeckStream withRefFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; @@ -577,7 +555,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withWidth(Optional width) { + public GetOnDeckStream withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -589,7 +567,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withDisplayTitle(Optional displayTitle) { + public GetOnDeckStream withDisplayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -601,7 +579,7 @@ public class GetOnDeckStream { return this; } - public GetOnDeckStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { + public GetOnDeckStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; @@ -617,34 +595,34 @@ public class GetOnDeckStream { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.streamType, other.streamType) && + Objects.deepEquals(this.default_, other.default_) && + Objects.deepEquals(this.codec, other.codec) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.languageTag, other.languageTag) && + Objects.deepEquals(this.languageCode, other.languageCode) && + Objects.deepEquals(this.bitDepth, other.bitDepth) && + Objects.deepEquals(this.chromaLocation, other.chromaLocation) && + Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) && + Objects.deepEquals(this.codedHeight, other.codedHeight) && + Objects.deepEquals(this.codedWidth, other.codedWidth) && + Objects.deepEquals(this.colorRange, other.colorRange) && + Objects.deepEquals(this.frameRate, other.frameRate) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.level, other.level) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.refFrames, other.refFrames) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.displayTitle, other.displayTitle) && + Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, streamType, default_, @@ -700,51 +678,51 @@ public class GetOnDeckStream { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional streamType = Optional.empty(); + private Optional streamType = Optional.empty(); - private Optional default_ = Optional.empty(); + private Optional default_ = Optional.empty(); - private Optional codec = Optional.empty(); + private Optional codec = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional language = Optional.empty(); + private Optional language = Optional.empty(); - private Optional languageTag = Optional.empty(); + private Optional languageTag = Optional.empty(); - private Optional languageCode = Optional.empty(); + private Optional languageCode = Optional.empty(); - private Optional bitDepth = Optional.empty(); + private Optional bitDepth = Optional.empty(); - private Optional chromaLocation = Optional.empty(); + private Optional chromaLocation = Optional.empty(); - private Optional chromaSubsampling = Optional.empty(); + private Optional chromaSubsampling = Optional.empty(); - private Optional codedHeight = Optional.empty(); + private Optional codedHeight = Optional.empty(); - private Optional codedWidth = Optional.empty(); + private Optional codedWidth = Optional.empty(); - private Optional colorRange = Optional.empty(); + private Optional colorRange = Optional.empty(); - private Optional frameRate = Optional.empty(); + private Optional frameRate = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional level = Optional.empty(); + private Optional level = Optional.empty(); - private Optional profile = Optional.empty(); + private Optional profile = Optional.empty(); - private Optional refFrames = Optional.empty(); + private Optional refFrames = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional displayTitle = Optional.empty(); + private Optional displayTitle = Optional.empty(); - private Optional extendedDisplayTitle = Optional.empty(); + private Optional extendedDisplayTitle = Optional.empty(); private Builder() { // force use of static builder() method @@ -756,7 +734,7 @@ public class GetOnDeckStream { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -768,7 +746,7 @@ public class GetOnDeckStream { return this; } - public Builder streamType(Optional streamType) { + public Builder streamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -780,7 +758,7 @@ public class GetOnDeckStream { return this; } - public Builder default_(Optional default_) { + public Builder default_(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -792,7 +770,7 @@ public class GetOnDeckStream { return this; } - public Builder codec(Optional codec) { + public Builder codec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -804,7 +782,7 @@ public class GetOnDeckStream { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -816,7 +794,7 @@ public class GetOnDeckStream { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -828,7 +806,7 @@ public class GetOnDeckStream { return this; } - public Builder language(Optional language) { + public Builder language(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; @@ -840,7 +818,7 @@ public class GetOnDeckStream { return this; } - public Builder languageTag(Optional languageTag) { + public Builder languageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; @@ -852,7 +830,7 @@ public class GetOnDeckStream { return this; } - public Builder languageCode(Optional languageCode) { + public Builder languageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; @@ -864,7 +842,7 @@ public class GetOnDeckStream { return this; } - public Builder bitDepth(Optional bitDepth) { + public Builder bitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -876,7 +854,7 @@ public class GetOnDeckStream { return this; } - public Builder chromaLocation(Optional chromaLocation) { + public Builder chromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; @@ -888,7 +866,7 @@ public class GetOnDeckStream { return this; } - public Builder chromaSubsampling(Optional chromaSubsampling) { + public Builder chromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; @@ -900,7 +878,7 @@ public class GetOnDeckStream { return this; } - public Builder codedHeight(Optional codedHeight) { + public Builder codedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; @@ -912,7 +890,7 @@ public class GetOnDeckStream { return this; } - public Builder codedWidth(Optional codedWidth) { + public Builder codedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; @@ -924,7 +902,7 @@ public class GetOnDeckStream { return this; } - public Builder colorRange(Optional colorRange) { + public Builder colorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; @@ -936,7 +914,7 @@ public class GetOnDeckStream { return this; } - public Builder frameRate(Optional frameRate) { + public Builder frameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; @@ -948,7 +926,7 @@ public class GetOnDeckStream { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -960,7 +938,7 @@ public class GetOnDeckStream { return this; } - public Builder level(Optional level) { + public Builder level(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; @@ -972,7 +950,7 @@ public class GetOnDeckStream { return this; } - public Builder profile(Optional profile) { + public Builder profile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -984,7 +962,7 @@ public class GetOnDeckStream { return this; } - public Builder refFrames(Optional refFrames) { + public Builder refFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; @@ -996,7 +974,7 @@ public class GetOnDeckStream { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -1008,7 +986,7 @@ public class GetOnDeckStream { return this; } - public Builder displayTitle(Optional displayTitle) { + public Builder displayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -1020,7 +998,7 @@ public class GetOnDeckStream { return this; } - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { + public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java new file mode 100644 index 00000000..2c8b3bd9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java @@ -0,0 +1,547 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * GetPinAuthPinContainer - Requests a new pin id used in the authentication flow + */ + +public class GetPinAuthPinContainer { + + @JsonProperty("id") + private long id; + + @JsonProperty("code") + private String code; + + @JsonProperty("product") + private String product; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trusted") + private Optional trusted; + + @JsonProperty("qr") + private String qr; + + /** + * The X-Client-Identifier used in the request + */ + @JsonProperty("clientIdentifier") + private String clientIdentifier; + + /** + * Geo location data + */ + @JsonProperty("location") + private GeoData location; + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("expiresIn") + private Optional expiresIn; + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + @JsonProperty("expiresAt") + private OffsetDateTime expiresAt; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("authToken") + private JsonNullable authToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("newRegistration") + private JsonNullable newRegistration; + + @JsonCreator + public GetPinAuthPinContainer( + @JsonProperty("id") long id, + @JsonProperty("code") String code, + @JsonProperty("product") String product, + @JsonProperty("trusted") Optional trusted, + @JsonProperty("qr") String qr, + @JsonProperty("clientIdentifier") String clientIdentifier, + @JsonProperty("location") GeoData location, + @JsonProperty("expiresIn") Optional expiresIn, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("expiresAt") OffsetDateTime expiresAt, + @JsonProperty("authToken") JsonNullable 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 GetPinAuthPinContainer( + long id, + String code, + String product, + String qr, + String clientIdentifier, + GeoData location, + OffsetDateTime createdAt, + OffsetDateTime expiresAt) { + this(id, code, product, Optional.empty(), qr, clientIdentifier, location, Optional.empty(), createdAt, expiresAt, JsonNullable.undefined(), JsonNullable.undefined()); + } + + @JsonIgnore + public long id() { + return id; + } + + @JsonIgnore + public String code() { + return code; + } + + @JsonIgnore + public String product() { + return product; + } + + @JsonIgnore + public Optional trusted() { + return trusted; + } + + @JsonIgnore + public String qr() { + return qr; + } + + /** + * The X-Client-Identifier used in the request + */ + @JsonIgnore + public String clientIdentifier() { + return clientIdentifier; + } + + /** + * Geo location data + */ + @JsonIgnore + public GeoData location() { + return location; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + @JsonIgnore + public Optional expiresIn() { + return expiresIn; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public OffsetDateTime expiresAt() { + return expiresAt; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable authToken() { + return (JsonNullable) authToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable newRegistration() { + return (JsonNullable) newRegistration; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetPinAuthPinContainer withId(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public GetPinAuthPinContainer withCode(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetPinAuthPinContainer withProduct(String product) { + Utils.checkNotNull(product, "product"); + this.product = product; + return this; + } + + public GetPinAuthPinContainer withTrusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + public GetPinAuthPinContainer withTrusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + public GetPinAuthPinContainer withQr(String qr) { + Utils.checkNotNull(qr, "qr"); + this.qr = qr; + return this; + } + + /** + * The X-Client-Identifier used in the request + */ + public GetPinAuthPinContainer withClientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + /** + * Geo location data + */ + public GetPinAuthPinContainer withLocation(GeoData location) { + Utils.checkNotNull(location, "location"); + this.location = location; + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public GetPinAuthPinContainer withExpiresIn(long expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = Optional.ofNullable(expiresIn); + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public GetPinAuthPinContainer withExpiresIn(Optional expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = expiresIn; + return this; + } + + public GetPinAuthPinContainer withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public GetPinAuthPinContainer withExpiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + public GetPinAuthPinContainer withAuthToken(Object authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = JsonNullable.of(authToken); + return this; + } + + public GetPinAuthPinContainer withAuthToken(JsonNullable authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + public GetPinAuthPinContainer withNewRegistration(Object newRegistration) { + Utils.checkNotNull(newRegistration, "newRegistration"); + this.newRegistration = JsonNullable.of(newRegistration); + return this; + } + + public GetPinAuthPinContainer 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; + } + GetPinAuthPinContainer other = (GetPinAuthPinContainer) o; + return + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.product, other.product) && + Objects.deepEquals(this.trusted, other.trusted) && + Objects.deepEquals(this.qr, other.qr) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.location, other.location) && + Objects.deepEquals(this.expiresIn, other.expiresIn) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.expiresAt, other.expiresAt) && + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.newRegistration, other.newRegistration); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + code, + product, + trusted, + qr, + clientIdentifier, + location, + expiresIn, + createdAt, + expiresAt, + authToken, + newRegistration); + } + + @Override + public String toString() { + return Utils.toString(GetPinAuthPinContainer.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 Long id; + + private String code; + + private String product; + + private Optional trusted; + + private String qr; + + private String clientIdentifier; + + private GeoData location; + + private Optional expiresIn; + + private OffsetDateTime createdAt; + + private OffsetDateTime expiresAt; + + private JsonNullable authToken = JsonNullable.undefined(); + + private JsonNullable newRegistration = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + public Builder id(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Builder code(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public Builder product(String 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; + } + + public Builder qr(String qr) { + Utils.checkNotNull(qr, "qr"); + this.qr = qr; + return this; + } + + /** + * The X-Client-Identifier used in the request + */ + public Builder clientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + /** + * Geo location data + */ + public Builder location(GeoData location) { + Utils.checkNotNull(location, "location"); + this.location = location; + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public Builder expiresIn(long expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = Optional.ofNullable(expiresIn); + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + 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 = createdAt; + return this; + } + + public Builder expiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + public Builder authToken(Object authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = JsonNullable.of(authToken); + return this; + } + + public Builder authToken(JsonNullable authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + public Builder newRegistration(Object 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 GetPinAuthPinContainer build() { + if (trusted == null) { + trusted = _SINGLETON_VALUE_Trusted.value(); + } + if (expiresIn == null) { + expiresIn = _SINGLETON_VALUE_ExpiresIn.value(); + } return new GetPinAuthPinContainer( + id, + code, + product, + trusted, + qr, + clientIdentifier, + location, + expiresIn, + createdAt, + expiresAt, + authToken, + newRegistration); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Trusted = + new LazySingletonValue<>( + "trusted", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ExpiresIn = + new LazySingletonValue<>( + "expiresIn", + "900", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java index b75d91f4..66486670 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java @@ -1,21 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; 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 { @@ -26,7 +27,7 @@ public class GetPinRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=strong") - private Optional strong; + private Optional strong; /** * The unique identifier for the client application @@ -34,21 +35,17 @@ public class GetPinRequest { * (UUID, serial number, or other number unique per device) * */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier") - private Optional xPlexClientIdentifier; + @SpeakeasyMetadata("queryParam:style=form,explode=true,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; + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product") + private Optional xPlexProduct; @JsonCreator public GetPinRequest( - Optional strong, - Optional xPlexClientIdentifier, - String xPlexProduct) { + Optional strong, + Optional xPlexClientIdentifier, + Optional xPlexProduct) { Utils.checkNotNull(strong, "strong"); Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); Utils.checkNotNull(xPlexProduct, "xPlexProduct"); @@ -57,9 +54,8 @@ public class GetPinRequest { this.xPlexProduct = xPlexProduct; } - public GetPinRequest( - String xPlexProduct) { - this(Optional.empty(), Optional.empty(), xPlexProduct); + public GetPinRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -68,10 +64,9 @@ public class GetPinRequest { * Non-Strong codes are used for `Plex.tv/link` * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional strong() { - return (Optional) strong; + return strong; } /** @@ -80,18 +75,13 @@ public class GetPinRequest { * (UUID, serial number, or other number unique per device) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional xPlexClientIdentifier() { - return (Optional) xPlexClientIdentifier; + return xPlexClientIdentifier; } - /** - * Product name of the application shown in the list of devices - * - */ @JsonIgnore - public String xPlexProduct() { + public Optional xPlexProduct() { return xPlexProduct; } @@ -117,7 +107,7 @@ public class GetPinRequest { * Non-Strong codes are used for `Plex.tv/link` * */ - public GetPinRequest withStrong(Optional strong) { + public GetPinRequest withStrong(Optional strong) { Utils.checkNotNull(strong, "strong"); this.strong = strong; return this; @@ -141,17 +131,19 @@ public class GetPinRequest { * (UUID, serial number, or other number unique per device) * */ - public GetPinRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { + 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 = Optional.ofNullable(xPlexProduct); + return this; + } + + public GetPinRequest withXPlexProduct(Optional xPlexProduct) { Utils.checkNotNull(xPlexProduct, "xPlexProduct"); this.xPlexProduct = xPlexProduct; return this; @@ -167,14 +159,14 @@ public class GetPinRequest { } 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); + Objects.deepEquals(this.strong, other.strong) && + Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) && + Objects.deepEquals(this.xPlexProduct, other.xPlexProduct); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( strong, xPlexClientIdentifier, xPlexProduct); @@ -190,11 +182,11 @@ public class GetPinRequest { public final static class Builder { - private Optional strong; + private Optional strong; - private Optional xPlexClientIdentifier = Optional.empty(); + private Optional xPlexClientIdentifier = Optional.empty(); - private String xPlexProduct; + private Optional xPlexProduct = Optional.empty(); private Builder() { // force use of static builder() method @@ -218,7 +210,7 @@ public class GetPinRequest { * Non-Strong codes are used for `Plex.tv/link` * */ - public Builder strong(Optional strong) { + public Builder strong(Optional strong) { Utils.checkNotNull(strong, "strong"); this.strong = strong; return this; @@ -242,17 +234,19 @@ public class GetPinRequest { * (UUID, serial number, or other number unique per device) * */ - public Builder xPlexClientIdentifier(Optional xPlexClientIdentifier) { + 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 = Optional.ofNullable(xPlexProduct); + return this; + } + + public Builder xPlexProduct(Optional xPlexProduct) { Utils.checkNotNull(xPlexProduct, "xPlexProduct"); this.xPlexProduct = xPlexProduct; return this; @@ -261,18 +255,17 @@ public class GetPinRequest { public GetPinRequest build() { if (strong == null) { strong = _SINGLETON_VALUE_Strong.value(); - } - return new GetPinRequest( + } return new GetPinRequest( strong, xPlexClientIdentifier, xPlexProduct); } - private static final LazySingletonValue> _SINGLETON_VALUE_Strong = + private static final LazySingletonValue> _SINGLETON_VALUE_Strong = new LazySingletonValue<>( "strong", "false", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java index efec567d..f6aa69fe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java @@ -1,31 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.String; 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( + private Optional strong = Utils.readDefaultOrConstValue( "strong", "false", - new TypeReference>() {}); - private Optional xPlexClientIdentifier = Optional.empty(); - private String xPlexProduct; - private java.util.Optional serverURL = Optional.empty(); + new TypeReference>() {}); + private Optional xPlexClientIdentifier = Optional.empty(); + private Optional xPlexProduct = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetPin sdk; public GetPinRequestBuilder(SDKMethodInterfaces.MethodCallGetPin sdk) { @@ -38,37 +32,43 @@ public class GetPinRequestBuilder { return this; } - public GetPinRequestBuilder strong(Optional strong) { + public GetPinRequestBuilder strong(java.util.Optional strong) { Utils.checkNotNull(strong, "strong"); this.strong = strong; return this; } - public GetPinRequestBuilder xPlexClientIdentifier(String xPlexClientIdentifier) { + public GetPinRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) { Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier); return this; } - public GetPinRequestBuilder xPlexClientIdentifier(Optional xPlexClientIdentifier) { + public GetPinRequestBuilder xPlexClientIdentifier(java.util.Optional xPlexClientIdentifier) { Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); this.xPlexClientIdentifier = xPlexClientIdentifier; return this; } + + public GetPinRequestBuilder xPlexProduct(java.lang.String xPlexProduct) { + Utils.checkNotNull(xPlexProduct, "xPlexProduct"); + this.xPlexProduct = Optional.of(xPlexProduct); + return this; + } - public GetPinRequestBuilder xPlexProduct(String xPlexProduct) { + public GetPinRequestBuilder xPlexProduct(java.util.Optional xPlexProduct) { Utils.checkNotNull(xPlexProduct, "xPlexProduct"); this.xPlexProduct = xPlexProduct; return this; } - public GetPinRequestBuilder serverURL(String serverURL) { + public GetPinRequestBuilder serverURL(java.lang.String serverURL) { Utils.checkNotNull(serverURL, "serverURL"); this.serverURL = Optional.of(serverURL); return this; } - public GetPinRequestBuilder serverURL(java.util.Optional serverURL) { + public GetPinRequestBuilder serverURL(java.util.Optional serverURL) { Utils.checkNotNull(serverURL, "serverURL"); this.serverURL = serverURL; return this; @@ -78,7 +78,6 @@ public class GetPinRequestBuilder { if (strong == null) { strong = _SINGLETON_VALUE_Strong.value(); } - return sdk.getPin( strong, xPlexClientIdentifier, @@ -86,9 +85,9 @@ public class GetPinRequestBuilder { serverURL); } - private static final LazySingletonValue> _SINGLETON_VALUE_Strong = + private static final LazySingletonValue> _SINGLETON_VALUE_Strong = new LazySingletonValue<>( "strong", "false", - new TypeReference>() {}); + new TypeReference>() {}); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java index 7009e824..65af3b76 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetPinResponse implements Response { /** * HTTP response content type for this operation @@ -34,24 +37,24 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response private HttpResponse rawResponse; /** - * The Pin + * Requests a new pin id used in the authentication flow */ - private Optional object; + private Optional authPinContainer; @JsonCreator public GetPinResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional authPinContainer) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(authPinContainer, "authPinContainer"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.authPinContainer = authPinContainer; } public GetPinResponse( @@ -86,12 +89,12 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response } /** - * The Pin + * Requests a new pin id used in the authentication flow */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional authPinContainer() { + return (Optional) authPinContainer; } public final static Builder builder() { @@ -126,20 +129,20 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response } /** - * The Pin + * Requests a new pin id used in the authentication flow */ - public GetPinResponse withObject(GetPinResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public GetPinResponse withAuthPinContainer(GetPinAuthPinContainer authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = Optional.ofNullable(authPinContainer); return this; } /** - * The Pin + * Requests a new pin id used in the authentication flow */ - public GetPinResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public GetPinResponse withAuthPinContainer(Optional authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = authPinContainer; return this; } @@ -153,19 +156,19 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.authPinContainer, other.authPinContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, - object); + authPinContainer); } @Override @@ -174,7 +177,7 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "authPinContainer", authPinContainer); } public final static class Builder { @@ -185,7 +188,7 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional authPinContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -219,20 +222,20 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response } /** - * The Pin + * Requests a new pin id used in the authentication flow */ - public Builder object(GetPinResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder authPinContainer(GetPinAuthPinContainer authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = Optional.ofNullable(authPinContainer); return this; } /** - * The Pin + * Requests a new pin id used in the authentication flow */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder authPinContainer(Optional authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = authPinContainer; return this; } @@ -241,7 +244,7 @@ public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response contentType, statusCode, rawResponse, - object); + authPinContainer); } } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java index 5a5a3aaa..df577b4f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetPlaylistContentsCountry( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetPlaylistContentsCountry { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetPlaylistContentsCountry { return this; } - public GetPlaylistContentsCountry withTag(Optional tag) { + public GetPlaylistContentsCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetPlaylistContentsCountry { } GetPlaylistContentsCountry other = (GetPlaylistContentsCountry) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetPlaylistContentsCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetPlaylistContentsCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java index 31482e58..7b678f41 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsDirector { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetPlaylistContentsDirector( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetPlaylistContentsDirector { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetPlaylistContentsDirector { return this; } - public GetPlaylistContentsDirector withTag(Optional tag) { + public GetPlaylistContentsDirector withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetPlaylistContentsDirector { } GetPlaylistContentsDirector other = (GetPlaylistContentsDirector) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetPlaylistContentsDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetPlaylistContentsDirector { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java index ea3ce41b..4d98656b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetPlaylistContentsGenre( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetPlaylistContentsGenre { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetPlaylistContentsGenre { return this; } - public GetPlaylistContentsGenre withTag(Optional tag) { + public GetPlaylistContentsGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetPlaylistContentsGenre { } GetPlaylistContentsGenre other = (GetPlaylistContentsGenre) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetPlaylistContentsGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetPlaylistContentsGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java index b3cb95b3..ef121fc6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java @@ -1,112 +1,116 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -147,106 +151,90 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -259,7 +247,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withId(Optional id) { + public GetPlaylistContentsMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -271,7 +259,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withDuration(Optional duration) { + public GetPlaylistContentsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -283,7 +271,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withBitrate(Optional bitrate) { + public GetPlaylistContentsMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -295,7 +283,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withWidth(Optional width) { + public GetPlaylistContentsMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -307,7 +295,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withHeight(Optional height) { + public GetPlaylistContentsMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -319,7 +307,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withAspectRatio(Optional aspectRatio) { + public GetPlaylistContentsMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -331,7 +319,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withAudioChannels(Optional audioChannels) { + public GetPlaylistContentsMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -343,7 +331,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withAudioCodec(Optional audioCodec) { + public GetPlaylistContentsMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -355,7 +343,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withVideoCodec(Optional videoCodec) { + public GetPlaylistContentsMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -367,7 +355,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withVideoResolution(Optional videoResolution) { + public GetPlaylistContentsMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -379,7 +367,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withContainer(Optional container) { + public GetPlaylistContentsMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -391,7 +379,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withVideoFrameRate(Optional videoFrameRate) { + public GetPlaylistContentsMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -403,7 +391,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetPlaylistContentsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -415,7 +403,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withAudioProfile(Optional audioProfile) { + public GetPlaylistContentsMedia withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -427,7 +415,7 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withHas64bitOffsets(Optional has64bitOffsets) { + public GetPlaylistContentsMedia withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -439,19 +427,19 @@ public class GetPlaylistContentsMedia { return this; } - public GetPlaylistContentsMedia withVideoProfile(Optional videoProfile) { + public GetPlaylistContentsMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetPlaylistContentsMedia withPart(java.util.List part) { + public GetPlaylistContentsMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetPlaylistContentsMedia withPart(Optional> part) { + public GetPlaylistContentsMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -467,28 +455,28 @@ public class GetPlaylistContentsMedia { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -532,39 +520,39 @@ public class GetPlaylistContentsMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -576,7 +564,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -588,7 +576,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -600,7 +588,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -612,7 +600,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -624,7 +612,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -636,7 +624,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -648,7 +636,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -660,7 +648,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -672,7 +660,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -684,7 +672,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -696,7 +684,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -708,7 +696,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -720,7 +708,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -732,7 +720,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -744,7 +732,7 @@ public class GetPlaylistContentsMedia { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -756,19 +744,19 @@ public class GetPlaylistContentsMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java index b5428043..bc450118 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java @@ -1,72 +1,75 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -91,58 +94,50 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -155,7 +150,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withSize(Optional size) { + public GetPlaylistContentsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -167,7 +162,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withComposite(Optional composite) { + public GetPlaylistContentsMediaContainer withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -179,7 +174,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withDuration(Optional duration) { + public GetPlaylistContentsMediaContainer withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -191,7 +186,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withLeafCount(Optional leafCount) { + public GetPlaylistContentsMediaContainer withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -203,7 +198,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withPlaylistType(Optional playlistType) { + public GetPlaylistContentsMediaContainer withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -215,7 +210,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withRatingKey(Optional ratingKey) { + public GetPlaylistContentsMediaContainer withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -227,7 +222,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withSmart(Optional smart) { + public GetPlaylistContentsMediaContainer withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -239,19 +234,19 @@ public class GetPlaylistContentsMediaContainer { return this; } - public GetPlaylistContentsMediaContainer withTitle(Optional title) { + public GetPlaylistContentsMediaContainer withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public GetPlaylistContentsMediaContainer withMetadata(java.util.List metadata) { + public GetPlaylistContentsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetPlaylistContentsMediaContainer withMetadata(Optional> metadata) { + public GetPlaylistContentsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -267,20 +262,20 @@ public class GetPlaylistContentsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, composite, duration, @@ -308,23 +303,23 @@ public class GetPlaylistContentsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -336,7 +331,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -348,7 +343,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -360,7 +355,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -372,7 +367,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -384,7 +379,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -396,7 +391,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -408,7 +403,7 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -420,19 +415,19 @@ public class GetPlaylistContentsMediaContainer { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java index 59bf84f8..900953c8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java @@ -1,188 +1,191 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("titleSort") - private Optional titleSort; + private Optional titleSort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasPremiumExtras") - private Optional hasPremiumExtras; + private Optional hasPremiumExtras; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; + private Optional hasPremiumPrimaryExtra; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> 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) { + @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"); @@ -253,196 +256,170 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional titleSort() { - return (Optional) titleSort; + return titleSort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasPremiumExtras() { - return (Optional) hasPremiumExtras; + return hasPremiumExtras; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; + return hasPremiumPrimaryExtra; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } public final static Builder builder() { @@ -455,7 +432,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withRatingKey(Optional ratingKey) { + public GetPlaylistContentsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -467,7 +444,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withKey(Optional key) { + public GetPlaylistContentsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -479,7 +456,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withGuid(Optional guid) { + public GetPlaylistContentsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -491,7 +468,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withStudio(Optional studio) { + public GetPlaylistContentsMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -503,7 +480,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withType(Optional type) { + public GetPlaylistContentsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -515,7 +492,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withTitle(Optional title) { + public GetPlaylistContentsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -527,7 +504,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withTitleSort(Optional titleSort) { + public GetPlaylistContentsMetadata withTitleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -539,7 +516,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetPlaylistContentsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -551,7 +528,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withLibrarySectionID(Optional librarySectionID) { + public GetPlaylistContentsMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -563,7 +540,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetPlaylistContentsMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -575,7 +552,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withContentRating(Optional contentRating) { + public GetPlaylistContentsMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -587,7 +564,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withSummary(Optional summary) { + public GetPlaylistContentsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -599,7 +576,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withRating(Optional rating) { + public GetPlaylistContentsMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -611,7 +588,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withAudienceRating(Optional audienceRating) { + public GetPlaylistContentsMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -623,7 +600,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withYear(Optional year) { + public GetPlaylistContentsMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -635,7 +612,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withTagline(Optional tagline) { + public GetPlaylistContentsMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -647,7 +624,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withThumb(Optional thumb) { + public GetPlaylistContentsMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -659,7 +636,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withArt(Optional art) { + public GetPlaylistContentsMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -671,7 +648,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withDuration(Optional duration) { + public GetPlaylistContentsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -683,7 +660,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetPlaylistContentsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -695,7 +672,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withAddedAt(Optional addedAt) { + public GetPlaylistContentsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -707,7 +684,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { + public GetPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -719,7 +696,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetPlaylistContentsMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -731,7 +708,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { + public GetPlaylistContentsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); this.hasPremiumExtras = hasPremiumExtras; return this; @@ -743,7 +720,7 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public GetPlaylistContentsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; @@ -755,79 +732,79 @@ public class GetPlaylistContentsMetadata { return this; } - public GetPlaylistContentsMetadata withRatingImage(Optional ratingImage) { + public GetPlaylistContentsMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public GetPlaylistContentsMetadata withMedia(java.util.List media) { + public GetPlaylistContentsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetPlaylistContentsMetadata withMedia(Optional> media) { + public GetPlaylistContentsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetPlaylistContentsMetadata withGenre(java.util.List genre) { + public GetPlaylistContentsMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetPlaylistContentsMetadata withGenre(Optional> genre) { + public GetPlaylistContentsMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetPlaylistContentsMetadata withCountry(java.util.List country) { + public GetPlaylistContentsMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetPlaylistContentsMetadata withCountry(Optional> country) { + public GetPlaylistContentsMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetPlaylistContentsMetadata withDirector(java.util.List director) { + public GetPlaylistContentsMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetPlaylistContentsMetadata withDirector(Optional> director) { + public GetPlaylistContentsMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetPlaylistContentsMetadata withWriter(java.util.List writer) { + public GetPlaylistContentsMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetPlaylistContentsMetadata withWriter(Optional> writer) { + public GetPlaylistContentsMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public GetPlaylistContentsMetadata withRole(java.util.List role) { + public GetPlaylistContentsMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetPlaylistContentsMetadata withRole(Optional> role) { + public GetPlaylistContentsMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -843,43 +820,43 @@ public class GetPlaylistContentsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.titleSort, other.titleSort) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.hasPremiumExtras, other.hasPremiumExtras) && + Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.role, other.role); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -953,69 +930,69 @@ public class GetPlaylistContentsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional titleSort = Optional.empty(); + private Optional titleSort = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional hasPremiumExtras = Optional.empty(); + private Optional hasPremiumExtras = Optional.empty(); - private Optional hasPremiumPrimaryExtra = Optional.empty(); + private Optional hasPremiumPrimaryExtra = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1027,7 +1004,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1039,7 +1016,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1051,7 +1028,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1063,7 +1040,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1075,7 +1052,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1087,7 +1064,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1099,7 +1076,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder titleSort(Optional titleSort) { + public Builder titleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -1111,7 +1088,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1123,7 +1100,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1135,7 +1112,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1147,7 +1124,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1159,7 +1136,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1171,7 +1148,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1183,7 +1160,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1195,7 +1172,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1207,7 +1184,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1219,7 +1196,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1231,7 +1208,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1243,7 +1220,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1255,7 +1232,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1267,7 +1244,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1279,7 +1256,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1291,7 +1268,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1303,7 +1280,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder hasPremiumExtras(Optional hasPremiumExtras) { + public Builder hasPremiumExtras(Optional hasPremiumExtras) { Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); this.hasPremiumExtras = hasPremiumExtras; return this; @@ -1315,7 +1292,7 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { + public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; return this; @@ -1327,79 +1304,79 @@ public class GetPlaylistContentsMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java index 044f2f7b..0d9b09d7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java @@ -1,77 +1,78 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional 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) { + @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"); @@ -98,64 +99,54 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } public final static Builder builder() { @@ -168,7 +159,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withId(Optional id) { + public GetPlaylistContentsPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -180,7 +171,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withKey(Optional key) { + public GetPlaylistContentsPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -192,7 +183,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withDuration(Optional duration) { + public GetPlaylistContentsPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -204,7 +195,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withFile(Optional file) { + public GetPlaylistContentsPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -216,7 +207,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withSize(Optional size) { + public GetPlaylistContentsPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -228,7 +219,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withAudioProfile(Optional audioProfile) { + public GetPlaylistContentsPart withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -240,7 +231,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withContainer(Optional container) { + public GetPlaylistContentsPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -252,7 +243,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withHas64bitOffsets(Optional has64bitOffsets) { + public GetPlaylistContentsPart withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -264,7 +255,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withOptimizedForStreaming(Optional optimizedForStreaming) { + public GetPlaylistContentsPart withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -276,7 +267,7 @@ public class GetPlaylistContentsPart { return this; } - public GetPlaylistContentsPart withVideoProfile(Optional videoProfile) { + public GetPlaylistContentsPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; @@ -292,21 +283,21 @@ public class GetPlaylistContentsPart { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.videoProfile, other.videoProfile); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -336,25 +327,25 @@ public class GetPlaylistContentsPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -366,7 +357,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -378,7 +369,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -390,7 +381,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -402,7 +393,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -414,7 +405,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -426,7 +417,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -438,7 +429,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -450,7 +441,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -462,7 +453,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -474,7 +465,7 @@ public class GetPlaylistContentsPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java new file mode 100644 index 00000000..f1a910d6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * GetPlaylistContentsQueryParamType - The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ +public enum GetPlaylistContentsQueryParamType { + ONE(1L), + TWO(2L), + THREE(3L), + FOUR(4L); + + @JsonValue + private final long value; + + private GetPlaylistContentsQueryParamType(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java index 53be5923..df1d0ce7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetPlaylistContentsRequest { @@ -24,15 +24,21 @@ public class GetPlaylistContentsRequest { private double playlistID; /** - * the metadata type of the item to return + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private double type; + private GetPlaylistContentsQueryParamType type; @JsonCreator public GetPlaylistContentsRequest( double playlistID, - double type) { + GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(playlistID, "playlistID"); Utils.checkNotNull(type, "type"); this.playlistID = playlistID; @@ -48,10 +54,16 @@ public class GetPlaylistContentsRequest { } /** - * the metadata type of the item to return + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ @JsonIgnore - public double type() { + public GetPlaylistContentsQueryParamType type() { return type; } @@ -69,9 +81,15 @@ public class GetPlaylistContentsRequest { } /** - * the metadata type of the item to return + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ - public GetPlaylistContentsRequest withType(double type) { + public GetPlaylistContentsRequest withType(GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -87,13 +105,13 @@ public class GetPlaylistContentsRequest { } GetPlaylistContentsRequest other = (GetPlaylistContentsRequest) o; return - java.util.Objects.deepEquals(this.playlistID, other.playlistID) && - java.util.Objects.deepEquals(this.type, other.type); + Objects.deepEquals(this.playlistID, other.playlistID) && + Objects.deepEquals(this.type, other.type); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID, type); } @@ -109,7 +127,7 @@ public class GetPlaylistContentsRequest { private Double playlistID; - private Double type; + private GetPlaylistContentsQueryParamType type; private Builder() { // force use of static builder() method @@ -125,9 +143,15 @@ public class GetPlaylistContentsRequest { } /** - * the metadata type of the item to return + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ - public Builder type(double type) { + public Builder type(GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java similarity index 52% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java index 4f0700c7..270fe15a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java @@ -1,26 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; public class GetPlaylistContentsRequestBuilder { private Double playlistID; - private Double type; + private GetPlaylistContentsQueryParamType type; private final SDKMethodInterfaces.MethodCallGetPlaylistContents sdk; public GetPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaylistContents sdk) { @@ -33,7 +23,7 @@ public class GetPlaylistContentsRequestBuilder { return this; } - public GetPlaylistContentsRequestBuilder type(double type) { + public GetPlaylistContentsRequestBuilder type(dev.plexapi.sdk.models.operations.GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java index 48a4c04c..6aa9884c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetPlaylistContentsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetPlaylistContentsResponse implements lukehagar.plexapi.plexapi.ut } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java index 627258e3..4d1860fe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetPlaylistContentsResponseBody - The playlist contents */ @@ -70,12 +70,12 @@ public class GetPlaylistContentsResponseBody { } GetPlaylistContentsResponseBody other = (GetPlaylistContentsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java index 5af869c6..5812baad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetPlaylistContentsRole( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetPlaylistContentsRole { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetPlaylistContentsRole { return this; } - public GetPlaylistContentsRole withTag(Optional tag) { + public GetPlaylistContentsRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetPlaylistContentsRole { } GetPlaylistContentsRole other = (GetPlaylistContentsRole) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetPlaylistContentsRole { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetPlaylistContentsRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java index a102e58c..09126b20 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistContentsWriter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetPlaylistContentsWriter( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetPlaylistContentsWriter { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetPlaylistContentsWriter { return this; } - public GetPlaylistContentsWriter withTag(Optional tag) { + public GetPlaylistContentsWriter withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetPlaylistContentsWriter { } GetPlaylistContentsWriter other = (GetPlaylistContentsWriter) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetPlaylistContentsWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetPlaylistContentsWriter { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java index ed9a37cf..af539084 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public GetPlaylistMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { + @JsonProperty("size") Optional size, + @JsonProperty("Metadata") Optional> metadata) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(metadata, "metadata"); this.size = size; @@ -42,16 +44,15 @@ public class GetPlaylistMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetPlaylistMediaContainer { return this; } - public GetPlaylistMediaContainer withSize(Optional size) { + public GetPlaylistMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetPlaylistMediaContainer withMetadata(java.util.List metadata) { + public GetPlaylistMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetPlaylistMediaContainer withMetadata(Optional> metadata) { + public GetPlaylistMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -92,13 +93,13 @@ public class GetPlaylistMediaContainer { } GetPlaylistMediaContainer other = (GetPlaylistMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, metadata); } @@ -112,9 +113,9 @@ public class GetPlaylistMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetPlaylistMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java index be4e8586..d899f1e8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java @@ -1,102 +1,103 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("content") - private Optional content; + private Optional content; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("icon") - private Optional icon; + private Optional icon; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional 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) { + @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"); @@ -133,94 +134,79 @@ public class 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; + return content; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional icon() { - return (Optional) icon; + return icon; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { @@ -233,7 +219,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withContent(Optional content) { + public GetPlaylistMetadata withContent(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; @@ -245,7 +231,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withRatingKey(Optional ratingKey) { + public GetPlaylistMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -257,7 +243,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withKey(Optional key) { + public GetPlaylistMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -269,7 +255,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withGuid(Optional guid) { + public GetPlaylistMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -281,7 +267,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withType(Optional type) { + public GetPlaylistMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -293,7 +279,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withTitle(Optional title) { + public GetPlaylistMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -305,7 +291,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withSummary(Optional summary) { + public GetPlaylistMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -317,7 +303,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withSmart(Optional smart) { + public GetPlaylistMetadata withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -329,7 +315,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withPlaylistType(Optional playlistType) { + public GetPlaylistMetadata withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -341,7 +327,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withComposite(Optional composite) { + public GetPlaylistMetadata withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -353,7 +339,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withIcon(Optional icon) { + public GetPlaylistMetadata withIcon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -365,7 +351,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withDuration(Optional duration) { + public GetPlaylistMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -377,7 +363,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withLeafCount(Optional leafCount) { + public GetPlaylistMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -389,7 +375,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withAddedAt(Optional addedAt) { + public GetPlaylistMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -401,7 +387,7 @@ public class GetPlaylistMetadata { return this; } - public GetPlaylistMetadata withUpdatedAt(Optional updatedAt) { + public GetPlaylistMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -417,26 +403,26 @@ public class GetPlaylistMetadata { } 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); + Objects.deepEquals(this.content, other.content) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.icon, other.icon) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( content, ratingKey, key, @@ -476,35 +462,35 @@ public class GetPlaylistMetadata { public final static class Builder { - private Optional content = Optional.empty(); + private Optional content = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional icon = Optional.empty(); + private Optional icon = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -516,7 +502,7 @@ public class GetPlaylistMetadata { return this; } - public Builder content(Optional content) { + public Builder content(Optional content) { Utils.checkNotNull(content, "content"); this.content = content; return this; @@ -528,7 +514,7 @@ public class GetPlaylistMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -540,7 +526,7 @@ public class GetPlaylistMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -552,7 +538,7 @@ public class GetPlaylistMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -564,7 +550,7 @@ public class GetPlaylistMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -576,7 +562,7 @@ public class GetPlaylistMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -588,7 +574,7 @@ public class GetPlaylistMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -600,7 +586,7 @@ public class GetPlaylistMetadata { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -612,7 +598,7 @@ public class GetPlaylistMetadata { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -624,7 +610,7 @@ public class GetPlaylistMetadata { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -636,7 +622,7 @@ public class GetPlaylistMetadata { return this; } - public Builder icon(Optional icon) { + public Builder icon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -648,7 +634,7 @@ public class GetPlaylistMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -660,7 +646,7 @@ public class GetPlaylistMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -672,7 +658,7 @@ public class GetPlaylistMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -684,7 +670,7 @@ public class GetPlaylistMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java index 06e848a2..5c04c49b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetPlaylistRequest { @@ -61,12 +61,12 @@ public class GetPlaylistRequest { } GetPlaylistRequest other = (GetPlaylistRequest) o; return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); + Objects.deepEquals(this.playlistID, other.playlistID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java similarity index 50% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java index 6a1bfd7b..4fdbd0ee 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; public class GetPlaylistRequestBuilder { diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java index 4ea0c57a..9d414013 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetPlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetPlaylistResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetPlaylistResponse implements lukehagar.plexapi.plexapi.utils.Resp } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java index beb89320..c86d7e80 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetPlaylistResponseBody - The playlist */ @@ -70,12 +70,12 @@ public class GetPlaylistResponseBody { } GetPlaylistResponseBody other = (GetPlaylistResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java index 1e3a4895..7634106b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public GetPlaylistsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { + @JsonProperty("size") Optional size, + @JsonProperty("Metadata") Optional> metadata) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(metadata, "metadata"); this.size = size; @@ -42,16 +44,15 @@ public class GetPlaylistsMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetPlaylistsMediaContainer { return this; } - public GetPlaylistsMediaContainer withSize(Optional size) { + public GetPlaylistsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetPlaylistsMediaContainer withMetadata(java.util.List metadata) { + public GetPlaylistsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetPlaylistsMediaContainer withMetadata(Optional> metadata) { + public GetPlaylistsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -92,13 +93,13 @@ public class GetPlaylistsMediaContainer { } GetPlaylistsMediaContainer other = (GetPlaylistsMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, metadata); } @@ -112,9 +113,9 @@ public class GetPlaylistsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetPlaylistsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java index 8950c643..48528b0b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java @@ -1,107 +1,108 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("smart") - private Optional smart; + private Optional smart; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playlistType") - private Optional playlistType; + private Optional playlistType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("composite") - private Optional composite; + private Optional composite; @JsonInclude(Include.NON_ABSENT) @JsonProperty("icon") - private Optional icon; + private Optional icon; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastViewedAt") - private Optional lastViewedAt; + private Optional lastViewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional 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) { + @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"); @@ -140,100 +141,84 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional smart() { - return (Optional) smart; + return smart; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playlistType() { - return (Optional) playlistType; + return playlistType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional composite() { - return (Optional) composite; + return composite; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional icon() { - return (Optional) icon; + return icon; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastViewedAt() { - return (Optional) lastViewedAt; + return lastViewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { @@ -246,7 +231,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withRatingKey(Optional ratingKey) { + public GetPlaylistsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -258,7 +243,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withKey(Optional key) { + public GetPlaylistsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -270,7 +255,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withGuid(Optional guid) { + public GetPlaylistsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -282,7 +267,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withType(Optional type) { + public GetPlaylistsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -294,7 +279,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withTitle(Optional title) { + public GetPlaylistsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -306,7 +291,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withSummary(Optional summary) { + public GetPlaylistsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -318,7 +303,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withSmart(Optional smart) { + public GetPlaylistsMetadata withSmart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -330,7 +315,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withPlaylistType(Optional playlistType) { + public GetPlaylistsMetadata withPlaylistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -342,7 +327,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withComposite(Optional composite) { + public GetPlaylistsMetadata withComposite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -354,7 +339,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withIcon(Optional icon) { + public GetPlaylistsMetadata withIcon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -366,7 +351,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withViewCount(Optional viewCount) { + public GetPlaylistsMetadata withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -378,7 +363,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withLastViewedAt(Optional lastViewedAt) { + public GetPlaylistsMetadata withLastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -390,7 +375,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withDuration(Optional duration) { + public GetPlaylistsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -402,7 +387,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withLeafCount(Optional leafCount) { + public GetPlaylistsMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -414,7 +399,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withAddedAt(Optional addedAt) { + public GetPlaylistsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -426,7 +411,7 @@ public class GetPlaylistsMetadata { return this; } - public GetPlaylistsMetadata withUpdatedAt(Optional updatedAt) { + public GetPlaylistsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -442,27 +427,27 @@ public class GetPlaylistsMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.smart, other.smart) && + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.composite, other.composite) && + Objects.deepEquals(this.icon, other.icon) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -504,37 +489,37 @@ public class GetPlaylistsMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); - private Optional playlistType = Optional.empty(); + private Optional playlistType = Optional.empty(); - private Optional composite = Optional.empty(); + private Optional composite = Optional.empty(); - private Optional icon = Optional.empty(); + private Optional icon = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional lastViewedAt = Optional.empty(); + private Optional lastViewedAt = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -546,7 +531,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -558,7 +543,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -570,7 +555,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -582,7 +567,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -594,7 +579,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -606,7 +591,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -618,7 +603,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder smart(Optional smart) { + public Builder smart(Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; @@ -630,7 +615,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder playlistType(Optional playlistType) { + public Builder playlistType(Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; @@ -642,7 +627,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder composite(Optional composite) { + public Builder composite(Optional composite) { Utils.checkNotNull(composite, "composite"); this.composite = composite; return this; @@ -654,7 +639,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder icon(Optional icon) { + public Builder icon(Optional icon) { Utils.checkNotNull(icon, "icon"); this.icon = icon; return this; @@ -666,7 +651,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; @@ -678,7 +663,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder lastViewedAt(Optional lastViewedAt) { + public Builder lastViewedAt(Optional lastViewedAt) { Utils.checkNotNull(lastViewedAt, "lastViewedAt"); this.lastViewedAt = lastViewedAt; return this; @@ -690,7 +675,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -702,7 +687,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -714,7 +699,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -726,7 +711,7 @@ public class GetPlaylistsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java index 82796a49..0aefdb3b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetPlaylistsRequest { @@ -112,13 +112,13 @@ public class GetPlaylistsRequest { } GetPlaylistsRequest other = (GetPlaylistsRequest) o; return - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.smart, other.smart); + Objects.deepEquals(this.playlistType, other.playlistType) && + Objects.deepEquals(this.smart, other.smart); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistType, smart); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java similarity index 55% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java index f7b79b60..7ca3fded 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; 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 { @@ -27,25 +17,25 @@ public class GetPlaylistsRequestBuilder { this.sdk = sdk; } - public GetPlaylistsRequestBuilder playlistType(PlaylistType playlistType) { + public GetPlaylistsRequestBuilder playlistType(dev.plexapi.sdk.models.operations.PlaylistType playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = Optional.of(playlistType); return this; } - public GetPlaylistsRequestBuilder playlistType(Optional playlistType) { + public GetPlaylistsRequestBuilder playlistType(java.util.Optional playlistType) { Utils.checkNotNull(playlistType, "playlistType"); this.playlistType = playlistType; return this; } - public GetPlaylistsRequestBuilder smart(QueryParamSmart smart) { + public GetPlaylistsRequestBuilder smart(dev.plexapi.sdk.models.operations.QueryParamSmart smart) { Utils.checkNotNull(smart, "smart"); this.smart = Optional.of(smart); return this; } - public GetPlaylistsRequestBuilder smart(Optional smart) { + public GetPlaylistsRequestBuilder smart(java.util.Optional smart) { Utils.checkNotNull(smart, "smart"); this.smart = smart; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java index 8385b499..267abcbb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetPlaylistsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetPlaylistsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetPlaylistsResponse implements lukehagar.plexapi.plexapi.utils.Res } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java index 5b2b5046..f13e14f0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetPlaylistsResponseBody - returns all playlists */ @@ -70,12 +70,12 @@ public class GetPlaylistsResponseBody { } GetPlaylistsResponseBody other = (GetPlaylistsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java index b3380746..23d0d824 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java @@ -1,62 +1,65 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetRecentlyAddedMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mixedParents") - private Optional mixedParents; + private Optional mixedParents; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -77,46 +80,40 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mixedParents() { - return (Optional) mixedParents; + return mixedParents; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -129,7 +126,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withSize(Optional size) { + public GetRecentlyAddedMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -141,7 +138,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withAllowSync(Optional allowSync) { + public GetRecentlyAddedMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -153,7 +150,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withIdentifier(Optional identifier) { + public GetRecentlyAddedMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -165,7 +162,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetRecentlyAddedMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -177,7 +174,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetRecentlyAddedMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -189,19 +186,19 @@ public class GetRecentlyAddedMediaContainer { return this; } - public GetRecentlyAddedMediaContainer withMixedParents(Optional mixedParents) { + public GetRecentlyAddedMediaContainer withMixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public GetRecentlyAddedMediaContainer withMetadata(java.util.List metadata) { + public GetRecentlyAddedMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetRecentlyAddedMediaContainer withMetadata(Optional> metadata) { + public GetRecentlyAddedMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -217,18 +214,18 @@ public class GetRecentlyAddedMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.mixedParents, other.mixedParents) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -252,19 +249,19 @@ public class GetRecentlyAddedMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional mixedParents = Optional.empty(); + private Optional mixedParents = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +273,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -288,7 +285,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -300,7 +297,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -312,7 +309,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -324,7 +321,7 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -336,19 +333,19 @@ public class GetRecentlyAddedMediaContainer { return this; } - public Builder mixedParents(Optional mixedParents) { + public Builder mixedParents(Optional mixedParents) { Utils.checkNotNull(mixedParents, "mixedParents"); this.mixedParents = mixedParents; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java index d33a9877..4b088f3a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java @@ -1,190 +1,191 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetRecentlyAddedMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chapterSource") - private Optional chapterSource; + private Optional chapterSource; @JsonInclude(Include.NON_ABSENT) @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; + private Optional primaryExtraKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> 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) { + @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"); @@ -255,196 +256,170 @@ public class 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; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chapterSource() { - return (Optional) chapterSource; + return chapterSource; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; + return primaryExtraKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } public final static Builder builder() { @@ -457,7 +432,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withAllowSync(Optional allowSync) { + public GetRecentlyAddedMetadata withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -469,7 +444,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withLibrarySectionID(Optional librarySectionID) { + public GetRecentlyAddedMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -481,7 +456,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetRecentlyAddedMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -493,7 +468,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withLibrarySectionUUID(Optional librarySectionUUID) { + public GetRecentlyAddedMetadata withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -505,7 +480,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withRatingKey(Optional ratingKey) { + public GetRecentlyAddedMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -517,7 +492,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withKey(Optional key) { + public GetRecentlyAddedMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -529,7 +504,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withGuid(Optional guid) { + public GetRecentlyAddedMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -541,7 +516,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withStudio(Optional studio) { + public GetRecentlyAddedMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -553,7 +528,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withType(Optional type) { + public GetRecentlyAddedMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -565,7 +540,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withTitle(Optional title) { + public GetRecentlyAddedMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -577,7 +552,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withContentRating(Optional contentRating) { + public GetRecentlyAddedMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -589,7 +564,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withSummary(Optional summary) { + public GetRecentlyAddedMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -601,7 +576,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withRating(Optional rating) { + public GetRecentlyAddedMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -613,7 +588,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withAudienceRating(Optional audienceRating) { + public GetRecentlyAddedMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -625,7 +600,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withYear(Optional year) { + public GetRecentlyAddedMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -637,7 +612,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withTagline(Optional tagline) { + public GetRecentlyAddedMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -649,7 +624,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withThumb(Optional thumb) { + public GetRecentlyAddedMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -661,7 +636,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withArt(Optional art) { + public GetRecentlyAddedMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -673,7 +648,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withDuration(Optional duration) { + public GetRecentlyAddedMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -685,7 +660,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetRecentlyAddedMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -697,7 +672,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withAddedAt(Optional addedAt) { + public GetRecentlyAddedMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -709,7 +684,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withUpdatedAt(Optional updatedAt) { + public GetRecentlyAddedMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -721,7 +696,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetRecentlyAddedMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -733,7 +708,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withChapterSource(Optional chapterSource) { + public GetRecentlyAddedMetadata withChapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -745,7 +720,7 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withPrimaryExtraKey(Optional primaryExtraKey) { + public GetRecentlyAddedMetadata withPrimaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -757,79 +732,79 @@ public class GetRecentlyAddedMetadata { return this; } - public GetRecentlyAddedMetadata withRatingImage(Optional ratingImage) { + public GetRecentlyAddedMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public GetRecentlyAddedMetadata withMedia(java.util.List media) { + public GetRecentlyAddedMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetRecentlyAddedMetadata withMedia(Optional> media) { + public GetRecentlyAddedMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetRecentlyAddedMetadata withGenre(java.util.List genre) { + public GetRecentlyAddedMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetRecentlyAddedMetadata withGenre(Optional> genre) { + public GetRecentlyAddedMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetRecentlyAddedMetadata withDirector(java.util.List director) { + public GetRecentlyAddedMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetRecentlyAddedMetadata withDirector(Optional> director) { + public GetRecentlyAddedMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetRecentlyAddedMetadata withWriter(java.util.List writer) { + public GetRecentlyAddedMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetRecentlyAddedMetadata withWriter(Optional> writer) { + public GetRecentlyAddedMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public GetRecentlyAddedMetadata withCountry(java.util.List country) { + public GetRecentlyAddedMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetRecentlyAddedMetadata withCountry(Optional> country) { + public GetRecentlyAddedMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetRecentlyAddedMetadata withRole(java.util.List role) { + public GetRecentlyAddedMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetRecentlyAddedMetadata withRole(Optional> role) { + public GetRecentlyAddedMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -845,43 +820,43 @@ public class GetRecentlyAddedMetadata { } 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); + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.chapterSource, other.chapterSource) && + Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.role, other.role); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( allowSync, librarySectionID, librarySectionTitle, @@ -955,69 +930,69 @@ public class GetRecentlyAddedMetadata { public final static class Builder { - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional chapterSource = Optional.empty(); + private Optional chapterSource = Optional.empty(); - private Optional primaryExtraKey = Optional.empty(); + private Optional primaryExtraKey = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1029,7 +1004,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -1041,7 +1016,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1053,7 +1028,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1065,7 +1040,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -1077,7 +1052,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1089,7 +1064,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1101,7 +1076,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1113,7 +1088,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1125,7 +1100,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1137,7 +1112,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1149,7 +1124,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1161,7 +1136,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1173,7 +1148,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1185,7 +1160,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1197,7 +1172,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1209,7 +1184,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1221,7 +1196,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1233,7 +1208,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1245,7 +1220,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1257,7 +1232,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1269,7 +1244,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1281,7 +1256,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1293,7 +1268,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1305,7 +1280,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder chapterSource(Optional chapterSource) { + public Builder chapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -1317,7 +1292,7 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder primaryExtraKey(Optional primaryExtraKey) { + public Builder primaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -1329,79 +1304,79 @@ public class GetRecentlyAddedMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java new file mode 100644 index 00000000..48803a14 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java @@ -0,0 +1,239 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class GetRecentlyAddedRequest { + + /** + * 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. + * By default this is 0 + * + */ + @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. + * By default this is 50 + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size") + private Optional xPlexContainerSize; + + @JsonCreator + public GetRecentlyAddedRequest( + Optional xPlexContainerStart, + Optional xPlexContainerSize) { + Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.xPlexContainerStart = xPlexContainerStart; + this.xPlexContainerSize = xPlexContainerSize; + } + + public GetRecentlyAddedRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * 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. + * By default this is 0 + * + */ + @JsonIgnore + public Optional xPlexContainerStart() { + return 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. + * By default this is 50 + * + */ + @JsonIgnore + public Optional xPlexContainerSize() { + return xPlexContainerSize; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * 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. + * By default this is 0 + * + */ + public GetRecentlyAddedRequest 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. + * By default this is 0 + * + */ + public GetRecentlyAddedRequest 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. + * By default this is 50 + * + */ + public GetRecentlyAddedRequest 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. + * By default this is 50 + * + */ + public GetRecentlyAddedRequest 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; + } + GetRecentlyAddedRequest other = (GetRecentlyAddedRequest) o; + return + Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) && + Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize); + } + + @Override + public int hashCode() { + return Objects.hash( + xPlexContainerStart, + xPlexContainerSize); + } + + @Override + public String toString() { + return Utils.toString(GetRecentlyAddedRequest.class, + "xPlexContainerStart", xPlexContainerStart, + "xPlexContainerSize", xPlexContainerSize); + } + + public final static class Builder { + + private Optional xPlexContainerStart; + + private Optional xPlexContainerSize; + + private Builder() { + // force use of static builder() method + } + + /** + * 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. + * By default this is 0 + * + */ + 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. + * By default this is 0 + * + */ + 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. + * By default this is 50 + * + */ + 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. + * By default this is 50 + * + */ + public Builder xPlexContainerSize(Optional xPlexContainerSize) { + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.xPlexContainerSize = xPlexContainerSize; + return this; + } + + public GetRecentlyAddedRequest build() { + if (xPlexContainerStart == null) { + xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value(); + } + if (xPlexContainerSize == null) { + xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); + } return new GetRecentlyAddedRequest( + xPlexContainerStart, + xPlexContainerSize); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerStart = + new LazySingletonValue<>( + "X-Plex-Container-Start", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerSize = + new LazySingletonValue<>( + "X-Plex-Container-Size", + "50", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java new file mode 100644 index 00000000..e8854a12 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java @@ -0,0 +1,76 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.util.Optional; + +public class GetRecentlyAddedRequestBuilder { + + private Optional xPlexContainerStart = Utils.readDefaultOrConstValue( + "xPlexContainerStart", + "0", + new TypeReference>() {}); + private Optional xPlexContainerSize = Utils.readDefaultOrConstValue( + "xPlexContainerSize", + "50", + new TypeReference>() {}); + private final SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk; + + public GetRecentlyAddedRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk) { + this.sdk = sdk; + } + + public GetRecentlyAddedRequestBuilder xPlexContainerStart(int xPlexContainerStart) { + Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); + this.xPlexContainerStart = Optional.of(xPlexContainerStart); + return this; + } + + public GetRecentlyAddedRequestBuilder xPlexContainerStart(java.util.Optional xPlexContainerStart) { + Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); + this.xPlexContainerStart = xPlexContainerStart; + return this; + } + + public GetRecentlyAddedRequestBuilder xPlexContainerSize(int xPlexContainerSize) { + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.xPlexContainerSize = Optional.of(xPlexContainerSize); + return this; + } + + public GetRecentlyAddedRequestBuilder xPlexContainerSize(java.util.Optional xPlexContainerSize) { + Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); + this.xPlexContainerSize = xPlexContainerSize; + return this; + } + + public GetRecentlyAddedResponse call() throws Exception { + if (xPlexContainerStart == null) { + xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value(); + } + if (xPlexContainerSize == null) { + xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); + } + return sdk.getRecentlyAdded( + xPlexContainerStart, + xPlexContainerSize); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerStart = + new LazySingletonValue<>( + "xPlexContainerStart", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerSize = + new LazySingletonValue<>( + "xPlexContainerSize", + "50", + new TypeReference>() {}); +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java index 15cf3cc9..d0009eaa 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetRecentlyAddedResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetRecentlyAddedResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetRecentlyAddedResponse implements lukehagar.plexapi.plexapi.utils } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java index 0d55be0b..9dcbff79 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetRecentlyAddedResponseBody - The recently added content */ @@ -70,12 +70,12 @@ public class GetRecentlyAddedResponseBody { } GetRecentlyAddedResponseBody other = (GetRecentlyAddedResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java new file mode 100644 index 00000000..3a84bb1d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class GetRefreshLibraryMetadataRequest { + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey") + private int sectionKey; + + /** + * Force the refresh even if the library is already being refreshed. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=force") + private Optional force; + + @JsonCreator + public GetRefreshLibraryMetadataRequest( + int sectionKey, + Optional force) { + Utils.checkNotNull(sectionKey, "sectionKey"); + Utils.checkNotNull(force, "force"); + this.sectionKey = sectionKey; + this.force = force; + } + + public GetRefreshLibraryMetadataRequest( + int sectionKey) { + this(sectionKey, Optional.empty()); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @JsonIgnore + public int sectionKey() { + return sectionKey; + } + + /** + * Force the refresh even if the library is already being refreshed. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional force() { + return (Optional) force; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public GetRefreshLibraryMetadataRequest withSectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + /** + * Force the refresh even if the library is already being refreshed. + */ + public GetRefreshLibraryMetadataRequest withForce(Force force) { + Utils.checkNotNull(force, "force"); + this.force = Optional.ofNullable(force); + return this; + } + + /** + * Force the refresh even if the library is already being refreshed. + */ + public GetRefreshLibraryMetadataRequest withForce(Optional 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; + } + GetRefreshLibraryMetadataRequest other = (GetRefreshLibraryMetadataRequest) o; + return + Objects.deepEquals(this.sectionKey, other.sectionKey) && + Objects.deepEquals(this.force, other.force); + } + + @Override + public int hashCode() { + return Objects.hash( + sectionKey, + force); + } + + @Override + public String toString() { + return Utils.toString(GetRefreshLibraryMetadataRequest.class, + "sectionKey", sectionKey, + "force", force); + } + + public final static class Builder { + + private Integer sectionKey; + + private Optional force = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public Builder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + /** + * Force the refresh even if the library is already being refreshed. + */ + public Builder force(Force force) { + Utils.checkNotNull(force, "force"); + this.force = Optional.ofNullable(force); + return this; + } + + /** + * Force the refresh even if the library is already being refreshed. + */ + public Builder force(Optional force) { + Utils.checkNotNull(force, "force"); + this.force = force; + return this; + } + + public GetRefreshLibraryMetadataRequest build() { + return new GetRefreshLibraryMetadataRequest( + sectionKey, + force); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java new file mode 100644 index 00000000..00607898 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.util.Optional; + +public class GetRefreshLibraryMetadataRequestBuilder { + + private Integer sectionKey; + private Optional force = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetRefreshLibraryMetadata sdk; + + public GetRefreshLibraryMetadataRequestBuilder(SDKMethodInterfaces.MethodCallGetRefreshLibraryMetadata sdk) { + this.sdk = sdk; + } + + public GetRefreshLibraryMetadataRequestBuilder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + public GetRefreshLibraryMetadataRequestBuilder force(dev.plexapi.sdk.models.operations.Force force) { + Utils.checkNotNull(force, "force"); + this.force = Optional.of(force); + return this; + } + + public GetRefreshLibraryMetadataRequestBuilder force(java.util.Optional force) { + Utils.checkNotNull(force, "force"); + this.force = force; + return this; + } + + public GetRefreshLibraryMetadataResponse call() throws Exception { + + return sdk.getRefreshLibraryMetadata( + sectionKey, + force); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java similarity index 76% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java index 68c58056..be338520 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetRefreshLibraryMetadataResponse implements Response { /** * HTTP response content type for this operation @@ -33,7 +35,7 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R private HttpResponse rawResponse; @JsonCreator - public RefreshLibraryResponse( + public GetRefreshLibraryMetadataResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -76,7 +78,7 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R /** * HTTP response content type for this operation */ - public RefreshLibraryResponse withContentType(String contentType) { + public GetRefreshLibraryMetadataResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -85,7 +87,7 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R /** * HTTP response status code for this operation */ - public RefreshLibraryResponse withStatusCode(int statusCode) { + public GetRefreshLibraryMetadataResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -94,7 +96,7 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R /** * Raw HTTP response; suitable for custom response parsing */ - public RefreshLibraryResponse withRawResponse(HttpResponse rawResponse) { + public GetRefreshLibraryMetadataResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -108,16 +110,16 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R if (o == null || getClass() != o.getClass()) { return false; } - RefreshLibraryResponse other = (RefreshLibraryResponse) o; + GetRefreshLibraryMetadataResponse other = (GetRefreshLibraryMetadataResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); @@ -125,7 +127,7 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R @Override public String toString() { - return Utils.toString(RefreshLibraryResponse.class, + return Utils.toString(GetRefreshLibraryMetadataResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse); @@ -170,8 +172,8 @@ public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.R return this; } - public RefreshLibraryResponse build() { - return new RefreshLibraryResponse( + public GetRefreshLibraryMetadataResponse build() { + return new GetRefreshLibraryMetadataResponse( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java similarity index 89% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java index 0c423080..003025d5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java @@ -1,20 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetResizedPhotoRequest { @@ -218,18 +220,18 @@ public class GetResizedPhotoRequest { } 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); + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.opacity, other.opacity) && + Objects.deepEquals(this.blur, other.blur) && + Objects.deepEquals(this.minSize, other.minSize) && + Objects.deepEquals(this.upscale, other.upscale) && + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( width, height, opacity, @@ -337,8 +339,7 @@ public class GetResizedPhotoRequest { public GetResizedPhotoRequest build() { if (opacity == null) { opacity = _SINGLETON_VALUE_Opacity.value(); - } - return new GetResizedPhotoRequest( + } return new GetResizedPhotoRequest( width, height, opacity, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java new file mode 100644 index 00000000..aaf1f87a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class GetResizedPhotoRequestBuilder { + + private GetResizedPhotoRequest request; + private final SDKMethodInterfaces.MethodCallGetResizedPhoto sdk; + + public GetResizedPhotoRequestBuilder(SDKMethodInterfaces.MethodCallGetResizedPhoto sdk) { + this.sdk = sdk; + } + + public GetResizedPhotoRequestBuilder request(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java index 784577d2..f561e7e3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class GetResizedPhotoResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetResizedPhotoResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class GetResizedPhotoResponse implements lukehagar.plexapi.plexapi.utils. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java index 61ce8acf..ab413750 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetResourcesStatisticsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("StatisticsResources") - private Optional> statisticsResources; + private Optional> statisticsResources; @JsonCreator public GetResourcesStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("StatisticsResources") Optional> statisticsResources) { + @JsonProperty("size") Optional size, + @JsonProperty("StatisticsResources") Optional> statisticsResources) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(statisticsResources, "statisticsResources"); this.size = size; @@ -42,16 +44,15 @@ public class GetResourcesStatisticsMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> statisticsResources() { - return (Optional>) statisticsResources; + public Optional> statisticsResources() { + return (Optional>) statisticsResources; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetResourcesStatisticsMediaContainer { return this; } - public GetResourcesStatisticsMediaContainer withSize(Optional size) { + public GetResourcesStatisticsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetResourcesStatisticsMediaContainer withStatisticsResources(java.util.List statisticsResources) { + public GetResourcesStatisticsMediaContainer withStatisticsResources(List statisticsResources) { Utils.checkNotNull(statisticsResources, "statisticsResources"); this.statisticsResources = Optional.ofNullable(statisticsResources); return this; } - public GetResourcesStatisticsMediaContainer withStatisticsResources(Optional> statisticsResources) { + public GetResourcesStatisticsMediaContainer withStatisticsResources(Optional> statisticsResources) { Utils.checkNotNull(statisticsResources, "statisticsResources"); this.statisticsResources = statisticsResources; return this; @@ -92,13 +93,13 @@ public class GetResourcesStatisticsMediaContainer { } GetResourcesStatisticsMediaContainer other = (GetResourcesStatisticsMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.statisticsResources, other.statisticsResources); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.statisticsResources, other.statisticsResources); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, statisticsResources); } @@ -112,9 +113,9 @@ public class GetResourcesStatisticsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> statisticsResources = Optional.empty(); + private Optional> statisticsResources = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetResourcesStatisticsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder statisticsResources(java.util.List statisticsResources) { + public Builder statisticsResources(List statisticsResources) { Utils.checkNotNull(statisticsResources, "statisticsResources"); this.statisticsResources = Optional.ofNullable(statisticsResources); return this; } - public Builder statisticsResources(Optional> statisticsResources) { + public Builder statisticsResources(Optional> statisticsResources) { Utils.checkNotNull(statisticsResources, "statisticsResources"); this.statisticsResources = statisticsResources; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java index 555255a8..6598b69a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetResourcesStatisticsRequest { @@ -24,11 +24,11 @@ public class GetResourcesStatisticsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; + private Optional timespan; @JsonCreator public GetResourcesStatisticsRequest( - Optional timespan) { + Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; } @@ -42,10 +42,9 @@ public class GetResourcesStatisticsRequest { * the exact meaning of this parameter is not known * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } public final static Builder builder() { @@ -68,7 +67,7 @@ public class GetResourcesStatisticsRequest { * the exact meaning of this parameter is not known * */ - public GetResourcesStatisticsRequest withTimespan(Optional timespan) { + public GetResourcesStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -84,12 +83,12 @@ public class GetResourcesStatisticsRequest { } GetResourcesStatisticsRequest other = (GetResourcesStatisticsRequest) o; return - java.util.Objects.deepEquals(this.timespan, other.timespan); + Objects.deepEquals(this.timespan, other.timespan); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( timespan); } @@ -101,7 +100,7 @@ public class GetResourcesStatisticsRequest { public final static class Builder { - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); private Builder() { // force use of static builder() method @@ -123,7 +122,7 @@ public class GetResourcesStatisticsRequest { * the exact meaning of this parameter is not known * */ - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java similarity index 52% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java index 9c2dd3f1..1000ecad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java @@ -1,25 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; 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 Optional timespan = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk; public GetResourcesStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk) { @@ -32,7 +23,7 @@ public class GetResourcesStatisticsRequestBuilder { return this; } - public GetResourcesStatisticsRequestBuilder timespan(Optional timespan) { + public GetResourcesStatisticsRequestBuilder timespan(java.util.Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java index 3b52c095..dfe1ae63 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetResourcesStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetResourcesStatisticsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetResourcesStatisticsResponse implements lukehagar.plexapi.plexapi } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java index 7f34f154..06e83881 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetResourcesStatisticsResponseBody - Resource Statistics */ @@ -70,12 +70,12 @@ public class GetResourcesStatisticsResponseBody { } GetResourcesStatisticsResponseBody other = (GetResourcesStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java index 32c146b1..a06fc7c2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java @@ -1,92 +1,95 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class SearchLibraryMediaContainer { + +public class GetSearchLibraryMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("nocache") - private Optional nocache; + private Optional nocache; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title1") - private Optional title1; + private Optional title1; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title2") - private Optional title2; + private Optional title2; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewGroup") - private Optional viewGroup; + private Optional viewGroup; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewMode") - private Optional viewMode; + private Optional viewMode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + public GetSearchLibraryMediaContainer( + @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"); @@ -115,243 +118,231 @@ public class SearchLibraryMediaContainer { this.metadata = metadata; } - public SearchLibraryMediaContainer() { + public GetSearchLibraryMediaContainer() { 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional nocache() { - return (Optional) nocache; + return nocache; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title1() { - return (Optional) title1; + return title1; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title2() { - return (Optional) title2; + return title2; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewGroup() { - return (Optional) viewGroup; + return viewGroup; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewMode() { - return (Optional) viewMode; + return viewMode; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { return new Builder(); } - public SearchLibraryMediaContainer withSize(int size) { + public GetSearchLibraryMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public SearchLibraryMediaContainer withSize(Optional size) { + public GetSearchLibraryMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public SearchLibraryMediaContainer withAllowSync(boolean allowSync) { + public GetSearchLibraryMediaContainer withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = Optional.ofNullable(allowSync); return this; } - public SearchLibraryMediaContainer withAllowSync(Optional allowSync) { + public GetSearchLibraryMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; } - public SearchLibraryMediaContainer withArt(String art) { + public GetSearchLibraryMediaContainer withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } - public SearchLibraryMediaContainer withArt(Optional art) { + public GetSearchLibraryMediaContainer withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } - public SearchLibraryMediaContainer withIdentifier(String identifier) { + public GetSearchLibraryMediaContainer withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = Optional.ofNullable(identifier); return this; } - public SearchLibraryMediaContainer withIdentifier(Optional identifier) { + public GetSearchLibraryMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public SearchLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + public GetSearchLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); return this; } - public SearchLibraryMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetSearchLibraryMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; } - public SearchLibraryMediaContainer withMediaTagVersion(int mediaTagVersion) { + public GetSearchLibraryMediaContainer withMediaTagVersion(int mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); return this; } - public SearchLibraryMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetSearchLibraryMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public SearchLibraryMediaContainer withNocache(boolean nocache) { + public GetSearchLibraryMediaContainer withNocache(boolean nocache) { Utils.checkNotNull(nocache, "nocache"); this.nocache = Optional.ofNullable(nocache); return this; } - public SearchLibraryMediaContainer withNocache(Optional nocache) { + public GetSearchLibraryMediaContainer withNocache(Optional nocache) { Utils.checkNotNull(nocache, "nocache"); this.nocache = nocache; return this; } - public SearchLibraryMediaContainer withThumb(String thumb) { + public GetSearchLibraryMediaContainer withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public SearchLibraryMediaContainer withThumb(Optional thumb) { + public GetSearchLibraryMediaContainer withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public SearchLibraryMediaContainer withTitle1(String title1) { + public GetSearchLibraryMediaContainer withTitle1(String title1) { Utils.checkNotNull(title1, "title1"); this.title1 = Optional.ofNullable(title1); return this; } - public SearchLibraryMediaContainer withTitle1(Optional title1) { + public GetSearchLibraryMediaContainer withTitle1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; } - public SearchLibraryMediaContainer withTitle2(String title2) { + public GetSearchLibraryMediaContainer withTitle2(String title2) { Utils.checkNotNull(title2, "title2"); this.title2 = Optional.ofNullable(title2); return this; } - public SearchLibraryMediaContainer withTitle2(Optional title2) { + public GetSearchLibraryMediaContainer withTitle2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; } - public SearchLibraryMediaContainer withViewGroup(String viewGroup) { + public GetSearchLibraryMediaContainer withViewGroup(String viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = Optional.ofNullable(viewGroup); return this; } - public SearchLibraryMediaContainer withViewGroup(Optional viewGroup) { + public GetSearchLibraryMediaContainer withViewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; } - public SearchLibraryMediaContainer withViewMode(int viewMode) { + public GetSearchLibraryMediaContainer withViewMode(int viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = Optional.ofNullable(viewMode); return this; } - public SearchLibraryMediaContainer withViewMode(Optional viewMode) { + public GetSearchLibraryMediaContainer withViewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public SearchLibraryMediaContainer withMetadata(java.util.List metadata) { + public GetSearchLibraryMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public SearchLibraryMediaContainer withMetadata(Optional> metadata) { + public GetSearchLibraryMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -365,26 +356,26 @@ public class SearchLibraryMediaContainer { if (o == null || getClass() != o.getClass()) { return false; } - SearchLibraryMediaContainer other = (SearchLibraryMediaContainer) o; + GetSearchLibraryMediaContainer other = (GetSearchLibraryMediaContainer) 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.nocache, other.nocache) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title1, other.title1) && + Objects.deepEquals(this.title2, other.title2) && + Objects.deepEquals(this.viewGroup, other.viewGroup) && + Objects.deepEquals(this.viewMode, other.viewMode) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, art, @@ -402,7 +393,7 @@ public class SearchLibraryMediaContainer { @Override public String toString() { - return Utils.toString(SearchLibraryMediaContainer.class, + return Utils.toString(GetSearchLibraryMediaContainer.class, "size", size, "allowSync", allowSync, "art", art, @@ -420,31 +411,31 @@ public class SearchLibraryMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional nocache = Optional.empty(); + private Optional nocache = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title1 = Optional.empty(); + private Optional title1 = Optional.empty(); - private Optional title2 = Optional.empty(); + private Optional title2 = Optional.empty(); - private Optional viewGroup = Optional.empty(); + private Optional viewGroup = Optional.empty(); - private Optional viewMode = Optional.empty(); + private Optional viewMode = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -456,7 +447,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -468,7 +459,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -480,7 +471,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -492,7 +483,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -504,7 +495,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -516,7 +507,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; @@ -528,7 +519,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder nocache(Optional nocache) { + public Builder nocache(Optional nocache) { Utils.checkNotNull(nocache, "nocache"); this.nocache = nocache; return this; @@ -540,7 +531,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -552,7 +543,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder title1(Optional title1) { + public Builder title1(Optional title1) { Utils.checkNotNull(title1, "title1"); this.title1 = title1; return this; @@ -564,7 +555,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder title2(Optional title2) { + public Builder title2(Optional title2) { Utils.checkNotNull(title2, "title2"); this.title2 = title2; return this; @@ -576,7 +567,7 @@ public class SearchLibraryMediaContainer { return this; } - public Builder viewGroup(Optional viewGroup) { + public Builder viewGroup(Optional viewGroup) { Utils.checkNotNull(viewGroup, "viewGroup"); this.viewGroup = viewGroup; return this; @@ -588,26 +579,26 @@ public class SearchLibraryMediaContainer { return this; } - public Builder viewMode(Optional viewMode) { + public Builder viewMode(Optional viewMode) { Utils.checkNotNull(viewMode, "viewMode"); this.viewMode = viewMode; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; } - public SearchLibraryMediaContainer build() { - return new SearchLibraryMediaContainer( + public GetSearchLibraryMediaContainer build() { + return new GetSearchLibraryMediaContainer( size, allowSync, art, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java index 9d746bd7..d1a2eaec 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java @@ -1,127 +1,127 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class SearchLibraryMetadata { + +public class GetSearchLibraryMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") - private Optional parentRatingKey; + private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") - private Optional parentGuid; + private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentStudio") - private Optional parentStudio; + private Optional parentStudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") - private Optional parentYear; + private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTheme") - private Optional parentTheme; + private Optional parentTheme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional 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) { + public GetSearchLibraryMetadata( + @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"); @@ -164,369 +164,349 @@ public class SearchLibraryMetadata { this.updatedAt = updatedAt; } - public SearchLibraryMetadata() { + public GetSearchLibraryMetadata() { 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentRatingKey() { - return (Optional) parentRatingKey; + return parentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentGuid() { - return (Optional) parentGuid; + return parentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentStudio() { - return (Optional) parentStudio; + return parentStudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentYear() { - return (Optional) parentYear; + return parentYear; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTheme() { - return (Optional) parentTheme; + return parentTheme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { return new Builder(); } - public SearchLibraryMetadata withRatingKey(String ratingKey) { + public GetSearchLibraryMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = Optional.ofNullable(ratingKey); return this; } - public SearchLibraryMetadata withRatingKey(Optional ratingKey) { + public GetSearchLibraryMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; } - public SearchLibraryMetadata withKey(String key) { + public GetSearchLibraryMetadata withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; } - public SearchLibraryMetadata withKey(Optional key) { + public GetSearchLibraryMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public SearchLibraryMetadata withParentRatingKey(String parentRatingKey) { + public GetSearchLibraryMetadata withParentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = Optional.ofNullable(parentRatingKey); return this; } - public SearchLibraryMetadata withParentRatingKey(Optional parentRatingKey) { + public GetSearchLibraryMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; } - public SearchLibraryMetadata withGuid(String guid) { + public GetSearchLibraryMetadata withGuid(String guid) { Utils.checkNotNull(guid, "guid"); this.guid = Optional.ofNullable(guid); return this; } - public SearchLibraryMetadata withGuid(Optional guid) { + public GetSearchLibraryMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; } - public SearchLibraryMetadata withParentGuid(String parentGuid) { + public GetSearchLibraryMetadata withParentGuid(String parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = Optional.ofNullable(parentGuid); return this; } - public SearchLibraryMetadata withParentGuid(Optional parentGuid) { + public GetSearchLibraryMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; } - public SearchLibraryMetadata withParentStudio(String parentStudio) { + public GetSearchLibraryMetadata withParentStudio(String parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = Optional.ofNullable(parentStudio); return this; } - public SearchLibraryMetadata withParentStudio(Optional parentStudio) { + public GetSearchLibraryMetadata withParentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; } - public SearchLibraryMetadata withType(String type) { + public GetSearchLibraryMetadata withType(String type) { Utils.checkNotNull(type, "type"); this.type = Optional.ofNullable(type); return this; } - public SearchLibraryMetadata withType(Optional type) { + public GetSearchLibraryMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - public SearchLibraryMetadata withTitle(String title) { + public GetSearchLibraryMetadata withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public SearchLibraryMetadata withTitle(Optional title) { + public GetSearchLibraryMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public SearchLibraryMetadata withParentKey(String parentKey) { + public GetSearchLibraryMetadata withParentKey(String parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = Optional.ofNullable(parentKey); return this; } - public SearchLibraryMetadata withParentKey(Optional parentKey) { + public GetSearchLibraryMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; } - public SearchLibraryMetadata withParentTitle(String parentTitle) { + public GetSearchLibraryMetadata withParentTitle(String parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = Optional.ofNullable(parentTitle); return this; } - public SearchLibraryMetadata withParentTitle(Optional parentTitle) { + public GetSearchLibraryMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; } - public SearchLibraryMetadata withSummary(String summary) { + public GetSearchLibraryMetadata withSummary(String summary) { Utils.checkNotNull(summary, "summary"); this.summary = Optional.ofNullable(summary); return this; } - public SearchLibraryMetadata withSummary(Optional summary) { + public GetSearchLibraryMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; } - public SearchLibraryMetadata withIndex(int index) { + public GetSearchLibraryMetadata withIndex(int index) { Utils.checkNotNull(index, "index"); this.index = Optional.ofNullable(index); return this; } - public SearchLibraryMetadata withIndex(Optional index) { + public GetSearchLibraryMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; } - public SearchLibraryMetadata withParentIndex(int parentIndex) { + public GetSearchLibraryMetadata withParentIndex(int parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = Optional.ofNullable(parentIndex); return this; } - public SearchLibraryMetadata withParentIndex(Optional parentIndex) { + public GetSearchLibraryMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; } - public SearchLibraryMetadata withParentYear(int parentYear) { + public GetSearchLibraryMetadata withParentYear(int parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = Optional.ofNullable(parentYear); return this; } - public SearchLibraryMetadata withParentYear(Optional parentYear) { + public GetSearchLibraryMetadata withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; } - public SearchLibraryMetadata withThumb(String thumb) { + public GetSearchLibraryMetadata withThumb(String thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = Optional.ofNullable(thumb); return this; } - public SearchLibraryMetadata withThumb(Optional thumb) { + public GetSearchLibraryMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; } - public SearchLibraryMetadata withArt(String art) { + public GetSearchLibraryMetadata withArt(String art) { Utils.checkNotNull(art, "art"); this.art = Optional.ofNullable(art); return this; } - public SearchLibraryMetadata withArt(Optional art) { + public GetSearchLibraryMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; } - public SearchLibraryMetadata withParentThumb(String parentThumb) { + public GetSearchLibraryMetadata withParentThumb(String parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = Optional.ofNullable(parentThumb); return this; } - public SearchLibraryMetadata withParentThumb(Optional parentThumb) { + public GetSearchLibraryMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; } - public SearchLibraryMetadata withParentTheme(String parentTheme) { + public GetSearchLibraryMetadata withParentTheme(String parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = Optional.ofNullable(parentTheme); return this; } - public SearchLibraryMetadata withParentTheme(Optional parentTheme) { + public GetSearchLibraryMetadata withParentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; } - public SearchLibraryMetadata withAddedAt(int addedAt) { + public GetSearchLibraryMetadata withAddedAt(int addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = Optional.ofNullable(addedAt); return this; } - public SearchLibraryMetadata withAddedAt(Optional addedAt) { + public GetSearchLibraryMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; } - public SearchLibraryMetadata withUpdatedAt(int updatedAt) { + public GetSearchLibraryMetadata withUpdatedAt(int updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } - public SearchLibraryMetadata withUpdatedAt(Optional updatedAt) { + public GetSearchLibraryMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -540,33 +520,33 @@ public class SearchLibraryMetadata { if (o == null || getClass() != o.getClass()) { return false; } - SearchLibraryMetadata other = (SearchLibraryMetadata) o; + GetSearchLibraryMetadata other = (GetSearchLibraryMetadata) 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.parentGuid, other.parentGuid) && + Objects.deepEquals(this.parentStudio, other.parentStudio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.parentYear, other.parentYear) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.parentTheme, other.parentTheme) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, parentRatingKey, @@ -591,7 +571,7 @@ public class SearchLibraryMetadata { @Override public String toString() { - return Utils.toString(SearchLibraryMetadata.class, + return Utils.toString(GetSearchLibraryMetadata.class, "ratingKey", ratingKey, "key", key, "parentRatingKey", parentRatingKey, @@ -616,45 +596,45 @@ public class SearchLibraryMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional parentRatingKey = Optional.empty(); + private Optional parentRatingKey = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional parentGuid = Optional.empty(); + private Optional parentGuid = Optional.empty(); - private Optional parentStudio = Optional.empty(); + private Optional parentStudio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional parentYear = Optional.empty(); + private Optional parentYear = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional parentTheme = Optional.empty(); + private Optional parentTheme = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -666,7 +646,7 @@ public class SearchLibraryMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -678,7 +658,7 @@ public class SearchLibraryMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -690,7 +670,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentRatingKey(Optional parentRatingKey) { + public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -702,7 +682,7 @@ public class SearchLibraryMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -714,7 +694,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentGuid(Optional parentGuid) { + public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -726,7 +706,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentStudio(Optional parentStudio) { + public Builder parentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -738,7 +718,7 @@ public class SearchLibraryMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -750,7 +730,7 @@ public class SearchLibraryMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -762,7 +742,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -774,7 +754,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -786,7 +766,7 @@ public class SearchLibraryMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -798,7 +778,7 @@ public class SearchLibraryMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -810,7 +790,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -822,7 +802,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentYear(Optional parentYear) { + public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -834,7 +814,7 @@ public class SearchLibraryMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -846,7 +826,7 @@ public class SearchLibraryMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -858,7 +838,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -870,7 +850,7 @@ public class SearchLibraryMetadata { return this; } - public Builder parentTheme(Optional parentTheme) { + public Builder parentTheme(Optional parentTheme) { Utils.checkNotNull(parentTheme, "parentTheme"); this.parentTheme = parentTheme; return this; @@ -882,7 +862,7 @@ public class SearchLibraryMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -894,14 +874,14 @@ public class SearchLibraryMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public SearchLibraryMetadata build() { - return new SearchLibraryMetadata( + public GetSearchLibraryMetadata build() { + return new GetSearchLibraryMetadata( ratingKey, key, parentRatingKey, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java new file mode 100644 index 00000000..e16276dc --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class GetSearchLibraryRequest { + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey") + private int sectionKey; + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + private QueryParamType type; + + @JsonCreator + public GetSearchLibraryRequest( + int sectionKey, + QueryParamType type) { + Utils.checkNotNull(sectionKey, "sectionKey"); + Utils.checkNotNull(type, "type"); + this.sectionKey = sectionKey; + this.type = type; + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + @JsonIgnore + public int sectionKey() { + return sectionKey; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + @JsonIgnore + public QueryParamType type() { + return type; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public GetSearchLibraryRequest withSectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + public GetSearchLibraryRequest withType(QueryParamType 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; + } + GetSearchLibraryRequest other = (GetSearchLibraryRequest) o; + return + Objects.deepEquals(this.sectionKey, other.sectionKey) && + Objects.deepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Objects.hash( + sectionKey, + type); + } + + @Override + public String toString() { + return Utils.toString(GetSearchLibraryRequest.class, + "sectionKey", sectionKey, + "type", type); + } + + public final static class Builder { + + private Integer sectionKey; + + private QueryParamType type; + + private Builder() { + // force use of static builder() method + } + + /** + * The unique key of the Plex library. + * Note: This is unique in the context of the Plex server. + * + */ + public Builder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + /** + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ + public Builder type(QueryParamType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public GetSearchLibraryRequest build() { + return new GetSearchLibraryRequest( + sectionKey, + type); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java new file mode 100644 index 00000000..e59c7d11 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; + +public class GetSearchLibraryRequestBuilder { + + private Integer sectionKey; + private QueryParamType type; + private final SDKMethodInterfaces.MethodCallGetSearchLibrary sdk; + + public GetSearchLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchLibrary sdk) { + this.sdk = sdk; + } + + public GetSearchLibraryRequestBuilder sectionKey(int sectionKey) { + Utils.checkNotNull(sectionKey, "sectionKey"); + this.sectionKey = sectionKey; + return this; + } + + public GetSearchLibraryRequestBuilder type(dev.plexapi.sdk.models.operations.QueryParamType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public GetSearchLibraryResponse call() throws Exception { + + return sdk.getSearchLibrary( + sectionKey, + type); + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java similarity index 72% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java index 6ab2afd7..73a08e5d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetSearchLibraryResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +39,14 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * The contents of the library by section and type */ - private Optional object; + private Optional object; @JsonCreator - public SearchLibraryResponse( + public GetSearchLibraryResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re this.object = object; } - public SearchLibraryResponse( + public GetSearchLibraryResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -90,8 +93,8 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * HTTP response content type for this operation */ - public SearchLibraryResponse withContentType(String contentType) { + public GetSearchLibraryResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * HTTP response status code for this operation */ - public SearchLibraryResponse withStatusCode(int statusCode) { + public GetSearchLibraryResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,7 +122,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * Raw HTTP response; suitable for custom response parsing */ - public SearchLibraryResponse withRawResponse(HttpResponse rawResponse) { + public GetSearchLibraryResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -128,7 +131,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * The contents of the library by section and type */ - public SearchLibraryResponse withObject(SearchLibraryResponseBody object) { + public GetSearchLibraryResponse withObject(GetSearchLibraryResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -137,7 +140,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * The contents of the library by section and type */ - public SearchLibraryResponse withObject(Optional object) { + public GetSearchLibraryResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re if (o == null || getClass() != o.getClass()) { return false; } - SearchLibraryResponse other = (SearchLibraryResponse) o; + GetSearchLibraryResponse other = (GetSearchLibraryResponse) 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re @Override public String toString() { - return Utils.toString(SearchLibraryResponse.class, + return Utils.toString(GetSearchLibraryResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +224,7 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * The contents of the library by section and type */ - public Builder object(SearchLibraryResponseBody object) { + public Builder object(GetSearchLibraryResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -230,14 +233,14 @@ public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Re /** * The contents of the library by section and type */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public SearchLibraryResponse build() { - return new SearchLibraryResponse( + public GetSearchLibraryResponse build() { + return new GetSearchLibraryResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java new file mode 100644 index 00000000..d0791bcf --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * GetSearchLibraryResponseBody - The contents of the library by section and type + */ + +public class GetSearchLibraryResponseBody { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + private Optional mediaContainer; + + @JsonCreator + public GetSearchLibraryResponseBody( + @JsonProperty("MediaContainer") Optional mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = mediaContainer; + } + + public GetSearchLibraryResponseBody() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mediaContainer() { + return (Optional) mediaContainer; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetSearchLibraryResponseBody withMediaContainer(GetSearchLibraryMediaContainer mediaContainer) { + Utils.checkNotNull(mediaContainer, "mediaContainer"); + this.mediaContainer = Optional.ofNullable(mediaContainer); + return this; + } + + public GetSearchLibraryResponseBody 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; + } + GetSearchLibraryResponseBody other = (GetSearchLibraryResponseBody) o; + return + Objects.deepEquals(this.mediaContainer, other.mediaContainer); + } + + @Override + public int hashCode() { + return Objects.hash( + mediaContainer); + } + + @Override + public String toString() { + return Utils.toString(GetSearchLibraryResponseBody.class, + "mediaContainer", mediaContainer); + } + + public final static class Builder { + + private Optional mediaContainer = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + public Builder mediaContainer(GetSearchLibraryMediaContainer 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 GetSearchLibraryResponseBody build() { + return new GetSearchLibraryResponseBody( + mediaContainer); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java index 419f38d9..01f885db 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetSearchResultsCountry( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetSearchResultsCountry { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetSearchResultsCountry { return this; } - public GetSearchResultsCountry withTag(Optional tag) { + public GetSearchResultsCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetSearchResultsCountry { } GetSearchResultsCountry other = (GetSearchResultsCountry) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetSearchResultsCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetSearchResultsCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java index 58b32ad8..a51d14b3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsDirector { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetSearchResultsDirector( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetSearchResultsDirector { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetSearchResultsDirector { return this; } - public GetSearchResultsDirector withTag(Optional tag) { + public GetSearchResultsDirector withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetSearchResultsDirector { } GetSearchResultsDirector other = (GetSearchResultsDirector) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetSearchResultsDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetSearchResultsDirector { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java index fb878211..8e7f74ac 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetSearchResultsGenre( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetSearchResultsGenre { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetSearchResultsGenre { return this; } - public GetSearchResultsGenre withTag(Optional tag) { + public GetSearchResultsGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetSearchResultsGenre { } GetSearchResultsGenre other = (GetSearchResultsGenre) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetSearchResultsGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetSearchResultsGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java index 0fc2b14a..7969bdcc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java @@ -1,102 +1,104 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -133,94 +135,80 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -233,7 +221,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withId(Optional id) { + public GetSearchResultsMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -245,7 +233,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withDuration(Optional duration) { + public GetSearchResultsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -257,7 +245,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withBitrate(Optional bitrate) { + public GetSearchResultsMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -269,7 +257,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withWidth(Optional width) { + public GetSearchResultsMedia withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -281,7 +269,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withHeight(Optional height) { + public GetSearchResultsMedia withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -293,7 +281,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withAspectRatio(Optional aspectRatio) { + public GetSearchResultsMedia withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -305,7 +293,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withAudioChannels(Optional audioChannels) { + public GetSearchResultsMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -317,7 +305,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withAudioCodec(Optional audioCodec) { + public GetSearchResultsMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -329,7 +317,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withVideoCodec(Optional videoCodec) { + public GetSearchResultsMedia withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -341,7 +329,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withVideoResolution(Optional videoResolution) { + public GetSearchResultsMedia withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -353,7 +341,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withContainer(Optional container) { + public GetSearchResultsMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -365,7 +353,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withVideoFrameRate(Optional videoFrameRate) { + public GetSearchResultsMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -377,7 +365,7 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withAudioProfile(Optional audioProfile) { + public GetSearchResultsMedia withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -389,19 +377,19 @@ public class GetSearchResultsMedia { return this; } - public GetSearchResultsMedia withVideoProfile(Optional videoProfile) { + public GetSearchResultsMedia withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public GetSearchResultsMedia withPart(java.util.List part) { + public GetSearchResultsMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetSearchResultsMedia withPart(Optional> part) { + public GetSearchResultsMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -417,26 +405,26 @@ public class GetSearchResultsMedia { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -476,35 +464,35 @@ public class GetSearchResultsMedia { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -516,7 +504,7 @@ public class GetSearchResultsMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -528,7 +516,7 @@ public class GetSearchResultsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -540,7 +528,7 @@ public class GetSearchResultsMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -552,7 +540,7 @@ public class GetSearchResultsMedia { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -564,7 +552,7 @@ public class GetSearchResultsMedia { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -576,7 +564,7 @@ public class GetSearchResultsMedia { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -588,7 +576,7 @@ public class GetSearchResultsMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -600,7 +588,7 @@ public class GetSearchResultsMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -612,7 +600,7 @@ public class GetSearchResultsMedia { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -624,7 +612,7 @@ public class GetSearchResultsMedia { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -636,7 +624,7 @@ public class GetSearchResultsMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -648,7 +636,7 @@ public class GetSearchResultsMedia { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -660,7 +648,7 @@ public class GetSearchResultsMedia { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -672,19 +660,19 @@ public class GetSearchResultsMedia { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java index 8999b531..17a2e769 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java @@ -1,57 +1,59 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Provider") - private Optional> 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) { + @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"); @@ -70,40 +72,36 @@ public class GetSearchResultsMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> provider() { - return (Optional>) provider; + public Optional> provider() { + return (Optional>) provider; } public final static Builder builder() { @@ -116,7 +114,7 @@ public class GetSearchResultsMediaContainer { return this; } - public GetSearchResultsMediaContainer withSize(Optional size) { + public GetSearchResultsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -128,7 +126,7 @@ public class GetSearchResultsMediaContainer { return this; } - public GetSearchResultsMediaContainer withIdentifier(Optional identifier) { + public GetSearchResultsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -140,7 +138,7 @@ public class GetSearchResultsMediaContainer { return this; } - public GetSearchResultsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetSearchResultsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -152,31 +150,31 @@ public class GetSearchResultsMediaContainer { return this; } - public GetSearchResultsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetSearchResultsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public GetSearchResultsMediaContainer withMetadata(java.util.List metadata) { + public GetSearchResultsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetSearchResultsMediaContainer withMetadata(Optional> metadata) { + public GetSearchResultsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; } - public GetSearchResultsMediaContainer withProvider(java.util.List provider) { + public GetSearchResultsMediaContainer withProvider(List provider) { Utils.checkNotNull(provider, "provider"); this.provider = Optional.ofNullable(provider); return this; } - public GetSearchResultsMediaContainer withProvider(Optional> provider) { + public GetSearchResultsMediaContainer withProvider(Optional> provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; return this; @@ -192,17 +190,17 @@ public class GetSearchResultsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.metadata, other.metadata) && + Objects.deepEquals(this.provider, other.provider); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, identifier, mediaTagPrefix, @@ -224,17 +222,17 @@ public class GetSearchResultsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); - private Optional> provider = Optional.empty(); + private Optional> provider = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +244,7 @@ public class GetSearchResultsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -258,7 +256,7 @@ public class GetSearchResultsMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -270,7 +268,7 @@ public class GetSearchResultsMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -282,31 +280,31 @@ public class GetSearchResultsMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; } - public Builder provider(java.util.List provider) { + public Builder provider(List provider) { Utils.checkNotNull(provider, "provider"); this.provider = Optional.ofNullable(provider); return this; } - public Builder provider(Optional> provider) { + public Builder provider(Optional> provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java index 8a14ba23..10653054 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java @@ -1,200 +1,201 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; + private Optional librarySectionUUID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("personal") - private Optional personal; + private Optional personal; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceTitle") - private Optional sourceTitle; + private Optional sourceTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chapterSource") - private Optional chapterSource; + private Optional chapterSource; @JsonInclude(Include.NON_ABSENT) @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; + private Optional primaryExtraKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Director") - private Optional> director; + private Optional> director; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Writer") - private Optional> writer; + private Optional> writer; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> 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) { + @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"); @@ -269,208 +270,180 @@ public class 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; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; + return librarySectionUUID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional personal() { - return (Optional) personal; + return personal; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceTitle() { - return (Optional) sourceTitle; + return sourceTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chapterSource() { - return (Optional) chapterSource; + return chapterSource; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; + return primaryExtraKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> director() { - return (Optional>) director; + public Optional> director() { + return (Optional>) director; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> writer() { - return (Optional>) writer; + public Optional> writer() { + return (Optional>) writer; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } public final static Builder builder() { @@ -483,7 +456,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withAllowSync(Optional allowSync) { + public GetSearchResultsMetadata withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -495,7 +468,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withLibrarySectionID(Optional librarySectionID) { + public GetSearchResultsMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -507,7 +480,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetSearchResultsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -519,7 +492,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withLibrarySectionUUID(Optional librarySectionUUID) { + public GetSearchResultsMetadata withLibrarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -531,7 +504,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withPersonal(Optional personal) { + public GetSearchResultsMetadata withPersonal(Optional personal) { Utils.checkNotNull(personal, "personal"); this.personal = personal; return this; @@ -543,7 +516,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withSourceTitle(Optional sourceTitle) { + public GetSearchResultsMetadata withSourceTitle(Optional sourceTitle) { Utils.checkNotNull(sourceTitle, "sourceTitle"); this.sourceTitle = sourceTitle; return this; @@ -555,7 +528,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withRatingKey(Optional ratingKey) { + public GetSearchResultsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -567,7 +540,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withKey(Optional key) { + public GetSearchResultsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -579,7 +552,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withGuid(Optional guid) { + public GetSearchResultsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -591,7 +564,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withStudio(Optional studio) { + public GetSearchResultsMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -603,7 +576,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withType(Optional type) { + public GetSearchResultsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -615,7 +588,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withTitle(Optional title) { + public GetSearchResultsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -627,7 +600,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withContentRating(Optional contentRating) { + public GetSearchResultsMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -639,7 +612,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withSummary(Optional summary) { + public GetSearchResultsMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -651,7 +624,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withRating(Optional rating) { + public GetSearchResultsMetadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -663,7 +636,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withAudienceRating(Optional audienceRating) { + public GetSearchResultsMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -675,7 +648,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withYear(Optional year) { + public GetSearchResultsMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -687,7 +660,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withTagline(Optional tagline) { + public GetSearchResultsMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -699,7 +672,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withThumb(Optional thumb) { + public GetSearchResultsMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -711,7 +684,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withArt(Optional art) { + public GetSearchResultsMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -723,7 +696,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withDuration(Optional duration) { + public GetSearchResultsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -735,7 +708,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetSearchResultsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -747,7 +720,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withAddedAt(Optional addedAt) { + public GetSearchResultsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -759,7 +732,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withUpdatedAt(Optional updatedAt) { + public GetSearchResultsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -771,7 +744,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetSearchResultsMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -783,7 +756,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withChapterSource(Optional chapterSource) { + public GetSearchResultsMetadata withChapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -795,7 +768,7 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { + public GetSearchResultsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -807,79 +780,79 @@ public class GetSearchResultsMetadata { return this; } - public GetSearchResultsMetadata withRatingImage(Optional ratingImage) { + public GetSearchResultsMetadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public GetSearchResultsMetadata withMedia(java.util.List media) { + public GetSearchResultsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetSearchResultsMetadata withMedia(Optional> media) { + public GetSearchResultsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public GetSearchResultsMetadata withGenre(java.util.List genre) { + public GetSearchResultsMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetSearchResultsMetadata withGenre(Optional> genre) { + public GetSearchResultsMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetSearchResultsMetadata withDirector(java.util.List director) { + public GetSearchResultsMetadata withDirector(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public GetSearchResultsMetadata withDirector(Optional> director) { + public GetSearchResultsMetadata withDirector(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public GetSearchResultsMetadata withWriter(java.util.List writer) { + public GetSearchResultsMetadata withWriter(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public GetSearchResultsMetadata withWriter(Optional> writer) { + public GetSearchResultsMetadata withWriter(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public GetSearchResultsMetadata withCountry(java.util.List country) { + public GetSearchResultsMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetSearchResultsMetadata withCountry(Optional> country) { + public GetSearchResultsMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetSearchResultsMetadata withRole(java.util.List role) { + public GetSearchResultsMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetSearchResultsMetadata withRole(Optional> role) { + public GetSearchResultsMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -895,45 +868,45 @@ public class GetSearchResultsMetadata { } 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); + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && + Objects.deepEquals(this.personal, other.personal) && + Objects.deepEquals(this.sourceTitle, other.sourceTitle) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.chapterSource, other.chapterSource) && + Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.director, other.director) && + Objects.deepEquals(this.writer, other.writer) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.role, other.role); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( allowSync, librarySectionID, librarySectionTitle, @@ -1011,73 +984,73 @@ public class GetSearchResultsMetadata { public final static class Builder { - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionUUID = Optional.empty(); + private Optional librarySectionUUID = Optional.empty(); - private Optional personal = Optional.empty(); + private Optional personal = Optional.empty(); - private Optional sourceTitle = Optional.empty(); + private Optional sourceTitle = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional chapterSource = Optional.empty(); + private Optional chapterSource = Optional.empty(); - private Optional primaryExtraKey = Optional.empty(); + private Optional primaryExtraKey = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> director = Optional.empty(); + private Optional> director = Optional.empty(); - private Optional> writer = Optional.empty(); + private Optional> writer = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1089,7 +1062,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -1101,7 +1074,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1113,7 +1086,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1125,7 +1098,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder librarySectionUUID(Optional librarySectionUUID) { + public Builder librarySectionUUID(Optional librarySectionUUID) { Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); this.librarySectionUUID = librarySectionUUID; return this; @@ -1137,7 +1110,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder personal(Optional personal) { + public Builder personal(Optional personal) { Utils.checkNotNull(personal, "personal"); this.personal = personal; return this; @@ -1149,7 +1122,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder sourceTitle(Optional sourceTitle) { + public Builder sourceTitle(Optional sourceTitle) { Utils.checkNotNull(sourceTitle, "sourceTitle"); this.sourceTitle = sourceTitle; return this; @@ -1161,7 +1134,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1173,7 +1146,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1185,7 +1158,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1197,7 +1170,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1209,7 +1182,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1221,7 +1194,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1233,7 +1206,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1245,7 +1218,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1257,7 +1230,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1269,7 +1242,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1281,7 +1254,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1293,7 +1266,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1305,7 +1278,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1317,7 +1290,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1329,7 +1302,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1341,7 +1314,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1353,7 +1326,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1365,7 +1338,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1377,7 +1350,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1389,7 +1362,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder chapterSource(Optional chapterSource) { + public Builder chapterSource(Optional chapterSource) { Utils.checkNotNull(chapterSource, "chapterSource"); this.chapterSource = chapterSource; return this; @@ -1401,7 +1374,7 @@ public class GetSearchResultsMetadata { return this; } - public Builder primaryExtraKey(Optional primaryExtraKey) { + public Builder primaryExtraKey(Optional primaryExtraKey) { Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); this.primaryExtraKey = primaryExtraKey; return this; @@ -1413,79 +1386,79 @@ public class GetSearchResultsMetadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder director(java.util.List director) { + public Builder director(List director) { Utils.checkNotNull(director, "director"); this.director = Optional.ofNullable(director); return this; } - public Builder director(Optional> director) { + public Builder director(Optional> director) { Utils.checkNotNull(director, "director"); this.director = director; return this; } - public Builder writer(java.util.List writer) { + public Builder writer(List writer) { Utils.checkNotNull(writer, "writer"); this.writer = Optional.ofNullable(writer); return this; } - public Builder writer(Optional> writer) { + public Builder writer(Optional> writer) { Utils.checkNotNull(writer, "writer"); this.writer = writer; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java index 5cdc853c..0c11b492 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java @@ -1,67 +1,67 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioProfile") - private Optional audioProfile; + private Optional audioProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional 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) { + @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"); @@ -84,52 +84,44 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioProfile() { - return (Optional) audioProfile; + return audioProfile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } public final static Builder builder() { @@ -142,7 +134,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withId(Optional id) { + public GetSearchResultsPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -154,7 +146,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withKey(Optional key) { + public GetSearchResultsPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -166,7 +158,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withDuration(Optional duration) { + public GetSearchResultsPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -178,7 +170,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withFile(Optional file) { + public GetSearchResultsPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -190,7 +182,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withSize(Optional size) { + public GetSearchResultsPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -202,7 +194,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withAudioProfile(Optional audioProfile) { + public GetSearchResultsPart withAudioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -214,7 +206,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withContainer(Optional container) { + public GetSearchResultsPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -226,7 +218,7 @@ public class GetSearchResultsPart { return this; } - public GetSearchResultsPart withVideoProfile(Optional videoProfile) { + public GetSearchResultsPart withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; @@ -242,19 +234,19 @@ public class GetSearchResultsPart { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.audioProfile, other.audioProfile) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoProfile, other.videoProfile); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -280,21 +272,21 @@ public class GetSearchResultsPart { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional audioProfile = Optional.empty(); + private Optional audioProfile = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -306,7 +298,7 @@ public class GetSearchResultsPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -318,7 +310,7 @@ public class GetSearchResultsPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -330,7 +322,7 @@ public class GetSearchResultsPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -342,7 +334,7 @@ public class GetSearchResultsPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -354,7 +346,7 @@ public class GetSearchResultsPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -366,7 +358,7 @@ public class GetSearchResultsPart { return this; } - public Builder audioProfile(Optional audioProfile) { + public Builder audioProfile(Optional audioProfile) { Utils.checkNotNull(audioProfile, "audioProfile"); this.audioProfile = audioProfile; return this; @@ -378,7 +370,7 @@ public class GetSearchResultsPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -390,7 +382,7 @@ public class GetSearchResultsPart { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java index 680e3e4d..d799eb5a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetSearchResultsRequest { @@ -61,12 +60,12 @@ public class GetSearchResultsRequest { } GetSearchResultsRequest other = (GetSearchResultsRequest) o; return - java.util.Objects.deepEquals(this.query, other.query); + Objects.deepEquals(this.query, other.query); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( query); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java new file mode 100644 index 00000000..591ea5a5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class GetSearchResultsRequestBuilder { + + private String query; + private final SDKMethodInterfaces.MethodCallGetSearchResults sdk; + + public GetSearchResultsRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchResults sdk) { + this.sdk = sdk; + } + + public GetSearchResultsRequestBuilder query(java.lang.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/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java index b53a1c47..720b0248 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetSearchResultsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetSearchResultsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetSearchResultsResponse implements lukehagar.plexapi.plexapi.utils } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java index d2b2f83a..fdcb2b58 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetSearchResultsResponseBody - Search Results */ @@ -70,12 +70,12 @@ public class GetSearchResultsResponseBody { } GetSearchResultsResponseBody other = (GetSearchResultsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java index 7aa870e5..8e2d5990 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetSearchResultsRole( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetSearchResultsRole { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetSearchResultsRole { return this; } - public GetSearchResultsRole withTag(Optional tag) { + public GetSearchResultsRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetSearchResultsRole { } GetSearchResultsRole other = (GetSearchResultsRole) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetSearchResultsRole { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetSearchResultsRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java index 74d515e9..f8591fef 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSearchResultsWriter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetSearchResultsWriter( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class GetSearchResultsWriter { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetSearchResultsWriter { return this; } - public GetSearchResultsWriter withTag(Optional tag) { + public GetSearchResultsWriter withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class GetSearchResultsWriter { } GetSearchResultsWriter other = (GetSearchResultsWriter) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class GetSearchResultsWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetSearchResultsWriter { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java index 247540da..c5635078 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerActivitiesMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Activity") - private Optional> activity; + private Optional> activity; @JsonCreator public GetServerActivitiesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Activity") Optional> activity) { + @JsonProperty("size") Optional size, + @JsonProperty("Activity") Optional> activity) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(activity, "activity"); this.size = size; @@ -42,16 +44,15 @@ public class GetServerActivitiesMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> activity() { - return (Optional>) activity; + public Optional> activity() { + return (Optional>) activity; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetServerActivitiesMediaContainer { return this; } - public GetServerActivitiesMediaContainer withSize(Optional size) { + public GetServerActivitiesMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetServerActivitiesMediaContainer withActivity(java.util.List activity) { + public GetServerActivitiesMediaContainer withActivity(List activity) { Utils.checkNotNull(activity, "activity"); this.activity = Optional.ofNullable(activity); return this; } - public GetServerActivitiesMediaContainer withActivity(Optional> activity) { + public GetServerActivitiesMediaContainer withActivity(Optional> activity) { Utils.checkNotNull(activity, "activity"); this.activity = activity; return this; @@ -92,13 +93,13 @@ public class GetServerActivitiesMediaContainer { } GetServerActivitiesMediaContainer other = (GetServerActivitiesMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.activity, other.activity); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.activity, other.activity); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, activity); } @@ -112,9 +113,9 @@ public class GetServerActivitiesMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> activity = Optional.empty(); + private Optional> activity = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetServerActivitiesMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder activity(java.util.List activity) { + public Builder activity(List activity) { Utils.checkNotNull(activity, "activity"); this.activity = Optional.ofNullable(activity); return this; } - public Builder activity(Optional> activity) { + public Builder activity(Optional> activity) { Utils.checkNotNull(activity, "activity"); this.activity = activity; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java new file mode 100644 index 00000000..b8d6bd4d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java index c4dd1a2e..50b2d2b3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetServerActivitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetServerActivitiesResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetServerActivitiesResponse implements lukehagar.plexapi.plexapi.ut } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java index 273c3aaa..2a72dec5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetServerActivitiesResponseBody - The Server Activities */ @@ -70,12 +70,12 @@ public class GetServerActivitiesResponseBody { } GetServerActivitiesResponseBody other = (GetServerActivitiesResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java new file mode 100644 index 00000000..05ef6d64 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java index c86f2030..61abde3b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetServerCapabilitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetServerCapabilitiesResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetServerCapabilitiesResponse implements lukehagar.plexapi.plexapi. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java index c23f83f0..e1ced7af 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetServerCapabilitiesResponseBody - The Server Capabilities */ @@ -70,12 +70,12 @@ public class GetServerCapabilitiesResponseBody { } GetServerCapabilitiesResponseBody other = (GetServerCapabilitiesResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java index fe6cb159..7284c516 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java @@ -1,47 +1,48 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerIdentityMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("claimed") - private Optional claimed; + private Optional claimed; @JsonInclude(Include.NON_ABSENT) @JsonProperty("machineIdentifier") - private Optional machineIdentifier; + private Optional machineIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional version; + private Optional version; @JsonCreator public GetServerIdentityMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("claimed") Optional claimed, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("version") Optional version) { + @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"); @@ -56,28 +57,24 @@ public class GetServerIdentityMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional claimed() { - return (Optional) claimed; + return claimed; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional machineIdentifier() { - return (Optional) machineIdentifier; + return machineIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } public final static Builder builder() { @@ -90,7 +87,7 @@ public class GetServerIdentityMediaContainer { return this; } - public GetServerIdentityMediaContainer withSize(Optional size) { + public GetServerIdentityMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -102,7 +99,7 @@ public class GetServerIdentityMediaContainer { return this; } - public GetServerIdentityMediaContainer withClaimed(Optional claimed) { + public GetServerIdentityMediaContainer withClaimed(Optional claimed) { Utils.checkNotNull(claimed, "claimed"); this.claimed = claimed; return this; @@ -114,7 +111,7 @@ public class GetServerIdentityMediaContainer { return this; } - public GetServerIdentityMediaContainer withMachineIdentifier(Optional machineIdentifier) { + public GetServerIdentityMediaContainer withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -126,7 +123,7 @@ public class GetServerIdentityMediaContainer { return this; } - public GetServerIdentityMediaContainer withVersion(Optional version) { + public GetServerIdentityMediaContainer withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -142,15 +139,15 @@ public class GetServerIdentityMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.claimed, other.claimed) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.version, other.version); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, claimed, machineIdentifier, @@ -168,13 +165,13 @@ public class GetServerIdentityMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional claimed = Optional.empty(); + private Optional claimed = Optional.empty(); - private Optional machineIdentifier = Optional.empty(); + private Optional machineIdentifier = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,7 +183,7 @@ public class GetServerIdentityMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -198,7 +195,7 @@ public class GetServerIdentityMediaContainer { return this; } - public Builder claimed(Optional claimed) { + public Builder claimed(Optional claimed) { Utils.checkNotNull(claimed, "claimed"); this.claimed = claimed; return this; @@ -210,7 +207,7 @@ public class GetServerIdentityMediaContainer { return this; } - public Builder machineIdentifier(Optional machineIdentifier) { + public Builder machineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -222,7 +219,7 @@ public class GetServerIdentityMediaContainer { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java new file mode 100644 index 00000000..cdc402de --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java index 509dacf9..e8cf1e87 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetServerIdentityResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetServerIdentityResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetServerIdentityResponse implements lukehagar.plexapi.plexapi.util } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java index bb77c300..41bdc056 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetServerIdentityResponseBody - The Server Identity information */ @@ -70,12 +70,12 @@ public class GetServerIdentityResponseBody { } GetServerIdentityResponseBody other = (GetServerIdentityResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java index 93cb75f5..51b960b8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerListMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Server") - private Optional> server; + private Optional> server; @JsonCreator public GetServerListMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Server") Optional> server) { + @JsonProperty("size") Optional size, + @JsonProperty("Server") Optional> server) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(server, "server"); this.size = size; @@ -42,16 +44,15 @@ public class GetServerListMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> server() { - return (Optional>) server; + public Optional> server() { + return (Optional>) server; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetServerListMediaContainer { return this; } - public GetServerListMediaContainer withSize(Optional size) { + public GetServerListMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetServerListMediaContainer withServer(java.util.List server) { + public GetServerListMediaContainer withServer(List server) { Utils.checkNotNull(server, "server"); this.server = Optional.ofNullable(server); return this; } - public GetServerListMediaContainer withServer(Optional> server) { + public GetServerListMediaContainer withServer(Optional> server) { Utils.checkNotNull(server, "server"); this.server = server; return this; @@ -92,13 +93,13 @@ public class GetServerListMediaContainer { } GetServerListMediaContainer other = (GetServerListMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.server, other.server); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.server, other.server); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, server); } @@ -112,9 +113,9 @@ public class GetServerListMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> server = Optional.empty(); + private Optional> server = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetServerListMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder server(java.util.List server) { + public Builder server(List server) { Utils.checkNotNull(server, "server"); this.server = Optional.ofNullable(server); return this; } - public Builder server(Optional> server) { + public Builder server(Optional> server) { Utils.checkNotNull(server, "server"); this.server = server; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java new file mode 100644 index 00000000..9f6f4f6f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetServerListResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java index 3b3a15c9..b38e346a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetServerListResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetServerListResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetServerListResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java index fe1ea116..0800636c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetServerListResponseBody - List of Servers */ @@ -70,12 +70,12 @@ public class GetServerListResponseBody { } GetServerListResponseBody other = (GetServerListResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java index 7b00b227..9405c3f6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java @@ -1,57 +1,57 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerListServer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("host") - private Optional host; + private Optional host; @JsonInclude(Include.NON_ABSENT) @JsonProperty("address") - private Optional address; + private Optional address; @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") - private Optional port; + private Optional port; @JsonInclude(Include.NON_ABSENT) @JsonProperty("machineIdentifier") - private Optional machineIdentifier; + private Optional machineIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional 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) { + @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"); @@ -70,40 +70,34 @@ public class GetServerListServer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional host() { - return (Optional) host; + return host; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional address() { - return (Optional) address; + return address; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional port() { - return (Optional) port; + return port; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional machineIdentifier() { - return (Optional) machineIdentifier; + return machineIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } public final static Builder builder() { @@ -116,7 +110,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withName(Optional name) { + public GetServerListServer withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -128,7 +122,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withHost(Optional host) { + public GetServerListServer withHost(Optional host) { Utils.checkNotNull(host, "host"); this.host = host; return this; @@ -140,7 +134,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withAddress(Optional address) { + public GetServerListServer withAddress(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -152,7 +146,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withPort(Optional port) { + public GetServerListServer withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -164,7 +158,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withMachineIdentifier(Optional machineIdentifier) { + public GetServerListServer withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -176,7 +170,7 @@ public class GetServerListServer { return this; } - public GetServerListServer withVersion(Optional version) { + public GetServerListServer withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -192,17 +186,17 @@ public class GetServerListServer { } 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); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.host, other.host) && + Objects.deepEquals(this.address, other.address) && + Objects.deepEquals(this.port, other.port) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.version, other.version); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, host, address, @@ -224,17 +218,17 @@ public class GetServerListServer { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional host = Optional.empty(); + private Optional host = Optional.empty(); - private Optional address = Optional.empty(); + private Optional address = Optional.empty(); - private Optional port = Optional.empty(); + private Optional port = Optional.empty(); - private Optional machineIdentifier = Optional.empty(); + private Optional machineIdentifier = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +240,7 @@ public class GetServerListServer { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -258,7 +252,7 @@ public class GetServerListServer { return this; } - public Builder host(Optional host) { + public Builder host(Optional host) { Utils.checkNotNull(host, "host"); this.host = host; return this; @@ -270,7 +264,7 @@ public class GetServerListServer { return this; } - public Builder address(Optional address) { + public Builder address(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -282,7 +276,7 @@ public class GetServerListServer { return this; } - public Builder port(Optional port) { + public Builder port(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -294,7 +288,7 @@ public class GetServerListServer { return this; } - public Builder machineIdentifier(Optional machineIdentifier) { + public Builder machineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -306,7 +300,7 @@ public class GetServerListServer { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java index eca5b9f2..fe1f7e5a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetServerPreferencesMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Setting") - private Optional> setting; + private Optional> setting; @JsonCreator public GetServerPreferencesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Setting") Optional> setting) { + @JsonProperty("size") Optional size, + @JsonProperty("Setting") Optional> setting) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(setting, "setting"); this.size = size; @@ -42,16 +44,15 @@ public class GetServerPreferencesMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> setting() { - return (Optional>) setting; + public Optional> setting() { + return (Optional>) setting; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetServerPreferencesMediaContainer { return this; } - public GetServerPreferencesMediaContainer withSize(Optional size) { + public GetServerPreferencesMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetServerPreferencesMediaContainer withSetting(java.util.List setting) { + public GetServerPreferencesMediaContainer withSetting(List setting) { Utils.checkNotNull(setting, "setting"); this.setting = Optional.ofNullable(setting); return this; } - public GetServerPreferencesMediaContainer withSetting(Optional> setting) { + public GetServerPreferencesMediaContainer withSetting(Optional> setting) { Utils.checkNotNull(setting, "setting"); this.setting = setting; return this; @@ -92,13 +93,13 @@ public class GetServerPreferencesMediaContainer { } GetServerPreferencesMediaContainer other = (GetServerPreferencesMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.setting, other.setting); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.setting, other.setting); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, setting); } @@ -112,9 +113,9 @@ public class GetServerPreferencesMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> setting = Optional.empty(); + private Optional> setting = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetServerPreferencesMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder setting(java.util.List setting) { + public Builder setting(List setting) { Utils.checkNotNull(setting, "setting"); this.setting = Optional.ofNullable(setting); return this; } - public Builder setting(Optional> setting) { + public Builder setting(Optional> setting) { Utils.checkNotNull(setting, "setting"); this.setting = setting; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java new file mode 100644 index 00000000..0671e581 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java index 1f81a858..eb884889 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetServerPreferencesResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetServerPreferencesResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetServerPreferencesResponse implements lukehagar.plexapi.plexapi.u } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java index 68236846..12f1d617 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetServerPreferencesResponseBody - Server Preferences */ @@ -70,12 +70,12 @@ public class GetServerPreferencesResponseBody { } GetServerPreferencesResponseBody other = (GetServerPreferencesResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java new file mode 100644 index 00000000..a7ff93c7 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java @@ -0,0 +1,405 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class GetServerResourcesRequest { + + /** + * 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("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier") + private Optional xPlexClientIdentifier; + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; + + /** + * Include Https entries in the results + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeHttps") + private Optional includeHttps; + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeRelay") + private Optional includeRelay; + + /** + * Include IPv6 entries in the results + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6") + private Optional includeIPv6; + + @JsonCreator + public GetServerResourcesRequest( + Optional xPlexClientIdentifier, + String xPlexToken, + Optional includeHttps, + Optional includeRelay, + Optional includeIPv6) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + Utils.checkNotNull(xPlexToken, "xPlexToken"); + Utils.checkNotNull(includeHttps, "includeHttps"); + Utils.checkNotNull(includeRelay, "includeRelay"); + Utils.checkNotNull(includeIPv6, "includeIPv6"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + this.xPlexToken = xPlexToken; + this.includeHttps = includeHttps; + this.includeRelay = includeRelay; + this.includeIPv6 = includeIPv6; + } + + public GetServerResourcesRequest( + String xPlexToken) { + this(Optional.empty(), xPlexToken, Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * 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) + * + */ + @JsonIgnore + public Optional xPlexClientIdentifier() { + return xPlexClientIdentifier; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; + } + + /** + * Include Https entries in the results + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional includeHttps() { + return (Optional) includeHttps; + } + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional includeRelay() { + return (Optional) includeRelay; + } + + /** + * Include IPv6 entries in the results + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional includeIPv6() { + return (Optional) includeIPv6; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * 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 GetServerResourcesRequest 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 GetServerResourcesRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + return this; + } + + /** + * Plex Authentication Token + */ + public GetServerResourcesRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + /** + * Include Https entries in the results + */ + public GetServerResourcesRequest withIncludeHttps(IncludeHttps includeHttps) { + Utils.checkNotNull(includeHttps, "includeHttps"); + this.includeHttps = Optional.ofNullable(includeHttps); + return this; + } + + /** + * Include Https entries in the results + */ + public GetServerResourcesRequest withIncludeHttps(Optional includeHttps) { + Utils.checkNotNull(includeHttps, "includeHttps"); + this.includeHttps = includeHttps; + return this; + } + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + public GetServerResourcesRequest withIncludeRelay(IncludeRelay includeRelay) { + Utils.checkNotNull(includeRelay, "includeRelay"); + this.includeRelay = Optional.ofNullable(includeRelay); + return this; + } + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + public GetServerResourcesRequest withIncludeRelay(Optional includeRelay) { + Utils.checkNotNull(includeRelay, "includeRelay"); + this.includeRelay = includeRelay; + return this; + } + + /** + * Include IPv6 entries in the results + */ + public GetServerResourcesRequest withIncludeIPv6(IncludeIPv6 includeIPv6) { + Utils.checkNotNull(includeIPv6, "includeIPv6"); + this.includeIPv6 = Optional.ofNullable(includeIPv6); + return this; + } + + /** + * Include IPv6 entries in the results + */ + public GetServerResourcesRequest withIncludeIPv6(Optional includeIPv6) { + Utils.checkNotNull(includeIPv6, "includeIPv6"); + this.includeIPv6 = includeIPv6; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerResourcesRequest other = (GetServerResourcesRequest) o; + return + Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) && + Objects.deepEquals(this.xPlexToken, other.xPlexToken) && + Objects.deepEquals(this.includeHttps, other.includeHttps) && + Objects.deepEquals(this.includeRelay, other.includeRelay) && + Objects.deepEquals(this.includeIPv6, other.includeIPv6); + } + + @Override + public int hashCode() { + return Objects.hash( + xPlexClientIdentifier, + xPlexToken, + includeHttps, + includeRelay, + includeIPv6); + } + + @Override + public String toString() { + return Utils.toString(GetServerResourcesRequest.class, + "xPlexClientIdentifier", xPlexClientIdentifier, + "xPlexToken", xPlexToken, + "includeHttps", includeHttps, + "includeRelay", includeRelay, + "includeIPv6", includeIPv6); + } + + public final static class Builder { + + private Optional xPlexClientIdentifier = Optional.empty(); + + private String xPlexToken; + + private Optional includeHttps; + + private Optional includeRelay; + + private Optional includeIPv6; + + private Builder() { + // force use of static builder() method + } + + /** + * 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; + } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + /** + * Include Https entries in the results + */ + public Builder includeHttps(IncludeHttps includeHttps) { + Utils.checkNotNull(includeHttps, "includeHttps"); + this.includeHttps = Optional.ofNullable(includeHttps); + return this; + } + + /** + * Include Https entries in the results + */ + public Builder includeHttps(Optional includeHttps) { + Utils.checkNotNull(includeHttps, "includeHttps"); + this.includeHttps = includeHttps; + return this; + } + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + public Builder includeRelay(IncludeRelay includeRelay) { + Utils.checkNotNull(includeRelay, "includeRelay"); + this.includeRelay = Optional.ofNullable(includeRelay); + return this; + } + + /** + * Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ + public Builder includeRelay(Optional includeRelay) { + Utils.checkNotNull(includeRelay, "includeRelay"); + this.includeRelay = includeRelay; + return this; + } + + /** + * Include IPv6 entries in the results + */ + public Builder includeIPv6(IncludeIPv6 includeIPv6) { + Utils.checkNotNull(includeIPv6, "includeIPv6"); + this.includeIPv6 = Optional.ofNullable(includeIPv6); + return this; + } + + /** + * Include IPv6 entries in the results + */ + public Builder includeIPv6(Optional includeIPv6) { + Utils.checkNotNull(includeIPv6, "includeIPv6"); + this.includeIPv6 = includeIPv6; + return this; + } + + public GetServerResourcesRequest build() { + if (includeHttps == null) { + includeHttps = _SINGLETON_VALUE_IncludeHttps.value(); + } + if (includeRelay == null) { + includeRelay = _SINGLETON_VALUE_IncludeRelay.value(); + } + if (includeIPv6 == null) { + includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value(); + } return new GetServerResourcesRequest( + xPlexClientIdentifier, + xPlexToken, + includeHttps, + includeRelay, + includeIPv6); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeHttps = + new LazySingletonValue<>( + "includeHttps", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeRelay = + new LazySingletonValue<>( + "includeRelay", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeIPv6 = + new LazySingletonValue<>( + "includeIPv6", + "0", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java new file mode 100644 index 00000000..1d078e49 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerResourcesRequestBuilder { + + private GetServerResourcesRequest request; + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetServerResources sdk; + + public GetServerResourcesRequestBuilder(SDKMethodInterfaces.MethodCallGetServerResources sdk) { + this.sdk = sdk; + } + + public GetServerResourcesRequestBuilder request(dev.plexapi.sdk.models.operations.GetServerResourcesRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetServerResourcesRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerResourcesRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerResourcesResponse call() throws Exception { + + return sdk.getServerResources( + request, + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java new file mode 100644 index 00000000..68fc0e0c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java @@ -0,0 +1,252 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetServerResourcesResponse implements 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 Devices. This includes Plex hosted servers and clients + */ + private Optional> plexDevices; + + @JsonCreator + public GetServerResourcesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional> plexDevices) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(plexDevices, "plexDevices"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.plexDevices = plexDevices; + } + + public GetServerResourcesResponse( + 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 Devices. This includes Plex hosted servers and clients + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> plexDevices() { + return (Optional>) plexDevices; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetServerResourcesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerResourcesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerResourcesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List of Plex Devices. This includes Plex hosted servers and clients + */ + public GetServerResourcesResponse withPlexDevices(List plexDevices) { + Utils.checkNotNull(plexDevices, "plexDevices"); + this.plexDevices = Optional.ofNullable(plexDevices); + return this; + } + + /** + * List of Plex Devices. This includes Plex hosted servers and clients + */ + public GetServerResourcesResponse withPlexDevices(Optional> plexDevices) { + Utils.checkNotNull(plexDevices, "plexDevices"); + this.plexDevices = plexDevices; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerResourcesResponse other = (GetServerResourcesResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.plexDevices, other.plexDevices); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + plexDevices); + } + + @Override + public String toString() { + return Utils.toString(GetServerResourcesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "plexDevices", plexDevices); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional> plexDevices = 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 Devices. This includes Plex hosted servers and clients + */ + public Builder plexDevices(List plexDevices) { + Utils.checkNotNull(plexDevices, "plexDevices"); + this.plexDevices = Optional.ofNullable(plexDevices); + return this; + } + + /** + * List of Plex Devices. This includes Plex hosted servers and clients + */ + public Builder plexDevices(Optional> plexDevices) { + Utils.checkNotNull(plexDevices, "plexDevices"); + this.plexDevices = plexDevices; + return this; + } + + public GetServerResourcesResponse build() { + return new GetServerResourcesResponse( + contentType, + statusCode, + rawResponse, + plexDevices); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java index dc38fde0..899322e8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionHistoryMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public GetSessionHistoryMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { + @JsonProperty("size") Optional size, + @JsonProperty("Metadata") Optional> metadata) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(metadata, "metadata"); this.size = size; @@ -42,16 +44,15 @@ public class GetSessionHistoryMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetSessionHistoryMediaContainer { return this; } - public GetSessionHistoryMediaContainer withSize(Optional size) { + public GetSessionHistoryMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetSessionHistoryMediaContainer withMetadata(java.util.List metadata) { + public GetSessionHistoryMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetSessionHistoryMediaContainer withMetadata(Optional> metadata) { + public GetSessionHistoryMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -92,13 +93,13 @@ public class GetSessionHistoryMediaContainer { } GetSessionHistoryMediaContainer other = (GetSessionHistoryMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, metadata); } @@ -112,9 +113,9 @@ public class GetSessionHistoryMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetSessionHistoryMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java index ce883a15..b8c84d60 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java @@ -1,123 +1,123 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.time.LocalDate; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionHistoryMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("historyKey") - private Optional historyKey; + private Optional historyKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentKey") - private Optional grandparentKey; + private Optional grandparentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTitle") - private Optional grandparentTitle; + private Optional grandparentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentThumb") - private Optional grandparentThumb; + private Optional grandparentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentArt") - private Optional grandparentArt; + private Optional grandparentArt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedAt") - private Optional viewedAt; + private Optional viewedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountID") - private Optional accountID; + private Optional accountID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("deviceID") - private Optional 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) { + @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"); @@ -162,118 +162,99 @@ public class 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; + return historyKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentKey() { - return (Optional) grandparentKey; + return grandparentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTitle() { - return (Optional) grandparentTitle; + return grandparentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentThumb() { - return (Optional) grandparentThumb; + return grandparentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentArt() { - return (Optional) grandparentArt; + return grandparentArt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewedAt() { - return (Optional) viewedAt; + return viewedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional accountID() { - return (Optional) accountID; + return accountID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional deviceID() { - return (Optional) deviceID; + return deviceID; } public final static Builder builder() { @@ -286,7 +267,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withHistoryKey(Optional historyKey) { + public GetSessionHistoryMetadata withHistoryKey(Optional historyKey) { Utils.checkNotNull(historyKey, "historyKey"); this.historyKey = historyKey; return this; @@ -298,7 +279,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withKey(Optional key) { + public GetSessionHistoryMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -310,7 +291,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withRatingKey(Optional ratingKey) { + public GetSessionHistoryMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -322,7 +303,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withLibrarySectionID(Optional librarySectionID) { + public GetSessionHistoryMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -334,7 +315,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withParentKey(Optional parentKey) { + public GetSessionHistoryMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -346,7 +327,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withGrandparentKey(Optional grandparentKey) { + public GetSessionHistoryMetadata withGrandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -358,7 +339,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withTitle(Optional title) { + public GetSessionHistoryMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -370,7 +351,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withGrandparentTitle(Optional grandparentTitle) { + public GetSessionHistoryMetadata withGrandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -382,7 +363,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withType(Optional type) { + public GetSessionHistoryMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -394,7 +375,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withThumb(Optional thumb) { + public GetSessionHistoryMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -406,7 +387,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withParentThumb(Optional parentThumb) { + public GetSessionHistoryMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -418,7 +399,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withGrandparentThumb(Optional grandparentThumb) { + public GetSessionHistoryMetadata withGrandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -430,7 +411,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withGrandparentArt(Optional grandparentArt) { + public GetSessionHistoryMetadata withGrandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -442,7 +423,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withIndex(Optional index) { + public GetSessionHistoryMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -454,7 +435,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withParentIndex(Optional parentIndex) { + public GetSessionHistoryMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -466,7 +447,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetSessionHistoryMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -478,7 +459,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withViewedAt(Optional viewedAt) { + public GetSessionHistoryMetadata withViewedAt(Optional viewedAt) { Utils.checkNotNull(viewedAt, "viewedAt"); this.viewedAt = viewedAt; return this; @@ -490,7 +471,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withAccountID(Optional accountID) { + public GetSessionHistoryMetadata withAccountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -502,7 +483,7 @@ public class GetSessionHistoryMetadata { return this; } - public GetSessionHistoryMetadata withDeviceID(Optional deviceID) { + public GetSessionHistoryMetadata withDeviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; @@ -518,30 +499,30 @@ public class GetSessionHistoryMetadata { } 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); + Objects.deepEquals(this.historyKey, other.historyKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.grandparentKey, other.grandparentKey) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && + Objects.deepEquals(this.grandparentArt, other.grandparentArt) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.viewedAt, other.viewedAt) && + Objects.deepEquals(this.accountID, other.accountID) && + Objects.deepEquals(this.deviceID, other.deviceID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( historyKey, key, ratingKey, @@ -589,43 +570,43 @@ public class GetSessionHistoryMetadata { public final static class Builder { - private Optional historyKey = Optional.empty(); + private Optional historyKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional grandparentKey = Optional.empty(); + private Optional grandparentKey = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional grandparentTitle = Optional.empty(); + private Optional grandparentTitle = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional grandparentThumb = Optional.empty(); + private Optional grandparentThumb = Optional.empty(); - private Optional grandparentArt = Optional.empty(); + private Optional grandparentArt = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional viewedAt = Optional.empty(); + private Optional viewedAt = Optional.empty(); - private Optional accountID = Optional.empty(); + private Optional accountID = Optional.empty(); - private Optional deviceID = Optional.empty(); + private Optional deviceID = Optional.empty(); private Builder() { // force use of static builder() method @@ -637,7 +618,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder historyKey(Optional historyKey) { + public Builder historyKey(Optional historyKey) { Utils.checkNotNull(historyKey, "historyKey"); this.historyKey = historyKey; return this; @@ -649,7 +630,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -661,7 +642,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -673,7 +654,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -685,7 +666,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -697,7 +678,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder grandparentKey(Optional grandparentKey) { + public Builder grandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -709,7 +690,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -721,7 +702,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder grandparentTitle(Optional grandparentTitle) { + public Builder grandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -733,7 +714,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -745,7 +726,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -757,7 +738,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -769,7 +750,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder grandparentThumb(Optional grandparentThumb) { + public Builder grandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -781,7 +762,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder grandparentArt(Optional grandparentArt) { + public Builder grandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -793,7 +774,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -805,7 +786,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -817,7 +798,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -829,7 +810,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder viewedAt(Optional viewedAt) { + public Builder viewedAt(Optional viewedAt) { Utils.checkNotNull(viewedAt, "viewedAt"); this.viewedAt = viewedAt; return this; @@ -841,7 +822,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder accountID(Optional accountID) { + public Builder accountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -853,7 +834,7 @@ public class GetSessionHistoryMetadata { return this; } - public Builder deviceID(Optional deviceID) { + public Builder deviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java similarity index 76% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java index 34725b22..863412a9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java @@ -1,20 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionHistoryRequest { @@ -23,14 +24,14 @@ public class GetSessionHistoryRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") - private Optional 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; + private Optional accountId; /** * Filters content by field and direction/equality @@ -38,21 +39,21 @@ public class GetSessionHistoryRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") - private Optional 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; + private Optional librarySectionID; @JsonCreator public GetSessionHistoryRequest( - Optional sort, - Optional accountId, - Optional filter, - Optional librarySectionID) { + Optional sort, + Optional accountId, + Optional filter, + Optional librarySectionID) { Utils.checkNotNull(sort, "sort"); Utils.checkNotNull(accountId, "accountId"); Utils.checkNotNull(filter, "filter"); @@ -71,20 +72,18 @@ public class GetSessionHistoryRequest { * Sorts the results by the specified field followed by the direction (asc, desc) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sort() { - return (Optional) sort; + return sort; } /** * Filter results by those that are related to a specific users id * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional accountId() { - return (Optional) accountId; + return accountId; } /** @@ -94,18 +93,17 @@ public class GetSessionHistoryRequest { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional filter() { - return (Optional) filter; + 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; + return librarySectionID; } public final static Builder builder() { @@ -126,7 +124,7 @@ public class GetSessionHistoryRequest { * Sorts the results by the specified field followed by the direction (asc, desc) * */ - public GetSessionHistoryRequest withSort(Optional sort) { + public GetSessionHistoryRequest withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; @@ -146,7 +144,7 @@ public class GetSessionHistoryRequest { * Filter results by those that are related to a specific users id * */ - public GetSessionHistoryRequest withAccountId(Optional accountId) { + public GetSessionHistoryRequest withAccountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; @@ -157,7 +155,7 @@ public class GetSessionHistoryRequest { * (Unknown if viewedAt is the only supported column) * */ - public GetSessionHistoryRequest withFilter(Filter filter) { + public GetSessionHistoryRequest withFilter(QueryParamFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; @@ -168,7 +166,7 @@ public class GetSessionHistoryRequest { * (Unknown if viewedAt is the only supported column) * */ - public GetSessionHistoryRequest withFilter(Optional filter) { + public GetSessionHistoryRequest withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -188,7 +186,7 @@ public class GetSessionHistoryRequest { * Filters the results based on the id of a valid library section * */ - public GetSessionHistoryRequest withLibrarySectionID(Optional librarySectionID) { + public GetSessionHistoryRequest withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -204,15 +202,15 @@ public class GetSessionHistoryRequest { } 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); + Objects.deepEquals(this.sort, other.sort) && + Objects.deepEquals(this.accountId, other.accountId) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( sort, accountId, filter, @@ -230,13 +228,13 @@ public class GetSessionHistoryRequest { public final static class Builder { - private Optional sort = Optional.empty(); + private Optional sort = Optional.empty(); - private Optional accountId = Optional.empty(); + private Optional accountId = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); private Builder() { // force use of static builder() method @@ -256,7 +254,7 @@ public class GetSessionHistoryRequest { * Sorts the results by the specified field followed by the direction (asc, desc) * */ - public Builder sort(Optional sort) { + public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; @@ -276,7 +274,7 @@ public class GetSessionHistoryRequest { * Filter results by those that are related to a specific users id * */ - public Builder accountId(Optional accountId) { + public Builder accountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; @@ -287,7 +285,7 @@ public class GetSessionHistoryRequest { * (Unknown if viewedAt is the only supported column) * */ - public Builder filter(Filter filter) { + public Builder filter(QueryParamFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.ofNullable(filter); return this; @@ -298,7 +296,7 @@ public class GetSessionHistoryRequest { * (Unknown if viewedAt is the only supported column) * */ - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -318,7 +316,7 @@ public class GetSessionHistoryRequest { * Filters the results based on the id of a valid library section * */ - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java similarity index 56% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java index 888b9301..1b7cfe19 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java @@ -1,41 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.String; 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 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) { + public GetSessionHistoryRequestBuilder sort(java.lang.String sort) { Utils.checkNotNull(sort, "sort"); this.sort = Optional.of(sort); return this; } - public GetSessionHistoryRequestBuilder sort(Optional sort) { + public GetSessionHistoryRequestBuilder sort(java.util.Optional sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; @@ -47,19 +39,19 @@ public class GetSessionHistoryRequestBuilder { return this; } - public GetSessionHistoryRequestBuilder accountId(Optional accountId) { + public GetSessionHistoryRequestBuilder accountId(java.util.Optional accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; } - public GetSessionHistoryRequestBuilder filter(Filter filter) { + public GetSessionHistoryRequestBuilder filter(dev.plexapi.sdk.models.operations.QueryParamFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = Optional.of(filter); return this; } - public GetSessionHistoryRequestBuilder filter(Optional filter) { + public GetSessionHistoryRequestBuilder filter(java.util.Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -71,7 +63,7 @@ public class GetSessionHistoryRequestBuilder { return this; } - public GetSessionHistoryRequestBuilder librarySectionID(Optional librarySectionID) { + public GetSessionHistoryRequestBuilder librarySectionID(java.util.Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java index 39dcc58d..6aae30f4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetSessionHistoryResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetSessionHistoryResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetSessionHistoryResponse implements lukehagar.plexapi.plexapi.util } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java index 277b49b6..c76c944b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetSessionHistoryResponseBody - List of Plex Sessions */ @@ -70,12 +70,12 @@ public class GetSessionHistoryResponseBody { } GetSessionHistoryResponseBody other = (GetSessionHistoryResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java index df243c55..76da9409 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java @@ -1,67 +1,70 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("selected") - private Optional selected; + private Optional selected; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -84,52 +87,45 @@ public class 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; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional selected() { - return (Optional) selected; + return selected; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -142,7 +138,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withAudioChannels(Optional audioChannels) { + public GetSessionsMedia withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -154,7 +150,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withAudioCodec(Optional audioCodec) { + public GetSessionsMedia withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -166,7 +162,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withBitrate(Optional bitrate) { + public GetSessionsMedia withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -178,7 +174,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withContainer(Optional container) { + public GetSessionsMedia withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -190,7 +186,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withDuration(Optional duration) { + public GetSessionsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -202,7 +198,7 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withId(Optional id) { + public GetSessionsMedia withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -214,19 +210,19 @@ public class GetSessionsMedia { return this; } - public GetSessionsMedia withSelected(Optional selected) { + public GetSessionsMedia withSelected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; } - public GetSessionsMedia withPart(java.util.List part) { + public GetSessionsMedia withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public GetSessionsMedia withPart(Optional> part) { + public GetSessionsMedia withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -242,19 +238,19 @@ public class GetSessionsMedia { } 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); + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.selected, other.selected) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( audioChannels, audioCodec, bitrate, @@ -280,21 +276,21 @@ public class GetSessionsMedia { public final static class Builder { - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional selected = Optional.empty(); + private Optional selected = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -306,7 +302,7 @@ public class GetSessionsMedia { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -318,7 +314,7 @@ public class GetSessionsMedia { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -330,7 +326,7 @@ public class GetSessionsMedia { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -342,7 +338,7 @@ public class GetSessionsMedia { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -354,7 +350,7 @@ public class GetSessionsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -366,7 +362,7 @@ public class GetSessionsMedia { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -378,19 +374,19 @@ public class GetSessionsMedia { return this; } - public Builder selected(Optional selected) { + public Builder selected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java similarity index 63% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java index 3fd81fec..c35de305 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> metadata; + private Optional> metadata; @JsonCreator public GetSessionsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { + @JsonProperty("size") Optional size, + @JsonProperty("Metadata") Optional> metadata) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(metadata, "metadata"); this.size = size; @@ -42,16 +44,15 @@ public class GetSessionsMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetSessionsMediaContainer { return this; } - public GetSessionsMediaContainer withSize(Optional size) { + public GetSessionsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetSessionsMediaContainer withMetadata(java.util.List metadata) { + public GetSessionsMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetSessionsMediaContainer withMetadata(Optional> metadata) { + public GetSessionsMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -92,13 +93,13 @@ public class GetSessionsMediaContainer { } GetSessionsMediaContainer other = (GetSessionsMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, metadata); } @@ -112,9 +113,9 @@ public class GetSessionsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetSessionsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java index a632a8c3..73e9a8d5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java @@ -1,160 +1,162 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentArt") - private Optional grandparentArt; + private Optional grandparentArt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentGuid") - private Optional grandparentGuid; + private Optional grandparentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentKey") - private Optional grandparentKey; + private Optional grandparentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; + private Optional grandparentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentThumb") - private Optional grandparentThumb; + private Optional grandparentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("grandparentTitle") - private Optional grandparentTitle; + private Optional grandparentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("musicAnalysisVersion") - private Optional musicAnalysisVersion; + private Optional musicAnalysisVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentGuid") - private Optional parentGuid; + private Optional parentGuid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentIndex") - private Optional parentIndex; + private Optional parentIndex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentKey") - private Optional parentKey; + private Optional parentKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") - private Optional parentRatingKey; + private Optional parentRatingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentStudio") - private Optional parentStudio; + private Optional parentStudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentThumb") - private Optional parentThumb; + private Optional parentThumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentTitle") - private Optional parentTitle; + private Optional parentTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentYear") - private Optional parentYear; + private Optional parentYear; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingCount") - private Optional ratingCount; + private Optional ratingCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sessionKey") - private Optional sessionKey; + private Optional sessionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("titleSort") - private Optional titleSort; + private Optional titleSort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewOffset") - private Optional viewOffset; + private Optional viewOffset; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") - private Optional> media; + private Optional> media; @JsonInclude(Include.NON_ABSENT) @JsonProperty("User") @@ -170,40 +172,40 @@ public class GetSessionsMetadata { @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("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) { @@ -287,208 +289,175 @@ public class 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; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentArt() { - return (Optional) grandparentArt; + return grandparentArt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentGuid() { - return (Optional) grandparentGuid; + return grandparentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentKey() { - return (Optional) grandparentKey; + return grandparentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; + return grandparentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentThumb() { - return (Optional) grandparentThumb; + return grandparentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional grandparentTitle() { - return (Optional) grandparentTitle; + return grandparentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional musicAnalysisVersion() { - return (Optional) musicAnalysisVersion; + return musicAnalysisVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentGuid() { - return (Optional) parentGuid; + return parentGuid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentIndex() { - return (Optional) parentIndex; + return parentIndex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentKey() { - return (Optional) parentKey; + return parentKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentRatingKey() { - return (Optional) parentRatingKey; + return parentRatingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentStudio() { - return (Optional) parentStudio; + return parentStudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentThumb() { - return (Optional) parentThumb; + return parentThumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentTitle() { - return (Optional) parentTitle; + return parentTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentYear() { - return (Optional) parentYear; + return parentYear; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingCount() { - return (Optional) ratingCount; + return ratingCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sessionKey() { - return (Optional) sessionKey; + return sessionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional titleSort() { - return (Optional) titleSort; + return titleSort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewOffset() { - return (Optional) viewOffset; + return viewOffset; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> media() { - return (Optional>) media; + public Optional> media() { + return (Optional>) media; } @SuppressWarnings("unchecked") @@ -519,7 +488,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withAddedAt(Optional addedAt) { + public GetSessionsMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -531,7 +500,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withArt(Optional art) { + public GetSessionsMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -543,7 +512,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withDuration(Optional duration) { + public GetSessionsMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -555,7 +524,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentArt(Optional grandparentArt) { + public GetSessionsMetadata withGrandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -567,7 +536,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentGuid(Optional grandparentGuid) { + public GetSessionsMetadata withGrandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -579,7 +548,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentKey(Optional grandparentKey) { + public GetSessionsMetadata withGrandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -591,7 +560,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { + public GetSessionsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -603,7 +572,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentThumb(Optional grandparentThumb) { + public GetSessionsMetadata withGrandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -615,7 +584,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGrandparentTitle(Optional grandparentTitle) { + public GetSessionsMetadata withGrandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -627,7 +596,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withGuid(Optional guid) { + public GetSessionsMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -639,7 +608,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withIndex(Optional index) { + public GetSessionsMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -651,7 +620,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withKey(Optional key) { + public GetSessionsMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -663,7 +632,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withLibrarySectionID(Optional librarySectionID) { + public GetSessionsMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -675,7 +644,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetSessionsMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -687,7 +656,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetSessionsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -699,7 +668,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withMusicAnalysisVersion(Optional musicAnalysisVersion) { + public GetSessionsMetadata withMusicAnalysisVersion(Optional musicAnalysisVersion) { Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); this.musicAnalysisVersion = musicAnalysisVersion; return this; @@ -711,7 +680,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentGuid(Optional parentGuid) { + public GetSessionsMetadata withParentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -723,7 +692,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentIndex(Optional parentIndex) { + public GetSessionsMetadata withParentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -735,7 +704,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentKey(Optional parentKey) { + public GetSessionsMetadata withParentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -747,7 +716,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentRatingKey(Optional parentRatingKey) { + public GetSessionsMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -759,7 +728,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentStudio(Optional parentStudio) { + public GetSessionsMetadata withParentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -771,7 +740,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentThumb(Optional parentThumb) { + public GetSessionsMetadata withParentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -783,7 +752,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentTitle(Optional parentTitle) { + public GetSessionsMetadata withParentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -795,7 +764,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withParentYear(Optional parentYear) { + public GetSessionsMetadata withParentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -807,7 +776,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withRatingCount(Optional ratingCount) { + public GetSessionsMetadata withRatingCount(Optional ratingCount) { Utils.checkNotNull(ratingCount, "ratingCount"); this.ratingCount = ratingCount; return this; @@ -819,7 +788,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withRatingKey(Optional ratingKey) { + public GetSessionsMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -831,7 +800,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withSessionKey(Optional sessionKey) { + public GetSessionsMetadata withSessionKey(Optional sessionKey) { Utils.checkNotNull(sessionKey, "sessionKey"); this.sessionKey = sessionKey; return this; @@ -843,7 +812,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withThumb(Optional thumb) { + public GetSessionsMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -855,7 +824,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withTitle(Optional title) { + public GetSessionsMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -867,7 +836,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withTitleSort(Optional titleSort) { + public GetSessionsMetadata withTitleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -879,7 +848,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withType(Optional type) { + public GetSessionsMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -891,7 +860,7 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withUpdatedAt(Optional updatedAt) { + public GetSessionsMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -903,19 +872,19 @@ public class GetSessionsMetadata { return this; } - public GetSessionsMetadata withViewOffset(Optional viewOffset) { + public GetSessionsMetadata withViewOffset(Optional viewOffset) { Utils.checkNotNull(viewOffset, "viewOffset"); this.viewOffset = viewOffset; return this; } - public GetSessionsMetadata withMedia(java.util.List media) { + public GetSessionsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public GetSessionsMetadata withMedia(Optional> media) { + public GetSessionsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; @@ -967,48 +936,48 @@ public class GetSessionsMetadata { } 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); + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.grandparentArt, other.grandparentArt) && + Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && + Objects.deepEquals(this.grandparentKey, other.grandparentKey) && + Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && + Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && + Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.musicAnalysisVersion, other.musicAnalysisVersion) && + Objects.deepEquals(this.parentGuid, other.parentGuid) && + Objects.deepEquals(this.parentIndex, other.parentIndex) && + Objects.deepEquals(this.parentKey, other.parentKey) && + Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && + Objects.deepEquals(this.parentStudio, other.parentStudio) && + Objects.deepEquals(this.parentThumb, other.parentThumb) && + Objects.deepEquals(this.parentTitle, other.parentTitle) && + Objects.deepEquals(this.parentYear, other.parentYear) && + Objects.deepEquals(this.ratingCount, other.ratingCount) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.sessionKey, other.sessionKey) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.titleSort, other.titleSort) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.viewOffset, other.viewOffset) && + Objects.deepEquals(this.media, other.media) && + Objects.deepEquals(this.user, other.user) && + Objects.deepEquals(this.player, other.player) && + Objects.deepEquals(this.session, other.session); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( addedAt, art, duration, @@ -1092,73 +1061,73 @@ public class GetSessionsMetadata { public final static class Builder { - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional grandparentArt = Optional.empty(); + private Optional grandparentArt = Optional.empty(); - private Optional grandparentGuid = Optional.empty(); + private Optional grandparentGuid = Optional.empty(); - private Optional grandparentKey = Optional.empty(); + private Optional grandparentKey = Optional.empty(); - private Optional grandparentRatingKey = Optional.empty(); + private Optional grandparentRatingKey = Optional.empty(); - private Optional grandparentThumb = Optional.empty(); + private Optional grandparentThumb = Optional.empty(); - private Optional grandparentTitle = Optional.empty(); + private Optional grandparentTitle = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional musicAnalysisVersion = Optional.empty(); + private Optional musicAnalysisVersion = Optional.empty(); - private Optional parentGuid = Optional.empty(); + private Optional parentGuid = Optional.empty(); - private Optional parentIndex = Optional.empty(); + private Optional parentIndex = Optional.empty(); - private Optional parentKey = Optional.empty(); + private Optional parentKey = Optional.empty(); - private Optional parentRatingKey = Optional.empty(); + private Optional parentRatingKey = Optional.empty(); - private Optional parentStudio = Optional.empty(); + private Optional parentStudio = Optional.empty(); - private Optional parentThumb = Optional.empty(); + private Optional parentThumb = Optional.empty(); - private Optional parentTitle = Optional.empty(); + private Optional parentTitle = Optional.empty(); - private Optional parentYear = Optional.empty(); + private Optional parentYear = Optional.empty(); - private Optional ratingCount = Optional.empty(); + private Optional ratingCount = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional sessionKey = Optional.empty(); + private Optional sessionKey = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional titleSort = Optional.empty(); + private Optional titleSort = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional viewOffset = Optional.empty(); + private Optional viewOffset = Optional.empty(); - private Optional> media = Optional.empty(); + private Optional> media = Optional.empty(); private Optional user = Optional.empty(); @@ -1176,7 +1145,7 @@ public class GetSessionsMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1188,7 +1157,7 @@ public class GetSessionsMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1200,7 +1169,7 @@ public class GetSessionsMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1212,7 +1181,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentArt(Optional grandparentArt) { + public Builder grandparentArt(Optional grandparentArt) { Utils.checkNotNull(grandparentArt, "grandparentArt"); this.grandparentArt = grandparentArt; return this; @@ -1224,7 +1193,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentGuid(Optional grandparentGuid) { + public Builder grandparentGuid(Optional grandparentGuid) { Utils.checkNotNull(grandparentGuid, "grandparentGuid"); this.grandparentGuid = grandparentGuid; return this; @@ -1236,7 +1205,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentKey(Optional grandparentKey) { + public Builder grandparentKey(Optional grandparentKey) { Utils.checkNotNull(grandparentKey, "grandparentKey"); this.grandparentKey = grandparentKey; return this; @@ -1248,7 +1217,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentRatingKey(Optional grandparentRatingKey) { + public Builder grandparentRatingKey(Optional grandparentRatingKey) { Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); this.grandparentRatingKey = grandparentRatingKey; return this; @@ -1260,7 +1229,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentThumb(Optional grandparentThumb) { + public Builder grandparentThumb(Optional grandparentThumb) { Utils.checkNotNull(grandparentThumb, "grandparentThumb"); this.grandparentThumb = grandparentThumb; return this; @@ -1272,7 +1241,7 @@ public class GetSessionsMetadata { return this; } - public Builder grandparentTitle(Optional grandparentTitle) { + public Builder grandparentTitle(Optional grandparentTitle) { Utils.checkNotNull(grandparentTitle, "grandparentTitle"); this.grandparentTitle = grandparentTitle; return this; @@ -1284,7 +1253,7 @@ public class GetSessionsMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1296,7 +1265,7 @@ public class GetSessionsMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1308,7 +1277,7 @@ public class GetSessionsMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1320,7 +1289,7 @@ public class GetSessionsMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1332,7 +1301,7 @@ public class GetSessionsMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1344,7 +1313,7 @@ public class GetSessionsMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1356,7 +1325,7 @@ public class GetSessionsMetadata { return this; } - public Builder musicAnalysisVersion(Optional musicAnalysisVersion) { + public Builder musicAnalysisVersion(Optional musicAnalysisVersion) { Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); this.musicAnalysisVersion = musicAnalysisVersion; return this; @@ -1368,7 +1337,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentGuid(Optional parentGuid) { + public Builder parentGuid(Optional parentGuid) { Utils.checkNotNull(parentGuid, "parentGuid"); this.parentGuid = parentGuid; return this; @@ -1380,7 +1349,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentIndex(Optional parentIndex) { + public Builder parentIndex(Optional parentIndex) { Utils.checkNotNull(parentIndex, "parentIndex"); this.parentIndex = parentIndex; return this; @@ -1392,7 +1361,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentKey(Optional parentKey) { + public Builder parentKey(Optional parentKey) { Utils.checkNotNull(parentKey, "parentKey"); this.parentKey = parentKey; return this; @@ -1404,7 +1373,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentRatingKey(Optional parentRatingKey) { + public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); this.parentRatingKey = parentRatingKey; return this; @@ -1416,7 +1385,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentStudio(Optional parentStudio) { + public Builder parentStudio(Optional parentStudio) { Utils.checkNotNull(parentStudio, "parentStudio"); this.parentStudio = parentStudio; return this; @@ -1428,7 +1397,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentThumb(Optional parentThumb) { + public Builder parentThumb(Optional parentThumb) { Utils.checkNotNull(parentThumb, "parentThumb"); this.parentThumb = parentThumb; return this; @@ -1440,7 +1409,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentTitle(Optional parentTitle) { + public Builder parentTitle(Optional parentTitle) { Utils.checkNotNull(parentTitle, "parentTitle"); this.parentTitle = parentTitle; return this; @@ -1452,7 +1421,7 @@ public class GetSessionsMetadata { return this; } - public Builder parentYear(Optional parentYear) { + public Builder parentYear(Optional parentYear) { Utils.checkNotNull(parentYear, "parentYear"); this.parentYear = parentYear; return this; @@ -1464,7 +1433,7 @@ public class GetSessionsMetadata { return this; } - public Builder ratingCount(Optional ratingCount) { + public Builder ratingCount(Optional ratingCount) { Utils.checkNotNull(ratingCount, "ratingCount"); this.ratingCount = ratingCount; return this; @@ -1476,7 +1445,7 @@ public class GetSessionsMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1488,7 +1457,7 @@ public class GetSessionsMetadata { return this; } - public Builder sessionKey(Optional sessionKey) { + public Builder sessionKey(Optional sessionKey) { Utils.checkNotNull(sessionKey, "sessionKey"); this.sessionKey = sessionKey; return this; @@ -1500,7 +1469,7 @@ public class GetSessionsMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1512,7 +1481,7 @@ public class GetSessionsMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1524,7 +1493,7 @@ public class GetSessionsMetadata { return this; } - public Builder titleSort(Optional titleSort) { + public Builder titleSort(Optional titleSort) { Utils.checkNotNull(titleSort, "titleSort"); this.titleSort = titleSort; return this; @@ -1536,7 +1505,7 @@ public class GetSessionsMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1548,7 +1517,7 @@ public class GetSessionsMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1560,19 +1529,19 @@ public class GetSessionsMetadata { return this; } - public Builder viewOffset(Optional viewOffset) { + public Builder viewOffset(Optional viewOffset) { Utils.checkNotNull(viewOffset, "viewOffset"); this.viewOffset = viewOffset; return this; } - public Builder media(java.util.List media) { + public Builder media(List media) { Utils.checkNotNull(media, "media"); this.media = Optional.ofNullable(media); return this; } - public Builder media(Optional> media) { + public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); this.media = media; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java index 7735cdbb..79e3204b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java @@ -1,77 +1,80 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsPart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasThumbnail") - private Optional hasThumbnail; + private Optional hasThumbnail; @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("decision") - private Optional decision; + private Optional decision; @JsonInclude(Include.NON_ABSENT) @JsonProperty("selected") - private Optional selected; + private Optional selected; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Stream") - private Optional> 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) { + @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"); @@ -98,64 +101,55 @@ public class 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; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasThumbnail() { - return (Optional) hasThumbnail; + return hasThumbnail; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional decision() { - return (Optional) decision; + return decision; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional selected() { - return (Optional) selected; + return selected; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> stream() { - return (Optional>) stream; + public Optional> stream() { + return (Optional>) stream; } public final static Builder builder() { @@ -168,7 +162,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withContainer(Optional container) { + public GetSessionsPart withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -180,7 +174,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withDuration(Optional duration) { + public GetSessionsPart withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -192,7 +186,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withFile(Optional file) { + public GetSessionsPart withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -204,7 +198,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withHasThumbnail(Optional hasThumbnail) { + public GetSessionsPart withHasThumbnail(Optional hasThumbnail) { Utils.checkNotNull(hasThumbnail, "hasThumbnail"); this.hasThumbnail = hasThumbnail; return this; @@ -216,7 +210,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withId(Optional id) { + public GetSessionsPart withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +222,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withKey(Optional key) { + public GetSessionsPart withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -240,7 +234,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withSize(Optional size) { + public GetSessionsPart withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -252,7 +246,7 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withDecision(Optional decision) { + public GetSessionsPart withDecision(Optional decision) { Utils.checkNotNull(decision, "decision"); this.decision = decision; return this; @@ -264,19 +258,19 @@ public class GetSessionsPart { return this; } - public GetSessionsPart withSelected(Optional selected) { + public GetSessionsPart withSelected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; } - public GetSessionsPart withStream(java.util.List stream) { + public GetSessionsPart withStream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public GetSessionsPart withStream(Optional> stream) { + public GetSessionsPart withStream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -292,21 +286,21 @@ public class GetSessionsPart { } 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); + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.decision, other.decision) && + Objects.deepEquals(this.selected, other.selected) && + Objects.deepEquals(this.stream, other.stream); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( container, duration, file, @@ -336,25 +330,25 @@ public class GetSessionsPart { public final static class Builder { - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional hasThumbnail = Optional.empty(); + private Optional hasThumbnail = Optional.empty(); - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional decision = Optional.empty(); + private Optional decision = Optional.empty(); - private Optional selected = Optional.empty(); + private Optional selected = Optional.empty(); - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -366,7 +360,7 @@ public class GetSessionsPart { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -378,7 +372,7 @@ public class GetSessionsPart { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -390,7 +384,7 @@ public class GetSessionsPart { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -402,7 +396,7 @@ public class GetSessionsPart { return this; } - public Builder hasThumbnail(Optional hasThumbnail) { + public Builder hasThumbnail(Optional hasThumbnail) { Utils.checkNotNull(hasThumbnail, "hasThumbnail"); this.hasThumbnail = hasThumbnail; return this; @@ -414,7 +408,7 @@ public class GetSessionsPart { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -426,7 +420,7 @@ public class GetSessionsPart { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -438,7 +432,7 @@ public class GetSessionsPart { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -450,7 +444,7 @@ public class GetSessionsPart { return this; } - public Builder decision(Optional decision) { + public Builder decision(Optional decision) { Utils.checkNotNull(decision, "decision"); this.decision = decision; return this; @@ -462,19 +456,19 @@ public class GetSessionsPart { return this; } - public Builder selected(Optional selected) { + public Builder selected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; } - public Builder stream(java.util.List stream) { + public Builder stream(List stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; } - public Builder stream(Optional> stream) { + public Builder stream(Optional> stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java new file mode 100644 index 00000000..92090850 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetSessionsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java index b79b14ed..fc9e287c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetSessionsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetSessionsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetSessionsResponse implements lukehagar.plexapi.plexapi.utils.Resp } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java index 9e28604b..e83f9b0e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetSessionsResponseBody - List of Active Plex Sessions */ @@ -70,12 +70,12 @@ public class GetSessionsResponseBody { } GetSessionsResponseBody other = (GetSessionsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java index 645f24a1..0cf1d15e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java @@ -1,127 +1,128 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsStream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("albumGain") - private Optional albumGain; + private Optional albumGain; @JsonInclude(Include.NON_ABSENT) @JsonProperty("albumPeak") - private Optional albumPeak; + private Optional albumPeak; @JsonInclude(Include.NON_ABSENT) @JsonProperty("albumRange") - private Optional albumRange; + private Optional albumRange; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannelLayout") - private Optional audioChannelLayout; + private Optional audioChannelLayout; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitDepth") - private Optional bitDepth; + private Optional bitDepth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("channels") - private Optional channels; + private Optional channels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") - private Optional codec; + private Optional codec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("displayTitle") - private Optional displayTitle; + private Optional displayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("extendedDisplayTitle") - private Optional extendedDisplayTitle; + private Optional extendedDisplayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("gain") - private Optional gain; + private Optional gain; @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("loudness") - private Optional loudness; + private Optional loudness; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lra") - private Optional lra; + private Optional lra; @JsonInclude(Include.NON_ABSENT) @JsonProperty("peak") - private Optional peak; + private Optional peak; @JsonInclude(Include.NON_ABSENT) @JsonProperty("samplingRate") - private Optional samplingRate; + private Optional samplingRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("selected") - private Optional selected; + private Optional selected; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamType") - private Optional streamType; + private Optional streamType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("location") - private Optional 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) { + @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"); @@ -168,124 +169,104 @@ public class 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; + return albumGain; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional albumPeak() { - return (Optional) albumPeak; + return albumPeak; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional albumRange() { - return (Optional) albumRange; + return albumRange; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannelLayout() { - return (Optional) audioChannelLayout; + return audioChannelLayout; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitDepth() { - return (Optional) bitDepth; + return bitDepth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional channels() { - return (Optional) channels; + return channels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codec() { - return (Optional) codec; + return codec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional displayTitle() { - return (Optional) displayTitle; + return displayTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; + return extendedDisplayTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional gain() { - return (Optional) gain; + return gain; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional loudness() { - return (Optional) loudness; + return loudness; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lra() { - return (Optional) lra; + return lra; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional peak() { - return (Optional) peak; + return peak; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional samplingRate() { - return (Optional) samplingRate; + return samplingRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional selected() { - return (Optional) selected; + return selected; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamType() { - return (Optional) streamType; + return streamType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional location() { - return (Optional) location; + return location; } public final static Builder builder() { @@ -298,7 +279,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withAlbumGain(Optional albumGain) { + public GetSessionsStream withAlbumGain(Optional albumGain) { Utils.checkNotNull(albumGain, "albumGain"); this.albumGain = albumGain; return this; @@ -310,7 +291,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withAlbumPeak(Optional albumPeak) { + public GetSessionsStream withAlbumPeak(Optional albumPeak) { Utils.checkNotNull(albumPeak, "albumPeak"); this.albumPeak = albumPeak; return this; @@ -322,7 +303,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withAlbumRange(Optional albumRange) { + public GetSessionsStream withAlbumRange(Optional albumRange) { Utils.checkNotNull(albumRange, "albumRange"); this.albumRange = albumRange; return this; @@ -334,7 +315,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withAudioChannelLayout(Optional audioChannelLayout) { + public GetSessionsStream withAudioChannelLayout(Optional audioChannelLayout) { Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); this.audioChannelLayout = audioChannelLayout; return this; @@ -346,7 +327,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withBitDepth(Optional bitDepth) { + public GetSessionsStream withBitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -358,7 +339,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withBitrate(Optional bitrate) { + public GetSessionsStream withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -370,7 +351,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withChannels(Optional channels) { + public GetSessionsStream withChannels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -382,7 +363,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withCodec(Optional codec) { + public GetSessionsStream withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -394,7 +375,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withDisplayTitle(Optional displayTitle) { + public GetSessionsStream withDisplayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -406,7 +387,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { + public GetSessionsStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; @@ -418,7 +399,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withGain(Optional gain) { + public GetSessionsStream withGain(Optional gain) { Utils.checkNotNull(gain, "gain"); this.gain = gain; return this; @@ -430,7 +411,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withId(Optional id) { + public GetSessionsStream withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -442,7 +423,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withIndex(Optional index) { + public GetSessionsStream withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -454,7 +435,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withLoudness(Optional loudness) { + public GetSessionsStream withLoudness(Optional loudness) { Utils.checkNotNull(loudness, "loudness"); this.loudness = loudness; return this; @@ -466,7 +447,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withLra(Optional lra) { + public GetSessionsStream withLra(Optional lra) { Utils.checkNotNull(lra, "lra"); this.lra = lra; return this; @@ -478,7 +459,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withPeak(Optional peak) { + public GetSessionsStream withPeak(Optional peak) { Utils.checkNotNull(peak, "peak"); this.peak = peak; return this; @@ -490,7 +471,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withSamplingRate(Optional samplingRate) { + public GetSessionsStream withSamplingRate(Optional samplingRate) { Utils.checkNotNull(samplingRate, "samplingRate"); this.samplingRate = samplingRate; return this; @@ -502,7 +483,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withSelected(Optional selected) { + public GetSessionsStream withSelected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; @@ -514,7 +495,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withStreamType(Optional streamType) { + public GetSessionsStream withStreamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -526,7 +507,7 @@ public class GetSessionsStream { return this; } - public GetSessionsStream withLocation(Optional location) { + public GetSessionsStream withLocation(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; @@ -542,31 +523,31 @@ public class GetSessionsStream { } 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); + Objects.deepEquals(this.albumGain, other.albumGain) && + Objects.deepEquals(this.albumPeak, other.albumPeak) && + Objects.deepEquals(this.albumRange, other.albumRange) && + Objects.deepEquals(this.audioChannelLayout, other.audioChannelLayout) && + Objects.deepEquals(this.bitDepth, other.bitDepth) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.channels, other.channels) && + Objects.deepEquals(this.codec, other.codec) && + Objects.deepEquals(this.displayTitle, other.displayTitle) && + Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle) && + Objects.deepEquals(this.gain, other.gain) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.loudness, other.loudness) && + Objects.deepEquals(this.lra, other.lra) && + Objects.deepEquals(this.peak, other.peak) && + Objects.deepEquals(this.samplingRate, other.samplingRate) && + Objects.deepEquals(this.selected, other.selected) && + Objects.deepEquals(this.streamType, other.streamType) && + Objects.deepEquals(this.location, other.location); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( albumGain, albumPeak, albumRange, @@ -616,45 +597,45 @@ public class GetSessionsStream { public final static class Builder { - private Optional albumGain = Optional.empty(); + private Optional albumGain = Optional.empty(); - private Optional albumPeak = Optional.empty(); + private Optional albumPeak = Optional.empty(); - private Optional albumRange = Optional.empty(); + private Optional albumRange = Optional.empty(); - private Optional audioChannelLayout = Optional.empty(); + private Optional audioChannelLayout = Optional.empty(); - private Optional bitDepth = Optional.empty(); + private Optional bitDepth = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional channels = Optional.empty(); + private Optional channels = Optional.empty(); - private Optional codec = Optional.empty(); + private Optional codec = Optional.empty(); - private Optional displayTitle = Optional.empty(); + private Optional displayTitle = Optional.empty(); - private Optional extendedDisplayTitle = Optional.empty(); + private Optional extendedDisplayTitle = Optional.empty(); - private Optional gain = Optional.empty(); + private Optional gain = Optional.empty(); - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional loudness = Optional.empty(); + private Optional loudness = Optional.empty(); - private Optional lra = Optional.empty(); + private Optional lra = Optional.empty(); - private Optional peak = Optional.empty(); + private Optional peak = Optional.empty(); - private Optional samplingRate = Optional.empty(); + private Optional samplingRate = Optional.empty(); - private Optional selected = Optional.empty(); + private Optional selected = Optional.empty(); - private Optional streamType = Optional.empty(); + private Optional streamType = Optional.empty(); - private Optional location = Optional.empty(); + private Optional location = Optional.empty(); private Builder() { // force use of static builder() method @@ -666,7 +647,7 @@ public class GetSessionsStream { return this; } - public Builder albumGain(Optional albumGain) { + public Builder albumGain(Optional albumGain) { Utils.checkNotNull(albumGain, "albumGain"); this.albumGain = albumGain; return this; @@ -678,7 +659,7 @@ public class GetSessionsStream { return this; } - public Builder albumPeak(Optional albumPeak) { + public Builder albumPeak(Optional albumPeak) { Utils.checkNotNull(albumPeak, "albumPeak"); this.albumPeak = albumPeak; return this; @@ -690,7 +671,7 @@ public class GetSessionsStream { return this; } - public Builder albumRange(Optional albumRange) { + public Builder albumRange(Optional albumRange) { Utils.checkNotNull(albumRange, "albumRange"); this.albumRange = albumRange; return this; @@ -702,7 +683,7 @@ public class GetSessionsStream { return this; } - public Builder audioChannelLayout(Optional audioChannelLayout) { + public Builder audioChannelLayout(Optional audioChannelLayout) { Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); this.audioChannelLayout = audioChannelLayout; return this; @@ -714,7 +695,7 @@ public class GetSessionsStream { return this; } - public Builder bitDepth(Optional bitDepth) { + public Builder bitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -726,7 +707,7 @@ public class GetSessionsStream { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -738,7 +719,7 @@ public class GetSessionsStream { return this; } - public Builder channels(Optional channels) { + public Builder channels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -750,7 +731,7 @@ public class GetSessionsStream { return this; } - public Builder codec(Optional codec) { + public Builder codec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -762,7 +743,7 @@ public class GetSessionsStream { return this; } - public Builder displayTitle(Optional displayTitle) { + public Builder displayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -774,7 +755,7 @@ public class GetSessionsStream { return this; } - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { + public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; @@ -786,7 +767,7 @@ public class GetSessionsStream { return this; } - public Builder gain(Optional gain) { + public Builder gain(Optional gain) { Utils.checkNotNull(gain, "gain"); this.gain = gain; return this; @@ -798,7 +779,7 @@ public class GetSessionsStream { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -810,7 +791,7 @@ public class GetSessionsStream { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -822,7 +803,7 @@ public class GetSessionsStream { return this; } - public Builder loudness(Optional loudness) { + public Builder loudness(Optional loudness) { Utils.checkNotNull(loudness, "loudness"); this.loudness = loudness; return this; @@ -834,7 +815,7 @@ public class GetSessionsStream { return this; } - public Builder lra(Optional lra) { + public Builder lra(Optional lra) { Utils.checkNotNull(lra, "lra"); this.lra = lra; return this; @@ -846,7 +827,7 @@ public class GetSessionsStream { return this; } - public Builder peak(Optional peak) { + public Builder peak(Optional peak) { Utils.checkNotNull(peak, "peak"); this.peak = peak; return this; @@ -858,7 +839,7 @@ public class GetSessionsStream { return this; } - public Builder samplingRate(Optional samplingRate) { + public Builder samplingRate(Optional samplingRate) { Utils.checkNotNull(samplingRate, "samplingRate"); this.samplingRate = samplingRate; return this; @@ -870,7 +851,7 @@ public class GetSessionsStream { return this; } - public Builder selected(Optional selected) { + public Builder selected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; @@ -882,7 +863,7 @@ public class GetSessionsStream { return this; } - public Builder streamType(Optional streamType) { + public Builder streamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -894,7 +875,7 @@ public class GetSessionsStream { return this; } - public Builder location(Optional location) { + public Builder location(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java index 438c3f07..f43ffd06 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java @@ -1,42 +1,41 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetSessionsUser { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonCreator public GetSessionsUser( - @JsonProperty("id") Optional id, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title") Optional title) { + @JsonProperty("id") Optional id, + @JsonProperty("thumb") Optional thumb, + @JsonProperty("title") Optional title) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(thumb, "thumb"); Utils.checkNotNull(title, "title"); @@ -49,22 +48,19 @@ public class GetSessionsUser { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } public final static Builder builder() { @@ -77,7 +73,7 @@ public class GetSessionsUser { return this; } - public GetSessionsUser withId(Optional id) { + public GetSessionsUser withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -89,7 +85,7 @@ public class GetSessionsUser { return this; } - public GetSessionsUser withThumb(Optional thumb) { + public GetSessionsUser withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -101,7 +97,7 @@ public class GetSessionsUser { return this; } - public GetSessionsUser withTitle(Optional title) { + public GetSessionsUser withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -117,14 +113,14 @@ public class GetSessionsUser { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title, other.title); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, thumb, title); @@ -140,11 +136,11 @@ public class GetSessionsUser { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +152,7 @@ public class GetSessionsUser { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +164,7 @@ public class GetSessionsUser { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -180,7 +176,7 @@ public class GetSessionsUser { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java index a56db5eb..d029272f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetSourceConnectionInformationRequest { @@ -61,12 +60,12 @@ public class GetSourceConnectionInformationRequest { } GetSourceConnectionInformationRequest other = (GetSourceConnectionInformationRequest) o; return - java.util.Objects.deepEquals(this.source, other.source); + Objects.deepEquals(this.source, other.source); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( source); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java new file mode 100644 index 00000000..3fe5f990 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class GetSourceConnectionInformationRequestBuilder { + + private String source; + private final SDKMethodInterfaces.MethodCallGetSourceConnectionInformation sdk; + + public GetSourceConnectionInformationRequestBuilder(SDKMethodInterfaces.MethodCallGetSourceConnectionInformation sdk) { + this.sdk = sdk; + } + + public GetSourceConnectionInformationRequestBuilder source(java.lang.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/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java index b5999057..de7adde2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class GetSourceConnectionInformationResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetSourceConnectionInformationResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class GetSourceConnectionInformationResponse implements lukehagar.plexapi } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java index c188d53b..94806514 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetStatisticsDevice { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platform") - private Optional platform; + private Optional platform; @JsonInclude(Include.NON_ABSENT) @JsonProperty("clientIdentifier") - private Optional clientIdentifier; + private Optional clientIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional 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) { + @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"); @@ -63,34 +63,29 @@ public class GetStatisticsDevice { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platform() { - return (Optional) platform; + return platform; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional clientIdentifier() { - return (Optional) clientIdentifier; + return clientIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } public final static Builder builder() { @@ -103,7 +98,7 @@ public class GetStatisticsDevice { return this; } - public GetStatisticsDevice withId(Optional id) { + public GetStatisticsDevice withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -115,7 +110,7 @@ public class GetStatisticsDevice { return this; } - public GetStatisticsDevice withName(Optional name) { + public GetStatisticsDevice withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -127,7 +122,7 @@ public class GetStatisticsDevice { return this; } - public GetStatisticsDevice withPlatform(Optional platform) { + public GetStatisticsDevice withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -139,7 +134,7 @@ public class GetStatisticsDevice { return this; } - public GetStatisticsDevice withClientIdentifier(Optional clientIdentifier) { + public GetStatisticsDevice withClientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -151,7 +146,7 @@ public class GetStatisticsDevice { return this; } - public GetStatisticsDevice withCreatedAt(Optional createdAt) { + public GetStatisticsDevice withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -167,16 +162,16 @@ public class GetStatisticsDevice { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.createdAt, other.createdAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, platform, @@ -196,15 +191,15 @@ public class GetStatisticsDevice { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); - private Optional clientIdentifier = Optional.empty(); + private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class GetStatisticsDevice { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class GetStatisticsDevice { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -240,7 +235,7 @@ public class GetStatisticsDevice { return this; } - public Builder platform(Optional platform) { + public Builder platform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -252,7 +247,7 @@ public class GetStatisticsDevice { return this; } - public Builder clientIdentifier(Optional clientIdentifier) { + public Builder clientIdentifier(Optional clientIdentifier) { Utils.checkNotNull(clientIdentifier, "clientIdentifier"); this.clientIdentifier = clientIdentifier; return this; @@ -264,7 +259,7 @@ public class GetStatisticsDevice { return this; } - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java similarity index 60% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java index 5d88fd9f..dfbd6ce0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java @@ -1,47 +1,49 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetStatisticsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Device") - private Optional> device; + private Optional> device; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Account") - private Optional> account; + private Optional> account; @JsonInclude(Include.NON_ABSENT) @JsonProperty("StatisticsMedia") - private Optional> statisticsMedia; + private Optional> statisticsMedia; @JsonCreator public GetStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Device") Optional> device, - @JsonProperty("Account") Optional> account, - @JsonProperty("StatisticsMedia") Optional> statisticsMedia) { + @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"); @@ -56,28 +58,27 @@ public class GetStatisticsMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> device() { - return (Optional>) device; + public Optional> device() { + return (Optional>) device; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> account() { - return (Optional>) account; + public Optional> account() { + return (Optional>) account; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> statisticsMedia() { - return (Optional>) statisticsMedia; + public Optional> statisticsMedia() { + return (Optional>) statisticsMedia; } public final static Builder builder() { @@ -90,43 +91,43 @@ public class GetStatisticsMediaContainer { return this; } - public GetStatisticsMediaContainer withSize(Optional size) { + public GetStatisticsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetStatisticsMediaContainer withDevice(java.util.List device) { + public GetStatisticsMediaContainer withDevice(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public GetStatisticsMediaContainer withDevice(Optional> device) { + public GetStatisticsMediaContainer withDevice(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; } - public GetStatisticsMediaContainer withAccount(java.util.List account) { + public GetStatisticsMediaContainer withAccount(List account) { Utils.checkNotNull(account, "account"); this.account = Optional.ofNullable(account); return this; } - public GetStatisticsMediaContainer withAccount(Optional> account) { + public GetStatisticsMediaContainer withAccount(Optional> account) { Utils.checkNotNull(account, "account"); this.account = account; return this; } - public GetStatisticsMediaContainer withStatisticsMedia(java.util.List statisticsMedia) { + public GetStatisticsMediaContainer withStatisticsMedia(List statisticsMedia) { Utils.checkNotNull(statisticsMedia, "statisticsMedia"); this.statisticsMedia = Optional.ofNullable(statisticsMedia); return this; } - public GetStatisticsMediaContainer withStatisticsMedia(Optional> statisticsMedia) { + public GetStatisticsMediaContainer withStatisticsMedia(Optional> statisticsMedia) { Utils.checkNotNull(statisticsMedia, "statisticsMedia"); this.statisticsMedia = statisticsMedia; return this; @@ -142,15 +143,15 @@ public class GetStatisticsMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.device, other.device) && + Objects.deepEquals(this.account, other.account) && + Objects.deepEquals(this.statisticsMedia, other.statisticsMedia); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, device, account, @@ -168,13 +169,13 @@ public class GetStatisticsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> device = Optional.empty(); + private Optional> device = Optional.empty(); - private Optional> account = Optional.empty(); + private Optional> account = Optional.empty(); - private Optional> statisticsMedia = Optional.empty(); + private Optional> statisticsMedia = Optional.empty(); private Builder() { // force use of static builder() method @@ -186,43 +187,43 @@ public class GetStatisticsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder device(java.util.List device) { + public Builder device(List device) { Utils.checkNotNull(device, "device"); this.device = Optional.ofNullable(device); return this; } - public Builder device(Optional> device) { + public Builder device(Optional> device) { Utils.checkNotNull(device, "device"); this.device = device; return this; } - public Builder account(java.util.List account) { + public Builder account(List account) { Utils.checkNotNull(account, "account"); this.account = Optional.ofNullable(account); return this; } - public Builder account(Optional> account) { + public Builder account(Optional> account) { Utils.checkNotNull(account, "account"); this.account = account; return this; } - public Builder statisticsMedia(java.util.List statisticsMedia) { + public Builder statisticsMedia(List statisticsMedia) { Utils.checkNotNull(statisticsMedia, "statisticsMedia"); this.statisticsMedia = Optional.ofNullable(statisticsMedia); return this; } - public Builder statisticsMedia(Optional> statisticsMedia) { + public Builder statisticsMedia(Optional> statisticsMedia) { Utils.checkNotNull(statisticsMedia, "statisticsMedia"); this.statisticsMedia = statisticsMedia; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java index 702cfe82..b916fa0a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetStatisticsRequest { @@ -24,11 +24,11 @@ public class GetStatisticsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; + private Optional timespan; @JsonCreator public GetStatisticsRequest( - Optional timespan) { + Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; } @@ -42,10 +42,9 @@ public class GetStatisticsRequest { * the exact meaning of this parameter is not known * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } public final static Builder builder() { @@ -68,7 +67,7 @@ public class GetStatisticsRequest { * the exact meaning of this parameter is not known * */ - public GetStatisticsRequest withTimespan(Optional timespan) { + public GetStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -84,12 +83,12 @@ public class GetStatisticsRequest { } GetStatisticsRequest other = (GetStatisticsRequest) o; return - java.util.Objects.deepEquals(this.timespan, other.timespan); + Objects.deepEquals(this.timespan, other.timespan); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( timespan); } @@ -101,7 +100,7 @@ public class GetStatisticsRequest { public final static class Builder { - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); private Builder() { // force use of static builder() method @@ -123,7 +122,7 @@ public class GetStatisticsRequest { * the exact meaning of this parameter is not known * */ - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java similarity index 50% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java index 08ae8146..4a492593 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java @@ -1,25 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; 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 Optional timespan = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetStatistics sdk; public GetStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetStatistics sdk) { @@ -32,7 +23,7 @@ public class GetStatisticsRequestBuilder { return this; } - public GetStatisticsRequestBuilder timespan(Optional timespan) { + public GetStatisticsRequestBuilder timespan(java.util.Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java index 33f14469..39cece7a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetStatisticsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java index 5298686d..7ef3a078 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetStatisticsResponseBody - Media Statistics */ @@ -70,12 +70,12 @@ public class GetStatisticsResponseBody { } GetStatisticsResponseBody other = (GetStatisticsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java new file mode 100644 index 00000000..f63f8bb6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java @@ -0,0 +1,259 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class GetThumbImageRequest { + + /** + * the id of the library item to return the children of. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") + private long ratingKey; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=width") + private long width; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=height") + private long height; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=minSize") + private long minSize; + + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=upscale") + private long upscale; + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; + + @JsonCreator + public GetThumbImageRequest( + long ratingKey, + long width, + long height, + long minSize, + long upscale, + String xPlexToken) { + Utils.checkNotNull(ratingKey, "ratingKey"); + Utils.checkNotNull(width, "width"); + Utils.checkNotNull(height, "height"); + Utils.checkNotNull(minSize, "minSize"); + Utils.checkNotNull(upscale, "upscale"); + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.ratingKey = ratingKey; + this.width = width; + this.height = height; + this.minSize = minSize; + this.upscale = upscale; + this.xPlexToken = xPlexToken; + } + + /** + * the id of the library item to return the children of. + */ + @JsonIgnore + public long ratingKey() { + return ratingKey; + } + + @JsonIgnore + public long width() { + return width; + } + + @JsonIgnore + public long height() { + return height; + } + + @JsonIgnore + public long minSize() { + return minSize; + } + + @JsonIgnore + public long upscale() { + return upscale; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * the id of the library item to return the children of. + */ + public GetThumbImageRequest withRatingKey(long ratingKey) { + Utils.checkNotNull(ratingKey, "ratingKey"); + this.ratingKey = ratingKey; + return this; + } + + public GetThumbImageRequest withWidth(long width) { + Utils.checkNotNull(width, "width"); + this.width = width; + return this; + } + + public GetThumbImageRequest withHeight(long height) { + Utils.checkNotNull(height, "height"); + this.height = height; + return this; + } + + public GetThumbImageRequest withMinSize(long minSize) { + Utils.checkNotNull(minSize, "minSize"); + this.minSize = minSize; + return this; + } + + public GetThumbImageRequest withUpscale(long upscale) { + Utils.checkNotNull(upscale, "upscale"); + this.upscale = upscale; + return this; + } + + /** + * Plex Authentication Token + */ + public GetThumbImageRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetThumbImageRequest other = (GetThumbImageRequest) o; + return + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.minSize, other.minSize) && + Objects.deepEquals(this.upscale, other.upscale) && + Objects.deepEquals(this.xPlexToken, other.xPlexToken); + } + + @Override + public int hashCode() { + return Objects.hash( + ratingKey, + width, + height, + minSize, + upscale, + xPlexToken); + } + + @Override + public String toString() { + return Utils.toString(GetThumbImageRequest.class, + "ratingKey", ratingKey, + "width", width, + "height", height, + "minSize", minSize, + "upscale", upscale, + "xPlexToken", xPlexToken); + } + + public final static class Builder { + + private Long ratingKey; + + private Long width; + + private Long height; + + private Long minSize; + + private Long upscale; + + private String xPlexToken; + + private Builder() { + // force use of static builder() method + } + + /** + * the id of the library item to return the children of. + */ + public Builder ratingKey(long ratingKey) { + Utils.checkNotNull(ratingKey, "ratingKey"); + this.ratingKey = ratingKey; + return this; + } + + public Builder width(long width) { + Utils.checkNotNull(width, "width"); + this.width = width; + return this; + } + + public Builder height(long height) { + Utils.checkNotNull(height, "height"); + this.height = height; + return this; + } + + public Builder minSize(long minSize) { + Utils.checkNotNull(minSize, "minSize"); + this.minSize = minSize; + return this; + } + + public Builder upscale(long upscale) { + Utils.checkNotNull(upscale, "upscale"); + this.upscale = upscale; + return this; + } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetThumbImageRequest build() { + return new GetThumbImageRequest( + ratingKey, + width, + height, + minSize, + upscale, + xPlexToken); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java new file mode 100644 index 00000000..9c3a33b4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class GetThumbImageRequestBuilder { + + private GetThumbImageRequest request; + private final SDKMethodInterfaces.MethodCallGetThumbImage sdk; + + public GetThumbImageRequestBuilder(SDKMethodInterfaces.MethodCallGetThumbImage sdk) { + this.sdk = sdk; + } + + public GetThumbImageRequestBuilder request(dev.plexapi.sdk.models.operations.GetThumbImageRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetThumbImageResponse call() throws Exception { + + return sdk.getThumbImage( + request); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java new file mode 100644 index 00000000..a1c26f0e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + + +public class GetThumbImageResponse implements 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; + + /** + * Successful response returning an image + */ + private Optional responseStream; + + private Map> headers; + + @JsonCreator + public GetThumbImageResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional responseStream, + Map> headers) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(responseStream, "responseStream"); + headers = Utils.emptyMapIfNull(headers); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.responseStream = responseStream; + this.headers = headers; + } + + public GetThumbImageResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Map> headers) { + this(contentType, statusCode, rawResponse, Optional.empty(), headers); + } + + /** + * 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; + } + + /** + * Successful response returning an image + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional responseStream() { + return (Optional) responseStream; + } + + @JsonIgnore + public Map> headers() { + return headers; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetThumbImageResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetThumbImageResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetThumbImageResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response returning an image + */ + public GetThumbImageResponse withResponseStream(InputStream responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = Optional.ofNullable(responseStream); + return this; + } + + /** + * Successful response returning an image + */ + public GetThumbImageResponse withResponseStream(Optional responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = responseStream; + return this; + } + + public GetThumbImageResponse withHeaders(Map> headers) { + Utils.checkNotNull(headers, "headers"); + this.headers = headers; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetThumbImageResponse other = (GetThumbImageResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.responseStream, other.responseStream) && + Objects.deepEquals(this.headers, other.headers); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + responseStream, + headers); + } + + @Override + public String toString() { + return Utils.toString(GetThumbImageResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "responseStream", responseStream, + "headers", headers); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional responseStream = Optional.empty(); + + private Map> headers; + + 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; + } + + /** + * Successful response returning an image + */ + public Builder responseStream(InputStream responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = Optional.ofNullable(responseStream); + return this; + } + + /** + * Successful response returning an image + */ + public Builder responseStream(Optional responseStream) { + Utils.checkNotNull(responseStream, "responseStream"); + this.responseStream = responseStream; + return this; + } + + public Builder headers(Map> headers) { + Utils.checkNotNull(headers, "headers"); + this.headers = headers; + return this; + } + + public GetThumbImageResponse build() { + return new GetThumbImageResponse( + contentType, + statusCode, + rawResponse, + responseStream, + headers); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java similarity index 89% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java index c6a990dc..e5ad8350 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetTimelineRequest { @@ -295,21 +295,21 @@ public class GetTimelineRequest { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.state, other.state) && + Objects.deepEquals(this.hasMDE, other.hasMDE) && + Objects.deepEquals(this.time, other.time) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.context, other.context) && + Objects.deepEquals(this.playQueueItemID, other.playQueueItemID) && + Objects.deepEquals(this.playBackTime, other.playBackTime) && + Objects.deepEquals(this.row, other.row); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, state, diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java new file mode 100644 index 00000000..5c2c272f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class GetTimelineRequestBuilder { + + private GetTimelineRequest request; + private final SDKMethodInterfaces.MethodCallGetTimeline sdk; + + public GetTimelineRequestBuilder(SDKMethodInterfaces.MethodCallGetTimeline sdk) { + this.sdk = sdk; + } + + public GetTimelineRequestBuilder request(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/GetTimelineResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java index 360c79ca..87781349 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class GetTimelineResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetTimelineResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class GetTimelineResponse implements lukehagar.plexapi.plexapi.utils.Resp } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java new file mode 100644 index 00000000..97b06ed4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java @@ -0,0 +1,547 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * GetTokenByPinIdAuthPinContainer - The Pin with a non-null authToken when it has been verified by the user + */ + +public class GetTokenByPinIdAuthPinContainer { + + @JsonProperty("id") + private long id; + + @JsonProperty("code") + private String code; + + @JsonProperty("product") + private String product; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trusted") + private Optional trusted; + + @JsonProperty("qr") + private String qr; + + /** + * The X-Client-Identifier used in the request + */ + @JsonProperty("clientIdentifier") + private String clientIdentifier; + + /** + * Geo location data + */ + @JsonProperty("location") + private GetTokenByPinIdGeoData location; + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("expiresIn") + private Optional expiresIn; + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + @JsonProperty("expiresAt") + private OffsetDateTime expiresAt; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("authToken") + private JsonNullable authToken; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("newRegistration") + private JsonNullable newRegistration; + + @JsonCreator + public GetTokenByPinIdAuthPinContainer( + @JsonProperty("id") long id, + @JsonProperty("code") String code, + @JsonProperty("product") String product, + @JsonProperty("trusted") Optional trusted, + @JsonProperty("qr") String qr, + @JsonProperty("clientIdentifier") String clientIdentifier, + @JsonProperty("location") GetTokenByPinIdGeoData location, + @JsonProperty("expiresIn") Optional expiresIn, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("expiresAt") OffsetDateTime expiresAt, + @JsonProperty("authToken") JsonNullable 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 GetTokenByPinIdAuthPinContainer( + long id, + String code, + String product, + String qr, + String clientIdentifier, + GetTokenByPinIdGeoData location, + OffsetDateTime createdAt, + OffsetDateTime expiresAt) { + this(id, code, product, Optional.empty(), qr, clientIdentifier, location, Optional.empty(), createdAt, expiresAt, JsonNullable.undefined(), JsonNullable.undefined()); + } + + @JsonIgnore + public long id() { + return id; + } + + @JsonIgnore + public String code() { + return code; + } + + @JsonIgnore + public String product() { + return product; + } + + @JsonIgnore + public Optional trusted() { + return trusted; + } + + @JsonIgnore + public String qr() { + return qr; + } + + /** + * The X-Client-Identifier used in the request + */ + @JsonIgnore + public String clientIdentifier() { + return clientIdentifier; + } + + /** + * Geo location data + */ + @JsonIgnore + public GetTokenByPinIdGeoData location() { + return location; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + @JsonIgnore + public Optional expiresIn() { + return expiresIn; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public OffsetDateTime expiresAt() { + return expiresAt; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable authToken() { + return (JsonNullable) authToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable newRegistration() { + return (JsonNullable) newRegistration; + } + + public final static Builder builder() { + return new Builder(); + } + + public GetTokenByPinIdAuthPinContainer withId(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public GetTokenByPinIdAuthPinContainer withCode(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public GetTokenByPinIdAuthPinContainer withProduct(String product) { + Utils.checkNotNull(product, "product"); + this.product = product; + return this; + } + + public GetTokenByPinIdAuthPinContainer withTrusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + public GetTokenByPinIdAuthPinContainer withTrusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + public GetTokenByPinIdAuthPinContainer withQr(String qr) { + Utils.checkNotNull(qr, "qr"); + this.qr = qr; + return this; + } + + /** + * The X-Client-Identifier used in the request + */ + public GetTokenByPinIdAuthPinContainer withClientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + /** + * Geo location data + */ + public GetTokenByPinIdAuthPinContainer withLocation(GetTokenByPinIdGeoData location) { + Utils.checkNotNull(location, "location"); + this.location = location; + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public GetTokenByPinIdAuthPinContainer withExpiresIn(long expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = Optional.ofNullable(expiresIn); + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public GetTokenByPinIdAuthPinContainer withExpiresIn(Optional expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = expiresIn; + return this; + } + + public GetTokenByPinIdAuthPinContainer withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public GetTokenByPinIdAuthPinContainer withExpiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + public GetTokenByPinIdAuthPinContainer withAuthToken(Object authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = JsonNullable.of(authToken); + return this; + } + + public GetTokenByPinIdAuthPinContainer withAuthToken(JsonNullable authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + public GetTokenByPinIdAuthPinContainer withNewRegistration(Object newRegistration) { + Utils.checkNotNull(newRegistration, "newRegistration"); + this.newRegistration = JsonNullable.of(newRegistration); + return this; + } + + public GetTokenByPinIdAuthPinContainer 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; + } + GetTokenByPinIdAuthPinContainer other = (GetTokenByPinIdAuthPinContainer) o; + return + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.product, other.product) && + Objects.deepEquals(this.trusted, other.trusted) && + Objects.deepEquals(this.qr, other.qr) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.location, other.location) && + Objects.deepEquals(this.expiresIn, other.expiresIn) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.expiresAt, other.expiresAt) && + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.newRegistration, other.newRegistration); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + code, + product, + trusted, + qr, + clientIdentifier, + location, + expiresIn, + createdAt, + expiresAt, + authToken, + newRegistration); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdAuthPinContainer.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 Long id; + + private String code; + + private String product; + + private Optional trusted; + + private String qr; + + private String clientIdentifier; + + private GetTokenByPinIdGeoData location; + + private Optional expiresIn; + + private OffsetDateTime createdAt; + + private OffsetDateTime expiresAt; + + private JsonNullable authToken = JsonNullable.undefined(); + + private JsonNullable newRegistration = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + public Builder id(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Builder code(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public Builder product(String 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; + } + + public Builder qr(String qr) { + Utils.checkNotNull(qr, "qr"); + this.qr = qr; + return this; + } + + /** + * The X-Client-Identifier used in the request + */ + public Builder clientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + /** + * Geo location data + */ + public Builder location(GetTokenByPinIdGeoData location) { + Utils.checkNotNull(location, "location"); + this.location = location; + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + public Builder expiresIn(long expiresIn) { + Utils.checkNotNull(expiresIn, "expiresIn"); + this.expiresIn = Optional.ofNullable(expiresIn); + return this; + } + + /** + * The number of seconds this pin expires, by default 900 seconds + */ + 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 = createdAt; + return this; + } + + public Builder expiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + public Builder authToken(Object authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = JsonNullable.of(authToken); + return this; + } + + public Builder authToken(JsonNullable authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + public Builder newRegistration(Object 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 GetTokenByPinIdAuthPinContainer build() { + if (trusted == null) { + trusted = _SINGLETON_VALUE_Trusted.value(); + } + if (expiresIn == null) { + expiresIn = _SINGLETON_VALUE_ExpiresIn.value(); + } return new GetTokenByPinIdAuthPinContainer( + id, + code, + product, + trusted, + qr, + clientIdentifier, + location, + expiresIn, + createdAt, + expiresAt, + authToken, + newRegistration); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Trusted = + new LazySingletonValue<>( + "trusted", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ExpiresIn = + new LazySingletonValue<>( + "expiresIn", + "900", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java new file mode 100644 index 00000000..d654b380 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java @@ -0,0 +1,616 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * GetTokenByPinIdGeoData - Geo location data + */ + +public class GetTokenByPinIdGeoData { + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonProperty("code") + private String code; + + /** + * The continent code where the country is located. + */ + @JsonProperty("continent_code") + private String continentCode; + + /** + * The official name of the country. + */ + @JsonProperty("country") + private String country; + + /** + * The name of the city. + */ + @JsonProperty("city") + private String city; + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("european_union_member") + private Optional europeanUnionMember; + + /** + * The time zone of the country. + */ + @JsonProperty("time_zone") + private String timeZone; + + /** + * The postal code of the location. + */ + @JsonProperty("postal_code") + private long postalCode; + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_country") + private Optional inPrivacyRestrictedCountry; + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("in_privacy_restricted_region") + private Optional inPrivacyRestrictedRegion; + + /** + * The name of the primary administrative subdivision. + */ + @JsonProperty("subdivisions") + private String subdivisions; + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonProperty("coordinates") + private String coordinates; + + @JsonCreator + public GetTokenByPinIdGeoData( + @JsonProperty("code") String code, + @JsonProperty("continent_code") String continentCode, + @JsonProperty("country") String country, + @JsonProperty("city") String city, + @JsonProperty("european_union_member") Optional europeanUnionMember, + @JsonProperty("time_zone") String timeZone, + @JsonProperty("postal_code") long postalCode, + @JsonProperty("in_privacy_restricted_country") Optional inPrivacyRestrictedCountry, + @JsonProperty("in_privacy_restricted_region") Optional inPrivacyRestrictedRegion, + @JsonProperty("subdivisions") String subdivisions, + @JsonProperty("coordinates") String coordinates) { + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(continentCode, "continentCode"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(city, "city"); + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + Utils.checkNotNull(timeZone, "timeZone"); + Utils.checkNotNull(postalCode, "postalCode"); + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + Utils.checkNotNull(subdivisions, "subdivisions"); + Utils.checkNotNull(coordinates, "coordinates"); + this.code = code; + this.continentCode = continentCode; + this.country = country; + this.city = city; + this.europeanUnionMember = europeanUnionMember; + this.timeZone = timeZone; + this.postalCode = postalCode; + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + this.subdivisions = subdivisions; + this.coordinates = coordinates; + } + + public GetTokenByPinIdGeoData( + String code, + String continentCode, + String country, + String city, + String timeZone, + long postalCode, + String subdivisions, + String coordinates) { + this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + @JsonIgnore + public String code() { + return code; + } + + /** + * The continent code where the country is located. + */ + @JsonIgnore + public String continentCode() { + return continentCode; + } + + /** + * The official name of the country. + */ + @JsonIgnore + public String country() { + return country; + } + + /** + * The name of the city. + */ + @JsonIgnore + public String city() { + return city; + } + + /** + * Indicates if the country is a member of the European Union. + */ + @JsonIgnore + public Optional europeanUnionMember() { + return europeanUnionMember; + } + + /** + * The time zone of the country. + */ + @JsonIgnore + public String timeZone() { + return timeZone; + } + + /** + * The postal code of the location. + */ + @JsonIgnore + public long postalCode() { + return postalCode; + } + + /** + * Indicates if the country has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedCountry() { + return inPrivacyRestrictedCountry; + } + + /** + * Indicates if the region has privacy restrictions. + */ + @JsonIgnore + public Optional inPrivacyRestrictedRegion() { + return inPrivacyRestrictedRegion; + } + + /** + * The name of the primary administrative subdivision. + */ + @JsonIgnore + public String subdivisions() { + return subdivisions; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + @JsonIgnore + public String coordinates() { + return coordinates; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public GetTokenByPinIdGeoData withCode(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public GetTokenByPinIdGeoData withContinentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public GetTokenByPinIdGeoData withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public GetTokenByPinIdGeoData withCity(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GetTokenByPinIdGeoData withEuropeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public GetTokenByPinIdGeoData withEuropeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public GetTokenByPinIdGeoData withTimeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public GetTokenByPinIdGeoData withPostalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GetTokenByPinIdGeoData withInPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public GetTokenByPinIdGeoData withInPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GetTokenByPinIdGeoData withInPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public GetTokenByPinIdGeoData withInPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public GetTokenByPinIdGeoData withSubdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public GetTokenByPinIdGeoData withCoordinates(String 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; + } + GetTokenByPinIdGeoData other = (GetTokenByPinIdGeoData) o; + return + Objects.deepEquals(this.code, other.code) && + Objects.deepEquals(this.continentCode, other.continentCode) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.city, other.city) && + Objects.deepEquals(this.europeanUnionMember, other.europeanUnionMember) && + Objects.deepEquals(this.timeZone, other.timeZone) && + Objects.deepEquals(this.postalCode, other.postalCode) && + Objects.deepEquals(this.inPrivacyRestrictedCountry, other.inPrivacyRestrictedCountry) && + Objects.deepEquals(this.inPrivacyRestrictedRegion, other.inPrivacyRestrictedRegion) && + Objects.deepEquals(this.subdivisions, other.subdivisions) && + Objects.deepEquals(this.coordinates, other.coordinates); + } + + @Override + public int hashCode() { + return Objects.hash( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdGeoData.class, + "code", code, + "continentCode", continentCode, + "country", country, + "city", city, + "europeanUnionMember", europeanUnionMember, + "timeZone", timeZone, + "postalCode", postalCode, + "inPrivacyRestrictedCountry", inPrivacyRestrictedCountry, + "inPrivacyRestrictedRegion", inPrivacyRestrictedRegion, + "subdivisions", subdivisions, + "coordinates", coordinates); + } + + public final static class Builder { + + private String code; + + private String continentCode; + + private String country; + + private String city; + + private Optional europeanUnionMember; + + private String timeZone; + + private Long postalCode; + + private Optional inPrivacyRestrictedCountry; + + private Optional inPrivacyRestrictedRegion; + + private String subdivisions; + + private String coordinates; + + private Builder() { + // force use of static builder() method + } + + /** + * The ISO 3166-1 alpha-2 code of the country. + */ + public Builder code(String code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * The continent code where the country is located. + */ + public Builder continentCode(String continentCode) { + Utils.checkNotNull(continentCode, "continentCode"); + this.continentCode = continentCode; + return this; + } + + /** + * The official name of the country. + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The name of the city. + */ + public Builder city(String city) { + Utils.checkNotNull(city, "city"); + this.city = city; + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(boolean europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); + return this; + } + + /** + * Indicates if the country is a member of the European Union. + */ + public Builder europeanUnionMember(Optional europeanUnionMember) { + Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); + this.europeanUnionMember = europeanUnionMember; + return this; + } + + /** + * The time zone of the country. + */ + public Builder timeZone(String timeZone) { + Utils.checkNotNull(timeZone, "timeZone"); + this.timeZone = timeZone; + return this; + } + + /** + * The postal code of the location. + */ + public Builder postalCode(long postalCode) { + Utils.checkNotNull(postalCode, "postalCode"); + this.postalCode = postalCode; + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); + return this; + } + + /** + * Indicates if the country has privacy restrictions. + */ + public Builder inPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { + Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); + this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(boolean inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = Optional.ofNullable(inPrivacyRestrictedRegion); + return this; + } + + /** + * Indicates if the region has privacy restrictions. + */ + public Builder inPrivacyRestrictedRegion(Optional inPrivacyRestrictedRegion) { + Utils.checkNotNull(inPrivacyRestrictedRegion, "inPrivacyRestrictedRegion"); + this.inPrivacyRestrictedRegion = inPrivacyRestrictedRegion; + return this; + } + + /** + * The name of the primary administrative subdivision. + */ + public Builder subdivisions(String subdivisions) { + Utils.checkNotNull(subdivisions, "subdivisions"); + this.subdivisions = subdivisions; + return this; + } + + /** + * The geographical coordinates (latitude, longitude) of the location. + */ + public Builder coordinates(String coordinates) { + Utils.checkNotNull(coordinates, "coordinates"); + this.coordinates = coordinates; + return this; + } + + public GetTokenByPinIdGeoData build() { + if (europeanUnionMember == null) { + europeanUnionMember = _SINGLETON_VALUE_EuropeanUnionMember.value(); + } + if (inPrivacyRestrictedCountry == null) { + inPrivacyRestrictedCountry = _SINGLETON_VALUE_InPrivacyRestrictedCountry.value(); + } + if (inPrivacyRestrictedRegion == null) { + inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); + } return new GetTokenByPinIdGeoData( + code, + continentCode, + country, + city, + europeanUnionMember, + timeZone, + postalCode, + inPrivacyRestrictedCountry, + inPrivacyRestrictedRegion, + subdivisions, + coordinates); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_EuropeanUnionMember = + new LazySingletonValue<>( + "european_union_member", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedCountry = + new LazySingletonValue<>( + "in_privacy_restricted_country", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_InPrivacyRestrictedRegion = + new LazySingletonValue<>( + "in_privacy_restricted_region", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java index 329110fb..9e6128c6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java @@ -1,28 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetTokenRequest { + +public class GetTokenByPinIdRequest { + + /** + * 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("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier") + private Optional xPlexClientIdentifier; /** * The PinID to retrieve an access token for */ @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pinID") - private String pinID; + private long pinID; + + @JsonCreator + public GetTokenByPinIdRequest( + Optional xPlexClientIdentifier, + long pinID) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + Utils.checkNotNull(pinID, "pinID"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + this.pinID = pinID; + } + + public GetTokenByPinIdRequest( + long pinID) { + this(Optional.empty(), pinID); + } /** * The unique identifier for the client application @@ -30,64 +54,30 @@ public class GetTokenRequest { * (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()); + @JsonIgnore + public Optional xPlexClientIdentifier() { + return xPlexClientIdentifier; } /** * The PinID to retrieve an access token for */ @JsonIgnore - public String pinID() { + public long 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) { + public GetTokenByPinIdRequest withXPlexClientIdentifier(String xPlexClientIdentifier) { Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier); return this; @@ -99,11 +89,20 @@ public class GetTokenRequest { * (UUID, serial number, or other number unique per device) * */ - public GetTokenRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { + public GetTokenByPinIdRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); this.xPlexClientIdentifier = xPlexClientIdentifier; return this; } + + /** + * The PinID to retrieve an access token for + */ + public GetTokenByPinIdRequest withPinID(long pinID) { + Utils.checkNotNull(pinID, "pinID"); + this.pinID = pinID; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -113,45 +112,36 @@ public class GetTokenRequest { if (o == null || getClass() != o.getClass()) { return false; } - GetTokenRequest other = (GetTokenRequest) o; + GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o; return - java.util.Objects.deepEquals(this.pinID, other.pinID) && - java.util.Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier); + Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) && + Objects.deepEquals(this.pinID, other.pinID); } @Override public int hashCode() { - return java.util.Objects.hash( - pinID, - xPlexClientIdentifier); + return Objects.hash( + xPlexClientIdentifier, + pinID); } @Override public String toString() { - return Utils.toString(GetTokenRequest.class, - "pinID", pinID, - "xPlexClientIdentifier", xPlexClientIdentifier); + return Utils.toString(GetTokenByPinIdRequest.class, + "xPlexClientIdentifier", xPlexClientIdentifier, + "pinID", pinID); } public final static class Builder { - private String pinID; + private Optional xPlexClientIdentifier = Optional.empty(); - private Optional xPlexClientIdentifier = Optional.empty(); + private Long pinID; 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 @@ -170,16 +160,25 @@ public class GetTokenRequest { * (UUID, serial number, or other number unique per device) * */ - public Builder xPlexClientIdentifier(Optional xPlexClientIdentifier) { + public Builder xPlexClientIdentifier(Optional xPlexClientIdentifier) { Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); this.xPlexClientIdentifier = xPlexClientIdentifier; return this; } + + /** + * The PinID to retrieve an access token for + */ + public Builder pinID(long pinID) { + Utils.checkNotNull(pinID, "pinID"); + this.pinID = pinID; + return this; + } - public GetTokenRequest build() { - return new GetTokenRequest( - pinID, - xPlexClientIdentifier); + public GetTokenByPinIdRequest build() { + return new GetTokenByPinIdRequest( + xPlexClientIdentifier, + pinID); } } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java new file mode 100644 index 00000000..f1a3bd43 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.String; +import java.util.Optional; + +public class GetTokenByPinIdRequestBuilder { + + private Optional xPlexClientIdentifier = Optional.empty(); + private Long pinID; + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk; + + public GetTokenByPinIdRequestBuilder(SDKMethodInterfaces.MethodCallGetTokenByPinId sdk) { + this.sdk = sdk; + } + + public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier); + return this; + } + + public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.util.Optional xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + return this; + } + + public GetTokenByPinIdRequestBuilder pinID(long pinID) { + Utils.checkNotNull(pinID, "pinID"); + this.pinID = pinID; + return this; + } + + public GetTokenByPinIdRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetTokenByPinIdRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetTokenByPinIdResponse call() throws Exception { + + return sdk.getTokenByPinId( + xPlexClientIdentifier, + pinID, + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java new file mode 100644 index 00000000..466f909d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + + +public class GetTokenByPinIdResponse implements 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 with a non-null authToken when it has been verified by the user + */ + private Optional authPinContainer; + + @JsonCreator + public GetTokenByPinIdResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional authPinContainer) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.authPinContainer = authPinContainer; + } + + public GetTokenByPinIdResponse( + 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 with a non-null authToken when it has been verified by the user + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authPinContainer() { + return (Optional) authPinContainer; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetTokenByPinIdResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetTokenByPinIdResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTokenByPinIdResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * The Pin with a non-null authToken when it has been verified by the user + */ + public GetTokenByPinIdResponse withAuthPinContainer(GetTokenByPinIdAuthPinContainer authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = Optional.ofNullable(authPinContainer); + return this; + } + + /** + * The Pin with a non-null authToken when it has been verified by the user + */ + public GetTokenByPinIdResponse withAuthPinContainer(Optional authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = authPinContainer; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTokenByPinIdResponse other = (GetTokenByPinIdResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.authPinContainer, other.authPinContainer); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + authPinContainer); + } + + @Override + public String toString() { + return Utils.toString(GetTokenByPinIdResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "authPinContainer", authPinContainer); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional authPinContainer = 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 with a non-null authToken when it has been verified by the user + */ + public Builder authPinContainer(GetTokenByPinIdAuthPinContainer authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = Optional.ofNullable(authPinContainer); + return this; + } + + /** + * The Pin with a non-null authToken when it has been verified by the user + */ + public Builder authPinContainer(Optional authPinContainer) { + Utils.checkNotNull(authPinContainer, "authPinContainer"); + this.authPinContainer = authPinContainer; + return this; + } + + public GetTokenByPinIdResponse build() { + return new GetTokenByPinIdResponse( + contentType, + statusCode, + rawResponse, + authPinContainer); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java index b02a3bcd..2c9d56b2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentCountry { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetTopWatchedContentCountry( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { + @JsonProperty("id") Optional id, + @JsonProperty("filter") Optional filter, + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(tag, "tag"); @@ -49,22 +49,19 @@ public class GetTopWatchedContentCountry { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetTopWatchedContentCountry { return this; } - public GetTopWatchedContentCountry withId(Optional id) { + public GetTopWatchedContentCountry withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -89,7 +86,7 @@ public class GetTopWatchedContentCountry { return this; } - public GetTopWatchedContentCountry withFilter(Optional filter) { + public GetTopWatchedContentCountry withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -101,7 +98,7 @@ public class GetTopWatchedContentCountry { return this; } - public GetTopWatchedContentCountry withTag(Optional tag) { + public GetTopWatchedContentCountry withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -117,14 +114,14 @@ public class GetTopWatchedContentCountry { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag); @@ -140,11 +137,11 @@ public class GetTopWatchedContentCountry { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTopWatchedContentCountry { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +165,7 @@ public class GetTopWatchedContentCountry { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -180,7 +177,7 @@ public class GetTopWatchedContentCountry { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java index ac3e50ff..67e852dc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentGenre { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public GetTopWatchedContentGenre( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { + @JsonProperty("id") Optional id, + @JsonProperty("filter") Optional filter, + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(tag, "tag"); @@ -49,22 +49,19 @@ public class GetTopWatchedContentGenre { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class GetTopWatchedContentGenre { return this; } - public GetTopWatchedContentGenre withId(Optional id) { + public GetTopWatchedContentGenre withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -89,7 +86,7 @@ public class GetTopWatchedContentGenre { return this; } - public GetTopWatchedContentGenre withFilter(Optional filter) { + public GetTopWatchedContentGenre withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -101,7 +98,7 @@ public class GetTopWatchedContentGenre { return this; } - public GetTopWatchedContentGenre withTag(Optional tag) { + public GetTopWatchedContentGenre withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -117,14 +114,14 @@ public class GetTopWatchedContentGenre { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag); @@ -140,11 +137,11 @@ public class GetTopWatchedContentGenre { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class GetTopWatchedContentGenre { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +165,7 @@ public class GetTopWatchedContentGenre { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -180,7 +177,7 @@ public class GetTopWatchedContentGenre { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java similarity index 70% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java index c6334606..8c7d6ee8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentGuids { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public GetTopWatchedContentGuids( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -35,10 +34,9 @@ public class GetTopWatchedContentGuids { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class GetTopWatchedContentGuids { return this; } - public GetTopWatchedContentGuids withId(Optional id) { + public GetTopWatchedContentGuids withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -67,12 +65,12 @@ public class GetTopWatchedContentGuids { } GetTopWatchedContentGuids other = (GetTopWatchedContentGuids) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -84,7 +82,7 @@ public class GetTopWatchedContentGuids { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class GetTopWatchedContentGuids { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java index fe840b18..dd09766b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java @@ -1,57 +1,60 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; + private Optional mediaTagPrefix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; + private Optional mediaTagVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -70,40 +73,35 @@ public class GetTopWatchedContentMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; + return mediaTagPrefix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; + return mediaTagVersion; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -116,7 +114,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public GetTopWatchedContentMediaContainer withSize(Optional size) { + public GetTopWatchedContentMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -128,7 +126,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public GetTopWatchedContentMediaContainer withAllowSync(Optional allowSync) { + public GetTopWatchedContentMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -140,7 +138,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public GetTopWatchedContentMediaContainer withIdentifier(Optional identifier) { + public GetTopWatchedContentMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -152,7 +150,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public GetTopWatchedContentMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { + public GetTopWatchedContentMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -164,19 +162,19 @@ public class GetTopWatchedContentMediaContainer { return this; } - public GetTopWatchedContentMediaContainer withMediaTagVersion(Optional mediaTagVersion) { + public GetTopWatchedContentMediaContainer withMediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public GetTopWatchedContentMediaContainer withMetadata(java.util.List metadata) { + public GetTopWatchedContentMediaContainer withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetTopWatchedContentMediaContainer withMetadata(Optional> metadata) { + public GetTopWatchedContentMediaContainer withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -192,17 +190,17 @@ public class GetTopWatchedContentMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && + Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowSync, identifier, @@ -224,17 +222,17 @@ public class GetTopWatchedContentMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional mediaTagPrefix = Optional.empty(); + private Optional mediaTagPrefix = Optional.empty(); - private Optional mediaTagVersion = Optional.empty(); + private Optional mediaTagVersion = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +244,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -258,7 +256,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -270,7 +268,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -282,7 +280,7 @@ public class GetTopWatchedContentMediaContainer { return this; } - public Builder mediaTagPrefix(Optional mediaTagPrefix) { + public Builder mediaTagPrefix(Optional mediaTagPrefix) { Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); this.mediaTagPrefix = mediaTagPrefix; return this; @@ -294,19 +292,19 @@ public class GetTopWatchedContentMediaContainer { return this; } - public Builder mediaTagVersion(Optional mediaTagVersion) { + public Builder mediaTagVersion(Optional mediaTagVersion) { Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); this.mediaTagVersion = mediaTagVersion; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java similarity index 65% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java index 22ce063a..60f7cb13 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java @@ -1,188 +1,192 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentMetadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("slug") - private Optional slug; + private Optional slug; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionKey") - private Optional librarySectionKey; + private Optional librarySectionKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; + private Optional viewedLeafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("childCount") - private Optional childCount; + private Optional childCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("globalViewCount") - private Optional globalViewCount; + private Optional globalViewCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Genre") - private Optional> genre; + private Optional> genre; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Country") - private Optional> country; + private Optional> country; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Guid") - private Optional> guids; + private Optional> guids; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Role") - private Optional> role; + private Optional> role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("User") - private Optional> 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) { + @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("Guid") Optional> guids, + @JsonProperty("Role") Optional> role, + @JsonProperty("User") Optional> user) { Utils.checkNotNull(ratingKey, "ratingKey"); Utils.checkNotNull(key, "key"); Utils.checkNotNull(guid, "guid"); @@ -253,196 +257,169 @@ public class 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; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional slug() { - return (Optional) slug; + return slug; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionID() { - return (Optional) librarySectionID; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionKey() { - return (Optional) librarySectionKey; + return librarySectionKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional art() { - return (Optional) art; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; + return viewedLeafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional childCount() { - return (Optional) childCount; + return childCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional globalViewCount() { - return (Optional) globalViewCount; + return globalViewCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> genre() { - return (Optional>) genre; + public Optional> genre() { + return (Optional>) genre; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> country() { - return (Optional>) country; + public Optional> country() { + return (Optional>) country; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> guids() { - return (Optional>) guids; + public Optional> guids() { + return (Optional>) guids; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> role() { - return (Optional>) role; + public Optional> role() { + return (Optional>) role; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> user() { - return (Optional>) user; + public Optional> user() { + return (Optional>) user; } public final static Builder builder() { @@ -455,7 +432,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withRatingKey(Optional ratingKey) { + public GetTopWatchedContentMetadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -467,7 +444,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withKey(Optional key) { + public GetTopWatchedContentMetadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -479,7 +456,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withGuid(Optional guid) { + public GetTopWatchedContentMetadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -491,7 +468,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withSlug(Optional slug) { + public GetTopWatchedContentMetadata withSlug(Optional slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -503,7 +480,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withStudio(Optional studio) { + public GetTopWatchedContentMetadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -515,7 +492,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withType(Optional type) { + public GetTopWatchedContentMetadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -527,7 +504,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withTitle(Optional title) { + public GetTopWatchedContentMetadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -539,7 +516,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withLibrarySectionTitle(Optional librarySectionTitle) { + public GetTopWatchedContentMetadata withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -551,7 +528,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withLibrarySectionID(Optional librarySectionID) { + public GetTopWatchedContentMetadata withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -563,7 +540,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withLibrarySectionKey(Optional librarySectionKey) { + public GetTopWatchedContentMetadata withLibrarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -575,7 +552,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withContentRating(Optional contentRating) { + public GetTopWatchedContentMetadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -587,7 +564,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withSummary(Optional summary) { + public GetTopWatchedContentMetadata withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -599,7 +576,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withIndex(Optional index) { + public GetTopWatchedContentMetadata withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -611,7 +588,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withAudienceRating(Optional audienceRating) { + public GetTopWatchedContentMetadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -623,7 +600,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withYear(Optional year) { + public GetTopWatchedContentMetadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -635,7 +612,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withTagline(Optional tagline) { + public GetTopWatchedContentMetadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -647,7 +624,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withThumb(Optional thumb) { + public GetTopWatchedContentMetadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -659,7 +636,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withArt(Optional art) { + public GetTopWatchedContentMetadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -671,7 +648,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withDuration(Optional duration) { + public GetTopWatchedContentMetadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -683,7 +660,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public GetTopWatchedContentMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -695,7 +672,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withLeafCount(Optional leafCount) { + public GetTopWatchedContentMetadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -707,7 +684,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withViewedLeafCount(Optional viewedLeafCount) { + public GetTopWatchedContentMetadata withViewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -719,7 +696,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withChildCount(Optional childCount) { + public GetTopWatchedContentMetadata withChildCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -731,7 +708,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withAddedAt(Optional addedAt) { + public GetTopWatchedContentMetadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -743,7 +720,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withUpdatedAt(Optional updatedAt) { + public GetTopWatchedContentMetadata withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -755,7 +732,7 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withGlobalViewCount(Optional globalViewCount) { + public GetTopWatchedContentMetadata withGlobalViewCount(Optional globalViewCount) { Utils.checkNotNull(globalViewCount, "globalViewCount"); this.globalViewCount = globalViewCount; return this; @@ -767,67 +744,67 @@ public class GetTopWatchedContentMetadata { return this; } - public GetTopWatchedContentMetadata withAudienceRatingImage(Optional audienceRatingImage) { + public GetTopWatchedContentMetadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; } - public GetTopWatchedContentMetadata withGenre(java.util.List genre) { + public GetTopWatchedContentMetadata withGenre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public GetTopWatchedContentMetadata withGenre(Optional> genre) { + public GetTopWatchedContentMetadata withGenre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public GetTopWatchedContentMetadata withCountry(java.util.List country) { + public GetTopWatchedContentMetadata withCountry(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public GetTopWatchedContentMetadata withCountry(Optional> country) { + public GetTopWatchedContentMetadata withCountry(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public GetTopWatchedContentMetadata withGuids(java.util.List guids) { + public GetTopWatchedContentMetadata withGuids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public GetTopWatchedContentMetadata withGuids(Optional> guids) { + public GetTopWatchedContentMetadata withGuids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; } - public GetTopWatchedContentMetadata withRole(java.util.List role) { + public GetTopWatchedContentMetadata withRole(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public GetTopWatchedContentMetadata withRole(Optional> role) { + public GetTopWatchedContentMetadata withRole(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public GetTopWatchedContentMetadata withUser(java.util.List user) { + public GetTopWatchedContentMetadata withUser(List user) { Utils.checkNotNull(user, "user"); this.user = Optional.ofNullable(user); return this; } - public GetTopWatchedContentMetadata withUser(Optional> user) { + public GetTopWatchedContentMetadata withUser(Optional> user) { Utils.checkNotNull(user, "user"); this.user = user; return this; @@ -843,43 +820,43 @@ public class GetTopWatchedContentMetadata { } 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); + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.slug, other.slug) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && + Objects.deepEquals(this.childCount, other.childCount) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.globalViewCount, other.globalViewCount) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.genre, other.genre) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.guids, other.guids) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.user, other.user); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ratingKey, key, guid, @@ -953,69 +930,69 @@ public class GetTopWatchedContentMetadata { public final static class Builder { - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional slug = Optional.empty(); + private Optional slug = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionKey = Optional.empty(); + private Optional librarySectionKey = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional viewedLeafCount = Optional.empty(); + private Optional viewedLeafCount = Optional.empty(); - private Optional childCount = Optional.empty(); + private Optional childCount = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional globalViewCount = Optional.empty(); + private Optional globalViewCount = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional> genre = Optional.empty(); + private Optional> genre = Optional.empty(); - private Optional> country = Optional.empty(); + private Optional> country = Optional.empty(); - private Optional> guids = Optional.empty(); + private Optional> guids = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); - private Optional> user = Optional.empty(); + private Optional> user = Optional.empty(); private Builder() { // force use of static builder() method @@ -1027,7 +1004,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1039,7 +1016,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1051,7 +1028,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1063,7 +1040,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder slug(Optional slug) { + public Builder slug(Optional slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -1075,7 +1052,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1087,7 +1064,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1099,7 +1076,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1111,7 +1088,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -1123,7 +1100,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -1135,7 +1112,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder librarySectionKey(Optional librarySectionKey) { + public Builder librarySectionKey(Optional librarySectionKey) { Utils.checkNotNull(librarySectionKey, "librarySectionKey"); this.librarySectionKey = librarySectionKey; return this; @@ -1147,7 +1124,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1159,7 +1136,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -1171,7 +1148,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1183,7 +1160,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1195,7 +1172,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; @@ -1207,7 +1184,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1219,7 +1196,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1231,7 +1208,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1243,7 +1220,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1255,7 +1232,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1267,7 +1244,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -1279,7 +1256,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder viewedLeafCount(Optional viewedLeafCount) { + public Builder viewedLeafCount(Optional viewedLeafCount) { Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); this.viewedLeafCount = viewedLeafCount; return this; @@ -1291,7 +1268,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder childCount(Optional childCount) { + public Builder childCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -1303,7 +1280,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1315,7 +1292,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1327,7 +1304,7 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder globalViewCount(Optional globalViewCount) { + public Builder globalViewCount(Optional globalViewCount) { Utils.checkNotNull(globalViewCount, "globalViewCount"); this.globalViewCount = globalViewCount; return this; @@ -1339,67 +1316,67 @@ public class GetTopWatchedContentMetadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; } - public Builder genre(java.util.List genre) { + public Builder genre(List genre) { Utils.checkNotNull(genre, "genre"); this.genre = Optional.ofNullable(genre); return this; } - public Builder genre(Optional> genre) { + public Builder genre(Optional> genre) { Utils.checkNotNull(genre, "genre"); this.genre = genre; return this; } - public Builder country(java.util.List country) { + public Builder country(List country) { Utils.checkNotNull(country, "country"); this.country = Optional.ofNullable(country); return this; } - public Builder country(Optional> country) { + public Builder country(Optional> country) { Utils.checkNotNull(country, "country"); this.country = country; return this; } - public Builder guids(java.util.List guids) { + public Builder guids(List guids) { Utils.checkNotNull(guids, "guids"); this.guids = Optional.ofNullable(guids); return this; } - public Builder guids(Optional> guids) { + public Builder guids(Optional> guids) { Utils.checkNotNull(guids, "guids"); this.guids = guids; return this; } - public Builder role(java.util.List role) { + public Builder role(List role) { Utils.checkNotNull(role, "role"); this.role = Optional.ofNullable(role); return this; } - public Builder role(Optional> role) { + public Builder role(Optional> role) { Utils.checkNotNull(role, "role"); this.role = role; return this; } - public Builder user(java.util.List user) { + public Builder user(List user) { Utils.checkNotNull(user, "user"); this.user = Optional.ofNullable(user); return this; } - public Builder user(Optional> user) { + public Builder user(Optional> user) { Utils.checkNotNull(user, "user"); this.user = user; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java new file mode 100644 index 00000000..eeae2f08 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * GetTopWatchedContentQueryParamType - The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ +public enum GetTopWatchedContentQueryParamType { + ONE(1L), + TWO(2L), + THREE(3L), + FOUR(4L); + + @JsonValue + private final long value; + + private GetTopWatchedContentQueryParamType(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java similarity index 61% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java index b193d28d..1c818abf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java @@ -1,40 +1,46 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; 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) + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private long type; + private GetTopWatchedContentQueryParamType type; /** * Adds the Guids object to the response * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") - private Optional includeGuids; + private Optional includeGuids; @JsonCreator public GetTopWatchedContentRequest( - long type, - Optional includeGuids) { + GetTopWatchedContentQueryParamType type, + Optional includeGuids) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(includeGuids, "includeGuids"); this.type = type; @@ -42,15 +48,21 @@ public class GetTopWatchedContentRequest { } public GetTopWatchedContentRequest( - long type) { + GetTopWatchedContentQueryParamType type) { this(type, Optional.empty()); } /** - * the library type (1 - movies, 2 - shows, 3 - music) + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ @JsonIgnore - public long type() { + public GetTopWatchedContentQueryParamType type() { return type; } @@ -58,10 +70,9 @@ public class GetTopWatchedContentRequest { * Adds the Guids object to the response * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional includeGuids() { - return (Optional) includeGuids; + return includeGuids; } public final static Builder builder() { @@ -69,9 +80,15 @@ public class GetTopWatchedContentRequest { } /** - * the library type (1 - movies, 2 - shows, 3 - music) + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ - public GetTopWatchedContentRequest withType(long type) { + public GetTopWatchedContentRequest withType(GetTopWatchedContentQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -91,7 +108,7 @@ public class GetTopWatchedContentRequest { * Adds the Guids object to the response * */ - public GetTopWatchedContentRequest withIncludeGuids(Optional includeGuids) { + public GetTopWatchedContentRequest withIncludeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); this.includeGuids = includeGuids; return this; @@ -107,13 +124,13 @@ public class GetTopWatchedContentRequest { } GetTopWatchedContentRequest other = (GetTopWatchedContentRequest) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.includeGuids, other.includeGuids); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.includeGuids, other.includeGuids); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, includeGuids); } @@ -127,18 +144,24 @@ public class GetTopWatchedContentRequest { public final static class Builder { - private Long type; + private GetTopWatchedContentQueryParamType type; - private Optional includeGuids = Optional.empty(); + private Optional includeGuids = Optional.empty(); private Builder() { // force use of static builder() method } /** - * the library type (1 - movies, 2 - shows, 3 - music) + * The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * */ - public Builder type(long type) { + public Builder type(GetTopWatchedContentQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -158,7 +181,7 @@ public class GetTopWatchedContentRequest { * Adds the Guids object to the response * */ - public Builder includeGuids(Optional includeGuids) { + public Builder includeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); this.includeGuids = includeGuids; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java index 9eac2367..fd5be585 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Long; 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 GetTopWatchedContentQueryParamType type; + private Optional includeGuids = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk; public GetTopWatchedContentRequestBuilder(SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk) { this.sdk = sdk; } - public GetTopWatchedContentRequestBuilder type(long type) { + public GetTopWatchedContentRequestBuilder type(dev.plexapi.sdk.models.operations.GetTopWatchedContentQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -39,7 +30,7 @@ public class GetTopWatchedContentRequestBuilder { return this; } - public GetTopWatchedContentRequestBuilder includeGuids(Optional includeGuids) { + public GetTopWatchedContentRequestBuilder includeGuids(java.util.Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); this.includeGuids = includeGuids; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java index d8a0d3bd..c729c9d8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetTopWatchedContentResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetTopWatchedContentResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetTopWatchedContentResponse implements lukehagar.plexapi.plexapi.u } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java index da530e11..2741bb51 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetTopWatchedContentResponseBody - The metadata of the library item. */ @@ -70,12 +70,12 @@ public class GetTopWatchedContentResponseBody { } GetTopWatchedContentResponseBody other = (GetTopWatchedContentResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java index 08150776..30f0a198 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java @@ -1,57 +1,57 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTopWatchedContentRole { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagKey") - private Optional tagKey; + private Optional tagKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("role") - private Optional role; + private Optional role; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + @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"); @@ -70,40 +70,34 @@ public class GetTopWatchedContentRole { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagKey() { - return (Optional) tagKey; + return tagKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional role() { - return (Optional) role; + return role; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { @@ -116,7 +110,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withId(Optional id) { + public GetTopWatchedContentRole withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -128,7 +122,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withFilter(Optional filter) { + public GetTopWatchedContentRole withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -140,7 +134,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withTag(Optional tag) { + public GetTopWatchedContentRole withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -152,7 +146,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withTagKey(Optional tagKey) { + public GetTopWatchedContentRole withTagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -164,7 +158,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withRole(Optional role) { + public GetTopWatchedContentRole withRole(Optional role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -176,7 +170,7 @@ public class GetTopWatchedContentRole { return this; } - public GetTopWatchedContentRole withThumb(Optional thumb) { + public GetTopWatchedContentRole withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -192,17 +186,17 @@ public class GetTopWatchedContentRole { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.tagKey, other.tagKey) && + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag, @@ -224,17 +218,17 @@ public class GetTopWatchedContentRole { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); - private Optional role = Optional.empty(); + private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +240,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -258,7 +252,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -270,7 +264,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -282,7 +276,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder tagKey(Optional tagKey) { + public Builder tagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -294,7 +288,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder role(Optional role) { + public Builder role(Optional role) { Utils.checkNotNull(role, "role"); this.role = role; return this; @@ -306,7 +300,7 @@ public class GetTopWatchedContentRole { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java index 4b25b246..d547ce2c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java @@ -1,37 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetTranscodeSessionsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("TranscodeSession") - private Optional> transcodeSession; + private Optional> transcodeSession; @JsonCreator public GetTranscodeSessionsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("TranscodeSession") Optional> transcodeSession) { + @JsonProperty("size") Optional size, + @JsonProperty("TranscodeSession") Optional> transcodeSession) { Utils.checkNotNull(size, "size"); Utils.checkNotNull(transcodeSession, "transcodeSession"); this.size = size; @@ -42,16 +44,15 @@ public class GetTranscodeSessionsMediaContainer { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> transcodeSession() { - return (Optional>) transcodeSession; + public Optional> transcodeSession() { + return (Optional>) transcodeSession; } public final static Builder builder() { @@ -64,19 +65,19 @@ public class GetTranscodeSessionsMediaContainer { return this; } - public GetTranscodeSessionsMediaContainer withSize(Optional size) { + public GetTranscodeSessionsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetTranscodeSessionsMediaContainer withTranscodeSession(java.util.List transcodeSession) { + public GetTranscodeSessionsMediaContainer withTranscodeSession(List transcodeSession) { Utils.checkNotNull(transcodeSession, "transcodeSession"); this.transcodeSession = Optional.ofNullable(transcodeSession); return this; } - public GetTranscodeSessionsMediaContainer withTranscodeSession(Optional> transcodeSession) { + public GetTranscodeSessionsMediaContainer withTranscodeSession(Optional> transcodeSession) { Utils.checkNotNull(transcodeSession, "transcodeSession"); this.transcodeSession = transcodeSession; return this; @@ -92,13 +93,13 @@ public class GetTranscodeSessionsMediaContainer { } GetTranscodeSessionsMediaContainer other = (GetTranscodeSessionsMediaContainer) o; return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.transcodeSession, other.transcodeSession); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.transcodeSession, other.transcodeSession); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, transcodeSession); } @@ -112,9 +113,9 @@ public class GetTranscodeSessionsMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> transcodeSession = Optional.empty(); + private Optional> transcodeSession = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,19 +127,19 @@ public class GetTranscodeSessionsMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder transcodeSession(java.util.List transcodeSession) { + public Builder transcodeSession(List transcodeSession) { Utils.checkNotNull(transcodeSession, "transcodeSession"); this.transcodeSession = Optional.ofNullable(transcodeSession); return this; } - public Builder transcodeSession(Optional> transcodeSession) { + public Builder transcodeSession(Optional> transcodeSession) { Utils.checkNotNull(transcodeSession, "transcodeSession"); this.transcodeSession = transcodeSession; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java new file mode 100644 index 00000000..46531ad8 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java index d5c9f72c..74ed73ad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetTranscodeSessionsResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetTranscodeSessionsResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetTranscodeSessionsResponse implements lukehagar.plexapi.plexapi.u } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java index c8813eae..91143bf6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetTranscodeSessionsResponseBody - The Transcode Sessions */ @@ -70,12 +70,12 @@ public class GetTranscodeSessionsResponseBody { } GetTranscodeSessionsResponseBody other = (GetTranscodeSessionsResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java new file mode 100644 index 00000000..edecb30f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * 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/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java similarity index 83% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java index 64495323..252a0b84 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class GetTransientTokenRequest { @@ -87,13 +86,13 @@ public class GetTransientTokenRequest { } GetTransientTokenRequest other = (GetTransientTokenRequest) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.scope, other.scope); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.scope, other.scope); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, scope); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java new file mode 100644 index 00000000..7a042490 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +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(dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public GetTransientTokenRequestBuilder scope(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java index 9c06af81..5ff59722 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class GetTransientTokenResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetTransientTokenResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class GetTransientTokenResponse implements lukehagar.plexapi.plexapi.util } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java index 44794bcd..11d00580 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java @@ -1,57 +1,60 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class GetUpdateStatusMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("canInstall") - private Optional canInstall; + private Optional canInstall; @JsonInclude(Include.NON_ABSENT) @JsonProperty("checkedAt") - private Optional checkedAt; + private Optional checkedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("downloadURL") - private Optional downloadURL; + private Optional downloadURL; @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Release") - private Optional> 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) { + @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"); @@ -70,40 +73,35 @@ public class GetUpdateStatusMediaContainer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional canInstall() { - return (Optional) canInstall; + return canInstall; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional checkedAt() { - return (Optional) checkedAt; + return checkedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional downloadURL() { - return (Optional) downloadURL; + return downloadURL; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> release() { - return (Optional>) release; + public Optional> release() { + return (Optional>) release; } public final static Builder builder() { @@ -116,7 +114,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public GetUpdateStatusMediaContainer withSize(Optional size) { + public GetUpdateStatusMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -128,7 +126,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public GetUpdateStatusMediaContainer withCanInstall(Optional canInstall) { + public GetUpdateStatusMediaContainer withCanInstall(Optional canInstall) { Utils.checkNotNull(canInstall, "canInstall"); this.canInstall = canInstall; return this; @@ -140,7 +138,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public GetUpdateStatusMediaContainer withCheckedAt(Optional checkedAt) { + public GetUpdateStatusMediaContainer withCheckedAt(Optional checkedAt) { Utils.checkNotNull(checkedAt, "checkedAt"); this.checkedAt = checkedAt; return this; @@ -152,7 +150,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public GetUpdateStatusMediaContainer withDownloadURL(Optional downloadURL) { + public GetUpdateStatusMediaContainer withDownloadURL(Optional downloadURL) { Utils.checkNotNull(downloadURL, "downloadURL"); this.downloadURL = downloadURL; return this; @@ -164,19 +162,19 @@ public class GetUpdateStatusMediaContainer { return this; } - public GetUpdateStatusMediaContainer withStatus(Optional status) { + public GetUpdateStatusMediaContainer withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } - public GetUpdateStatusMediaContainer withRelease(java.util.List release) { + public GetUpdateStatusMediaContainer withRelease(List release) { Utils.checkNotNull(release, "release"); this.release = Optional.ofNullable(release); return this; } - public GetUpdateStatusMediaContainer withRelease(Optional> release) { + public GetUpdateStatusMediaContainer withRelease(Optional> release) { Utils.checkNotNull(release, "release"); this.release = release; return this; @@ -192,17 +190,17 @@ public class GetUpdateStatusMediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.canInstall, other.canInstall) && + Objects.deepEquals(this.checkedAt, other.checkedAt) && + Objects.deepEquals(this.downloadURL, other.downloadURL) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.release, other.release); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, canInstall, checkedAt, @@ -224,17 +222,17 @@ public class GetUpdateStatusMediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional canInstall = Optional.empty(); + private Optional canInstall = Optional.empty(); - private Optional checkedAt = Optional.empty(); + private Optional checkedAt = Optional.empty(); - private Optional downloadURL = Optional.empty(); + private Optional downloadURL = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); - private Optional> release = Optional.empty(); + private Optional> release = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +244,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -258,7 +256,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public Builder canInstall(Optional canInstall) { + public Builder canInstall(Optional canInstall) { Utils.checkNotNull(canInstall, "canInstall"); this.canInstall = canInstall; return this; @@ -270,7 +268,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public Builder checkedAt(Optional checkedAt) { + public Builder checkedAt(Optional checkedAt) { Utils.checkNotNull(checkedAt, "checkedAt"); this.checkedAt = checkedAt; return this; @@ -282,7 +280,7 @@ public class GetUpdateStatusMediaContainer { return this; } - public Builder downloadURL(Optional downloadURL) { + public Builder downloadURL(Optional downloadURL) { Utils.checkNotNull(downloadURL, "downloadURL"); this.downloadURL = downloadURL; return this; @@ -294,19 +292,19 @@ public class GetUpdateStatusMediaContainer { return this; } - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } - public Builder release(java.util.List release) { + public Builder release(List release) { Utils.checkNotNull(release, "release"); this.release = Optional.ofNullable(release); return this; } - public Builder release(Optional> release) { + public Builder release(Optional> release) { Utils.checkNotNull(release, "release"); this.release = release; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java new file mode 100644 index 00000000..9ec2fffa --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java index 7de16623..ba310d8f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetUpdateStatusResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetUpdateStatusResponse implements Response { /** * HTTP response content type for this operation @@ -153,15 +156,15 @@ public class GetUpdateStatusResponse implements lukehagar.plexapi.plexapi.utils. } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java index 19a72c2a..c0f32bdd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** * GetUpdateStatusResponseBody - The Server Updates */ @@ -70,12 +70,12 @@ public class GetUpdateStatusResponseBody { } GetUpdateStatusResponseBody other = (GetUpdateStatusResponseBody) o; return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); + Objects.deepEquals(this.mediaContainer, other.mediaContainer); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationResponseStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationResponseStatus.java new file mode 100644 index 00000000..46244662 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationResponseStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * GetUserDetailsAuthenticationResponseStatus - String representation of subscriptionActive + */ +public enum GetUserDetailsAuthenticationResponseStatus { + INACTIVE("Inactive"), + ACTIVE("Active"); + + @JsonValue + private final String value; + + private GetUserDetailsAuthenticationResponseStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationStatus.java new file mode 100644 index 00000000..717908a5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsAuthenticationStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * GetUserDetailsAuthenticationStatus - String representation of subscriptionActive + */ +public enum GetUserDetailsAuthenticationStatus { + INACTIVE("Inactive"), + ACTIVE("Active"); + + @JsonValue + private final String value; + + private GetUserDetailsAuthenticationStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsFeatures.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsFeatures.java new file mode 100644 index 00000000..ffab064e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsFeatures.java @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum GetUserDetailsFeatures { + ANDROID_DOLBY_VISION("Android - Dolby Vision"), + ANDROID_PI_P("Android - PiP"), + CU_SUNSET("CU Sunset"), + HRK_ENABLE_EUR("HRK_enable_EUR"), + TREBLE_SHOW_FEATURES("TREBLE-show-features"), + AD_COUNTDOWN_TIMER("ad-countdown-timer"), + ADAPTIVE_BITRATE("adaptive_bitrate"), + AMAZON_LOOP_DEBUG("amazon-loop-debug"), + AVOD_AD_ANALYSIS("avod-ad-analysis"), + AVOD_NEW_MEDIA("avod-new-media"), + BLACKLIST_GET_SIGNIN("blacklist_get_signin"), + CLIENT_RADIO_STATIONS("client-radio-stations"), + CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), + COLLECTIONS("collections"), + COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), + COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), + COMPANIONS_SONOS("companions_sonos"), + CUSTOM_HOME_REMOVAL("custom-home-removal"), + DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), + DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), + DRM_SUPPORT("drm_support"), + EXCLUDE_RESTRICTIONS("exclude restrictions"), + FEDERATED_AUTH("federated-auth"), + FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), + GUIDED_UPGRADE("guided-upgrade"), + HOME("home"), + INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), + IOS14_PRIVACY_BANNER("ios14-privacy-banner"), + ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), + KEEP_PAYMENT_METHOD("keep-payment-method"), + KEVIN_BACON("kevin-bacon"), + KOREA_CONSENT("korea-consent"), + LE_ISRG_ROOT_X1("le_isrg_root_x1"), + LETS_ENCRYPT("lets_encrypt"), + LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), + LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), + LIVETV("livetv"), + METADATA_SEARCH("metadata_search"), + NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), + NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), + PHOTOS_FAVORITES("photos-favorites"), + PHOTOS_METADATA_EDITION("photos-metadata-edition"), + PMS_HEALTH("pms_health"), + RADIO("radio"), + RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), + SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), + SHARED_SERVER_NOTIFICATION("shared_server_notification"), + SHARED_SOURCE_NOTIFICATION("shared_source_notification"), + SIGNIN_WITH_APPLE("signin_with_apple"), + SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), + TRANSCODER_CACHE("transcoder_cache"), + TUNER_SHARING("tuner-sharing"), + TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), + UNSUPPORTEDTUNERS("unsupportedtuners"), + UPGRADE3DS2("upgrade-3ds2"), + VOD_SCHEMA("vod-schema"), + VOD_CLOUDFLARE("vod_cloudflare"), + WATCH_TOGETHER_INVITE("watch-together-invite"), + WEB_SERVER_DASHBOARD("web_server_dashboard"); + + @JsonValue + private final String value; + + private GetUserDetailsFeatures(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequest.java new file mode 100644 index 00000000..28e14c13 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class GetUserDetailsRequest { + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; + + @JsonCreator + public GetUserDetailsRequest( + String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Plex Authentication Token + */ + public GetUserDetailsRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserDetailsRequest other = (GetUserDetailsRequest) o; + return + Objects.deepEquals(this.xPlexToken, other.xPlexToken); + } + + @Override + public int hashCode() { + return Objects.hash( + xPlexToken); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsRequest.class, + "xPlexToken", xPlexToken); + } + + public final static class Builder { + + private String xPlexToken; + + private Builder() { + // force use of static builder() method + } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetUserDetailsRequest build() { + return new GetUserDetailsRequest( + xPlexToken); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequestBuilder.java new file mode 100644 index 00000000..a68a2a32 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsRequestBuilder.java @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetUserDetailsRequestBuilder { + + private String xPlexToken; + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetUserDetails sdk; + + public GetUserDetailsRequestBuilder(SDKMethodInterfaces.MethodCallGetUserDetails sdk) { + this.sdk = sdk; + } + + public GetUserDetailsRequestBuilder xPlexToken(java.lang.String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } + + public GetUserDetailsRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetUserDetailsRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetUserDetailsResponse call() throws Exception { + + return sdk.getUserDetails( + xPlexToken, + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsResponse.java new file mode 100644 index 00000000..475403ef --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsResponse.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + + +public class GetUserDetailsResponse implements 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; + + /** + * Logged in user details + */ + private Optional userPlexAccount; + + @JsonCreator + public GetUserDetailsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional userPlexAccount) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.userPlexAccount = userPlexAccount; + } + + public GetUserDetailsResponse( + 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; + } + + /** + * Logged in user details + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional userPlexAccount() { + return (Optional) userPlexAccount; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetUserDetailsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetUserDetailsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserDetailsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Logged in user details + */ + public GetUserDetailsResponse withUserPlexAccount(GetUserDetailsUserPlexAccount userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = Optional.ofNullable(userPlexAccount); + return this; + } + + /** + * Logged in user details + */ + public GetUserDetailsResponse withUserPlexAccount(Optional userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = userPlexAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserDetailsResponse other = (GetUserDetailsResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.userPlexAccount, other.userPlexAccount); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + userPlexAccount); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "userPlexAccount", userPlexAccount); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional userPlexAccount = 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; + } + + /** + * Logged in user details + */ + public Builder userPlexAccount(GetUserDetailsUserPlexAccount userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = Optional.ofNullable(userPlexAccount); + return this; + } + + /** + * Logged in user details + */ + public Builder userPlexAccount(Optional userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = userPlexAccount; + return this; + } + + public GetUserDetailsResponse build() { + return new GetUserDetailsResponse( + contentType, + statusCode, + rawResponse, + userPlexAccount); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsStatus.java new file mode 100644 index 00000000..6cef86bb --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsStatus.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum GetUserDetailsStatus { + ONLINE("online"), + OFFLINE("offline"); + + @JsonValue + private final String value; + + private GetUserDetailsStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsSubscription.java new file mode 100644 index 00000000..88add6cc --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsSubscription.java @@ -0,0 +1,433 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class GetUserDetailsSubscription { + + /** + * List of features allowed on your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("features") + private Optional> features; + + /** + * If the account's Plex Pass subscription is active + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("active") + private Optional active; + + /** + * Date the account subscribed to Plex Pass + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscribedAt") + private JsonNullable subscribedAt; + + /** + * String representation of subscriptionActive + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + private Optional status; + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("paymentService") + private JsonNullable paymentService; + + /** + * Name of Plex Pass subscription plan + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("plan") + private JsonNullable plan; + + @JsonCreator + public GetUserDetailsSubscription( + @JsonProperty("features") Optional> features, + @JsonProperty("active") Optional active, + @JsonProperty("subscribedAt") JsonNullable subscribedAt, + @JsonProperty("status") Optional status, + @JsonProperty("paymentService") JsonNullable paymentService, + @JsonProperty("plan") JsonNullable plan) { + Utils.checkNotNull(features, "features"); + Utils.checkNotNull(active, "active"); + Utils.checkNotNull(subscribedAt, "subscribedAt"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(paymentService, "paymentService"); + Utils.checkNotNull(plan, "plan"); + this.features = features; + this.active = active; + this.subscribedAt = subscribedAt; + this.status = status; + this.paymentService = paymentService; + this.plan = plan; + } + + public GetUserDetailsSubscription() { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> features() { + return (Optional>) features; + } + + /** + * If the account's Plex Pass subscription is active + */ + @JsonIgnore + public Optional active() { + return active; + } + + /** + * Date the account subscribed to Plex Pass + */ + @JsonIgnore + public JsonNullable subscribedAt() { + return subscribedAt; + } + + /** + * String representation of subscriptionActive + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional status() { + return (Optional) status; + } + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonIgnore + public JsonNullable paymentService() { + return paymentService; + } + + /** + * Name of Plex Pass subscription plan + */ + @JsonIgnore + public JsonNullable plan() { + return plan; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public GetUserDetailsSubscription withFeatures(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public GetUserDetailsSubscription withFeatures(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public GetUserDetailsSubscription withActive(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public GetUserDetailsSubscription withActive(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public GetUserDetailsSubscription withSubscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public GetUserDetailsSubscription withSubscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public GetUserDetailsSubscription withStatus(GetUserDetailsAuthenticationResponseStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public GetUserDetailsSubscription withStatus(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public GetUserDetailsSubscription withPaymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public GetUserDetailsSubscription withPaymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public GetUserDetailsSubscription withPlan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public GetUserDetailsSubscription withPlan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserDetailsSubscription other = (GetUserDetailsSubscription) o; + return + Objects.deepEquals(this.features, other.features) && + Objects.deepEquals(this.active, other.active) && + Objects.deepEquals(this.subscribedAt, other.subscribedAt) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.paymentService, other.paymentService) && + Objects.deepEquals(this.plan, other.plan); + } + + @Override + public int hashCode() { + return Objects.hash( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsSubscription.class, + "features", features, + "active", active, + "subscribedAt", subscribedAt, + "status", status, + "paymentService", paymentService, + "plan", plan); + } + + public final static class Builder { + + private Optional> features = Optional.empty(); + + private Optional active = Optional.empty(); + + private JsonNullable subscribedAt = JsonNullable.undefined(); + + private Optional status = Optional.empty(); + + private JsonNullable paymentService = JsonNullable.undefined(); + + private JsonNullable plan = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(GetUserDetailsAuthenticationResponseStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + public GetUserDetailsSubscription build() { + return new GetUserDetailsSubscription( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsUserPlexAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsUserPlexAccount.java new file mode 100644 index 00000000..cf06e4c4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserDetailsUserPlexAccount.java @@ -0,0 +1,2213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Deprecated; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * GetUserDetailsUserPlexAccount - Logged in user details + */ + +public class GetUserDetailsUserPlexAccount { + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsent") + private Optional adsConsent; + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsentReminderAt") + private Optional adsConsentReminderAt; + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsentSetAt") + private Optional adsConsentSetAt; + + /** + * Unknown + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("anonymous") + private JsonNullable anonymous; + + /** + * The account token + */ + @JsonProperty("authToken") + private String authToken; + + /** + * If the two-factor authentication backup codes have been created + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("backupCodesCreated") + private Optional backupCodesCreated; + + /** + * If the account has been confirmed + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("confirmed") + private Optional confirmed; + + /** + * The account country + */ + @JsonProperty("country") + private String country; + + /** + * The account email address + */ + @JsonProperty("email") + private String email; + + /** + * If login with email only is enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("emailOnlyAuth") + private Optional emailOnlyAuth; + + /** + * If experimental features are enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("experimentalFeatures") + private Optional experimentalFeatures; + + /** + * Your account full name + */ + @JsonProperty("friendlyName") + private String friendlyName; + + /** + * List of devices your allowed to use with this account + */ + @JsonProperty("entitlements") + private List entitlements; + + /** + * If the account is a Plex Home guest user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("guest") + private Optional guest; + + /** + * If the account has a password + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasPassword") + private Optional hasPassword; + + /** + * If the account is a Plex Home user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("home") + private Optional home; + + /** + * If the account is the Plex Home admin + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("homeAdmin") + private Optional homeAdmin; + + /** + * The number of accounts in the Plex Home + */ + @JsonProperty("homeSize") + private int homeSize; + + /** + * The Plex account ID + */ + @JsonProperty("id") + private int id; + + /** + * Unix epoch datetime the account joined Plex + */ + @JsonProperty("joinedAt") + private int joinedAt; + + /** + * The account locale + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("locale") + private Optional locale; + + /** + * If you are subscribed to the Plex newsletter + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mailingListActive") + private Optional mailingListActive; + + /** + * Your current mailing list status + */ + @JsonProperty("mailingListStatus") + private MailingListStatus mailingListStatus; + + /** + * The maximum number of accounts allowed in the Plex Home + */ + @JsonProperty("maxHomeSize") + private int maxHomeSize; + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pin") + @Deprecated + private Optional pin; + + @JsonProperty("profile") + private UserProfile profile; + + /** + * If the account has a Plex Home PIN enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protected") + private Optional protected_; + + /** + * Unix epoch datetime the authtoken expires + */ + @JsonProperty("rememberExpiresAt") + private int rememberExpiresAt; + + /** + * If the account is a Plex Home managed user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("restricted") + private Optional restricted; + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("roles") + private Optional> roles; + + /** + * Unknown + */ + @JsonProperty("scrobbleTypes") + private String scrobbleTypes; + + @JsonProperty("services") + private List services; + + /** + * If the account’s Plex Pass subscription is active + */ + @JsonProperty("subscription") + private Subscription subscription; + + /** + * Description of the Plex Pass subscription + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("subscriptionDescription") + private Optional subscriptionDescription; + + @JsonProperty("subscriptions") + private List subscriptions; + + /** + * URL of the account thumbnail + */ + @JsonProperty("thumb") + private String thumb; + + /** + * The title of the account (username or friendly name) + */ + @JsonProperty("title") + private String title; + + /** + * If two-factor authentication is enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("twoFactorEnabled") + private Optional twoFactorEnabled; + + /** + * The account username + */ + @JsonProperty("username") + private String username; + + /** + * The account UUID + */ + @JsonProperty("uuid") + private String uuid; + + @JsonCreator + public GetUserDetailsUserPlexAccount( + @JsonProperty("adsConsent") Optional adsConsent, + @JsonProperty("adsConsentReminderAt") Optional adsConsentReminderAt, + @JsonProperty("adsConsentSetAt") Optional adsConsentSetAt, + @JsonProperty("anonymous") JsonNullable anonymous, + @JsonProperty("authToken") String authToken, + @JsonProperty("backupCodesCreated") Optional backupCodesCreated, + @JsonProperty("confirmed") Optional confirmed, + @JsonProperty("country") String country, + @JsonProperty("email") String email, + @JsonProperty("emailOnlyAuth") Optional emailOnlyAuth, + @JsonProperty("experimentalFeatures") Optional experimentalFeatures, + @JsonProperty("friendlyName") String friendlyName, + @JsonProperty("entitlements") List entitlements, + @JsonProperty("guest") Optional guest, + @JsonProperty("hasPassword") Optional hasPassword, + @JsonProperty("home") Optional home, + @JsonProperty("homeAdmin") Optional homeAdmin, + @JsonProperty("homeSize") int homeSize, + @JsonProperty("id") int id, + @JsonProperty("joinedAt") int joinedAt, + @JsonProperty("locale") Optional locale, + @JsonProperty("mailingListActive") Optional mailingListActive, + @JsonProperty("mailingListStatus") MailingListStatus mailingListStatus, + @JsonProperty("maxHomeSize") int maxHomeSize, + @JsonProperty("pin") Optional pin, + @JsonProperty("profile") UserProfile profile, + @JsonProperty("protected") Optional protected_, + @JsonProperty("rememberExpiresAt") int rememberExpiresAt, + @JsonProperty("restricted") Optional restricted, + @JsonProperty("roles") Optional> roles, + @JsonProperty("scrobbleTypes") String scrobbleTypes, + @JsonProperty("services") List services, + @JsonProperty("subscription") Subscription subscription, + @JsonProperty("subscriptionDescription") Optional subscriptionDescription, + @JsonProperty("subscriptions") List subscriptions, + @JsonProperty("thumb") String thumb, + @JsonProperty("title") String title, + @JsonProperty("twoFactorEnabled") Optional twoFactorEnabled, + @JsonProperty("username") String username, + @JsonProperty("uuid") String uuid) { + Utils.checkNotNull(adsConsent, "adsConsent"); + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + Utils.checkNotNull(anonymous, "anonymous"); + Utils.checkNotNull(authToken, "authToken"); + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + Utils.checkNotNull(confirmed, "confirmed"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + Utils.checkNotNull(friendlyName, "friendlyName"); + Utils.checkNotNull(entitlements, "entitlements"); + Utils.checkNotNull(guest, "guest"); + Utils.checkNotNull(hasPassword, "hasPassword"); + Utils.checkNotNull(home, "home"); + Utils.checkNotNull(homeAdmin, "homeAdmin"); + Utils.checkNotNull(homeSize, "homeSize"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(joinedAt, "joinedAt"); + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(mailingListActive, "mailingListActive"); + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + Utils.checkNotNull(pin, "pin"); + Utils.checkNotNull(profile, "profile"); + Utils.checkNotNull(protected_, "protected_"); + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + Utils.checkNotNull(restricted, "restricted"); + Utils.checkNotNull(roles, "roles"); + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + Utils.checkNotNull(services, "services"); + Utils.checkNotNull(subscription, "subscription"); + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + Utils.checkNotNull(subscriptions, "subscriptions"); + Utils.checkNotNull(thumb, "thumb"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + Utils.checkNotNull(username, "username"); + Utils.checkNotNull(uuid, "uuid"); + this.adsConsent = adsConsent; + this.adsConsentReminderAt = adsConsentReminderAt; + this.adsConsentSetAt = adsConsentSetAt; + this.anonymous = anonymous; + this.authToken = authToken; + this.backupCodesCreated = backupCodesCreated; + this.confirmed = confirmed; + this.country = country; + this.email = email; + this.emailOnlyAuth = emailOnlyAuth; + this.experimentalFeatures = experimentalFeatures; + this.friendlyName = friendlyName; + this.entitlements = entitlements; + this.guest = guest; + this.hasPassword = hasPassword; + this.home = home; + this.homeAdmin = homeAdmin; + this.homeSize = homeSize; + this.id = id; + this.joinedAt = joinedAt; + this.locale = locale; + this.mailingListActive = mailingListActive; + this.mailingListStatus = mailingListStatus; + this.maxHomeSize = maxHomeSize; + this.pin = pin; + this.profile = profile; + this.protected_ = protected_; + this.rememberExpiresAt = rememberExpiresAt; + this.restricted = restricted; + this.roles = roles; + this.scrobbleTypes = scrobbleTypes; + this.services = services; + this.subscription = subscription; + this.subscriptionDescription = subscriptionDescription; + this.subscriptions = subscriptions; + this.thumb = thumb; + this.title = title; + this.twoFactorEnabled = twoFactorEnabled; + this.username = username; + this.uuid = uuid; + } + + public GetUserDetailsUserPlexAccount( + String authToken, + String country, + String email, + String friendlyName, + List entitlements, + int homeSize, + int id, + int joinedAt, + MailingListStatus mailingListStatus, + int maxHomeSize, + UserProfile profile, + int rememberExpiresAt, + String scrobbleTypes, + List services, + Subscription subscription, + List subscriptions, + String thumb, + String title, + String username, + String uuid) { + this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid); + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsent() { + return adsConsent; + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsentReminderAt() { + return adsConsentReminderAt; + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsentSetAt() { + return adsConsentSetAt; + } + + /** + * Unknown + */ + @JsonIgnore + public JsonNullable anonymous() { + return anonymous; + } + + /** + * The account token + */ + @JsonIgnore + public String authToken() { + return authToken; + } + + /** + * If the two-factor authentication backup codes have been created + */ + @JsonIgnore + public Optional backupCodesCreated() { + return backupCodesCreated; + } + + /** + * If the account has been confirmed + */ + @JsonIgnore + public Optional confirmed() { + return confirmed; + } + + /** + * The account country + */ + @JsonIgnore + public String country() { + return country; + } + + /** + * The account email address + */ + @JsonIgnore + public String email() { + return email; + } + + /** + * If login with email only is enabled + */ + @JsonIgnore + public Optional emailOnlyAuth() { + return emailOnlyAuth; + } + + /** + * If experimental features are enabled + */ + @JsonIgnore + public Optional experimentalFeatures() { + return experimentalFeatures; + } + + /** + * Your account full name + */ + @JsonIgnore + public String friendlyName() { + return friendlyName; + } + + /** + * List of devices your allowed to use with this account + */ + @JsonIgnore + public List entitlements() { + return entitlements; + } + + /** + * If the account is a Plex Home guest user + */ + @JsonIgnore + public Optional guest() { + return guest; + } + + /** + * If the account has a password + */ + @JsonIgnore + public Optional hasPassword() { + return hasPassword; + } + + /** + * If the account is a Plex Home user + */ + @JsonIgnore + public Optional home() { + return home; + } + + /** + * If the account is the Plex Home admin + */ + @JsonIgnore + public Optional homeAdmin() { + return homeAdmin; + } + + /** + * The number of accounts in the Plex Home + */ + @JsonIgnore + public int homeSize() { + return homeSize; + } + + /** + * The Plex account ID + */ + @JsonIgnore + public int id() { + return id; + } + + /** + * Unix epoch datetime the account joined Plex + */ + @JsonIgnore + public int joinedAt() { + return joinedAt; + } + + /** + * The account locale + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * If you are subscribed to the Plex newsletter + */ + @JsonIgnore + public Optional mailingListActive() { + return mailingListActive; + } + + /** + * Your current mailing list status + */ + @JsonIgnore + public MailingListStatus mailingListStatus() { + return mailingListStatus; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + @JsonIgnore + public int maxHomeSize() { + return maxHomeSize; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + @JsonIgnore + public Optional pin() { + return pin; + } + + @JsonIgnore + public UserProfile profile() { + return profile; + } + + /** + * If the account has a Plex Home PIN enabled + */ + @JsonIgnore + public Optional protected_() { + return protected_; + } + + /** + * Unix epoch datetime the authtoken expires + */ + @JsonIgnore + public int rememberExpiresAt() { + return rememberExpiresAt; + } + + /** + * If the account is a Plex Home managed user + */ + @JsonIgnore + public Optional restricted() { + return restricted; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> roles() { + return (Optional>) roles; + } + + /** + * Unknown + */ + @JsonIgnore + public String scrobbleTypes() { + return scrobbleTypes; + } + + @JsonIgnore + public List services() { + return services; + } + + /** + * If the account’s Plex Pass subscription is active + */ + @JsonIgnore + public Subscription subscription() { + return subscription; + } + + /** + * Description of the Plex Pass subscription + */ + @JsonIgnore + public Optional subscriptionDescription() { + return subscriptionDescription; + } + + @JsonIgnore + public List subscriptions() { + return subscriptions; + } + + /** + * URL of the account thumbnail + */ + @JsonIgnore + public String thumb() { + return thumb; + } + + /** + * The title of the account (username or friendly name) + */ + @JsonIgnore + public String title() { + return title; + } + + /** + * If two-factor authentication is enabled + */ + @JsonIgnore + public Optional twoFactorEnabled() { + return twoFactorEnabled; + } + + /** + * The account username + */ + @JsonIgnore + public String username() { + return username; + } + + /** + * The account UUID + */ + @JsonIgnore + public String uuid() { + return uuid; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsent(boolean adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = Optional.ofNullable(adsConsent); + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsent(Optional adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = adsConsent; + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsentReminderAt(OffsetDateTime adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = Optional.ofNullable(adsConsentReminderAt); + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsentReminderAt(Optional adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = adsConsentReminderAt; + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsentSetAt(OffsetDateTime adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = Optional.ofNullable(adsConsentSetAt); + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAdsConsentSetAt(Optional adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = adsConsentSetAt; + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAnonymous(boolean anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = JsonNullable.of(anonymous); + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withAnonymous(JsonNullable anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = anonymous; + return this; + } + + /** + * The account token + */ + public GetUserDetailsUserPlexAccount withAuthToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public GetUserDetailsUserPlexAccount withBackupCodesCreated(boolean backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = Optional.ofNullable(backupCodesCreated); + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public GetUserDetailsUserPlexAccount withBackupCodesCreated(Optional backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = backupCodesCreated; + return this; + } + + /** + * If the account has been confirmed + */ + public GetUserDetailsUserPlexAccount withConfirmed(boolean confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = Optional.ofNullable(confirmed); + return this; + } + + /** + * If the account has been confirmed + */ + public GetUserDetailsUserPlexAccount withConfirmed(Optional confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = confirmed; + return this; + } + + /** + * The account country + */ + public GetUserDetailsUserPlexAccount withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The account email address + */ + public GetUserDetailsUserPlexAccount withEmail(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * If login with email only is enabled + */ + public GetUserDetailsUserPlexAccount withEmailOnlyAuth(boolean emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = Optional.ofNullable(emailOnlyAuth); + return this; + } + + /** + * If login with email only is enabled + */ + public GetUserDetailsUserPlexAccount withEmailOnlyAuth(Optional emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = emailOnlyAuth; + return this; + } + + /** + * If experimental features are enabled + */ + public GetUserDetailsUserPlexAccount withExperimentalFeatures(boolean experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = Optional.ofNullable(experimentalFeatures); + return this; + } + + /** + * If experimental features are enabled + */ + public GetUserDetailsUserPlexAccount withExperimentalFeatures(Optional experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = experimentalFeatures; + return this; + } + + /** + * Your account full name + */ + public GetUserDetailsUserPlexAccount withFriendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * List of devices your allowed to use with this account + */ + public GetUserDetailsUserPlexAccount withEntitlements(List entitlements) { + Utils.checkNotNull(entitlements, "entitlements"); + this.entitlements = entitlements; + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public GetUserDetailsUserPlexAccount withGuest(boolean guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = Optional.ofNullable(guest); + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public GetUserDetailsUserPlexAccount withGuest(Optional guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = guest; + return this; + } + + /** + * If the account has a password + */ + public GetUserDetailsUserPlexAccount withHasPassword(boolean hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = Optional.ofNullable(hasPassword); + return this; + } + + /** + * If the account has a password + */ + public GetUserDetailsUserPlexAccount withHasPassword(Optional hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = hasPassword; + return this; + } + + /** + * If the account is a Plex Home user + */ + public GetUserDetailsUserPlexAccount withHome(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = Optional.ofNullable(home); + return this; + } + + /** + * If the account is a Plex Home user + */ + public GetUserDetailsUserPlexAccount withHome(Optional home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * If the account is the Plex Home admin + */ + public GetUserDetailsUserPlexAccount withHomeAdmin(boolean homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = Optional.ofNullable(homeAdmin); + return this; + } + + /** + * If the account is the Plex Home admin + */ + public GetUserDetailsUserPlexAccount withHomeAdmin(Optional homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = homeAdmin; + return this; + } + + /** + * The number of accounts in the Plex Home + */ + public GetUserDetailsUserPlexAccount withHomeSize(int homeSize) { + Utils.checkNotNull(homeSize, "homeSize"); + this.homeSize = homeSize; + return this; + } + + /** + * The Plex account ID + */ + public GetUserDetailsUserPlexAccount withId(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Unix epoch datetime the account joined Plex + */ + public GetUserDetailsUserPlexAccount withJoinedAt(int joinedAt) { + Utils.checkNotNull(joinedAt, "joinedAt"); + this.joinedAt = joinedAt; + return this; + } + + /** + * The account locale + */ + public GetUserDetailsUserPlexAccount withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The account locale + */ + public GetUserDetailsUserPlexAccount withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public GetUserDetailsUserPlexAccount withMailingListActive(boolean mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = Optional.ofNullable(mailingListActive); + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public GetUserDetailsUserPlexAccount withMailingListActive(Optional mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = mailingListActive; + return this; + } + + /** + * Your current mailing list status + */ + public GetUserDetailsUserPlexAccount withMailingListStatus(MailingListStatus mailingListStatus) { + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + this.mailingListStatus = mailingListStatus; + return this; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + public GetUserDetailsUserPlexAccount withMaxHomeSize(int maxHomeSize) { + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + this.maxHomeSize = maxHomeSize; + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetUserDetailsUserPlexAccount withPin(String pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = Optional.ofNullable(pin); + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetUserDetailsUserPlexAccount withPin(Optional pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = pin; + return this; + } + + public GetUserDetailsUserPlexAccount withProfile(UserProfile profile) { + Utils.checkNotNull(profile, "profile"); + this.profile = profile; + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public GetUserDetailsUserPlexAccount withProtected(boolean protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = Optional.ofNullable(protected_); + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public GetUserDetailsUserPlexAccount withProtected(Optional protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = protected_; + return this; + } + + /** + * Unix epoch datetime the authtoken expires + */ + public GetUserDetailsUserPlexAccount withRememberExpiresAt(int rememberExpiresAt) { + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + this.rememberExpiresAt = rememberExpiresAt; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public GetUserDetailsUserPlexAccount withRestricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public GetUserDetailsUserPlexAccount withRestricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public GetUserDetailsUserPlexAccount withRoles(List roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = Optional.ofNullable(roles); + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public GetUserDetailsUserPlexAccount withRoles(Optional> roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = roles; + return this; + } + + /** + * Unknown + */ + public GetUserDetailsUserPlexAccount withScrobbleTypes(String scrobbleTypes) { + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + this.scrobbleTypes = scrobbleTypes; + return this; + } + + public GetUserDetailsUserPlexAccount withServices(List services) { + Utils.checkNotNull(services, "services"); + this.services = services; + return this; + } + + /** + * If the account’s Plex Pass subscription is active + */ + public GetUserDetailsUserPlexAccount withSubscription(Subscription subscription) { + Utils.checkNotNull(subscription, "subscription"); + this.subscription = subscription; + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public GetUserDetailsUserPlexAccount withSubscriptionDescription(String subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = Optional.ofNullable(subscriptionDescription); + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public GetUserDetailsUserPlexAccount withSubscriptionDescription(Optional subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = subscriptionDescription; + return this; + } + + public GetUserDetailsUserPlexAccount withSubscriptions(List subscriptions) { + Utils.checkNotNull(subscriptions, "subscriptions"); + this.subscriptions = subscriptions; + return this; + } + + /** + * URL of the account thumbnail + */ + public GetUserDetailsUserPlexAccount withThumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public GetUserDetailsUserPlexAccount withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * If two-factor authentication is enabled + */ + public GetUserDetailsUserPlexAccount withTwoFactorEnabled(boolean twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = Optional.ofNullable(twoFactorEnabled); + return this; + } + + /** + * If two-factor authentication is enabled + */ + public GetUserDetailsUserPlexAccount withTwoFactorEnabled(Optional twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = twoFactorEnabled; + return this; + } + + /** + * The account username + */ + public GetUserDetailsUserPlexAccount withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account UUID + */ + public GetUserDetailsUserPlexAccount withUuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserDetailsUserPlexAccount other = (GetUserDetailsUserPlexAccount) o; + return + Objects.deepEquals(this.adsConsent, other.adsConsent) && + Objects.deepEquals(this.adsConsentReminderAt, other.adsConsentReminderAt) && + Objects.deepEquals(this.adsConsentSetAt, other.adsConsentSetAt) && + Objects.deepEquals(this.anonymous, other.anonymous) && + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.backupCodesCreated, other.backupCodesCreated) && + Objects.deepEquals(this.confirmed, other.confirmed) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.email, other.email) && + Objects.deepEquals(this.emailOnlyAuth, other.emailOnlyAuth) && + Objects.deepEquals(this.experimentalFeatures, other.experimentalFeatures) && + Objects.deepEquals(this.friendlyName, other.friendlyName) && + Objects.deepEquals(this.entitlements, other.entitlements) && + Objects.deepEquals(this.guest, other.guest) && + Objects.deepEquals(this.hasPassword, other.hasPassword) && + Objects.deepEquals(this.home, other.home) && + Objects.deepEquals(this.homeAdmin, other.homeAdmin) && + Objects.deepEquals(this.homeSize, other.homeSize) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.joinedAt, other.joinedAt) && + Objects.deepEquals(this.locale, other.locale) && + Objects.deepEquals(this.mailingListActive, other.mailingListActive) && + Objects.deepEquals(this.mailingListStatus, other.mailingListStatus) && + Objects.deepEquals(this.maxHomeSize, other.maxHomeSize) && + Objects.deepEquals(this.pin, other.pin) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.protected_, other.protected_) && + Objects.deepEquals(this.rememberExpiresAt, other.rememberExpiresAt) && + Objects.deepEquals(this.restricted, other.restricted) && + Objects.deepEquals(this.roles, other.roles) && + Objects.deepEquals(this.scrobbleTypes, other.scrobbleTypes) && + Objects.deepEquals(this.services, other.services) && + Objects.deepEquals(this.subscription, other.subscription) && + Objects.deepEquals(this.subscriptionDescription, other.subscriptionDescription) && + Objects.deepEquals(this.subscriptions, other.subscriptions) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.twoFactorEnabled, other.twoFactorEnabled) && + Objects.deepEquals(this.username, other.username) && + Objects.deepEquals(this.uuid, other.uuid); + } + + @Override + public int hashCode() { + return Objects.hash( + adsConsent, + adsConsentReminderAt, + adsConsentSetAt, + anonymous, + authToken, + backupCodesCreated, + confirmed, + country, + email, + emailOnlyAuth, + experimentalFeatures, + friendlyName, + entitlements, + guest, + hasPassword, + home, + homeAdmin, + homeSize, + id, + joinedAt, + locale, + mailingListActive, + mailingListStatus, + maxHomeSize, + pin, + profile, + protected_, + rememberExpiresAt, + restricted, + roles, + scrobbleTypes, + services, + subscription, + subscriptionDescription, + subscriptions, + thumb, + title, + twoFactorEnabled, + username, + uuid); + } + + @Override + public String toString() { + return Utils.toString(GetUserDetailsUserPlexAccount.class, + "adsConsent", adsConsent, + "adsConsentReminderAt", adsConsentReminderAt, + "adsConsentSetAt", adsConsentSetAt, + "anonymous", anonymous, + "authToken", authToken, + "backupCodesCreated", backupCodesCreated, + "confirmed", confirmed, + "country", country, + "email", email, + "emailOnlyAuth", emailOnlyAuth, + "experimentalFeatures", experimentalFeatures, + "friendlyName", friendlyName, + "entitlements", entitlements, + "guest", guest, + "hasPassword", hasPassword, + "home", home, + "homeAdmin", homeAdmin, + "homeSize", homeSize, + "id", id, + "joinedAt", joinedAt, + "locale", locale, + "mailingListActive", mailingListActive, + "mailingListStatus", mailingListStatus, + "maxHomeSize", maxHomeSize, + "pin", pin, + "profile", profile, + "protected_", protected_, + "rememberExpiresAt", rememberExpiresAt, + "restricted", restricted, + "roles", roles, + "scrobbleTypes", scrobbleTypes, + "services", services, + "subscription", subscription, + "subscriptionDescription", subscriptionDescription, + "subscriptions", subscriptions, + "thumb", thumb, + "title", title, + "twoFactorEnabled", twoFactorEnabled, + "username", username, + "uuid", uuid); + } + + public final static class Builder { + + private Optional adsConsent = Optional.empty(); + + private Optional adsConsentReminderAt = Optional.empty(); + + private Optional adsConsentSetAt = Optional.empty(); + + private JsonNullable anonymous; + + private String authToken; + + private Optional backupCodesCreated; + + private Optional confirmed; + + private String country; + + private String email; + + private Optional emailOnlyAuth; + + private Optional experimentalFeatures; + + private String friendlyName; + + private List entitlements; + + private Optional guest; + + private Optional hasPassword; + + private Optional home; + + private Optional homeAdmin; + + private Integer homeSize; + + private Integer id; + + private Integer joinedAt; + + private Optional locale = Optional.empty(); + + private Optional mailingListActive; + + private MailingListStatus mailingListStatus; + + private Integer maxHomeSize; + + @Deprecated + private Optional pin = Optional.empty(); + + private UserProfile profile; + + private Optional protected_; + + private Integer rememberExpiresAt; + + private Optional restricted; + + private Optional> roles = Optional.empty(); + + private String scrobbleTypes; + + private List services; + + private Subscription subscription; + + private Optional subscriptionDescription = Optional.empty(); + + private List subscriptions; + + private String thumb; + + private String title; + + private Optional twoFactorEnabled; + + private String username; + + private String uuid; + + private Builder() { + // force use of static builder() method + } + + /** + * Unknown + */ + public Builder adsConsent(boolean adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = Optional.ofNullable(adsConsent); + return this; + } + + /** + * Unknown + */ + public Builder adsConsent(Optional adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = adsConsent; + return this; + } + + /** + * Unknown + */ + public Builder adsConsentReminderAt(OffsetDateTime adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = Optional.ofNullable(adsConsentReminderAt); + return this; + } + + /** + * Unknown + */ + public Builder adsConsentReminderAt(Optional adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = adsConsentReminderAt; + return this; + } + + /** + * Unknown + */ + public Builder adsConsentSetAt(OffsetDateTime adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = Optional.ofNullable(adsConsentSetAt); + return this; + } + + /** + * Unknown + */ + public Builder adsConsentSetAt(Optional adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = adsConsentSetAt; + return this; + } + + /** + * Unknown + */ + public Builder anonymous(boolean anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = JsonNullable.of(anonymous); + return this; + } + + /** + * Unknown + */ + public Builder anonymous(JsonNullable anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = anonymous; + return this; + } + + /** + * The account token + */ + public Builder authToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public Builder backupCodesCreated(boolean backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = Optional.ofNullable(backupCodesCreated); + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public Builder backupCodesCreated(Optional backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = backupCodesCreated; + return this; + } + + /** + * If the account has been confirmed + */ + public Builder confirmed(boolean confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = Optional.ofNullable(confirmed); + return this; + } + + /** + * If the account has been confirmed + */ + public Builder confirmed(Optional confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = confirmed; + return this; + } + + /** + * The account country + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The account email address + */ + public Builder email(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * If login with email only is enabled + */ + public Builder emailOnlyAuth(boolean emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = Optional.ofNullable(emailOnlyAuth); + return this; + } + + /** + * If login with email only is enabled + */ + public Builder emailOnlyAuth(Optional emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = emailOnlyAuth; + return this; + } + + /** + * If experimental features are enabled + */ + public Builder experimentalFeatures(boolean experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = Optional.ofNullable(experimentalFeatures); + return this; + } + + /** + * If experimental features are enabled + */ + public Builder experimentalFeatures(Optional experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = experimentalFeatures; + return this; + } + + /** + * Your account full name + */ + public Builder friendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * List of devices your allowed to use with this account + */ + public Builder entitlements(List entitlements) { + Utils.checkNotNull(entitlements, "entitlements"); + this.entitlements = entitlements; + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public Builder guest(boolean guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = Optional.ofNullable(guest); + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public Builder guest(Optional guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = guest; + return this; + } + + /** + * If the account has a password + */ + public Builder hasPassword(boolean hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = Optional.ofNullable(hasPassword); + return this; + } + + /** + * If the account has a password + */ + public Builder hasPassword(Optional hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = hasPassword; + return this; + } + + /** + * If the account is a Plex Home user + */ + public Builder home(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = Optional.ofNullable(home); + return this; + } + + /** + * If the account is a Plex Home user + */ + public Builder home(Optional home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * If the account is the Plex Home admin + */ + public Builder homeAdmin(boolean homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = Optional.ofNullable(homeAdmin); + return this; + } + + /** + * If the account is the Plex Home admin + */ + public Builder homeAdmin(Optional homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = homeAdmin; + return this; + } + + /** + * The number of accounts in the Plex Home + */ + public Builder homeSize(int homeSize) { + Utils.checkNotNull(homeSize, "homeSize"); + this.homeSize = homeSize; + return this; + } + + /** + * The Plex account ID + */ + public Builder id(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Unix epoch datetime the account joined Plex + */ + public Builder joinedAt(int joinedAt) { + Utils.checkNotNull(joinedAt, "joinedAt"); + this.joinedAt = joinedAt; + return this; + } + + /** + * The account locale + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The account locale + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public Builder mailingListActive(boolean mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = Optional.ofNullable(mailingListActive); + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public Builder mailingListActive(Optional mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = mailingListActive; + return this; + } + + /** + * Your current mailing list status + */ + public Builder mailingListStatus(MailingListStatus mailingListStatus) { + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + this.mailingListStatus = mailingListStatus; + return this; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + public Builder maxHomeSize(int maxHomeSize) { + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + this.maxHomeSize = maxHomeSize; + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder pin(String pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = Optional.ofNullable(pin); + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder pin(Optional pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = pin; + return this; + } + + public Builder profile(UserProfile profile) { + Utils.checkNotNull(profile, "profile"); + this.profile = profile; + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public Builder protected_(boolean protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = Optional.ofNullable(protected_); + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public Builder protected_(Optional protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = protected_; + return this; + } + + /** + * Unix epoch datetime the authtoken expires + */ + public Builder rememberExpiresAt(int rememberExpiresAt) { + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + this.rememberExpiresAt = rememberExpiresAt; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public Builder roles(List roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = Optional.ofNullable(roles); + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public Builder roles(Optional> roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = roles; + return this; + } + + /** + * Unknown + */ + public Builder scrobbleTypes(String scrobbleTypes) { + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + this.scrobbleTypes = scrobbleTypes; + return this; + } + + public Builder services(List services) { + Utils.checkNotNull(services, "services"); + this.services = services; + return this; + } + + /** + * If the account’s Plex Pass subscription is active + */ + public Builder subscription(Subscription subscription) { + Utils.checkNotNull(subscription, "subscription"); + this.subscription = subscription; + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public Builder subscriptionDescription(String subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = Optional.ofNullable(subscriptionDescription); + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public Builder subscriptionDescription(Optional subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = subscriptionDescription; + return this; + } + + public Builder subscriptions(List subscriptions) { + Utils.checkNotNull(subscriptions, "subscriptions"); + this.subscriptions = subscriptions; + return this; + } + + /** + * URL of the account thumbnail + */ + public Builder thumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * If two-factor authentication is enabled + */ + public Builder twoFactorEnabled(boolean twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = Optional.ofNullable(twoFactorEnabled); + return this; + } + + /** + * If two-factor authentication is enabled + */ + public Builder twoFactorEnabled(Optional twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = twoFactorEnabled; + return this; + } + + /** + * The account username + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account UUID + */ + public Builder uuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + public GetUserDetailsUserPlexAccount build() { + if (anonymous == null) { + anonymous = _SINGLETON_VALUE_Anonymous.value(); + } + if (backupCodesCreated == null) { + backupCodesCreated = _SINGLETON_VALUE_BackupCodesCreated.value(); + } + if (confirmed == null) { + confirmed = _SINGLETON_VALUE_Confirmed.value(); + } + if (emailOnlyAuth == null) { + emailOnlyAuth = _SINGLETON_VALUE_EmailOnlyAuth.value(); + } + if (experimentalFeatures == null) { + experimentalFeatures = _SINGLETON_VALUE_ExperimentalFeatures.value(); + } + if (guest == null) { + guest = _SINGLETON_VALUE_Guest.value(); + } + if (hasPassword == null) { + hasPassword = _SINGLETON_VALUE_HasPassword.value(); + } + if (home == null) { + home = _SINGLETON_VALUE_Home.value(); + } + if (homeAdmin == null) { + homeAdmin = _SINGLETON_VALUE_HomeAdmin.value(); + } + if (mailingListActive == null) { + mailingListActive = _SINGLETON_VALUE_MailingListActive.value(); + } + if (protected_ == null) { + protected_ = _SINGLETON_VALUE_Protected.value(); + } + if (restricted == null) { + restricted = _SINGLETON_VALUE_Restricted.value(); + } + if (twoFactorEnabled == null) { + twoFactorEnabled = _SINGLETON_VALUE_TwoFactorEnabled.value(); + } return new GetUserDetailsUserPlexAccount( + adsConsent, + adsConsentReminderAt, + adsConsentSetAt, + anonymous, + authToken, + backupCodesCreated, + confirmed, + country, + email, + emailOnlyAuth, + experimentalFeatures, + friendlyName, + entitlements, + guest, + hasPassword, + home, + homeAdmin, + homeSize, + id, + joinedAt, + locale, + mailingListActive, + mailingListStatus, + maxHomeSize, + pin, + profile, + protected_, + rememberExpiresAt, + restricted, + roles, + scrobbleTypes, + services, + subscription, + subscriptionDescription, + subscriptions, + thumb, + title, + twoFactorEnabled, + username, + uuid); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Anonymous = + new LazySingletonValue<>( + "anonymous", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_BackupCodesCreated = + new LazySingletonValue<>( + "backupCodesCreated", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Confirmed = + new LazySingletonValue<>( + "confirmed", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_EmailOnlyAuth = + new LazySingletonValue<>( + "emailOnlyAuth", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ExperimentalFeatures = + new LazySingletonValue<>( + "experimentalFeatures", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Guest = + new LazySingletonValue<>( + "guest", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_HasPassword = + new LazySingletonValue<>( + "hasPassword", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Home = + new LazySingletonValue<>( + "home", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_HomeAdmin = + new LazySingletonValue<>( + "homeAdmin", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_MailingListActive = + new LazySingletonValue<>( + "mailingListActive", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Protected = + new LazySingletonValue<>( + "protected", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Restricted = + new LazySingletonValue<>( + "restricted", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TwoFactorEnabled = + new LazySingletonValue<>( + "twoFactorEnabled", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java new file mode 100644 index 00000000..af3328ca --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetUserFriendsRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetUserFriends sdk; + + public GetUserFriendsRequestBuilder(SDKMethodInterfaces.MethodCallGetUserFriends sdk) { + this.sdk = sdk; + } + + public GetUserFriendsRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetUserFriendsRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetUserFriendsResponse call() throws Exception { + + return sdk.getUserFriends( + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java new file mode 100644 index 00000000..3c52f621 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java @@ -0,0 +1,252 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class GetUserFriendsResponse implements 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; + + /** + * Friends Data + */ + private Optional> friends; + + @JsonCreator + public GetUserFriendsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional> friends) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(friends, "friends"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.friends = friends; + } + + public GetUserFriendsResponse( + 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; + } + + /** + * Friends Data + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> friends() { + return (Optional>) friends; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetUserFriendsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetUserFriendsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetUserFriendsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Friends Data + */ + public GetUserFriendsResponse withFriends(List friends) { + Utils.checkNotNull(friends, "friends"); + this.friends = Optional.ofNullable(friends); + return this; + } + + /** + * Friends Data + */ + public GetUserFriendsResponse withFriends(Optional> friends) { + Utils.checkNotNull(friends, "friends"); + this.friends = friends; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserFriendsResponse other = (GetUserFriendsResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.friends, other.friends); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + friends); + } + + @Override + public String toString() { + return Utils.toString(GetUserFriendsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "friends", friends); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional> friends = 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; + } + + /** + * Friends Data + */ + public Builder friends(List friends) { + Utils.checkNotNull(friends, "friends"); + this.friends = Optional.ofNullable(friends); + return this; + } + + /** + * Friends Data + */ + public Builder friends(Optional> friends) { + Utils.checkNotNull(friends, "friends"); + this.friends = friends; + return this; + } + + public GetUserFriendsResponse build() { + return new GetUserFriendsResponse( + contentType, + statusCode, + rawResponse, + friends); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java similarity index 76% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java index 38a3a661..7ac3950c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java @@ -1,28 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetWatchlistRequest { + +public class GetWatchListRequest { /** * Filter */ @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=filter") - private PathParamFilter filter; + private Filter filter; /** * In the format "field:dir". Available fields are "watchlistedAt" (Added At), @@ -31,7 +34,7 @@ public class GetWatchlistRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") - private Optional sort; + private Optional sort; /** * The type of library to filter. Can be "movie" or "show", or all if not present. @@ -46,7 +49,7 @@ public class GetWatchlistRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=maxresults") - private Optional maxresults; + private Optional maxresults; /** * include collections in the results @@ -62,70 +65,72 @@ public class GetWatchlistRequest { @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. + * By default this is 0 * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Start") - private Optional xPlexContainerStart; + 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. + * By default this is 50 * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size") - private Optional xPlexContainerSize; + private Optional xPlexContainerSize; + + /** + * Plex Authentication Token + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") + private String xPlexToken; @JsonCreator - public GetWatchlistRequest( - PathParamFilter filter, - Optional sort, + public GetWatchListRequest( + Filter filter, + Optional sort, Optional libtype, - Optional maxresults, + Optional maxresults, Optional includeCollections, Optional includeExternalMedia, - String xPlexToken, - Optional xPlexContainerStart, - Optional xPlexContainerSize) { + Optional xPlexContainerStart, + Optional xPlexContainerSize, + String xPlexToken) { 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"); + Utils.checkNotNull(xPlexToken, "xPlexToken"); 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; + this.xPlexToken = xPlexToken; } - public GetWatchlistRequest( - PathParamFilter filter, + public GetWatchListRequest( + Filter filter, String xPlexToken) { - this(filter, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), xPlexToken, Optional.empty(), Optional.empty()); + this(filter, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), xPlexToken); } /** * Filter */ @JsonIgnore - public PathParamFilter filter() { + public Filter filter() { return filter; } @@ -135,10 +140,9 @@ public class GetWatchlistRequest { * "dir" can be "asc" or "desc" * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sort() { - return (Optional) sort; + return sort; } /** @@ -156,10 +160,9 @@ public class GetWatchlistRequest { * If the number of items exceeds the limit, the response will be paginated. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional maxresults() { - return (Optional) maxresults; + return maxresults; } /** @@ -182,34 +185,34 @@ public class GetWatchlistRequest { 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. + * By default this is 0 * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional xPlexContainerStart() { - return (Optional) xPlexContainerStart; + return 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. + * By default this is 50 * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional xPlexContainerSize() { - return (Optional) xPlexContainerSize; + return xPlexContainerSize; + } + + /** + * Plex Authentication Token + */ + @JsonIgnore + public String xPlexToken() { + return xPlexToken; } public final static Builder builder() { @@ -219,7 +222,7 @@ public class GetWatchlistRequest { /** * Filter */ - public GetWatchlistRequest withFilter(PathParamFilter filter) { + public GetWatchListRequest withFilter(Filter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -231,7 +234,7 @@ public class GetWatchlistRequest { * "dir" can be "asc" or "desc" * */ - public GetWatchlistRequest withSort(String sort) { + public GetWatchListRequest withSort(String sort) { Utils.checkNotNull(sort, "sort"); this.sort = Optional.ofNullable(sort); return this; @@ -243,7 +246,7 @@ public class GetWatchlistRequest { * "dir" can be "asc" or "desc" * */ - public GetWatchlistRequest withSort(Optional sort) { + public GetWatchListRequest withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; @@ -253,7 +256,7 @@ public class GetWatchlistRequest { * The type of library to filter. Can be "movie" or "show", or all if not present. * */ - public GetWatchlistRequest withLibtype(Libtype libtype) { + public GetWatchListRequest withLibtype(Libtype libtype) { Utils.checkNotNull(libtype, "libtype"); this.libtype = Optional.ofNullable(libtype); return this; @@ -263,7 +266,7 @@ public class GetWatchlistRequest { * The type of library to filter. Can be "movie" or "show", or all if not present. * */ - public GetWatchlistRequest withLibtype(Optional libtype) { + public GetWatchListRequest withLibtype(Optional libtype) { Utils.checkNotNull(libtype, "libtype"); this.libtype = libtype; return this; @@ -274,7 +277,7 @@ public class GetWatchlistRequest { * If the number of items exceeds the limit, the response will be paginated. * */ - public GetWatchlistRequest withMaxresults(int maxresults) { + public GetWatchListRequest withMaxresults(int maxresults) { Utils.checkNotNull(maxresults, "maxresults"); this.maxresults = Optional.ofNullable(maxresults); return this; @@ -285,7 +288,7 @@ public class GetWatchlistRequest { * If the number of items exceeds the limit, the response will be paginated. * */ - public GetWatchlistRequest withMaxresults(Optional maxresults) { + public GetWatchListRequest withMaxresults(Optional maxresults) { Utils.checkNotNull(maxresults, "maxresults"); this.maxresults = maxresults; return this; @@ -295,7 +298,7 @@ public class GetWatchlistRequest { * include collections in the results * */ - public GetWatchlistRequest withIncludeCollections(IncludeCollections includeCollections) { + public GetWatchListRequest withIncludeCollections(IncludeCollections includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); this.includeCollections = Optional.ofNullable(includeCollections); return this; @@ -305,7 +308,7 @@ public class GetWatchlistRequest { * include collections in the results * */ - public GetWatchlistRequest withIncludeCollections(Optional includeCollections) { + public GetWatchListRequest withIncludeCollections(Optional includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); this.includeCollections = includeCollections; return this; @@ -315,7 +318,7 @@ public class GetWatchlistRequest { * include external media in the results * */ - public GetWatchlistRequest withIncludeExternalMedia(IncludeExternalMedia includeExternalMedia) { + public GetWatchListRequest withIncludeExternalMedia(IncludeExternalMedia includeExternalMedia) { Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); this.includeExternalMedia = Optional.ofNullable(includeExternalMedia); return this; @@ -325,27 +328,19 @@ public class GetWatchlistRequest { * include external media in the results * */ - public GetWatchlistRequest withIncludeExternalMedia(Optional includeExternalMedia) { + 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. + * By default this is 0 * */ - public GetWatchlistRequest withXPlexContainerStart(int xPlexContainerStart) { + public GetWatchListRequest withXPlexContainerStart(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart); return this; @@ -354,9 +349,10 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 0 * */ - public GetWatchlistRequest withXPlexContainerStart(Optional xPlexContainerStart) { + public GetWatchListRequest withXPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); this.xPlexContainerStart = xPlexContainerStart; return this; @@ -365,9 +361,10 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 50 * */ - public GetWatchlistRequest withXPlexContainerSize(int xPlexContainerSize) { + public GetWatchListRequest withXPlexContainerSize(int xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize); return this; @@ -376,13 +373,23 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 50 * */ - public GetWatchlistRequest withXPlexContainerSize(Optional xPlexContainerSize) { + public GetWatchListRequest withXPlexContainerSize(Optional xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); this.xPlexContainerSize = xPlexContainerSize; return this; } + + /** + * Plex Authentication Token + */ + public GetWatchListRequest withXPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } @Override public boolean equals(java.lang.Object o) { @@ -392,66 +399,66 @@ public class GetWatchlistRequest { if (o == null || getClass() != o.getClass()) { return false; } - GetWatchlistRequest other = (GetWatchlistRequest) o; + 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); + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.sort, other.sort) && + Objects.deepEquals(this.libtype, other.libtype) && + Objects.deepEquals(this.maxresults, other.maxresults) && + Objects.deepEquals(this.includeCollections, other.includeCollections) && + Objects.deepEquals(this.includeExternalMedia, other.includeExternalMedia) && + Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) && + Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize) && + Objects.deepEquals(this.xPlexToken, other.xPlexToken); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( filter, sort, libtype, maxresults, includeCollections, includeExternalMedia, - xPlexToken, xPlexContainerStart, - xPlexContainerSize); + xPlexContainerSize, + xPlexToken); } @Override public String toString() { - return Utils.toString(GetWatchlistRequest.class, + return Utils.toString(GetWatchListRequest.class, "filter", filter, "sort", sort, "libtype", libtype, "maxresults", maxresults, "includeCollections", includeCollections, "includeExternalMedia", includeExternalMedia, - "xPlexToken", xPlexToken, "xPlexContainerStart", xPlexContainerStart, - "xPlexContainerSize", xPlexContainerSize); + "xPlexContainerSize", xPlexContainerSize, + "xPlexToken", xPlexToken); } public final static class Builder { - private PathParamFilter filter; + private Filter filter; - private Optional sort = Optional.empty(); + private Optional sort = Optional.empty(); private Optional libtype = Optional.empty(); - private Optional maxresults = Optional.empty(); + private Optional maxresults = Optional.empty(); private Optional includeCollections = Optional.empty(); private Optional includeExternalMedia = Optional.empty(); - private String xPlexToken; + private Optional xPlexContainerStart; - private Optional xPlexContainerStart = Optional.empty(); + private Optional xPlexContainerSize; - private Optional xPlexContainerSize = Optional.empty(); + private String xPlexToken; private Builder() { // force use of static builder() method @@ -460,7 +467,7 @@ public class GetWatchlistRequest { /** * Filter */ - public Builder filter(PathParamFilter filter) { + public Builder filter(Filter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -484,7 +491,7 @@ public class GetWatchlistRequest { * "dir" can be "asc" or "desc" * */ - public Builder sort(Optional sort) { + public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); this.sort = sort; return this; @@ -526,7 +533,7 @@ public class GetWatchlistRequest { * If the number of items exceeds the limit, the response will be paginated. * */ - public Builder maxresults(Optional maxresults) { + public Builder maxresults(Optional maxresults) { Utils.checkNotNull(maxresults, "maxresults"); this.maxresults = maxresults; return this; @@ -572,18 +579,10 @@ public class GetWatchlistRequest { 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. + * By default this is 0 * */ public Builder xPlexContainerStart(int xPlexContainerStart) { @@ -595,9 +594,10 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 0 * */ - public Builder xPlexContainerStart(Optional xPlexContainerStart) { + public Builder xPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); this.xPlexContainerStart = xPlexContainerStart; return this; @@ -606,6 +606,7 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 50 * */ public Builder xPlexContainerSize(int xPlexContainerSize) { @@ -617,26 +618,53 @@ public class GetWatchlistRequest { /** * 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. + * By default this is 50 * */ - public Builder xPlexContainerSize(Optional xPlexContainerSize) { + public Builder xPlexContainerSize(Optional xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); this.xPlexContainerSize = xPlexContainerSize; return this; } + + /** + * Plex Authentication Token + */ + public Builder xPlexToken(String xPlexToken) { + Utils.checkNotNull(xPlexToken, "xPlexToken"); + this.xPlexToken = xPlexToken; + return this; + } - public GetWatchlistRequest build() { - return new GetWatchlistRequest( + public GetWatchListRequest build() { + if (xPlexContainerStart == null) { + xPlexContainerStart = _SINGLETON_VALUE_XPlexContainerStart.value(); + } + if (xPlexContainerSize == null) { + xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); + } return new GetWatchListRequest( filter, sort, libtype, maxresults, includeCollections, includeExternalMedia, - xPlexToken, xPlexContainerStart, - xPlexContainerSize); + xPlexContainerSize, + xPlexToken); } + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerStart = + new LazySingletonValue<>( + "X-Plex-Container-Start", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_XPlexContainerSize = + new LazySingletonValue<>( + "X-Plex-Container-Size", + "50", + new TypeReference>() {}); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java new file mode 100644 index 00000000..6fba15a0 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetWatchListRequestBuilder { + + private GetWatchListRequest request; + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetWatchList sdk; + + public GetWatchListRequestBuilder(SDKMethodInterfaces.MethodCallGetWatchList sdk) { + this.sdk = sdk; + } + + public GetWatchListRequestBuilder request(dev.plexapi.sdk.models.operations.GetWatchListRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetWatchListRequestBuilder serverURL(java.lang.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/dev/plexapi/sdk/models/operations/GetWatchListResponse.java similarity index 73% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java index 4bf18090..b21f5c0f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class GetWatchListResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +39,14 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Watchlist Data */ - private Optional object; + private Optional object; @JsonCreator - public GetWatchlistResponse( + public GetWatchListResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional object) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -54,7 +57,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res this.object = object; } - public GetWatchlistResponse( + public GetWatchListResponse( String contentType, int statusCode, HttpResponse rawResponse) { @@ -90,8 +93,8 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional object() { + return (Optional) object; } public final static Builder builder() { @@ -101,7 +104,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * HTTP response content type for this operation */ - public GetWatchlistResponse withContentType(String contentType) { + public GetWatchListResponse withContentType(String contentType) { Utils.checkNotNull(contentType, "contentType"); this.contentType = contentType; return this; @@ -110,7 +113,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * HTTP response status code for this operation */ - public GetWatchlistResponse withStatusCode(int statusCode) { + public GetWatchListResponse withStatusCode(int statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -119,7 +122,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Raw HTTP response; suitable for custom response parsing */ - public GetWatchlistResponse withRawResponse(HttpResponse rawResponse) { + public GetWatchListResponse withRawResponse(HttpResponse rawResponse) { Utils.checkNotNull(rawResponse, "rawResponse"); this.rawResponse = rawResponse; return this; @@ -128,7 +131,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Watchlist Data */ - public GetWatchlistResponse withObject(GetWatchlistResponseBody object) { + public GetWatchListResponse withObject(GetWatchListResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -137,7 +140,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Watchlist Data */ - public GetWatchlistResponse withObject(Optional object) { + public GetWatchListResponse withObject(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -151,17 +154,17 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res if (o == null || getClass() != o.getClass()) { return false; } - GetWatchlistResponse other = (GetWatchlistResponse) o; + 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.object, other.object); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -170,7 +173,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res @Override public String toString() { - return Utils.toString(GetWatchlistResponse.class, + return Utils.toString(GetWatchListResponse.class, "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, @@ -185,7 +188,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +224,7 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Watchlist Data */ - public Builder object(GetWatchlistResponseBody object) { + public Builder object(GetWatchListResponseBody object) { Utils.checkNotNull(object, "object"); this.object = Optional.ofNullable(object); return this; @@ -230,14 +233,14 @@ public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Res /** * Watchlist Data */ - public Builder object(Optional object) { + public Builder object(Optional object) { Utils.checkNotNull(object, "object"); this.object = object; return this; } - public GetWatchlistResponse build() { - return new GetWatchlistResponse( + public GetWatchListResponse build() { + return new GetWatchListResponse( contentType, statusCode, rawResponse, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java rename to src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java index 1e2eacdc..33f3f7f7 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java @@ -1,65 +1,67 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + /** - * GetWatchlistResponseBody - Watchlist Data + * GetWatchListResponseBody - Watchlist Data */ -public class GetWatchlistResponseBody { +public class GetWatchListResponseBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionID") - private Optional librarySectionID; + private Optional librarySectionID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; + private Optional librarySectionTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("offset") - private Optional offset; + private Optional offset; @JsonInclude(Include.NON_ABSENT) @JsonProperty("totalSize") - private Optional totalSize; + private Optional totalSize; @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") - private Optional identifier; + private Optional identifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + 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"); @@ -76,135 +78,129 @@ public class GetWatchlistResponseBody { this.metadata = metadata; } - public GetWatchlistResponseBody() { + 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; + return librarySectionID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; + return librarySectionTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional offset() { - return (Optional) offset; + return offset; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional totalSize() { - return (Optional) totalSize; + return totalSize; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional identifier() { - return (Optional) identifier; + return identifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { return new Builder(); } - public GetWatchlistResponseBody withLibrarySectionID(String librarySectionID) { + public GetWatchListResponseBody withLibrarySectionID(String librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = Optional.ofNullable(librarySectionID); return this; } - public GetWatchlistResponseBody withLibrarySectionID(Optional librarySectionID) { + public GetWatchListResponseBody withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; } - public GetWatchlistResponseBody withLibrarySectionTitle(String librarySectionTitle) { + public GetWatchListResponseBody withLibrarySectionTitle(String librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); return this; } - public GetWatchlistResponseBody withLibrarySectionTitle(Optional librarySectionTitle) { + public GetWatchListResponseBody withLibrarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; } - public GetWatchlistResponseBody withOffset(int offset) { + public GetWatchListResponseBody withOffset(int offset) { Utils.checkNotNull(offset, "offset"); this.offset = Optional.ofNullable(offset); return this; } - public GetWatchlistResponseBody withOffset(Optional offset) { + public GetWatchListResponseBody withOffset(Optional offset) { Utils.checkNotNull(offset, "offset"); this.offset = offset; return this; } - public GetWatchlistResponseBody withTotalSize(int totalSize) { + public GetWatchListResponseBody withTotalSize(int totalSize) { Utils.checkNotNull(totalSize, "totalSize"); this.totalSize = Optional.ofNullable(totalSize); return this; } - public GetWatchlistResponseBody withTotalSize(Optional totalSize) { + public GetWatchListResponseBody withTotalSize(Optional totalSize) { Utils.checkNotNull(totalSize, "totalSize"); this.totalSize = totalSize; return this; } - public GetWatchlistResponseBody withIdentifier(String identifier) { + public GetWatchListResponseBody withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = Optional.ofNullable(identifier); return this; } - public GetWatchlistResponseBody withIdentifier(Optional identifier) { + public GetWatchListResponseBody withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; } - public GetWatchlistResponseBody withSize(int size) { + public GetWatchListResponseBody withSize(int size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public GetWatchlistResponseBody withSize(Optional size) { + public GetWatchListResponseBody withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public GetWatchlistResponseBody withMetadata(java.util.List metadata) { + public GetWatchListResponseBody withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public GetWatchlistResponseBody withMetadata(Optional> metadata) { + public GetWatchListResponseBody withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -218,20 +214,20 @@ public class GetWatchlistResponseBody { if (o == null || getClass() != o.getClass()) { return false; } - GetWatchlistResponseBody other = (GetWatchlistResponseBody) o; + 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); + Objects.deepEquals(this.librarySectionID, other.librarySectionID) && + Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && + Objects.deepEquals(this.offset, other.offset) && + Objects.deepEquals(this.totalSize, other.totalSize) && + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( librarySectionID, librarySectionTitle, offset, @@ -243,7 +239,7 @@ public class GetWatchlistResponseBody { @Override public String toString() { - return Utils.toString(GetWatchlistResponseBody.class, + return Utils.toString(GetWatchListResponseBody.class, "librarySectionID", librarySectionID, "librarySectionTitle", librarySectionTitle, "offset", offset, @@ -255,19 +251,19 @@ public class GetWatchlistResponseBody { public final static class Builder { - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); - private Optional librarySectionTitle = Optional.empty(); + private Optional librarySectionTitle = Optional.empty(); - private Optional offset = Optional.empty(); + private Optional offset = Optional.empty(); - private Optional totalSize = Optional.empty(); + private Optional totalSize = Optional.empty(); - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +275,7 @@ public class GetWatchlistResponseBody { return this; } - public Builder librarySectionID(Optional librarySectionID) { + public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; @@ -291,7 +287,7 @@ public class GetWatchlistResponseBody { return this; } - public Builder librarySectionTitle(Optional librarySectionTitle) { + public Builder librarySectionTitle(Optional librarySectionTitle) { Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); this.librarySectionTitle = librarySectionTitle; return this; @@ -303,7 +299,7 @@ public class GetWatchlistResponseBody { return this; } - public Builder offset(Optional offset) { + public Builder offset(Optional offset) { Utils.checkNotNull(offset, "offset"); this.offset = offset; return this; @@ -315,7 +311,7 @@ public class GetWatchlistResponseBody { return this; } - public Builder totalSize(Optional totalSize) { + public Builder totalSize(Optional totalSize) { Utils.checkNotNull(totalSize, "totalSize"); this.totalSize = totalSize; return this; @@ -327,7 +323,7 @@ public class GetWatchlistResponseBody { return this; } - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -339,26 +335,26 @@ public class GetWatchlistResponseBody { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; } - public GetWatchlistResponseBody build() { - return new GetWatchlistResponseBody( + public GetWatchListResponseBody build() { + return new GetWatchListResponseBody( librarySectionID, librarySectionTitle, offset, diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java b/src/main/java/dev/plexapi/sdk/models/operations/Guids.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java rename to src/main/java/dev/plexapi/sdk/models/operations/Guids.java index cd18d0fb..9f512a57 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Guids.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Guids { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public Guids( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -35,10 +34,9 @@ public class Guids { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Guids { return this; } - public Guids withId(Optional id) { + public Guids withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -67,12 +65,12 @@ public class Guids { } Guids other = (Guids) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -84,7 +82,7 @@ public class Guids { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Guids { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java b/src/main/java/dev/plexapi/sdk/models/operations/Hub.java similarity index 64% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java rename to src/main/java/dev/plexapi/sdk/models/operations/Hub.java index 4ae7a25a..d102f489 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Hub.java @@ -1,82 +1,85 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Hub { @JsonInclude(Include.NON_ABSENT) @JsonProperty("hubKey") - private Optional hubKey; + private Optional hubKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hubIdentifier") - private Optional hubIdentifier; + private Optional hubIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("context") - private Optional context; + private Optional context; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("more") - private Optional more; + private Optional more; @JsonInclude(Include.NON_ABSENT) @JsonProperty("style") - private Optional style; + private Optional style; @JsonInclude(Include.NON_ABSENT) @JsonProperty("promoted") - private Optional promoted; + private Optional promoted; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Metadata") - private Optional> 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) { + @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"); @@ -105,70 +108,60 @@ public class 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; + return hubKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hubIdentifier() { - return (Optional) hubIdentifier; + return hubIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional context() { - return (Optional) context; + return context; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional more() { - return (Optional) more; + return more; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional style() { - return (Optional) style; + return style; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional promoted() { - return (Optional) promoted; + return promoted; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; + public Optional> metadata() { + return (Optional>) metadata; } public final static Builder builder() { @@ -181,7 +174,7 @@ public class Hub { return this; } - public Hub withHubKey(Optional hubKey) { + public Hub withHubKey(Optional hubKey) { Utils.checkNotNull(hubKey, "hubKey"); this.hubKey = hubKey; return this; @@ -193,7 +186,7 @@ public class Hub { return this; } - public Hub withKey(Optional key) { + public Hub withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -205,7 +198,7 @@ public class Hub { return this; } - public Hub withTitle(Optional title) { + public Hub withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -217,7 +210,7 @@ public class Hub { return this; } - public Hub withType(Optional type) { + public Hub withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -229,7 +222,7 @@ public class Hub { return this; } - public Hub withHubIdentifier(Optional hubIdentifier) { + public Hub withHubIdentifier(Optional hubIdentifier) { Utils.checkNotNull(hubIdentifier, "hubIdentifier"); this.hubIdentifier = hubIdentifier; return this; @@ -241,7 +234,7 @@ public class Hub { return this; } - public Hub withContext(Optional context) { + public Hub withContext(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -253,7 +246,7 @@ public class Hub { return this; } - public Hub withSize(Optional size) { + public Hub withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -265,7 +258,7 @@ public class Hub { return this; } - public Hub withMore(Optional more) { + public Hub withMore(Optional more) { Utils.checkNotNull(more, "more"); this.more = more; return this; @@ -277,7 +270,7 @@ public class Hub { return this; } - public Hub withStyle(Optional style) { + public Hub withStyle(Optional style) { Utils.checkNotNull(style, "style"); this.style = style; return this; @@ -289,19 +282,19 @@ public class Hub { return this; } - public Hub withPromoted(Optional promoted) { + public Hub withPromoted(Optional promoted) { Utils.checkNotNull(promoted, "promoted"); this.promoted = promoted; return this; } - public Hub withMetadata(java.util.List metadata) { + public Hub withMetadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Hub withMetadata(Optional> metadata) { + public Hub withMetadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -317,22 +310,22 @@ public class Hub { } 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); + Objects.deepEquals(this.hubKey, other.hubKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.hubIdentifier, other.hubIdentifier) && + Objects.deepEquals(this.context, other.context) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.more, other.more) && + Objects.deepEquals(this.style, other.style) && + Objects.deepEquals(this.promoted, other.promoted) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hubKey, key, title, @@ -364,27 +357,27 @@ public class Hub { public final static class Builder { - private Optional hubKey = Optional.empty(); + private Optional hubKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional hubIdentifier = Optional.empty(); + private Optional hubIdentifier = Optional.empty(); - private Optional context = Optional.empty(); + private Optional context = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional more = Optional.empty(); + private Optional more = Optional.empty(); - private Optional style = Optional.empty(); + private Optional style = Optional.empty(); - private Optional promoted = Optional.empty(); + private Optional promoted = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -396,7 +389,7 @@ public class Hub { return this; } - public Builder hubKey(Optional hubKey) { + public Builder hubKey(Optional hubKey) { Utils.checkNotNull(hubKey, "hubKey"); this.hubKey = hubKey; return this; @@ -408,7 +401,7 @@ public class Hub { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -420,7 +413,7 @@ public class Hub { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -432,7 +425,7 @@ public class Hub { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -444,7 +437,7 @@ public class Hub { return this; } - public Builder hubIdentifier(Optional hubIdentifier) { + public Builder hubIdentifier(Optional hubIdentifier) { Utils.checkNotNull(hubIdentifier, "hubIdentifier"); this.hubIdentifier = hubIdentifier; return this; @@ -456,7 +449,7 @@ public class Hub { return this; } - public Builder context(Optional context) { + public Builder context(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -468,7 +461,7 @@ public class Hub { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -480,7 +473,7 @@ public class Hub { return this; } - public Builder more(Optional more) { + public Builder more(Optional more) { Utils.checkNotNull(more, "more"); this.more = more; return this; @@ -492,7 +485,7 @@ public class Hub { return this; } - public Builder style(Optional style) { + public Builder style(Optional style) { Utils.checkNotNull(style, "style"); this.style = style; return this; @@ -504,19 +497,19 @@ public class Hub { return this; } - public Builder promoted(Optional promoted) { + public Builder promoted(Optional promoted) { Utils.checkNotNull(promoted, "promoted"); this.promoted = promoted; return this; } - public Builder metadata(java.util.List metadata) { + public Builder metadata(List metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = Optional.ofNullable(metadata); return this; } - public Builder metadata(Optional> metadata) { + public Builder metadata(Optional> metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java b/src/main/java/dev/plexapi/sdk/models/operations/Image.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java rename to src/main/java/dev/plexapi/sdk/models/operations/Image.java index d5423001..9278c53f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Image.java @@ -1,42 +1,41 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Image { @JsonInclude(Include.NON_ABSENT) @JsonProperty("alt") - private Optional alt; + private Optional alt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; @JsonCreator public Image( - @JsonProperty("alt") Optional alt, - @JsonProperty("type") Optional type, - @JsonProperty("url") Optional url) { + @JsonProperty("alt") Optional alt, + @JsonProperty("type") Optional type, + @JsonProperty("url") Optional url) { Utils.checkNotNull(alt, "alt"); Utils.checkNotNull(type, "type"); Utils.checkNotNull(url, "url"); @@ -49,22 +48,19 @@ public class Image { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional alt() { - return (Optional) alt; + return alt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } public final static Builder builder() { @@ -77,7 +73,7 @@ public class Image { return this; } - public Image withAlt(Optional alt) { + public Image withAlt(Optional alt) { Utils.checkNotNull(alt, "alt"); this.alt = alt; return this; @@ -89,7 +85,7 @@ public class Image { return this; } - public Image withType(Optional type) { + public Image withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -101,7 +97,7 @@ public class Image { return this; } - public Image withUrl(Optional url) { + public Image withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -117,14 +113,14 @@ public class Image { } 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); + Objects.deepEquals(this.alt, other.alt) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( alt, type, url); @@ -140,11 +136,11 @@ public class Image { public final static class Builder { - private Optional alt = Optional.empty(); + private Optional alt = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +152,7 @@ public class Image { return this; } - public Builder alt(Optional alt) { + public Builder alt(Optional alt) { Utils.checkNotNull(alt, "alt"); this.alt = alt; return this; @@ -168,7 +164,7 @@ public class Image { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -180,7 +176,7 @@ public class Image { return this; } - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java new file mode 100644 index 00000000..77d7aa4c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/IncludeDetails.java similarity index 51% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java rename to src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java index 79a6995f..4edf7291 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java @@ -1,19 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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). diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java new file mode 100644 index 00000000..76ed2488 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/IncludeGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java new file mode 100644 index 00000000..556b9a9a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeGuids - Adds the Guids object to the response + * + */ +public enum IncludeGuids { + ZERO(0L), + ONE(1L); + + @JsonValue + private final long value; + + private IncludeGuids(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java new file mode 100644 index 00000000..99bd3313 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeHttps - Include Https entries in the results + */ +public enum IncludeHttps { + ZERO(0), + ONE(1); + + @JsonValue + private final int value; + + private IncludeHttps(int value) { + this.value = value; + } + + public int value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java new file mode 100644 index 00000000..9d4a9003 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeIPv6 - Include IPv6 entries in the results + */ +public enum IncludeIPv6 { + ZERO(0), + ONE(1); + + @JsonValue + private final int value; + + private IncludeIPv6(int value) { + this.value = value; + } + + public int value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java new file mode 100644 index 00000000..25fdafec --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeMeta - Adds the Meta object to the response + * + */ +public enum IncludeMeta { + ZERO(0L), + ONE(1L); + + @JsonValue + private final long value; + + private IncludeMeta(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java new file mode 100644 index 00000000..dbaa384a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeRelay - Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * + */ +public enum IncludeRelay { + ZERO(0), + ONE(1); + + @JsonValue + private final int value; + + private IncludeRelay(int value) { + this.value = value; + } + + public int value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java b/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java new file mode 100644 index 00000000..80df64fe --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class InternalPaymentMethod { + + @JsonCreator + public InternalPaymentMethod() { + + + } + + 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 Objects.hash( + ); + } + + @Override + public String toString() { + return Utils.toString(InternalPaymentMethod.class); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public InternalPaymentMethod build() { + return new InternalPaymentMethod( + ); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Level.java b/src/main/java/dev/plexapi/sdk/models/operations/Level.java new file mode 100644 index 00000000..6915fad6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Level.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/LibrarySectionID.java similarity index 58% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java rename to src/main/java/dev/plexapi/sdk/models/operations/LibrarySectionID.java index 014effc6..14daf7cd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LibrarySectionID.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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.annotation.JsonValue; 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; +import dev.plexapi.sdk.utils.OneOfDeserializer; +import dev.plexapi.sdk.utils.TypedObject; +import dev.plexapi.sdk.utils.Utils.JsonShape; +import dev.plexapi.sdk.utils.Utils.TypeReferenceWithShape; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; @JsonDeserialize(using = LibrarySectionID._Deserializer.class) public class LibrarySectionID { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private LibrarySectionID(TypedObject value) { @@ -34,7 +31,7 @@ public class LibrarySectionID { public static LibrarySectionID of(long value) { Utils.checkNotNull(value, "value"); - return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } public static LibrarySectionID of(String value) { @@ -46,7 +43,7 @@ public class LibrarySectionID { * Returns an instance of one of these types: *
    *
  • {@code long}
  • - *
  • {@code String}
  • + *
  • {@code java.lang.String}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -73,21 +70,21 @@ public class LibrarySectionID { return false; } LibrarySectionID other = (LibrarySectionID) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends lukehagar.plexapi.plexapi.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { - super(LibrarySectionID.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + super(LibrarySectionID.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java b/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java new file mode 100644 index 00000000..d5303e94 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * 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/GetLibrariesLocation.java b/src/main/java/dev/plexapi/sdk/models/operations/Location.java similarity index 58% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java rename to src/main/java/dev/plexapi/sdk/models/operations/Location.java index 0d892811..44a77c14 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Location.java @@ -1,82 +1,80 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -public class GetLibrariesLocation { + +public class Location { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("path") - private Optional path; + private Optional path; @JsonCreator - public GetLibrariesLocation( - @JsonProperty("id") Optional id, - @JsonProperty("path") Optional path) { + public Location( + @JsonProperty("id") Optional id, + @JsonProperty("path") Optional path) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(path, "path"); this.id = id; this.path = path; } - public GetLibrariesLocation() { + public Location() { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional path() { - return (Optional) path; + return path; } public final static Builder builder() { return new Builder(); } - public GetLibrariesLocation withId(int id) { + public Location withId(int id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); return this; } - public GetLibrariesLocation withId(Optional id) { + public Location withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetLibrariesLocation withPath(String path) { + public Location withPath(String path) { Utils.checkNotNull(path, "path"); this.path = Optional.ofNullable(path); return this; } - public GetLibrariesLocation withPath(Optional path) { + public Location withPath(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; @@ -90,31 +88,31 @@ public class GetLibrariesLocation { if (o == null || getClass() != o.getClass()) { return false; } - GetLibrariesLocation other = (GetLibrariesLocation) o; + Location other = (Location) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, path); } @Override public String toString() { - return Utils.toString(GetLibrariesLocation.class, + return Utils.toString(Location.class, "id", id, "path", path); } public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional path = Optional.empty(); + private Optional path = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,7 +124,7 @@ public class GetLibrariesLocation { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -138,14 +136,14 @@ public class GetLibrariesLocation { return this; } - public Builder path(Optional path) { + public Builder path(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; } - public GetLibrariesLocation build() { - return new GetLibrariesLocation( + public Location build() { + return new Location( id, path); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java index 91181265..574cc7cd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class LogLineRequest { @@ -131,14 +130,14 @@ public class LogLineRequest { } 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); + Objects.deepEquals(this.level, other.level) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.source, other.source); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( level, message, source); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java similarity index 50% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java index 16198538..181303bc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java @@ -1,21 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; public class LogLineRequestBuilder { @@ -28,19 +18,19 @@ public class LogLineRequestBuilder { this.sdk = sdk; } - public LogLineRequestBuilder level(Level level) { + public LogLineRequestBuilder level(dev.plexapi.sdk.models.operations.Level level) { Utils.checkNotNull(level, "level"); this.level = level; return this; } - public LogLineRequestBuilder message(String message) { + public LogLineRequestBuilder message(java.lang.String message) { Utils.checkNotNull(message, "message"); this.message = message; return this; } - public LogLineRequestBuilder source(String source) { + public LogLineRequestBuilder source(java.lang.String source) { Utils.checkNotNull(source, "source"); this.source = source; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java index 8bd6e905..785b834e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class LogLineResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class LogLineResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class LogLineResponse implements lukehagar.plexapi.plexapi.utils.Response } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java new file mode 100644 index 00000000..adeece41 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class LogMultiLineRequestBuilder { + + private String request; + private final SDKMethodInterfaces.MethodCallLogMultiLine sdk; + + public LogMultiLineRequestBuilder(SDKMethodInterfaces.MethodCallLogMultiLine sdk) { + this.sdk = sdk; + } + + public LogMultiLineRequestBuilder request(java.lang.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/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java index 20e1f4a4..2983bfe2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class LogMultiLineResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class LogMultiLineResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class LogMultiLineResponse implements lukehagar.plexapi.plexapi.utils.Res } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java new file mode 100644 index 00000000..e12942c3 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * MailingListStatus - Your current mailing list status + */ +public enum MailingListStatus { + ACTIVE("active"), + UNSUBSCRIBED("unsubscribed"); + + @JsonValue + private final String value; + + private MailingListStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java similarity index 77% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java index bf067da8..20e244a5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class MarkPlayedRequest { @@ -61,12 +61,12 @@ public class MarkPlayedRequest { } MarkPlayedRequest other = (MarkPlayedRequest) o; return - java.util.Objects.deepEquals(this.key, other.key); + Objects.deepEquals(this.key, other.key); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java new file mode 100644 index 00000000..b8930877 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; + +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/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java index ad8963b0..94d661a9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class MarkPlayedResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class MarkPlayedResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class MarkPlayedResponse implements lukehagar.plexapi.plexapi.utils.Respo } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java similarity index 77% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java index d8afa1ea..2bb2057a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class MarkUnplayedRequest { @@ -61,12 +61,12 @@ public class MarkUnplayedRequest { } MarkUnplayedRequest other = (MarkUnplayedRequest) o; return - java.util.Objects.deepEquals(this.key, other.key); + Objects.deepEquals(this.key, other.key); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java new file mode 100644 index 00000000..588bcb9b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; + +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/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java index 0ebba90e..b4dbe488 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class MarkUnplayedResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class MarkUnplayedResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class MarkUnplayedResponse implements lukehagar.plexapi.plexapi.utils.Res } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java b/src/main/java/dev/plexapi/sdk/models/operations/Media.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java rename to src/main/java/dev/plexapi/sdk/models/operations/Media.java index 8a68ca98..a6cc2cf9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Media.java @@ -1,107 +1,110 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Media { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("aspectRatio") - private Optional aspectRatio; + private Optional aspectRatio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoResolution") - private Optional videoResolution; + private Optional videoResolution; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") - private Optional videoFrameRate; + private Optional videoFrameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional videoProfile; + private Optional videoProfile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Part") - private Optional> 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) { + @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"); @@ -140,100 +143,85 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional aspectRatio() { - return (Optional) aspectRatio; + return aspectRatio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoResolution() { - return (Optional) videoResolution; + return videoResolution; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFrameRate() { - return (Optional) videoFrameRate; + return videoFrameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> part() { - return (Optional>) part; + public Optional> part() { + return (Optional>) part; } public final static Builder builder() { @@ -246,7 +234,7 @@ public class Media { return this; } - public Media withId(Optional id) { + public Media withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -258,7 +246,7 @@ public class Media { return this; } - public Media withDuration(Optional duration) { + public Media withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -270,7 +258,7 @@ public class Media { return this; } - public Media withBitrate(Optional bitrate) { + public Media withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -282,7 +270,7 @@ public class Media { return this; } - public Media withWidth(Optional width) { + public Media withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -294,7 +282,7 @@ public class Media { return this; } - public Media withHeight(Optional height) { + public Media withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -306,7 +294,7 @@ public class Media { return this; } - public Media withAspectRatio(Optional aspectRatio) { + public Media withAspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -318,7 +306,7 @@ public class Media { return this; } - public Media withAudioChannels(Optional audioChannels) { + public Media withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -330,7 +318,7 @@ public class Media { return this; } - public Media withAudioCodec(Optional audioCodec) { + public Media withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -342,7 +330,7 @@ public class Media { return this; } - public Media withVideoCodec(Optional videoCodec) { + public Media withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -354,7 +342,7 @@ public class Media { return this; } - public Media withVideoResolution(Optional videoResolution) { + public Media withVideoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -366,7 +354,7 @@ public class Media { return this; } - public Media withContainer(Optional container) { + public Media withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -378,7 +366,7 @@ public class Media { return this; } - public Media withVideoFrameRate(Optional videoFrameRate) { + public Media withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -390,7 +378,7 @@ public class Media { return this; } - public Media withOptimizedForStreaming(Optional optimizedForStreaming) { + public Media withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -402,7 +390,7 @@ public class Media { return this; } - public Media withHas64bitOffsets(Optional has64bitOffsets) { + public Media withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -414,19 +402,19 @@ public class Media { return this; } - public Media withVideoProfile(Optional videoProfile) { + public Media withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Media withPart(java.util.List part) { + public Media withPart(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Media withPart(Optional> part) { + public Media withPart(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; @@ -442,27 +430,27 @@ public class Media { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.aspectRatio, other.aspectRatio) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.videoResolution, other.videoResolution) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.videoProfile, other.videoProfile) && + Objects.deepEquals(this.part, other.part); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, duration, bitrate, @@ -504,37 +492,37 @@ public class Media { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional aspectRatio = Optional.empty(); + private Optional aspectRatio = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional videoResolution = Optional.empty(); + private Optional videoResolution = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoFrameRate = Optional.empty(); + private Optional videoFrameRate = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -546,7 +534,7 @@ public class Media { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -558,7 +546,7 @@ public class Media { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -570,7 +558,7 @@ public class Media { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -582,7 +570,7 @@ public class Media { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -594,7 +582,7 @@ public class Media { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -606,7 +594,7 @@ public class Media { return this; } - public Builder aspectRatio(Optional aspectRatio) { + public Builder aspectRatio(Optional aspectRatio) { Utils.checkNotNull(aspectRatio, "aspectRatio"); this.aspectRatio = aspectRatio; return this; @@ -618,7 +606,7 @@ public class Media { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -630,7 +618,7 @@ public class Media { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -642,7 +630,7 @@ public class Media { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -654,7 +642,7 @@ public class Media { return this; } - public Builder videoResolution(Optional videoResolution) { + public Builder videoResolution(Optional videoResolution) { Utils.checkNotNull(videoResolution, "videoResolution"); this.videoResolution = videoResolution; return this; @@ -666,7 +654,7 @@ public class Media { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -678,7 +666,7 @@ public class Media { return this; } - public Builder videoFrameRate(Optional videoFrameRate) { + public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); this.videoFrameRate = videoFrameRate; return this; @@ -690,7 +678,7 @@ public class Media { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -702,7 +690,7 @@ public class Media { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -714,19 +702,19 @@ public class Media { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; } - public Builder part(java.util.List part) { + public Builder part(List part) { Utils.checkNotNull(part, "part"); this.part = Optional.ofNullable(part); return this; } - public Builder part(Optional> part) { + public Builder part(Optional> part) { Utils.checkNotNull(part, "part"); this.part = part; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java index e7921668..2fa15b1b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java @@ -1,282 +1,285 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class MediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowCameraUpload") - private Optional allowCameraUpload; + private Optional allowCameraUpload; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowChannelAccess") - private Optional allowChannelAccess; + private Optional allowChannelAccess; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowMediaDeletion") - private Optional allowMediaDeletion; + private Optional allowMediaDeletion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSharing") - private Optional allowSharing; + private Optional allowSharing; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowSync") - private Optional allowSync; + private Optional allowSync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowTuners") - private Optional allowTuners; + private Optional allowTuners; @JsonInclude(Include.NON_ABSENT) @JsonProperty("backgroundProcessing") - private Optional backgroundProcessing; + private Optional backgroundProcessing; @JsonInclude(Include.NON_ABSENT) @JsonProperty("certificate") - private Optional certificate; + private Optional certificate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("companionProxy") - private Optional companionProxy; + private Optional companionProxy; @JsonInclude(Include.NON_ABSENT) @JsonProperty("countryCode") - private Optional countryCode; + private Optional countryCode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("diagnostics") - private Optional diagnostics; + private Optional diagnostics; @JsonInclude(Include.NON_ABSENT) @JsonProperty("eventStream") - private Optional eventStream; + private Optional eventStream; @JsonInclude(Include.NON_ABSENT) @JsonProperty("friendlyName") - private Optional friendlyName; + private Optional friendlyName; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hubSearch") - private Optional hubSearch; + private Optional hubSearch; @JsonInclude(Include.NON_ABSENT) @JsonProperty("itemClusters") - private Optional itemClusters; + private Optional itemClusters; @JsonInclude(Include.NON_ABSENT) @JsonProperty("livetv") - private Optional livetv; + private Optional livetv; @JsonInclude(Include.NON_ABSENT) @JsonProperty("machineIdentifier") - private Optional machineIdentifier; + private Optional machineIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mediaProviders") - private Optional mediaProviders; + private Optional mediaProviders; @JsonInclude(Include.NON_ABSENT) @JsonProperty("multiuser") - private Optional multiuser; + private Optional multiuser; @JsonInclude(Include.NON_ABSENT) @JsonProperty("musicAnalysis") - private Optional musicAnalysis; + private Optional musicAnalysis; @JsonInclude(Include.NON_ABSENT) @JsonProperty("myPlex") - private Optional myPlex; + private Optional myPlex; @JsonInclude(Include.NON_ABSENT) @JsonProperty("myPlexMappingState") - private Optional myPlexMappingState; + private Optional myPlexMappingState; @JsonInclude(Include.NON_ABSENT) @JsonProperty("myPlexSigninState") - private Optional myPlexSigninState; + private Optional myPlexSigninState; @JsonInclude(Include.NON_ABSENT) @JsonProperty("myPlexSubscription") - private Optional myPlexSubscription; + private Optional myPlexSubscription; @JsonInclude(Include.NON_ABSENT) @JsonProperty("myPlexUsername") - private Optional myPlexUsername; + private Optional myPlexUsername; @JsonInclude(Include.NON_ABSENT) @JsonProperty("offlineTranscode") - private Optional offlineTranscode; + private Optional offlineTranscode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ownerFeatures") - private Optional ownerFeatures; + private Optional ownerFeatures; @JsonInclude(Include.NON_ABSENT) @JsonProperty("photoAutoTag") - private Optional photoAutoTag; + private Optional photoAutoTag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platform") - private Optional platform; + private Optional platform; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platformVersion") - private Optional platformVersion; + private Optional platformVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("pluginHost") - private Optional pluginHost; + private Optional pluginHost; @JsonInclude(Include.NON_ABSENT) @JsonProperty("pushNotifications") - private Optional pushNotifications; + private Optional pushNotifications; @JsonInclude(Include.NON_ABSENT) @JsonProperty("readOnlyLibraries") - private Optional readOnlyLibraries; + private Optional readOnlyLibraries; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamingBrainABRVersion") - private Optional streamingBrainABRVersion; + private Optional streamingBrainABRVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamingBrainVersion") - private Optional streamingBrainVersion; + private Optional streamingBrainVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sync") - private Optional sync; + private Optional sync; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderActiveVideoSessions") - private Optional transcoderActiveVideoSessions; + private Optional transcoderActiveVideoSessions; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderAudio") - private Optional transcoderAudio; + private Optional transcoderAudio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderLyrics") - private Optional transcoderLyrics; + private Optional transcoderLyrics; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderPhoto") - private Optional transcoderPhoto; + private Optional transcoderPhoto; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderSubtitles") - private Optional transcoderSubtitles; + private Optional transcoderSubtitles; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderVideo") - private Optional transcoderVideo; + private Optional transcoderVideo; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderVideoBitrates") - private Optional transcoderVideoBitrates; + private Optional transcoderVideoBitrates; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderVideoQualities") - private Optional transcoderVideoQualities; + private Optional transcoderVideoQualities; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcoderVideoResolutions") - private Optional transcoderVideoResolutions; + private Optional transcoderVideoResolutions; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("updater") - private Optional updater; + private Optional updater; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional version; + private Optional version; @JsonInclude(Include.NON_ABSENT) @JsonProperty("voiceSearch") - private Optional voiceSearch; + private Optional voiceSearch; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Directory") - private Optional> 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) { + @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"); @@ -385,310 +388,260 @@ public class 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; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowCameraUpload() { - return (Optional) allowCameraUpload; + return allowCameraUpload; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowChannelAccess() { - return (Optional) allowChannelAccess; + return allowChannelAccess; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowMediaDeletion() { - return (Optional) allowMediaDeletion; + return allowMediaDeletion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSharing() { - return (Optional) allowSharing; + return allowSharing; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowSync() { - return (Optional) allowSync; + return allowSync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional allowTuners() { - return (Optional) allowTuners; + return allowTuners; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional backgroundProcessing() { - return (Optional) backgroundProcessing; + return backgroundProcessing; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional certificate() { - return (Optional) certificate; + return certificate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional companionProxy() { - return (Optional) companionProxy; + return companionProxy; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional countryCode() { - return (Optional) countryCode; + return countryCode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional diagnostics() { - return (Optional) diagnostics; + return diagnostics; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional eventStream() { - return (Optional) eventStream; + return eventStream; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional friendlyName() { - return (Optional) friendlyName; + return friendlyName; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hubSearch() { - return (Optional) hubSearch; + return hubSearch; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional itemClusters() { - return (Optional) itemClusters; + return itemClusters; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional livetv() { - return (Optional) livetv; + return livetv; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional machineIdentifier() { - return (Optional) machineIdentifier; + return machineIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaProviders() { - return (Optional) mediaProviders; + return mediaProviders; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional multiuser() { - return (Optional) multiuser; + return multiuser; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional musicAnalysis() { - return (Optional) musicAnalysis; + return musicAnalysis; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional myPlex() { - return (Optional) myPlex; + return myPlex; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional myPlexMappingState() { - return (Optional) myPlexMappingState; + return myPlexMappingState; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional myPlexSigninState() { - return (Optional) myPlexSigninState; + return myPlexSigninState; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional myPlexSubscription() { - return (Optional) myPlexSubscription; + return myPlexSubscription; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional myPlexUsername() { - return (Optional) myPlexUsername; + return myPlexUsername; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional offlineTranscode() { - return (Optional) offlineTranscode; + return offlineTranscode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ownerFeatures() { - return (Optional) ownerFeatures; + return ownerFeatures; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional photoAutoTag() { - return (Optional) photoAutoTag; + return photoAutoTag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platform() { - return (Optional) platform; + return platform; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platformVersion() { - return (Optional) platformVersion; + return platformVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional pluginHost() { - return (Optional) pluginHost; + return pluginHost; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional pushNotifications() { - return (Optional) pushNotifications; + return pushNotifications; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional readOnlyLibraries() { - return (Optional) readOnlyLibraries; + return readOnlyLibraries; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamingBrainABRVersion() { - return (Optional) streamingBrainABRVersion; + return streamingBrainABRVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamingBrainVersion() { - return (Optional) streamingBrainVersion; + return streamingBrainVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sync() { - return (Optional) sync; + return sync; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderActiveVideoSessions() { - return (Optional) transcoderActiveVideoSessions; + return transcoderActiveVideoSessions; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderAudio() { - return (Optional) transcoderAudio; + return transcoderAudio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderLyrics() { - return (Optional) transcoderLyrics; + return transcoderLyrics; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderPhoto() { - return (Optional) transcoderPhoto; + return transcoderPhoto; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderSubtitles() { - return (Optional) transcoderSubtitles; + return transcoderSubtitles; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderVideo() { - return (Optional) transcoderVideo; + return transcoderVideo; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderVideoBitrates() { - return (Optional) transcoderVideoBitrates; + return transcoderVideoBitrates; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderVideoQualities() { - return (Optional) transcoderVideoQualities; + return transcoderVideoQualities; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcoderVideoResolutions() { - return (Optional) transcoderVideoResolutions; + return transcoderVideoResolutions; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional updater() { - return (Optional) updater; + return updater; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional voiceSearch() { - return (Optional) voiceSearch; + return voiceSearch; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> directory() { - return (Optional>) directory; + public Optional> directory() { + return (Optional>) directory; } public final static Builder builder() { @@ -701,7 +654,7 @@ public class MediaContainer { return this; } - public MediaContainer withSize(Optional size) { + public MediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -713,7 +666,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowCameraUpload(Optional allowCameraUpload) { + public MediaContainer withAllowCameraUpload(Optional allowCameraUpload) { Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); this.allowCameraUpload = allowCameraUpload; return this; @@ -725,7 +678,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowChannelAccess(Optional allowChannelAccess) { + public MediaContainer withAllowChannelAccess(Optional allowChannelAccess) { Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); this.allowChannelAccess = allowChannelAccess; return this; @@ -737,7 +690,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowMediaDeletion(Optional allowMediaDeletion) { + public MediaContainer withAllowMediaDeletion(Optional allowMediaDeletion) { Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); this.allowMediaDeletion = allowMediaDeletion; return this; @@ -749,7 +702,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowSharing(Optional allowSharing) { + public MediaContainer withAllowSharing(Optional allowSharing) { Utils.checkNotNull(allowSharing, "allowSharing"); this.allowSharing = allowSharing; return this; @@ -761,7 +714,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowSync(Optional allowSync) { + public MediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -773,7 +726,7 @@ public class MediaContainer { return this; } - public MediaContainer withAllowTuners(Optional allowTuners) { + public MediaContainer withAllowTuners(Optional allowTuners) { Utils.checkNotNull(allowTuners, "allowTuners"); this.allowTuners = allowTuners; return this; @@ -785,7 +738,7 @@ public class MediaContainer { return this; } - public MediaContainer withBackgroundProcessing(Optional backgroundProcessing) { + public MediaContainer withBackgroundProcessing(Optional backgroundProcessing) { Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); this.backgroundProcessing = backgroundProcessing; return this; @@ -797,7 +750,7 @@ public class MediaContainer { return this; } - public MediaContainer withCertificate(Optional certificate) { + public MediaContainer withCertificate(Optional certificate) { Utils.checkNotNull(certificate, "certificate"); this.certificate = certificate; return this; @@ -809,7 +762,7 @@ public class MediaContainer { return this; } - public MediaContainer withCompanionProxy(Optional companionProxy) { + public MediaContainer withCompanionProxy(Optional companionProxy) { Utils.checkNotNull(companionProxy, "companionProxy"); this.companionProxy = companionProxy; return this; @@ -821,7 +774,7 @@ public class MediaContainer { return this; } - public MediaContainer withCountryCode(Optional countryCode) { + public MediaContainer withCountryCode(Optional countryCode) { Utils.checkNotNull(countryCode, "countryCode"); this.countryCode = countryCode; return this; @@ -833,7 +786,7 @@ public class MediaContainer { return this; } - public MediaContainer withDiagnostics(Optional diagnostics) { + public MediaContainer withDiagnostics(Optional diagnostics) { Utils.checkNotNull(diagnostics, "diagnostics"); this.diagnostics = diagnostics; return this; @@ -845,7 +798,7 @@ public class MediaContainer { return this; } - public MediaContainer withEventStream(Optional eventStream) { + public MediaContainer withEventStream(Optional eventStream) { Utils.checkNotNull(eventStream, "eventStream"); this.eventStream = eventStream; return this; @@ -857,7 +810,7 @@ public class MediaContainer { return this; } - public MediaContainer withFriendlyName(Optional friendlyName) { + public MediaContainer withFriendlyName(Optional friendlyName) { Utils.checkNotNull(friendlyName, "friendlyName"); this.friendlyName = friendlyName; return this; @@ -869,7 +822,7 @@ public class MediaContainer { return this; } - public MediaContainer withHubSearch(Optional hubSearch) { + public MediaContainer withHubSearch(Optional hubSearch) { Utils.checkNotNull(hubSearch, "hubSearch"); this.hubSearch = hubSearch; return this; @@ -881,7 +834,7 @@ public class MediaContainer { return this; } - public MediaContainer withItemClusters(Optional itemClusters) { + public MediaContainer withItemClusters(Optional itemClusters) { Utils.checkNotNull(itemClusters, "itemClusters"); this.itemClusters = itemClusters; return this; @@ -893,7 +846,7 @@ public class MediaContainer { return this; } - public MediaContainer withLivetv(Optional livetv) { + public MediaContainer withLivetv(Optional livetv) { Utils.checkNotNull(livetv, "livetv"); this.livetv = livetv; return this; @@ -905,7 +858,7 @@ public class MediaContainer { return this; } - public MediaContainer withMachineIdentifier(Optional machineIdentifier) { + public MediaContainer withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -917,7 +870,7 @@ public class MediaContainer { return this; } - public MediaContainer withMediaProviders(Optional mediaProviders) { + public MediaContainer withMediaProviders(Optional mediaProviders) { Utils.checkNotNull(mediaProviders, "mediaProviders"); this.mediaProviders = mediaProviders; return this; @@ -929,7 +882,7 @@ public class MediaContainer { return this; } - public MediaContainer withMultiuser(Optional multiuser) { + public MediaContainer withMultiuser(Optional multiuser) { Utils.checkNotNull(multiuser, "multiuser"); this.multiuser = multiuser; return this; @@ -941,7 +894,7 @@ public class MediaContainer { return this; } - public MediaContainer withMusicAnalysis(Optional musicAnalysis) { + public MediaContainer withMusicAnalysis(Optional musicAnalysis) { Utils.checkNotNull(musicAnalysis, "musicAnalysis"); this.musicAnalysis = musicAnalysis; return this; @@ -953,7 +906,7 @@ public class MediaContainer { return this; } - public MediaContainer withMyPlex(Optional myPlex) { + public MediaContainer withMyPlex(Optional myPlex) { Utils.checkNotNull(myPlex, "myPlex"); this.myPlex = myPlex; return this; @@ -965,7 +918,7 @@ public class MediaContainer { return this; } - public MediaContainer withMyPlexMappingState(Optional myPlexMappingState) { + public MediaContainer withMyPlexMappingState(Optional myPlexMappingState) { Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); this.myPlexMappingState = myPlexMappingState; return this; @@ -977,7 +930,7 @@ public class MediaContainer { return this; } - public MediaContainer withMyPlexSigninState(Optional myPlexSigninState) { + public MediaContainer withMyPlexSigninState(Optional myPlexSigninState) { Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); this.myPlexSigninState = myPlexSigninState; return this; @@ -989,7 +942,7 @@ public class MediaContainer { return this; } - public MediaContainer withMyPlexSubscription(Optional myPlexSubscription) { + public MediaContainer withMyPlexSubscription(Optional myPlexSubscription) { Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); this.myPlexSubscription = myPlexSubscription; return this; @@ -1001,7 +954,7 @@ public class MediaContainer { return this; } - public MediaContainer withMyPlexUsername(Optional myPlexUsername) { + public MediaContainer withMyPlexUsername(Optional myPlexUsername) { Utils.checkNotNull(myPlexUsername, "myPlexUsername"); this.myPlexUsername = myPlexUsername; return this; @@ -1013,7 +966,7 @@ public class MediaContainer { return this; } - public MediaContainer withOfflineTranscode(Optional offlineTranscode) { + public MediaContainer withOfflineTranscode(Optional offlineTranscode) { Utils.checkNotNull(offlineTranscode, "offlineTranscode"); this.offlineTranscode = offlineTranscode; return this; @@ -1025,7 +978,7 @@ public class MediaContainer { return this; } - public MediaContainer withOwnerFeatures(Optional ownerFeatures) { + public MediaContainer withOwnerFeatures(Optional ownerFeatures) { Utils.checkNotNull(ownerFeatures, "ownerFeatures"); this.ownerFeatures = ownerFeatures; return this; @@ -1037,7 +990,7 @@ public class MediaContainer { return this; } - public MediaContainer withPhotoAutoTag(Optional photoAutoTag) { + public MediaContainer withPhotoAutoTag(Optional photoAutoTag) { Utils.checkNotNull(photoAutoTag, "photoAutoTag"); this.photoAutoTag = photoAutoTag; return this; @@ -1049,7 +1002,7 @@ public class MediaContainer { return this; } - public MediaContainer withPlatform(Optional platform) { + public MediaContainer withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -1061,7 +1014,7 @@ public class MediaContainer { return this; } - public MediaContainer withPlatformVersion(Optional platformVersion) { + public MediaContainer withPlatformVersion(Optional platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = platformVersion; return this; @@ -1073,7 +1026,7 @@ public class MediaContainer { return this; } - public MediaContainer withPluginHost(Optional pluginHost) { + public MediaContainer withPluginHost(Optional pluginHost) { Utils.checkNotNull(pluginHost, "pluginHost"); this.pluginHost = pluginHost; return this; @@ -1085,7 +1038,7 @@ public class MediaContainer { return this; } - public MediaContainer withPushNotifications(Optional pushNotifications) { + public MediaContainer withPushNotifications(Optional pushNotifications) { Utils.checkNotNull(pushNotifications, "pushNotifications"); this.pushNotifications = pushNotifications; return this; @@ -1097,7 +1050,7 @@ public class MediaContainer { return this; } - public MediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { + public MediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); this.readOnlyLibraries = readOnlyLibraries; return this; @@ -1109,7 +1062,7 @@ public class MediaContainer { return this; } - public MediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { + public MediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); this.streamingBrainABRVersion = streamingBrainABRVersion; return this; @@ -1121,7 +1074,7 @@ public class MediaContainer { return this; } - public MediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { + public MediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); this.streamingBrainVersion = streamingBrainVersion; return this; @@ -1133,7 +1086,7 @@ public class MediaContainer { return this; } - public MediaContainer withSync(Optional sync) { + public MediaContainer withSync(Optional sync) { Utils.checkNotNull(sync, "sync"); this.sync = sync; return this; @@ -1145,7 +1098,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { + public MediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; return this; @@ -1157,7 +1110,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderAudio(Optional transcoderAudio) { + public MediaContainer withTranscoderAudio(Optional transcoderAudio) { Utils.checkNotNull(transcoderAudio, "transcoderAudio"); this.transcoderAudio = transcoderAudio; return this; @@ -1169,7 +1122,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderLyrics(Optional transcoderLyrics) { + public MediaContainer withTranscoderLyrics(Optional transcoderLyrics) { Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); this.transcoderLyrics = transcoderLyrics; return this; @@ -1181,7 +1134,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderPhoto(Optional transcoderPhoto) { + public MediaContainer withTranscoderPhoto(Optional transcoderPhoto) { Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); this.transcoderPhoto = transcoderPhoto; return this; @@ -1193,7 +1146,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { + public MediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); this.transcoderSubtitles = transcoderSubtitles; return this; @@ -1205,7 +1158,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderVideo(Optional transcoderVideo) { + public MediaContainer withTranscoderVideo(Optional transcoderVideo) { Utils.checkNotNull(transcoderVideo, "transcoderVideo"); this.transcoderVideo = transcoderVideo; return this; @@ -1217,7 +1170,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { + public MediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); this.transcoderVideoBitrates = transcoderVideoBitrates; return this; @@ -1229,7 +1182,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { + public MediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); this.transcoderVideoQualities = transcoderVideoQualities; return this; @@ -1241,7 +1194,7 @@ public class MediaContainer { return this; } - public MediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { + public MediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); this.transcoderVideoResolutions = transcoderVideoResolutions; return this; @@ -1253,7 +1206,7 @@ public class MediaContainer { return this; } - public MediaContainer withUpdatedAt(Optional updatedAt) { + public MediaContainer withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -1265,7 +1218,7 @@ public class MediaContainer { return this; } - public MediaContainer withUpdater(Optional updater) { + public MediaContainer withUpdater(Optional updater) { Utils.checkNotNull(updater, "updater"); this.updater = updater; return this; @@ -1277,7 +1230,7 @@ public class MediaContainer { return this; } - public MediaContainer withVersion(Optional version) { + public MediaContainer withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -1289,19 +1242,19 @@ public class MediaContainer { return this; } - public MediaContainer withVoiceSearch(Optional voiceSearch) { + public MediaContainer withVoiceSearch(Optional voiceSearch) { Utils.checkNotNull(voiceSearch, "voiceSearch"); this.voiceSearch = voiceSearch; return this; } - public MediaContainer withDirectory(java.util.List directory) { + public MediaContainer withDirectory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public MediaContainer withDirectory(Optional> directory) { + public MediaContainer withDirectory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; @@ -1317,62 +1270,62 @@ public class MediaContainer { } 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); + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.allowCameraUpload, other.allowCameraUpload) && + Objects.deepEquals(this.allowChannelAccess, other.allowChannelAccess) && + Objects.deepEquals(this.allowMediaDeletion, other.allowMediaDeletion) && + Objects.deepEquals(this.allowSharing, other.allowSharing) && + Objects.deepEquals(this.allowSync, other.allowSync) && + Objects.deepEquals(this.allowTuners, other.allowTuners) && + Objects.deepEquals(this.backgroundProcessing, other.backgroundProcessing) && + Objects.deepEquals(this.certificate, other.certificate) && + Objects.deepEquals(this.companionProxy, other.companionProxy) && + Objects.deepEquals(this.countryCode, other.countryCode) && + Objects.deepEquals(this.diagnostics, other.diagnostics) && + Objects.deepEquals(this.eventStream, other.eventStream) && + Objects.deepEquals(this.friendlyName, other.friendlyName) && + Objects.deepEquals(this.hubSearch, other.hubSearch) && + Objects.deepEquals(this.itemClusters, other.itemClusters) && + Objects.deepEquals(this.livetv, other.livetv) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.mediaProviders, other.mediaProviders) && + Objects.deepEquals(this.multiuser, other.multiuser) && + Objects.deepEquals(this.musicAnalysis, other.musicAnalysis) && + Objects.deepEquals(this.myPlex, other.myPlex) && + Objects.deepEquals(this.myPlexMappingState, other.myPlexMappingState) && + Objects.deepEquals(this.myPlexSigninState, other.myPlexSigninState) && + Objects.deepEquals(this.myPlexSubscription, other.myPlexSubscription) && + Objects.deepEquals(this.myPlexUsername, other.myPlexUsername) && + Objects.deepEquals(this.offlineTranscode, other.offlineTranscode) && + Objects.deepEquals(this.ownerFeatures, other.ownerFeatures) && + Objects.deepEquals(this.photoAutoTag, other.photoAutoTag) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.platformVersion, other.platformVersion) && + Objects.deepEquals(this.pluginHost, other.pluginHost) && + Objects.deepEquals(this.pushNotifications, other.pushNotifications) && + Objects.deepEquals(this.readOnlyLibraries, other.readOnlyLibraries) && + Objects.deepEquals(this.streamingBrainABRVersion, other.streamingBrainABRVersion) && + Objects.deepEquals(this.streamingBrainVersion, other.streamingBrainVersion) && + Objects.deepEquals(this.sync, other.sync) && + Objects.deepEquals(this.transcoderActiveVideoSessions, other.transcoderActiveVideoSessions) && + Objects.deepEquals(this.transcoderAudio, other.transcoderAudio) && + Objects.deepEquals(this.transcoderLyrics, other.transcoderLyrics) && + Objects.deepEquals(this.transcoderPhoto, other.transcoderPhoto) && + Objects.deepEquals(this.transcoderSubtitles, other.transcoderSubtitles) && + Objects.deepEquals(this.transcoderVideo, other.transcoderVideo) && + Objects.deepEquals(this.transcoderVideoBitrates, other.transcoderVideoBitrates) && + Objects.deepEquals(this.transcoderVideoQualities, other.transcoderVideoQualities) && + Objects.deepEquals(this.transcoderVideoResolutions, other.transcoderVideoResolutions) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.updater, other.updater) && + Objects.deepEquals(this.version, other.version) && + Objects.deepEquals(this.voiceSearch, other.voiceSearch) && + Objects.deepEquals(this.directory, other.directory); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( size, allowCameraUpload, allowChannelAccess, @@ -1484,107 +1437,107 @@ public class MediaContainer { public final static class Builder { - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional allowCameraUpload = Optional.empty(); + private Optional allowCameraUpload = Optional.empty(); - private Optional allowChannelAccess = Optional.empty(); + private Optional allowChannelAccess = Optional.empty(); - private Optional allowMediaDeletion = Optional.empty(); + private Optional allowMediaDeletion = Optional.empty(); - private Optional allowSharing = Optional.empty(); + private Optional allowSharing = Optional.empty(); - private Optional allowSync = Optional.empty(); + private Optional allowSync = Optional.empty(); - private Optional allowTuners = Optional.empty(); + private Optional allowTuners = Optional.empty(); - private Optional backgroundProcessing = Optional.empty(); + private Optional backgroundProcessing = Optional.empty(); - private Optional certificate = Optional.empty(); + private Optional certificate = Optional.empty(); - private Optional companionProxy = Optional.empty(); + private Optional companionProxy = Optional.empty(); - private Optional countryCode = Optional.empty(); + private Optional countryCode = Optional.empty(); - private Optional diagnostics = Optional.empty(); + private Optional diagnostics = Optional.empty(); - private Optional eventStream = Optional.empty(); + private Optional eventStream = Optional.empty(); - private Optional friendlyName = Optional.empty(); + private Optional friendlyName = Optional.empty(); - private Optional hubSearch = Optional.empty(); + private Optional hubSearch = Optional.empty(); - private Optional itemClusters = Optional.empty(); + private Optional itemClusters = Optional.empty(); - private Optional livetv = Optional.empty(); + private Optional livetv = Optional.empty(); - private Optional machineIdentifier = Optional.empty(); + private Optional machineIdentifier = Optional.empty(); - private Optional mediaProviders = Optional.empty(); + private Optional mediaProviders = Optional.empty(); - private Optional multiuser = Optional.empty(); + private Optional multiuser = Optional.empty(); - private Optional musicAnalysis = Optional.empty(); + private Optional musicAnalysis = Optional.empty(); - private Optional myPlex = Optional.empty(); + private Optional myPlex = Optional.empty(); - private Optional myPlexMappingState = Optional.empty(); + private Optional myPlexMappingState = Optional.empty(); - private Optional myPlexSigninState = Optional.empty(); + private Optional myPlexSigninState = Optional.empty(); - private Optional myPlexSubscription = Optional.empty(); + private Optional myPlexSubscription = Optional.empty(); - private Optional myPlexUsername = Optional.empty(); + private Optional myPlexUsername = Optional.empty(); - private Optional offlineTranscode = Optional.empty(); + private Optional offlineTranscode = Optional.empty(); - private Optional ownerFeatures = Optional.empty(); + private Optional ownerFeatures = Optional.empty(); - private Optional photoAutoTag = Optional.empty(); + private Optional photoAutoTag = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); - private Optional platformVersion = Optional.empty(); + private Optional platformVersion = Optional.empty(); - private Optional pluginHost = Optional.empty(); + private Optional pluginHost = Optional.empty(); - private Optional pushNotifications = Optional.empty(); + private Optional pushNotifications = Optional.empty(); - private Optional readOnlyLibraries = Optional.empty(); + private Optional readOnlyLibraries = Optional.empty(); - private Optional streamingBrainABRVersion = Optional.empty(); + private Optional streamingBrainABRVersion = Optional.empty(); - private Optional streamingBrainVersion = Optional.empty(); + private Optional streamingBrainVersion = Optional.empty(); - private Optional sync = Optional.empty(); + private Optional sync = Optional.empty(); - private Optional transcoderActiveVideoSessions = Optional.empty(); + private Optional transcoderActiveVideoSessions = Optional.empty(); - private Optional transcoderAudio = Optional.empty(); + private Optional transcoderAudio = Optional.empty(); - private Optional transcoderLyrics = Optional.empty(); + private Optional transcoderLyrics = Optional.empty(); - private Optional transcoderPhoto = Optional.empty(); + private Optional transcoderPhoto = Optional.empty(); - private Optional transcoderSubtitles = Optional.empty(); + private Optional transcoderSubtitles = Optional.empty(); - private Optional transcoderVideo = Optional.empty(); + private Optional transcoderVideo = Optional.empty(); - private Optional transcoderVideoBitrates = Optional.empty(); + private Optional transcoderVideoBitrates = Optional.empty(); - private Optional transcoderVideoQualities = Optional.empty(); + private Optional transcoderVideoQualities = Optional.empty(); - private Optional transcoderVideoResolutions = Optional.empty(); + private Optional transcoderVideoResolutions = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional updater = Optional.empty(); + private Optional updater = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); - private Optional voiceSearch = Optional.empty(); + private Optional voiceSearch = Optional.empty(); - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -1596,7 +1549,7 @@ public class MediaContainer { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -1608,7 +1561,7 @@ public class MediaContainer { return this; } - public Builder allowCameraUpload(Optional allowCameraUpload) { + public Builder allowCameraUpload(Optional allowCameraUpload) { Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); this.allowCameraUpload = allowCameraUpload; return this; @@ -1620,7 +1573,7 @@ public class MediaContainer { return this; } - public Builder allowChannelAccess(Optional allowChannelAccess) { + public Builder allowChannelAccess(Optional allowChannelAccess) { Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); this.allowChannelAccess = allowChannelAccess; return this; @@ -1632,7 +1585,7 @@ public class MediaContainer { return this; } - public Builder allowMediaDeletion(Optional allowMediaDeletion) { + public Builder allowMediaDeletion(Optional allowMediaDeletion) { Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); this.allowMediaDeletion = allowMediaDeletion; return this; @@ -1644,7 +1597,7 @@ public class MediaContainer { return this; } - public Builder allowSharing(Optional allowSharing) { + public Builder allowSharing(Optional allowSharing) { Utils.checkNotNull(allowSharing, "allowSharing"); this.allowSharing = allowSharing; return this; @@ -1656,7 +1609,7 @@ public class MediaContainer { return this; } - public Builder allowSync(Optional allowSync) { + public Builder allowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; @@ -1668,7 +1621,7 @@ public class MediaContainer { return this; } - public Builder allowTuners(Optional allowTuners) { + public Builder allowTuners(Optional allowTuners) { Utils.checkNotNull(allowTuners, "allowTuners"); this.allowTuners = allowTuners; return this; @@ -1680,7 +1633,7 @@ public class MediaContainer { return this; } - public Builder backgroundProcessing(Optional backgroundProcessing) { + public Builder backgroundProcessing(Optional backgroundProcessing) { Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); this.backgroundProcessing = backgroundProcessing; return this; @@ -1692,7 +1645,7 @@ public class MediaContainer { return this; } - public Builder certificate(Optional certificate) { + public Builder certificate(Optional certificate) { Utils.checkNotNull(certificate, "certificate"); this.certificate = certificate; return this; @@ -1704,7 +1657,7 @@ public class MediaContainer { return this; } - public Builder companionProxy(Optional companionProxy) { + public Builder companionProxy(Optional companionProxy) { Utils.checkNotNull(companionProxy, "companionProxy"); this.companionProxy = companionProxy; return this; @@ -1716,7 +1669,7 @@ public class MediaContainer { return this; } - public Builder countryCode(Optional countryCode) { + public Builder countryCode(Optional countryCode) { Utils.checkNotNull(countryCode, "countryCode"); this.countryCode = countryCode; return this; @@ -1728,7 +1681,7 @@ public class MediaContainer { return this; } - public Builder diagnostics(Optional diagnostics) { + public Builder diagnostics(Optional diagnostics) { Utils.checkNotNull(diagnostics, "diagnostics"); this.diagnostics = diagnostics; return this; @@ -1740,7 +1693,7 @@ public class MediaContainer { return this; } - public Builder eventStream(Optional eventStream) { + public Builder eventStream(Optional eventStream) { Utils.checkNotNull(eventStream, "eventStream"); this.eventStream = eventStream; return this; @@ -1752,7 +1705,7 @@ public class MediaContainer { return this; } - public Builder friendlyName(Optional friendlyName) { + public Builder friendlyName(Optional friendlyName) { Utils.checkNotNull(friendlyName, "friendlyName"); this.friendlyName = friendlyName; return this; @@ -1764,7 +1717,7 @@ public class MediaContainer { return this; } - public Builder hubSearch(Optional hubSearch) { + public Builder hubSearch(Optional hubSearch) { Utils.checkNotNull(hubSearch, "hubSearch"); this.hubSearch = hubSearch; return this; @@ -1776,7 +1729,7 @@ public class MediaContainer { return this; } - public Builder itemClusters(Optional itemClusters) { + public Builder itemClusters(Optional itemClusters) { Utils.checkNotNull(itemClusters, "itemClusters"); this.itemClusters = itemClusters; return this; @@ -1788,7 +1741,7 @@ public class MediaContainer { return this; } - public Builder livetv(Optional livetv) { + public Builder livetv(Optional livetv) { Utils.checkNotNull(livetv, "livetv"); this.livetv = livetv; return this; @@ -1800,7 +1753,7 @@ public class MediaContainer { return this; } - public Builder machineIdentifier(Optional machineIdentifier) { + public Builder machineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -1812,7 +1765,7 @@ public class MediaContainer { return this; } - public Builder mediaProviders(Optional mediaProviders) { + public Builder mediaProviders(Optional mediaProviders) { Utils.checkNotNull(mediaProviders, "mediaProviders"); this.mediaProviders = mediaProviders; return this; @@ -1824,7 +1777,7 @@ public class MediaContainer { return this; } - public Builder multiuser(Optional multiuser) { + public Builder multiuser(Optional multiuser) { Utils.checkNotNull(multiuser, "multiuser"); this.multiuser = multiuser; return this; @@ -1836,7 +1789,7 @@ public class MediaContainer { return this; } - public Builder musicAnalysis(Optional musicAnalysis) { + public Builder musicAnalysis(Optional musicAnalysis) { Utils.checkNotNull(musicAnalysis, "musicAnalysis"); this.musicAnalysis = musicAnalysis; return this; @@ -1848,7 +1801,7 @@ public class MediaContainer { return this; } - public Builder myPlex(Optional myPlex) { + public Builder myPlex(Optional myPlex) { Utils.checkNotNull(myPlex, "myPlex"); this.myPlex = myPlex; return this; @@ -1860,7 +1813,7 @@ public class MediaContainer { return this; } - public Builder myPlexMappingState(Optional myPlexMappingState) { + public Builder myPlexMappingState(Optional myPlexMappingState) { Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); this.myPlexMappingState = myPlexMappingState; return this; @@ -1872,7 +1825,7 @@ public class MediaContainer { return this; } - public Builder myPlexSigninState(Optional myPlexSigninState) { + public Builder myPlexSigninState(Optional myPlexSigninState) { Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); this.myPlexSigninState = myPlexSigninState; return this; @@ -1884,7 +1837,7 @@ public class MediaContainer { return this; } - public Builder myPlexSubscription(Optional myPlexSubscription) { + public Builder myPlexSubscription(Optional myPlexSubscription) { Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); this.myPlexSubscription = myPlexSubscription; return this; @@ -1896,7 +1849,7 @@ public class MediaContainer { return this; } - public Builder myPlexUsername(Optional myPlexUsername) { + public Builder myPlexUsername(Optional myPlexUsername) { Utils.checkNotNull(myPlexUsername, "myPlexUsername"); this.myPlexUsername = myPlexUsername; return this; @@ -1908,7 +1861,7 @@ public class MediaContainer { return this; } - public Builder offlineTranscode(Optional offlineTranscode) { + public Builder offlineTranscode(Optional offlineTranscode) { Utils.checkNotNull(offlineTranscode, "offlineTranscode"); this.offlineTranscode = offlineTranscode; return this; @@ -1920,7 +1873,7 @@ public class MediaContainer { return this; } - public Builder ownerFeatures(Optional ownerFeatures) { + public Builder ownerFeatures(Optional ownerFeatures) { Utils.checkNotNull(ownerFeatures, "ownerFeatures"); this.ownerFeatures = ownerFeatures; return this; @@ -1932,7 +1885,7 @@ public class MediaContainer { return this; } - public Builder photoAutoTag(Optional photoAutoTag) { + public Builder photoAutoTag(Optional photoAutoTag) { Utils.checkNotNull(photoAutoTag, "photoAutoTag"); this.photoAutoTag = photoAutoTag; return this; @@ -1944,7 +1897,7 @@ public class MediaContainer { return this; } - public Builder platform(Optional platform) { + public Builder platform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -1956,7 +1909,7 @@ public class MediaContainer { return this; } - public Builder platformVersion(Optional platformVersion) { + public Builder platformVersion(Optional platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = platformVersion; return this; @@ -1968,7 +1921,7 @@ public class MediaContainer { return this; } - public Builder pluginHost(Optional pluginHost) { + public Builder pluginHost(Optional pluginHost) { Utils.checkNotNull(pluginHost, "pluginHost"); this.pluginHost = pluginHost; return this; @@ -1980,7 +1933,7 @@ public class MediaContainer { return this; } - public Builder pushNotifications(Optional pushNotifications) { + public Builder pushNotifications(Optional pushNotifications) { Utils.checkNotNull(pushNotifications, "pushNotifications"); this.pushNotifications = pushNotifications; return this; @@ -1992,7 +1945,7 @@ public class MediaContainer { return this; } - public Builder readOnlyLibraries(Optional readOnlyLibraries) { + public Builder readOnlyLibraries(Optional readOnlyLibraries) { Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); this.readOnlyLibraries = readOnlyLibraries; return this; @@ -2004,7 +1957,7 @@ public class MediaContainer { return this; } - public Builder streamingBrainABRVersion(Optional streamingBrainABRVersion) { + public Builder streamingBrainABRVersion(Optional streamingBrainABRVersion) { Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); this.streamingBrainABRVersion = streamingBrainABRVersion; return this; @@ -2016,7 +1969,7 @@ public class MediaContainer { return this; } - public Builder streamingBrainVersion(Optional streamingBrainVersion) { + public Builder streamingBrainVersion(Optional streamingBrainVersion) { Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); this.streamingBrainVersion = streamingBrainVersion; return this; @@ -2028,7 +1981,7 @@ public class MediaContainer { return this; } - public Builder sync(Optional sync) { + public Builder sync(Optional sync) { Utils.checkNotNull(sync, "sync"); this.sync = sync; return this; @@ -2040,7 +1993,7 @@ public class MediaContainer { return this; } - public Builder transcoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { + public Builder transcoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; return this; @@ -2052,7 +2005,7 @@ public class MediaContainer { return this; } - public Builder transcoderAudio(Optional transcoderAudio) { + public Builder transcoderAudio(Optional transcoderAudio) { Utils.checkNotNull(transcoderAudio, "transcoderAudio"); this.transcoderAudio = transcoderAudio; return this; @@ -2064,7 +2017,7 @@ public class MediaContainer { return this; } - public Builder transcoderLyrics(Optional transcoderLyrics) { + public Builder transcoderLyrics(Optional transcoderLyrics) { Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); this.transcoderLyrics = transcoderLyrics; return this; @@ -2076,7 +2029,7 @@ public class MediaContainer { return this; } - public Builder transcoderPhoto(Optional transcoderPhoto) { + public Builder transcoderPhoto(Optional transcoderPhoto) { Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); this.transcoderPhoto = transcoderPhoto; return this; @@ -2088,7 +2041,7 @@ public class MediaContainer { return this; } - public Builder transcoderSubtitles(Optional transcoderSubtitles) { + public Builder transcoderSubtitles(Optional transcoderSubtitles) { Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); this.transcoderSubtitles = transcoderSubtitles; return this; @@ -2100,7 +2053,7 @@ public class MediaContainer { return this; } - public Builder transcoderVideo(Optional transcoderVideo) { + public Builder transcoderVideo(Optional transcoderVideo) { Utils.checkNotNull(transcoderVideo, "transcoderVideo"); this.transcoderVideo = transcoderVideo; return this; @@ -2112,7 +2065,7 @@ public class MediaContainer { return this; } - public Builder transcoderVideoBitrates(Optional transcoderVideoBitrates) { + public Builder transcoderVideoBitrates(Optional transcoderVideoBitrates) { Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); this.transcoderVideoBitrates = transcoderVideoBitrates; return this; @@ -2124,7 +2077,7 @@ public class MediaContainer { return this; } - public Builder transcoderVideoQualities(Optional transcoderVideoQualities) { + public Builder transcoderVideoQualities(Optional transcoderVideoQualities) { Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); this.transcoderVideoQualities = transcoderVideoQualities; return this; @@ -2136,7 +2089,7 @@ public class MediaContainer { return this; } - public Builder transcoderVideoResolutions(Optional transcoderVideoResolutions) { + public Builder transcoderVideoResolutions(Optional transcoderVideoResolutions) { Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); this.transcoderVideoResolutions = transcoderVideoResolutions; return this; @@ -2148,7 +2101,7 @@ public class MediaContainer { return this; } - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -2160,7 +2113,7 @@ public class MediaContainer { return this; } - public Builder updater(Optional updater) { + public Builder updater(Optional updater) { Utils.checkNotNull(updater, "updater"); this.updater = updater; return this; @@ -2172,7 +2125,7 @@ public class MediaContainer { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -2184,19 +2137,19 @@ public class MediaContainer { return this; } - public Builder voiceSearch(Optional voiceSearch) { + public Builder voiceSearch(Optional voiceSearch) { Utils.checkNotNull(voiceSearch, "voiceSearch"); this.voiceSearch = voiceSearch; return this; } - public Builder directory(java.util.List directory) { + public Builder directory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public Builder directory(Optional> directory) { + public Builder directory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java new file mode 100644 index 00000000..54c1b139 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class MediaProvider { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("identifier") + private Optional identifier; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + private Optional title; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("types") + private Optional types; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protocols") + private Optional protocols; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Feature") + private Optional> feature; + + @JsonCreator + public MediaProvider( + @JsonProperty("identifier") Optional identifier, + @JsonProperty("title") Optional title, + @JsonProperty("types") Optional types, + @JsonProperty("protocols") Optional protocols, + @JsonProperty("Feature") Optional> feature) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(types, "types"); + Utils.checkNotNull(protocols, "protocols"); + Utils.checkNotNull(feature, "feature"); + this.identifier = identifier; + this.title = title; + this.types = types; + this.protocols = protocols; + this.feature = feature; + } + + public MediaProvider() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional identifier() { + return identifier; + } + + @JsonIgnore + public Optional title() { + return title; + } + + @JsonIgnore + public Optional types() { + return types; + } + + @JsonIgnore + public Optional protocols() { + return protocols; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> feature() { + return (Optional>) feature; + } + + public final static Builder builder() { + return new Builder(); + } + + public MediaProvider withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = Optional.ofNullable(identifier); + return this; + } + + public MediaProvider withIdentifier(Optional identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public MediaProvider withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = Optional.ofNullable(title); + return this; + } + + public MediaProvider withTitle(Optional title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + public MediaProvider withTypes(String types) { + Utils.checkNotNull(types, "types"); + this.types = Optional.ofNullable(types); + return this; + } + + public MediaProvider withTypes(Optional types) { + Utils.checkNotNull(types, "types"); + this.types = types; + return this; + } + + public MediaProvider withProtocols(String protocols) { + Utils.checkNotNull(protocols, "protocols"); + this.protocols = Optional.ofNullable(protocols); + return this; + } + + public MediaProvider withProtocols(Optional protocols) { + Utils.checkNotNull(protocols, "protocols"); + this.protocols = protocols; + return this; + } + + public MediaProvider withFeature(List feature) { + Utils.checkNotNull(feature, "feature"); + this.feature = Optional.ofNullable(feature); + return this; + } + + public MediaProvider withFeature(Optional> feature) { + Utils.checkNotNull(feature, "feature"); + this.feature = feature; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MediaProvider other = (MediaProvider) o; + return + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.types, other.types) && + Objects.deepEquals(this.protocols, other.protocols) && + Objects.deepEquals(this.feature, other.feature); + } + + @Override + public int hashCode() { + return Objects.hash( + identifier, + title, + types, + protocols, + feature); + } + + @Override + public String toString() { + return Utils.toString(MediaProvider.class, + "identifier", identifier, + "title", title, + "types", types, + "protocols", protocols, + "feature", feature); + } + + public final static class Builder { + + private Optional identifier = Optional.empty(); + + private Optional title = Optional.empty(); + + private Optional types = Optional.empty(); + + private Optional protocols = Optional.empty(); + + private Optional> feature = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + 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 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 types(String types) { + Utils.checkNotNull(types, "types"); + this.types = Optional.ofNullable(types); + return this; + } + + public Builder types(Optional types) { + Utils.checkNotNull(types, "types"); + this.types = types; + return this; + } + + public Builder protocols(String protocols) { + Utils.checkNotNull(protocols, "protocols"); + this.protocols = Optional.ofNullable(protocols); + return this; + } + + public Builder protocols(Optional protocols) { + Utils.checkNotNull(protocols, "protocols"); + this.protocols = protocols; + return this; + } + + public Builder feature(List feature) { + Utils.checkNotNull(feature, "feature"); + this.feature = Optional.ofNullable(feature); + return this; + } + + public Builder feature(Optional> feature) { + Utils.checkNotNull(feature, "feature"); + this.feature = feature; + return this; + } + + public MediaProvider build() { + return new MediaProvider( + identifier, + title, + types, + protocols, + feature); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java new file mode 100644 index 00000000..09946909 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum MediaReviewsVisibility { + ZERO(0L), + ONE(1L); + + @JsonValue + private final long value; + + private MediaReviewsVisibility(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java b/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java rename to src/main/java/dev/plexapi/sdk/models/operations/Metadata.java index a3de4cb4..990361f2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java @@ -1,203 +1,207 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.time.LocalDate; +import java.util.List; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Metadata { @JsonInclude(Include.NON_ABSENT) @JsonProperty("art") - private Optional art; + private Optional art; @JsonInclude(Include.NON_ABSENT) @JsonProperty("guid") - private Optional guid; + private Optional guid; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingKey") - private Optional ratingKey; + private Optional ratingKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("studio") - private Optional studio; + private Optional studio; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagline") - private Optional tagline; + private Optional tagline; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional thumb; + private Optional thumb; @JsonInclude(Include.NON_ABSENT) @JsonProperty("addedAt") - private Optional addedAt; + private Optional addedAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("publicPagesURL") - private Optional publicPagesURL; + private Optional publicPagesURL; @JsonInclude(Include.NON_ABSENT) @JsonProperty("slug") - private Optional slug; + private Optional slug; @JsonInclude(Include.NON_ABSENT) @JsonProperty("userState") - private Optional userState; + private Optional userState; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("contentRating") - private Optional contentRating; + private Optional contentRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; + private Optional originallyAvailableAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("year") - private Optional year; + private Optional year; @JsonInclude(Include.NON_ABSENT) @JsonProperty("Image") - private Optional> image; + private Optional> image; @JsonInclude(Include.NON_ABSENT) @JsonProperty("banner") - private Optional banner; + private Optional banner; @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") - private Optional rating; + private Optional rating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("expiresAt") - private Optional expiresAt; + private Optional expiresAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("originalTitle") - private Optional originalTitle; + private Optional originalTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRating") - private Optional audienceRating; + private Optional audienceRating; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; + private Optional audienceRatingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingImage") - private Optional ratingImage; + private Optional ratingImage; @JsonInclude(Include.NON_ABSENT) @JsonProperty("imdbRatingCount") - private Optional imdbRatingCount; + private Optional imdbRatingCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subtype") - private Optional subtype; + private Optional subtype; @JsonInclude(Include.NON_ABSENT) @JsonProperty("theme") - private Optional theme; + private Optional theme; @JsonInclude(Include.NON_ABSENT) @JsonProperty("leafCount") - private Optional leafCount; + private Optional leafCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("childCount") - private Optional childCount; + private Optional childCount; @JsonInclude(Include.NON_ABSENT) @JsonProperty("isContinuingSeries") - private Optional isContinuingSeries; + private Optional isContinuingSeries; @JsonInclude(Include.NON_ABSENT) @JsonProperty("skipChildren") - private Optional skipChildren; + private Optional skipChildren; @JsonInclude(Include.NON_ABSENT) @JsonProperty("availabilityId") - private Optional availabilityId; + private Optional availabilityId; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamingMediaId") - private Optional streamingMediaId; + private Optional streamingMediaId; @JsonInclude(Include.NON_ABSENT) @JsonProperty("playableKey") - private Optional 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) { + @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"); @@ -274,214 +278,180 @@ public class 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; + return art; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional guid() { - return (Optional) guid; + return guid; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingKey() { - return (Optional) ratingKey; + return ratingKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional studio() { - return (Optional) studio; + return studio; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagline() { - return (Optional) tagline; + return tagline; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional addedAt() { - return (Optional) addedAt; + return addedAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional publicPagesURL() { - return (Optional) publicPagesURL; + return publicPagesURL; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional slug() { - return (Optional) slug; + return slug; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional userState() { - return (Optional) userState; + return userState; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional contentRating() { - return (Optional) contentRating; + return contentRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; + return originallyAvailableAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional year() { - return (Optional) year; + return year; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> image() { - return (Optional>) image; + public Optional> image() { + return (Optional>) image; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional banner() { - return (Optional) banner; + return banner; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional rating() { - return (Optional) rating; + return rating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional expiresAt() { - return (Optional) expiresAt; + return expiresAt; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional originalTitle() { - return (Optional) originalTitle; + return originalTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRating() { - return (Optional) audienceRating; + return audienceRating; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; + return audienceRatingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional ratingImage() { - return (Optional) ratingImage; + return ratingImage; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional imdbRatingCount() { - return (Optional) imdbRatingCount; + return imdbRatingCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtype() { - return (Optional) subtype; + return subtype; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional theme() { - return (Optional) theme; + return theme; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional leafCount() { - return (Optional) leafCount; + return leafCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional childCount() { - return (Optional) childCount; + return childCount; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional isContinuingSeries() { - return (Optional) isContinuingSeries; + return isContinuingSeries; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional skipChildren() { - return (Optional) skipChildren; + return skipChildren; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional availabilityId() { - return (Optional) availabilityId; + return availabilityId; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamingMediaId() { - return (Optional) streamingMediaId; + return streamingMediaId; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional playableKey() { - return (Optional) playableKey; + return playableKey; } public final static Builder builder() { @@ -494,7 +464,7 @@ public class Metadata { return this; } - public Metadata withArt(Optional art) { + public Metadata withArt(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -506,7 +476,7 @@ public class Metadata { return this; } - public Metadata withGuid(Optional guid) { + public Metadata withGuid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -518,7 +488,7 @@ public class Metadata { return this; } - public Metadata withKey(Optional key) { + public Metadata withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -530,7 +500,7 @@ public class Metadata { return this; } - public Metadata withRatingKey(Optional ratingKey) { + public Metadata withRatingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -542,7 +512,7 @@ public class Metadata { return this; } - public Metadata withStudio(Optional studio) { + public Metadata withStudio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -554,7 +524,7 @@ public class Metadata { return this; } - public Metadata withTagline(Optional tagline) { + public Metadata withTagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -566,7 +536,7 @@ public class Metadata { return this; } - public Metadata withType(Optional type) { + public Metadata withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -578,7 +548,7 @@ public class Metadata { return this; } - public Metadata withThumb(Optional thumb) { + public Metadata withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -590,7 +560,7 @@ public class Metadata { return this; } - public Metadata withAddedAt(Optional addedAt) { + public Metadata withAddedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -602,7 +572,7 @@ public class Metadata { return this; } - public Metadata withDuration(Optional duration) { + public Metadata withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -614,7 +584,7 @@ public class Metadata { return this; } - public Metadata withPublicPagesURL(Optional publicPagesURL) { + public Metadata withPublicPagesURL(Optional publicPagesURL) { Utils.checkNotNull(publicPagesURL, "publicPagesURL"); this.publicPagesURL = publicPagesURL; return this; @@ -626,7 +596,7 @@ public class Metadata { return this; } - public Metadata withSlug(Optional slug) { + public Metadata withSlug(Optional slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -638,7 +608,7 @@ public class Metadata { return this; } - public Metadata withUserState(Optional userState) { + public Metadata withUserState(Optional userState) { Utils.checkNotNull(userState, "userState"); this.userState = userState; return this; @@ -650,7 +620,7 @@ public class Metadata { return this; } - public Metadata withTitle(Optional title) { + public Metadata withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -662,7 +632,7 @@ public class Metadata { return this; } - public Metadata withContentRating(Optional contentRating) { + public Metadata withContentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -674,7 +644,7 @@ public class Metadata { return this; } - public Metadata withOriginallyAvailableAt(Optional originallyAvailableAt) { + public Metadata withOriginallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -686,19 +656,19 @@ public class Metadata { return this; } - public Metadata withYear(Optional year) { + public Metadata withYear(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; } - public Metadata withImage(java.util.List image) { + public Metadata withImage(List image) { Utils.checkNotNull(image, "image"); this.image = Optional.ofNullable(image); return this; } - public Metadata withImage(Optional> image) { + public Metadata withImage(Optional> image) { Utils.checkNotNull(image, "image"); this.image = image; return this; @@ -710,7 +680,7 @@ public class Metadata { return this; } - public Metadata withBanner(Optional banner) { + public Metadata withBanner(Optional banner) { Utils.checkNotNull(banner, "banner"); this.banner = banner; return this; @@ -722,7 +692,7 @@ public class Metadata { return this; } - public Metadata withRating(Optional rating) { + public Metadata withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -734,7 +704,7 @@ public class Metadata { return this; } - public Metadata withExpiresAt(Optional expiresAt) { + public Metadata withExpiresAt(Optional expiresAt) { Utils.checkNotNull(expiresAt, "expiresAt"); this.expiresAt = expiresAt; return this; @@ -746,7 +716,7 @@ public class Metadata { return this; } - public Metadata withOriginalTitle(Optional originalTitle) { + public Metadata withOriginalTitle(Optional originalTitle) { Utils.checkNotNull(originalTitle, "originalTitle"); this.originalTitle = originalTitle; return this; @@ -758,7 +728,7 @@ public class Metadata { return this; } - public Metadata withAudienceRating(Optional audienceRating) { + public Metadata withAudienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -770,7 +740,7 @@ public class Metadata { return this; } - public Metadata withAudienceRatingImage(Optional audienceRatingImage) { + public Metadata withAudienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -782,7 +752,7 @@ public class Metadata { return this; } - public Metadata withRatingImage(Optional ratingImage) { + public Metadata withRatingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; @@ -794,7 +764,7 @@ public class Metadata { return this; } - public Metadata withImdbRatingCount(Optional imdbRatingCount) { + public Metadata withImdbRatingCount(Optional imdbRatingCount) { Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); this.imdbRatingCount = imdbRatingCount; return this; @@ -806,7 +776,7 @@ public class Metadata { return this; } - public Metadata withSubtype(Optional subtype) { + public Metadata withSubtype(Optional subtype) { Utils.checkNotNull(subtype, "subtype"); this.subtype = subtype; return this; @@ -818,7 +788,7 @@ public class Metadata { return this; } - public Metadata withTheme(Optional theme) { + public Metadata withTheme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -830,7 +800,7 @@ public class Metadata { return this; } - public Metadata withLeafCount(Optional leafCount) { + public Metadata withLeafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -842,7 +812,7 @@ public class Metadata { return this; } - public Metadata withChildCount(Optional childCount) { + public Metadata withChildCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -854,7 +824,7 @@ public class Metadata { return this; } - public Metadata withIsContinuingSeries(Optional isContinuingSeries) { + public Metadata withIsContinuingSeries(Optional isContinuingSeries) { Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); this.isContinuingSeries = isContinuingSeries; return this; @@ -866,7 +836,7 @@ public class Metadata { return this; } - public Metadata withSkipChildren(Optional skipChildren) { + public Metadata withSkipChildren(Optional skipChildren) { Utils.checkNotNull(skipChildren, "skipChildren"); this.skipChildren = skipChildren; return this; @@ -878,7 +848,7 @@ public class Metadata { return this; } - public Metadata withAvailabilityId(Optional availabilityId) { + public Metadata withAvailabilityId(Optional availabilityId) { Utils.checkNotNull(availabilityId, "availabilityId"); this.availabilityId = availabilityId; return this; @@ -890,7 +860,7 @@ public class Metadata { return this; } - public Metadata withStreamingMediaId(Optional streamingMediaId) { + public Metadata withStreamingMediaId(Optional streamingMediaId) { Utils.checkNotNull(streamingMediaId, "streamingMediaId"); this.streamingMediaId = streamingMediaId; return this; @@ -902,7 +872,7 @@ public class Metadata { return this; } - public Metadata withPlayableKey(Optional playableKey) { + public Metadata withPlayableKey(Optional playableKey) { Utils.checkNotNull(playableKey, "playableKey"); this.playableKey = playableKey; return this; @@ -918,46 +888,46 @@ public class Metadata { } 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); + Objects.deepEquals(this.art, other.art) && + Objects.deepEquals(this.guid, other.guid) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.ratingKey, other.ratingKey) && + Objects.deepEquals(this.studio, other.studio) && + Objects.deepEquals(this.tagline, other.tagline) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.addedAt, other.addedAt) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.publicPagesURL, other.publicPagesURL) && + Objects.deepEquals(this.slug, other.slug) && + Objects.deepEquals(this.userState, other.userState) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.contentRating, other.contentRating) && + Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && + Objects.deepEquals(this.year, other.year) && + Objects.deepEquals(this.image, other.image) && + Objects.deepEquals(this.banner, other.banner) && + Objects.deepEquals(this.rating, other.rating) && + Objects.deepEquals(this.expiresAt, other.expiresAt) && + Objects.deepEquals(this.originalTitle, other.originalTitle) && + Objects.deepEquals(this.audienceRating, other.audienceRating) && + Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && + Objects.deepEquals(this.ratingImage, other.ratingImage) && + Objects.deepEquals(this.imdbRatingCount, other.imdbRatingCount) && + Objects.deepEquals(this.subtype, other.subtype) && + Objects.deepEquals(this.theme, other.theme) && + Objects.deepEquals(this.leafCount, other.leafCount) && + Objects.deepEquals(this.childCount, other.childCount) && + Objects.deepEquals(this.isContinuingSeries, other.isContinuingSeries) && + Objects.deepEquals(this.skipChildren, other.skipChildren) && + Objects.deepEquals(this.availabilityId, other.availabilityId) && + Objects.deepEquals(this.streamingMediaId, other.streamingMediaId) && + Objects.deepEquals(this.playableKey, other.playableKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( art, guid, key, @@ -1037,75 +1007,75 @@ public class Metadata { public final static class Builder { - private Optional art = Optional.empty(); + private Optional art = Optional.empty(); - private Optional guid = Optional.empty(); + private Optional guid = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional ratingKey = Optional.empty(); + private Optional ratingKey = Optional.empty(); - private Optional studio = Optional.empty(); + private Optional studio = Optional.empty(); - private Optional tagline = Optional.empty(); + private Optional tagline = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); - private Optional addedAt = Optional.empty(); + private Optional addedAt = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional publicPagesURL = Optional.empty(); + private Optional publicPagesURL = Optional.empty(); - private Optional slug = Optional.empty(); + private Optional slug = Optional.empty(); - private Optional userState = Optional.empty(); + private Optional userState = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional contentRating = Optional.empty(); + private Optional contentRating = Optional.empty(); - private Optional originallyAvailableAt = Optional.empty(); + private Optional originallyAvailableAt = Optional.empty(); - private Optional year = Optional.empty(); + private Optional year = Optional.empty(); - private Optional> image = Optional.empty(); + private Optional> image = Optional.empty(); - private Optional banner = Optional.empty(); + private Optional banner = Optional.empty(); - private Optional rating = Optional.empty(); + private Optional rating = Optional.empty(); - private Optional expiresAt = Optional.empty(); + private Optional expiresAt = Optional.empty(); - private Optional originalTitle = Optional.empty(); + private Optional originalTitle = Optional.empty(); - private Optional audienceRating = Optional.empty(); + private Optional audienceRating = Optional.empty(); - private Optional audienceRatingImage = Optional.empty(); + private Optional audienceRatingImage = Optional.empty(); - private Optional ratingImage = Optional.empty(); + private Optional ratingImage = Optional.empty(); - private Optional imdbRatingCount = Optional.empty(); + private Optional imdbRatingCount = Optional.empty(); - private Optional subtype = Optional.empty(); + private Optional subtype = Optional.empty(); - private Optional theme = Optional.empty(); + private Optional theme = Optional.empty(); - private Optional leafCount = Optional.empty(); + private Optional leafCount = Optional.empty(); - private Optional childCount = Optional.empty(); + private Optional childCount = Optional.empty(); - private Optional isContinuingSeries = Optional.empty(); + private Optional isContinuingSeries = Optional.empty(); - private Optional skipChildren = Optional.empty(); + private Optional skipChildren = Optional.empty(); - private Optional availabilityId = Optional.empty(); + private Optional availabilityId = Optional.empty(); - private Optional streamingMediaId = Optional.empty(); + private Optional streamingMediaId = Optional.empty(); - private Optional playableKey = Optional.empty(); + private Optional playableKey = Optional.empty(); private Builder() { // force use of static builder() method @@ -1117,7 +1087,7 @@ public class Metadata { return this; } - public Builder art(Optional art) { + public Builder art(Optional art) { Utils.checkNotNull(art, "art"); this.art = art; return this; @@ -1129,7 +1099,7 @@ public class Metadata { return this; } - public Builder guid(Optional guid) { + public Builder guid(Optional guid) { Utils.checkNotNull(guid, "guid"); this.guid = guid; return this; @@ -1141,7 +1111,7 @@ public class Metadata { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -1153,7 +1123,7 @@ public class Metadata { return this; } - public Builder ratingKey(Optional ratingKey) { + public Builder ratingKey(Optional ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); this.ratingKey = ratingKey; return this; @@ -1165,7 +1135,7 @@ public class Metadata { return this; } - public Builder studio(Optional studio) { + public Builder studio(Optional studio) { Utils.checkNotNull(studio, "studio"); this.studio = studio; return this; @@ -1177,7 +1147,7 @@ public class Metadata { return this; } - public Builder tagline(Optional tagline) { + public Builder tagline(Optional tagline) { Utils.checkNotNull(tagline, "tagline"); this.tagline = tagline; return this; @@ -1189,7 +1159,7 @@ public class Metadata { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -1201,7 +1171,7 @@ public class Metadata { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -1213,7 +1183,7 @@ public class Metadata { return this; } - public Builder addedAt(Optional addedAt) { + public Builder addedAt(Optional addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; return this; @@ -1225,7 +1195,7 @@ public class Metadata { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -1237,7 +1207,7 @@ public class Metadata { return this; } - public Builder publicPagesURL(Optional publicPagesURL) { + public Builder publicPagesURL(Optional publicPagesURL) { Utils.checkNotNull(publicPagesURL, "publicPagesURL"); this.publicPagesURL = publicPagesURL; return this; @@ -1249,7 +1219,7 @@ public class Metadata { return this; } - public Builder slug(Optional slug) { + public Builder slug(Optional slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -1261,7 +1231,7 @@ public class Metadata { return this; } - public Builder userState(Optional userState) { + public Builder userState(Optional userState) { Utils.checkNotNull(userState, "userState"); this.userState = userState; return this; @@ -1273,7 +1243,7 @@ public class Metadata { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -1285,7 +1255,7 @@ public class Metadata { return this; } - public Builder contentRating(Optional contentRating) { + public Builder contentRating(Optional contentRating) { Utils.checkNotNull(contentRating, "contentRating"); this.contentRating = contentRating; return this; @@ -1297,7 +1267,7 @@ public class Metadata { return this; } - public Builder originallyAvailableAt(Optional originallyAvailableAt) { + public Builder originallyAvailableAt(Optional originallyAvailableAt) { Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); this.originallyAvailableAt = originallyAvailableAt; return this; @@ -1309,19 +1279,19 @@ public class Metadata { return this; } - public Builder year(Optional year) { + public Builder year(Optional year) { Utils.checkNotNull(year, "year"); this.year = year; return this; } - public Builder image(java.util.List image) { + public Builder image(List image) { Utils.checkNotNull(image, "image"); this.image = Optional.ofNullable(image); return this; } - public Builder image(Optional> image) { + public Builder image(Optional> image) { Utils.checkNotNull(image, "image"); this.image = image; return this; @@ -1333,7 +1303,7 @@ public class Metadata { return this; } - public Builder banner(Optional banner) { + public Builder banner(Optional banner) { Utils.checkNotNull(banner, "banner"); this.banner = banner; return this; @@ -1345,7 +1315,7 @@ public class Metadata { return this; } - public Builder rating(Optional rating) { + public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); this.rating = rating; return this; @@ -1357,7 +1327,7 @@ public class Metadata { return this; } - public Builder expiresAt(Optional expiresAt) { + public Builder expiresAt(Optional expiresAt) { Utils.checkNotNull(expiresAt, "expiresAt"); this.expiresAt = expiresAt; return this; @@ -1369,7 +1339,7 @@ public class Metadata { return this; } - public Builder originalTitle(Optional originalTitle) { + public Builder originalTitle(Optional originalTitle) { Utils.checkNotNull(originalTitle, "originalTitle"); this.originalTitle = originalTitle; return this; @@ -1381,7 +1351,7 @@ public class Metadata { return this; } - public Builder audienceRating(Optional audienceRating) { + public Builder audienceRating(Optional audienceRating) { Utils.checkNotNull(audienceRating, "audienceRating"); this.audienceRating = audienceRating; return this; @@ -1393,7 +1363,7 @@ public class Metadata { return this; } - public Builder audienceRatingImage(Optional audienceRatingImage) { + public Builder audienceRatingImage(Optional audienceRatingImage) { Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); this.audienceRatingImage = audienceRatingImage; return this; @@ -1405,7 +1375,7 @@ public class Metadata { return this; } - public Builder ratingImage(Optional ratingImage) { + public Builder ratingImage(Optional ratingImage) { Utils.checkNotNull(ratingImage, "ratingImage"); this.ratingImage = ratingImage; return this; @@ -1417,7 +1387,7 @@ public class Metadata { return this; } - public Builder imdbRatingCount(Optional imdbRatingCount) { + public Builder imdbRatingCount(Optional imdbRatingCount) { Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); this.imdbRatingCount = imdbRatingCount; return this; @@ -1429,7 +1399,7 @@ public class Metadata { return this; } - public Builder subtype(Optional subtype) { + public Builder subtype(Optional subtype) { Utils.checkNotNull(subtype, "subtype"); this.subtype = subtype; return this; @@ -1441,7 +1411,7 @@ public class Metadata { return this; } - public Builder theme(Optional theme) { + public Builder theme(Optional theme) { Utils.checkNotNull(theme, "theme"); this.theme = theme; return this; @@ -1453,7 +1423,7 @@ public class Metadata { return this; } - public Builder leafCount(Optional leafCount) { + public Builder leafCount(Optional leafCount) { Utils.checkNotNull(leafCount, "leafCount"); this.leafCount = leafCount; return this; @@ -1465,7 +1435,7 @@ public class Metadata { return this; } - public Builder childCount(Optional childCount) { + public Builder childCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); this.childCount = childCount; return this; @@ -1477,7 +1447,7 @@ public class Metadata { return this; } - public Builder isContinuingSeries(Optional isContinuingSeries) { + public Builder isContinuingSeries(Optional isContinuingSeries) { Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); this.isContinuingSeries = isContinuingSeries; return this; @@ -1489,7 +1459,7 @@ public class Metadata { return this; } - public Builder skipChildren(Optional skipChildren) { + public Builder skipChildren(Optional skipChildren) { Utils.checkNotNull(skipChildren, "skipChildren"); this.skipChildren = skipChildren; return this; @@ -1501,7 +1471,7 @@ public class Metadata { return this; } - public Builder availabilityId(Optional availabilityId) { + public Builder availabilityId(Optional availabilityId) { Utils.checkNotNull(availabilityId, "availabilityId"); this.availabilityId = availabilityId; return this; @@ -1513,7 +1483,7 @@ public class Metadata { return this; } - public Builder streamingMediaId(Optional streamingMediaId) { + public Builder streamingMediaId(Optional streamingMediaId) { Utils.checkNotNull(streamingMediaId, "streamingMediaId"); this.streamingMediaId = streamingMediaId; return this; @@ -1525,7 +1495,7 @@ public class Metadata { return this; } - public Builder playableKey(Optional playableKey) { + public Builder playableKey(Optional playableKey) { Utils.checkNotNull(playableKey, "playableKey"); this.playableKey = playableKey; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java b/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java new file mode 100644 index 00000000..4d205713 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/MyPlex.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java rename to src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java index aa8ff65a..8e6e1c40 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java @@ -1,87 +1,88 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class MyPlex { @JsonInclude(Include.NON_ABSENT) @JsonProperty("authToken") - private Optional authToken; + private Optional authToken; @JsonInclude(Include.NON_ABSENT) @JsonProperty("username") - private Optional username; + private Optional username; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mappingState") - private Optional mappingState; + private Optional mappingState; @JsonInclude(Include.NON_ABSENT) @JsonProperty("mappingError") - private Optional mappingError; + private Optional mappingError; @JsonInclude(Include.NON_ABSENT) @JsonProperty("signInState") - private Optional signInState; + private Optional signInState; @JsonInclude(Include.NON_ABSENT) @JsonProperty("publicAddress") - private Optional publicAddress; + private Optional publicAddress; @JsonInclude(Include.NON_ABSENT) @JsonProperty("publicPort") - private Optional publicPort; + private Optional publicPort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("privateAddress") - private Optional privateAddress; + private Optional privateAddress; @JsonInclude(Include.NON_ABSENT) @JsonProperty("privatePort") - private Optional privatePort; + private Optional privatePort; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subscriptionFeatures") - private Optional subscriptionFeatures; + private Optional subscriptionFeatures; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subscriptionActive") - private Optional subscriptionActive; + private Optional subscriptionActive; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subscriptionState") - private Optional 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) { + @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"); @@ -112,76 +113,64 @@ public class 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; + return authToken; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional username() { - return (Optional) username; + return username; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mappingState() { - return (Optional) mappingState; + return mappingState; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional mappingError() { - return (Optional) mappingError; + return mappingError; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional signInState() { - return (Optional) signInState; + return signInState; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional publicAddress() { - return (Optional) publicAddress; + return publicAddress; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional publicPort() { - return (Optional) publicPort; + return publicPort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional privateAddress() { - return (Optional) privateAddress; + return privateAddress; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional privatePort() { - return (Optional) privatePort; + return privatePort; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subscriptionFeatures() { - return (Optional) subscriptionFeatures; + return subscriptionFeatures; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subscriptionActive() { - return (Optional) subscriptionActive; + return subscriptionActive; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subscriptionState() { - return (Optional) subscriptionState; + return subscriptionState; } public final static Builder builder() { @@ -194,7 +183,7 @@ public class MyPlex { return this; } - public MyPlex withAuthToken(Optional authToken) { + public MyPlex withAuthToken(Optional authToken) { Utils.checkNotNull(authToken, "authToken"); this.authToken = authToken; return this; @@ -206,7 +195,7 @@ public class MyPlex { return this; } - public MyPlex withUsername(Optional username) { + public MyPlex withUsername(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; @@ -218,7 +207,7 @@ public class MyPlex { return this; } - public MyPlex withMappingState(Optional mappingState) { + public MyPlex withMappingState(Optional mappingState) { Utils.checkNotNull(mappingState, "mappingState"); this.mappingState = mappingState; return this; @@ -230,7 +219,7 @@ public class MyPlex { return this; } - public MyPlex withMappingError(Optional mappingError) { + public MyPlex withMappingError(Optional mappingError) { Utils.checkNotNull(mappingError, "mappingError"); this.mappingError = mappingError; return this; @@ -242,7 +231,7 @@ public class MyPlex { return this; } - public MyPlex withSignInState(Optional signInState) { + public MyPlex withSignInState(Optional signInState) { Utils.checkNotNull(signInState, "signInState"); this.signInState = signInState; return this; @@ -254,7 +243,7 @@ public class MyPlex { return this; } - public MyPlex withPublicAddress(Optional publicAddress) { + public MyPlex withPublicAddress(Optional publicAddress) { Utils.checkNotNull(publicAddress, "publicAddress"); this.publicAddress = publicAddress; return this; @@ -266,7 +255,7 @@ public class MyPlex { return this; } - public MyPlex withPublicPort(Optional publicPort) { + public MyPlex withPublicPort(Optional publicPort) { Utils.checkNotNull(publicPort, "publicPort"); this.publicPort = publicPort; return this; @@ -278,7 +267,7 @@ public class MyPlex { return this; } - public MyPlex withPrivateAddress(Optional privateAddress) { + public MyPlex withPrivateAddress(Optional privateAddress) { Utils.checkNotNull(privateAddress, "privateAddress"); this.privateAddress = privateAddress; return this; @@ -290,7 +279,7 @@ public class MyPlex { return this; } - public MyPlex withPrivatePort(Optional privatePort) { + public MyPlex withPrivatePort(Optional privatePort) { Utils.checkNotNull(privatePort, "privatePort"); this.privatePort = privatePort; return this; @@ -302,7 +291,7 @@ public class MyPlex { return this; } - public MyPlex withSubscriptionFeatures(Optional subscriptionFeatures) { + public MyPlex withSubscriptionFeatures(Optional subscriptionFeatures) { Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); this.subscriptionFeatures = subscriptionFeatures; return this; @@ -314,7 +303,7 @@ public class MyPlex { return this; } - public MyPlex withSubscriptionActive(Optional subscriptionActive) { + public MyPlex withSubscriptionActive(Optional subscriptionActive) { Utils.checkNotNull(subscriptionActive, "subscriptionActive"); this.subscriptionActive = subscriptionActive; return this; @@ -326,7 +315,7 @@ public class MyPlex { return this; } - public MyPlex withSubscriptionState(Optional subscriptionState) { + public MyPlex withSubscriptionState(Optional subscriptionState) { Utils.checkNotNull(subscriptionState, "subscriptionState"); this.subscriptionState = subscriptionState; return this; @@ -342,23 +331,23 @@ public class MyPlex { } 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); + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.username, other.username) && + Objects.deepEquals(this.mappingState, other.mappingState) && + Objects.deepEquals(this.mappingError, other.mappingError) && + Objects.deepEquals(this.signInState, other.signInState) && + Objects.deepEquals(this.publicAddress, other.publicAddress) && + Objects.deepEquals(this.publicPort, other.publicPort) && + Objects.deepEquals(this.privateAddress, other.privateAddress) && + Objects.deepEquals(this.privatePort, other.privatePort) && + Objects.deepEquals(this.subscriptionFeatures, other.subscriptionFeatures) && + Objects.deepEquals(this.subscriptionActive, other.subscriptionActive) && + Objects.deepEquals(this.subscriptionState, other.subscriptionState); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( authToken, username, mappingState, @@ -392,29 +381,29 @@ public class MyPlex { public final static class Builder { - private Optional authToken = Optional.empty(); + private Optional authToken = Optional.empty(); - private Optional username = Optional.empty(); + private Optional username = Optional.empty(); - private Optional mappingState = Optional.empty(); + private Optional mappingState = Optional.empty(); - private Optional mappingError = Optional.empty(); + private Optional mappingError = Optional.empty(); - private Optional signInState = Optional.empty(); + private Optional signInState = Optional.empty(); - private Optional publicAddress = Optional.empty(); + private Optional publicAddress = Optional.empty(); - private Optional publicPort = Optional.empty(); + private Optional publicPort = Optional.empty(); - private Optional privateAddress = Optional.empty(); + private Optional privateAddress = Optional.empty(); - private Optional privatePort = Optional.empty(); + private Optional privatePort = Optional.empty(); - private Optional subscriptionFeatures = Optional.empty(); + private Optional subscriptionFeatures = Optional.empty(); - private Optional subscriptionActive = Optional.empty(); + private Optional subscriptionActive = Optional.empty(); - private Optional subscriptionState = Optional.empty(); + private Optional subscriptionState = Optional.empty(); private Builder() { // force use of static builder() method @@ -426,7 +415,7 @@ public class MyPlex { return this; } - public Builder authToken(Optional authToken) { + public Builder authToken(Optional authToken) { Utils.checkNotNull(authToken, "authToken"); this.authToken = authToken; return this; @@ -438,7 +427,7 @@ public class MyPlex { return this; } - public Builder username(Optional username) { + public Builder username(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; @@ -450,7 +439,7 @@ public class MyPlex { return this; } - public Builder mappingState(Optional mappingState) { + public Builder mappingState(Optional mappingState) { Utils.checkNotNull(mappingState, "mappingState"); this.mappingState = mappingState; return this; @@ -462,7 +451,7 @@ public class MyPlex { return this; } - public Builder mappingError(Optional mappingError) { + public Builder mappingError(Optional mappingError) { Utils.checkNotNull(mappingError, "mappingError"); this.mappingError = mappingError; return this; @@ -474,7 +463,7 @@ public class MyPlex { return this; } - public Builder signInState(Optional signInState) { + public Builder signInState(Optional signInState) { Utils.checkNotNull(signInState, "signInState"); this.signInState = signInState; return this; @@ -486,7 +475,7 @@ public class MyPlex { return this; } - public Builder publicAddress(Optional publicAddress) { + public Builder publicAddress(Optional publicAddress) { Utils.checkNotNull(publicAddress, "publicAddress"); this.publicAddress = publicAddress; return this; @@ -498,7 +487,7 @@ public class MyPlex { return this; } - public Builder publicPort(Optional publicPort) { + public Builder publicPort(Optional publicPort) { Utils.checkNotNull(publicPort, "publicPort"); this.publicPort = publicPort; return this; @@ -510,7 +499,7 @@ public class MyPlex { return this; } - public Builder privateAddress(Optional privateAddress) { + public Builder privateAddress(Optional privateAddress) { Utils.checkNotNull(privateAddress, "privateAddress"); this.privateAddress = privateAddress; return this; @@ -522,7 +511,7 @@ public class MyPlex { return this; } - public Builder privatePort(Optional privatePort) { + public Builder privatePort(Optional privatePort) { Utils.checkNotNull(privatePort, "privatePort"); this.privatePort = privatePort; return this; @@ -534,7 +523,7 @@ public class MyPlex { return this; } - public Builder subscriptionFeatures(Optional subscriptionFeatures) { + public Builder subscriptionFeatures(Optional subscriptionFeatures) { Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); this.subscriptionFeatures = subscriptionFeatures; return this; @@ -546,7 +535,7 @@ public class MyPlex { return this; } - public Builder subscriptionActive(Optional subscriptionActive) { + public Builder subscriptionActive(Optional subscriptionActive) { Utils.checkNotNull(subscriptionActive, "subscriptionActive"); this.subscriptionActive = subscriptionActive; return this; @@ -558,7 +547,7 @@ public class MyPlex { return this; } - public Builder subscriptionState(Optional subscriptionState) { + public Builder subscriptionState(Optional subscriptionState) { Utils.checkNotNull(subscriptionState, "subscriptionState"); this.subscriptionState = subscriptionState; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java b/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java new file mode 100644 index 00000000..2f77ba6a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/Operator.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java rename to src/main/java/dev/plexapi/sdk/models/operations/Operator.java index cdb5bded..56586b93 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Operator.java @@ -1,37 +1,36 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Operator { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonCreator public Operator( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { + @JsonProperty("key") Optional key, + @JsonProperty("title") Optional title) { Utils.checkNotNull(key, "key"); Utils.checkNotNull(title, "title"); this.key = key; @@ -42,16 +41,14 @@ public class Operator { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } public final static Builder builder() { @@ -64,7 +61,7 @@ public class Operator { return this; } - public Operator withKey(Optional key) { + public Operator withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -76,7 +73,7 @@ public class Operator { return this; } - public Operator withTitle(Optional title) { + public Operator withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -92,13 +89,13 @@ public class Operator { } Operator other = (Operator) o; return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, title); } @@ -112,9 +109,9 @@ public class Operator { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,7 +123,7 @@ public class Operator { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -138,7 +135,7 @@ public class Operator { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java b/src/main/java/dev/plexapi/sdk/models/operations/Part.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java rename to src/main/java/dev/plexapi/sdk/models/operations/Part.java index f645d1e9..38e5f9a0 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Part.java @@ -1,77 +1,78 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Part { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("file") - private Optional file; + private Optional file; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; + private Optional has64bitOffsets; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasThumbnail") - private Optional hasThumbnail; + private Optional hasThumbnail; @JsonInclude(Include.NON_ABSENT) @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; + private Optional optimizedForStreaming; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoProfile") - private Optional 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) { + @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"); @@ -98,64 +99,54 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional file() { - return (Optional) file; + return file; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; + return has64bitOffsets; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasThumbnail() { - return (Optional) hasThumbnail; + return hasThumbnail; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; + return optimizedForStreaming; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoProfile() { - return (Optional) videoProfile; + return videoProfile; } public final static Builder builder() { @@ -168,7 +159,7 @@ public class Part { return this; } - public Part withId(Optional id) { + public Part withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -180,7 +171,7 @@ public class Part { return this; } - public Part withKey(Optional key) { + public Part withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -192,7 +183,7 @@ public class Part { return this; } - public Part withDuration(Optional duration) { + public Part withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -204,7 +195,7 @@ public class Part { return this; } - public Part withFile(Optional file) { + public Part withFile(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -216,7 +207,7 @@ public class Part { return this; } - public Part withSize(Optional size) { + public Part withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -228,7 +219,7 @@ public class Part { return this; } - public Part withContainer(Optional container) { + public Part withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -240,7 +231,7 @@ public class Part { return this; } - public Part withHas64bitOffsets(Optional has64bitOffsets) { + public Part withHas64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -252,7 +243,7 @@ public class Part { return this; } - public Part withHasThumbnail(Optional hasThumbnail) { + public Part withHasThumbnail(Optional hasThumbnail) { Utils.checkNotNull(hasThumbnail, "hasThumbnail"); this.hasThumbnail = hasThumbnail; return this; @@ -264,7 +255,7 @@ public class Part { return this; } - public Part withOptimizedForStreaming(Optional optimizedForStreaming) { + public Part withOptimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -276,7 +267,7 @@ public class Part { return this; } - public Part withVideoProfile(Optional videoProfile) { + public Part withVideoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; @@ -292,21 +283,21 @@ public class Part { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.file, other.file) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && + Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) && + Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && + Objects.deepEquals(this.videoProfile, other.videoProfile); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, key, duration, @@ -336,25 +327,25 @@ public class Part { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional file = Optional.empty(); + private Optional file = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional has64bitOffsets = Optional.empty(); + private Optional has64bitOffsets = Optional.empty(); - private Optional hasThumbnail = Optional.empty(); + private Optional hasThumbnail = Optional.empty(); - private Optional optimizedForStreaming = Optional.empty(); + private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -366,7 +357,7 @@ public class Part { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -378,7 +369,7 @@ public class Part { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -390,7 +381,7 @@ public class Part { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -402,7 +393,7 @@ public class Part { return this; } - public Builder file(Optional file) { + public Builder file(Optional file) { Utils.checkNotNull(file, "file"); this.file = file; return this; @@ -414,7 +405,7 @@ public class Part { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -426,7 +417,7 @@ public class Part { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -438,7 +429,7 @@ public class Part { return this; } - public Builder has64bitOffsets(Optional has64bitOffsets) { + public Builder has64bitOffsets(Optional has64bitOffsets) { Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); this.has64bitOffsets = has64bitOffsets; return this; @@ -450,7 +441,7 @@ public class Part { return this; } - public Builder hasThumbnail(Optional hasThumbnail) { + public Builder hasThumbnail(Optional hasThumbnail) { Utils.checkNotNull(hasThumbnail, "hasThumbnail"); this.hasThumbnail = hasThumbnail; return this; @@ -462,7 +453,7 @@ public class Part { return this; } - public Builder optimizedForStreaming(Optional optimizedForStreaming) { + public Builder optimizedForStreaming(Optional optimizedForStreaming) { Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); this.optimizedForStreaming = optimizedForStreaming; return this; @@ -474,7 +465,7 @@ public class Part { return this; } - public Builder videoProfile(Optional videoProfile) { + public Builder videoProfile(Optional videoProfile) { Utils.checkNotNull(videoProfile, "videoProfile"); this.videoProfile = videoProfile; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java new file mode 100644 index 00000000..662a6cf2 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java @@ -0,0 +1,727 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class PastSubscription { + + @JsonInclude(Include.ALWAYS) + @JsonProperty("id") + private Optional id; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("mode") + private Optional mode; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("renewsAt") + private Optional renewsAt; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("endsAt") + private Optional endsAt; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("canceled") + private Optional canceled; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("gracePeriod") + private Optional gracePeriod; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("onHold") + private Optional onHold; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("canReactivate") + private Optional canReactivate; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("canUpgrade") + private Optional canUpgrade; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("canDowngrade") + private Optional canDowngrade; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("canConvert") + private Optional canConvert; + + @JsonProperty("type") + private String type; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("transfer") + private Optional transfer; + + @JsonProperty("state") + private PostUsersSignInDataState state; + + @JsonProperty("billing") + private Billing billing; + + @JsonCreator + public PastSubscription( + @JsonProperty("id") Optional id, + @JsonProperty("mode") Optional mode, + @JsonProperty("renewsAt") Optional renewsAt, + @JsonProperty("endsAt") Optional endsAt, + @JsonProperty("canceled") Optional canceled, + @JsonProperty("gracePeriod") Optional gracePeriod, + @JsonProperty("onHold") Optional onHold, + @JsonProperty("canReactivate") Optional canReactivate, + @JsonProperty("canUpgrade") Optional canUpgrade, + @JsonProperty("canDowngrade") Optional canDowngrade, + @JsonProperty("canConvert") Optional canConvert, + @JsonProperty("type") String type, + @JsonProperty("transfer") Optional transfer, + @JsonProperty("state") PostUsersSignInDataState state, + @JsonProperty("billing") Billing billing) { + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(renewsAt, "renewsAt"); + Utils.checkNotNull(endsAt, "endsAt"); + Utils.checkNotNull(canceled, "canceled"); + Utils.checkNotNull(gracePeriod, "gracePeriod"); + Utils.checkNotNull(onHold, "onHold"); + Utils.checkNotNull(canReactivate, "canReactivate"); + Utils.checkNotNull(canUpgrade, "canUpgrade"); + Utils.checkNotNull(canDowngrade, "canDowngrade"); + Utils.checkNotNull(canConvert, "canConvert"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(transfer, "transfer"); + Utils.checkNotNull(state, "state"); + Utils.checkNotNull(billing, "billing"); + this.id = id; + this.mode = mode; + this.renewsAt = renewsAt; + this.endsAt = endsAt; + this.canceled = canceled; + this.gracePeriod = gracePeriod; + this.onHold = onHold; + this.canReactivate = canReactivate; + this.canUpgrade = canUpgrade; + this.canDowngrade = canDowngrade; + this.canConvert = canConvert; + this.type = type; + this.transfer = transfer; + this.state = state; + this.billing = billing; + } + + public PastSubscription( + String type, + PostUsersSignInDataState state, + Billing billing) { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, Optional.empty(), state, billing); + } + + @JsonIgnore + public Optional id() { + return id; + } + + @JsonIgnore + public Optional mode() { + return mode; + } + + @JsonIgnore + public Optional renewsAt() { + return renewsAt; + } + + @JsonIgnore + public Optional endsAt() { + return endsAt; + } + + @JsonIgnore + public Optional canceled() { + return canceled; + } + + @JsonIgnore + public Optional gracePeriod() { + return gracePeriod; + } + + @JsonIgnore + public Optional onHold() { + return onHold; + } + + @JsonIgnore + public Optional canReactivate() { + return canReactivate; + } + + @JsonIgnore + public Optional canUpgrade() { + return canUpgrade; + } + + @JsonIgnore + public Optional canDowngrade() { + return canDowngrade; + } + + @JsonIgnore + public Optional canConvert() { + return canConvert; + } + + @JsonIgnore + public String type() { + return type; + } + + @JsonIgnore + public Optional transfer() { + return transfer; + } + + @JsonIgnore + public PostUsersSignInDataState state() { + return state; + } + + @JsonIgnore + public Billing billing() { + return billing; + } + + public final static Builder builder() { + return new Builder(); + } + + public PastSubscription withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public PastSubscription withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public PastSubscription withMode(String mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public PastSubscription withMode(Optional mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + public PastSubscription withRenewsAt(int renewsAt) { + Utils.checkNotNull(renewsAt, "renewsAt"); + this.renewsAt = Optional.ofNullable(renewsAt); + return this; + } + + public PastSubscription withRenewsAt(Optional renewsAt) { + Utils.checkNotNull(renewsAt, "renewsAt"); + this.renewsAt = renewsAt; + return this; + } + + public PastSubscription withEndsAt(int endsAt) { + Utils.checkNotNull(endsAt, "endsAt"); + this.endsAt = Optional.ofNullable(endsAt); + return this; + } + + public PastSubscription withEndsAt(Optional endsAt) { + Utils.checkNotNull(endsAt, "endsAt"); + this.endsAt = endsAt; + return this; + } + + public PastSubscription withCanceled(boolean canceled) { + Utils.checkNotNull(canceled, "canceled"); + this.canceled = Optional.ofNullable(canceled); + return this; + } + + public PastSubscription withCanceled(Optional canceled) { + Utils.checkNotNull(canceled, "canceled"); + this.canceled = canceled; + return this; + } + + public PastSubscription withGracePeriod(boolean gracePeriod) { + Utils.checkNotNull(gracePeriod, "gracePeriod"); + this.gracePeriod = Optional.ofNullable(gracePeriod); + return this; + } + + public PastSubscription withGracePeriod(Optional gracePeriod) { + Utils.checkNotNull(gracePeriod, "gracePeriod"); + this.gracePeriod = gracePeriod; + return this; + } + + public PastSubscription withOnHold(boolean onHold) { + Utils.checkNotNull(onHold, "onHold"); + this.onHold = Optional.ofNullable(onHold); + return this; + } + + public PastSubscription withOnHold(Optional onHold) { + Utils.checkNotNull(onHold, "onHold"); + this.onHold = onHold; + return this; + } + + public PastSubscription withCanReactivate(boolean canReactivate) { + Utils.checkNotNull(canReactivate, "canReactivate"); + this.canReactivate = Optional.ofNullable(canReactivate); + return this; + } + + public PastSubscription withCanReactivate(Optional canReactivate) { + Utils.checkNotNull(canReactivate, "canReactivate"); + this.canReactivate = canReactivate; + return this; + } + + public PastSubscription withCanUpgrade(boolean canUpgrade) { + Utils.checkNotNull(canUpgrade, "canUpgrade"); + this.canUpgrade = Optional.ofNullable(canUpgrade); + return this; + } + + public PastSubscription withCanUpgrade(Optional canUpgrade) { + Utils.checkNotNull(canUpgrade, "canUpgrade"); + this.canUpgrade = canUpgrade; + return this; + } + + public PastSubscription withCanDowngrade(boolean canDowngrade) { + Utils.checkNotNull(canDowngrade, "canDowngrade"); + this.canDowngrade = Optional.ofNullable(canDowngrade); + return this; + } + + public PastSubscription withCanDowngrade(Optional canDowngrade) { + Utils.checkNotNull(canDowngrade, "canDowngrade"); + this.canDowngrade = canDowngrade; + return this; + } + + public PastSubscription withCanConvert(boolean canConvert) { + Utils.checkNotNull(canConvert, "canConvert"); + this.canConvert = Optional.ofNullable(canConvert); + return this; + } + + public PastSubscription withCanConvert(Optional canConvert) { + Utils.checkNotNull(canConvert, "canConvert"); + this.canConvert = canConvert; + return this; + } + + public PastSubscription withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public PastSubscription withTransfer(String transfer) { + Utils.checkNotNull(transfer, "transfer"); + this.transfer = Optional.ofNullable(transfer); + return this; + } + + public PastSubscription withTransfer(Optional transfer) { + Utils.checkNotNull(transfer, "transfer"); + this.transfer = transfer; + return this; + } + + public PastSubscription withState(PostUsersSignInDataState state) { + Utils.checkNotNull(state, "state"); + this.state = state; + return this; + } + + public PastSubscription withBilling(Billing billing) { + Utils.checkNotNull(billing, "billing"); + this.billing = billing; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PastSubscription other = (PastSubscription) o; + return + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.mode, other.mode) && + Objects.deepEquals(this.renewsAt, other.renewsAt) && + Objects.deepEquals(this.endsAt, other.endsAt) && + Objects.deepEquals(this.canceled, other.canceled) && + Objects.deepEquals(this.gracePeriod, other.gracePeriod) && + Objects.deepEquals(this.onHold, other.onHold) && + Objects.deepEquals(this.canReactivate, other.canReactivate) && + Objects.deepEquals(this.canUpgrade, other.canUpgrade) && + Objects.deepEquals(this.canDowngrade, other.canDowngrade) && + Objects.deepEquals(this.canConvert, other.canConvert) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.transfer, other.transfer) && + Objects.deepEquals(this.state, other.state) && + Objects.deepEquals(this.billing, other.billing); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + mode, + renewsAt, + endsAt, + canceled, + gracePeriod, + onHold, + canReactivate, + canUpgrade, + canDowngrade, + canConvert, + type, + transfer, + state, + billing); + } + + @Override + public String toString() { + return Utils.toString(PastSubscription.class, + "id", id, + "mode", mode, + "renewsAt", renewsAt, + "endsAt", endsAt, + "canceled", canceled, + "gracePeriod", gracePeriod, + "onHold", onHold, + "canReactivate", canReactivate, + "canUpgrade", canUpgrade, + "canDowngrade", canDowngrade, + "canConvert", canConvert, + "type", type, + "transfer", transfer, + "state", state, + "billing", billing); + } + + public final static class Builder { + + private Optional id = Optional.empty(); + + private Optional mode = Optional.empty(); + + private Optional renewsAt = Optional.empty(); + + private Optional endsAt = Optional.empty(); + + private Optional canceled; + + private Optional gracePeriod; + + private Optional onHold; + + private Optional canReactivate; + + private Optional canUpgrade; + + private Optional canDowngrade; + + private Optional canConvert; + + private String type; + + private Optional transfer = Optional.empty(); + + private PostUsersSignInDataState state; + + private Billing billing; + + 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 mode(String mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = Optional.ofNullable(mode); + return this; + } + + public Builder mode(Optional mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + public Builder renewsAt(int renewsAt) { + Utils.checkNotNull(renewsAt, "renewsAt"); + this.renewsAt = Optional.ofNullable(renewsAt); + return this; + } + + public Builder renewsAt(Optional renewsAt) { + Utils.checkNotNull(renewsAt, "renewsAt"); + this.renewsAt = renewsAt; + return this; + } + + public Builder endsAt(int endsAt) { + Utils.checkNotNull(endsAt, "endsAt"); + this.endsAt = Optional.ofNullable(endsAt); + return this; + } + + public Builder endsAt(Optional endsAt) { + Utils.checkNotNull(endsAt, "endsAt"); + this.endsAt = endsAt; + return this; + } + + public Builder canceled(boolean canceled) { + Utils.checkNotNull(canceled, "canceled"); + this.canceled = Optional.ofNullable(canceled); + return this; + } + + public Builder canceled(Optional canceled) { + Utils.checkNotNull(canceled, "canceled"); + this.canceled = canceled; + return this; + } + + public Builder gracePeriod(boolean gracePeriod) { + Utils.checkNotNull(gracePeriod, "gracePeriod"); + this.gracePeriod = Optional.ofNullable(gracePeriod); + return this; + } + + public Builder gracePeriod(Optional gracePeriod) { + Utils.checkNotNull(gracePeriod, "gracePeriod"); + this.gracePeriod = gracePeriod; + return this; + } + + public Builder onHold(boolean onHold) { + Utils.checkNotNull(onHold, "onHold"); + this.onHold = Optional.ofNullable(onHold); + return this; + } + + public Builder onHold(Optional onHold) { + Utils.checkNotNull(onHold, "onHold"); + this.onHold = onHold; + return this; + } + + public Builder canReactivate(boolean canReactivate) { + Utils.checkNotNull(canReactivate, "canReactivate"); + this.canReactivate = Optional.ofNullable(canReactivate); + return this; + } + + public Builder canReactivate(Optional canReactivate) { + Utils.checkNotNull(canReactivate, "canReactivate"); + this.canReactivate = canReactivate; + return this; + } + + public Builder canUpgrade(boolean canUpgrade) { + Utils.checkNotNull(canUpgrade, "canUpgrade"); + this.canUpgrade = Optional.ofNullable(canUpgrade); + return this; + } + + public Builder canUpgrade(Optional canUpgrade) { + Utils.checkNotNull(canUpgrade, "canUpgrade"); + this.canUpgrade = canUpgrade; + return this; + } + + public Builder canDowngrade(boolean canDowngrade) { + Utils.checkNotNull(canDowngrade, "canDowngrade"); + this.canDowngrade = Optional.ofNullable(canDowngrade); + return this; + } + + public Builder canDowngrade(Optional canDowngrade) { + Utils.checkNotNull(canDowngrade, "canDowngrade"); + this.canDowngrade = canDowngrade; + return this; + } + + public Builder canConvert(boolean canConvert) { + Utils.checkNotNull(canConvert, "canConvert"); + this.canConvert = Optional.ofNullable(canConvert); + return this; + } + + public Builder canConvert(Optional canConvert) { + Utils.checkNotNull(canConvert, "canConvert"); + this.canConvert = canConvert; + return this; + } + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Builder transfer(String transfer) { + Utils.checkNotNull(transfer, "transfer"); + this.transfer = Optional.ofNullable(transfer); + return this; + } + + public Builder transfer(Optional transfer) { + Utils.checkNotNull(transfer, "transfer"); + this.transfer = transfer; + return this; + } + + public Builder state(PostUsersSignInDataState state) { + Utils.checkNotNull(state, "state"); + this.state = state; + return this; + } + + public Builder billing(Billing billing) { + Utils.checkNotNull(billing, "billing"); + this.billing = billing; + return this; + } + + public PastSubscription build() { + if (canceled == null) { + canceled = _SINGLETON_VALUE_Canceled.value(); + } + if (gracePeriod == null) { + gracePeriod = _SINGLETON_VALUE_GracePeriod.value(); + } + if (onHold == null) { + onHold = _SINGLETON_VALUE_OnHold.value(); + } + if (canReactivate == null) { + canReactivate = _SINGLETON_VALUE_CanReactivate.value(); + } + if (canUpgrade == null) { + canUpgrade = _SINGLETON_VALUE_CanUpgrade.value(); + } + if (canDowngrade == null) { + canDowngrade = _SINGLETON_VALUE_CanDowngrade.value(); + } + if (canConvert == null) { + canConvert = _SINGLETON_VALUE_CanConvert.value(); + } return new PastSubscription( + id, + mode, + renewsAt, + endsAt, + canceled, + gracePeriod, + onHold, + canReactivate, + canUpgrade, + canDowngrade, + canConvert, + type, + transfer, + state, + billing); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Canceled = + new LazySingletonValue<>( + "canceled", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_GracePeriod = + new LazySingletonValue<>( + "gracePeriod", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_OnHold = + new LazySingletonValue<>( + "onHold", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CanReactivate = + new LazySingletonValue<>( + "canReactivate", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CanUpgrade = + new LazySingletonValue<>( + "canUpgrade", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CanDowngrade = + new LazySingletonValue<>( + "canDowngrade", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CanConvert = + new LazySingletonValue<>( + "canConvert", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java b/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java rename to src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java index 1934aed9..309cb4a8 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import java.lang.String; /** * PathParamTaskName - The name of the task to be started. diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java index d7332bdf..0b944543 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java @@ -1,21 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; 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 { @@ -29,19 +30,19 @@ public class PerformSearchRequest { * 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; + private Optional sectionId; /** * The number of items to return per hub */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; + private Optional limit; @JsonCreator public PerformSearchRequest( String query, - Optional sectionId, - Optional limit) { + Optional sectionId, + Optional limit) { Utils.checkNotNull(query, "query"); Utils.checkNotNull(sectionId, "sectionId"); Utils.checkNotNull(limit, "limit"); @@ -66,19 +67,17 @@ public class PerformSearchRequest { /** * 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; + return sectionId; } /** * The number of items to return per hub */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional limit() { - return (Optional) limit; + return limit; } public final static Builder builder() { @@ -106,7 +105,7 @@ public class PerformSearchRequest { /** * This gives context to the search, and can result in re-ordering of search result hubs */ - public PerformSearchRequest withSectionId(Optional sectionId) { + public PerformSearchRequest withSectionId(Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -124,7 +123,7 @@ public class PerformSearchRequest { /** * The number of items to return per hub */ - public PerformSearchRequest withLimit(Optional limit) { + public PerformSearchRequest withLimit(Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -140,14 +139,14 @@ public class PerformSearchRequest { } 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); + Objects.deepEquals(this.query, other.query) && + Objects.deepEquals(this.sectionId, other.sectionId) && + Objects.deepEquals(this.limit, other.limit); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( query, sectionId, limit); @@ -165,9 +164,9 @@ public class PerformSearchRequest { private String query; - private Optional sectionId = Optional.empty(); + private Optional sectionId = Optional.empty(); - private Optional limit; + private Optional limit; private Builder() { // force use of static builder() method @@ -194,7 +193,7 @@ public class PerformSearchRequest { /** * This gives context to the search, and can result in re-ordering of search result hubs */ - public Builder sectionId(Optional sectionId) { + public Builder sectionId(Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -212,7 +211,7 @@ public class PerformSearchRequest { /** * The number of items to return per hub */ - public Builder limit(Optional limit) { + public Builder limit(Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -221,18 +220,17 @@ public class PerformSearchRequest { public PerformSearchRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); - } - return new PerformSearchRequest( + } return new PerformSearchRequest( query, sectionId, limit); } - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java similarity index 56% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java index 451edb97..132da765 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java @@ -1,37 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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( + private Optional sectionId = Optional.empty(); + private Optional limit = Utils.readDefaultOrConstValue( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); private final SDKMethodInterfaces.MethodCallPerformSearch sdk; public PerformSearchRequestBuilder(SDKMethodInterfaces.MethodCallPerformSearch sdk) { this.sdk = sdk; } - public PerformSearchRequestBuilder query(String query) { + public PerformSearchRequestBuilder query(java.lang.String query) { Utils.checkNotNull(query, "query"); this.query = query; return this; @@ -43,7 +37,7 @@ public class PerformSearchRequestBuilder { return this; } - public PerformSearchRequestBuilder sectionId(Optional sectionId) { + public PerformSearchRequestBuilder sectionId(java.util.Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -55,7 +49,7 @@ public class PerformSearchRequestBuilder { return this; } - public PerformSearchRequestBuilder limit(Optional limit) { + public PerformSearchRequestBuilder limit(java.util.Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -65,16 +59,15 @@ public class PerformSearchRequestBuilder { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } - return sdk.performSearch( query, sectionId, limit); } - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java index 69e1b79b..6cda06e4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class PerformSearchResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class PerformSearchResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class PerformSearchResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java index 5288a5e5..80317404 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java @@ -1,21 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; 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 { @@ -29,19 +30,19 @@ public class PerformVoiceSearchRequest { * 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; + private Optional sectionId; /** * The number of items to return per hub */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; + private Optional limit; @JsonCreator public PerformVoiceSearchRequest( String query, - Optional sectionId, - Optional limit) { + Optional sectionId, + Optional limit) { Utils.checkNotNull(query, "query"); Utils.checkNotNull(sectionId, "sectionId"); Utils.checkNotNull(limit, "limit"); @@ -66,19 +67,17 @@ public class PerformVoiceSearchRequest { /** * 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; + return sectionId; } /** * The number of items to return per hub */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional limit() { - return (Optional) limit; + return limit; } public final static Builder builder() { @@ -106,7 +105,7 @@ public class PerformVoiceSearchRequest { /** * This gives context to the search, and can result in re-ordering of search result hubs */ - public PerformVoiceSearchRequest withSectionId(Optional sectionId) { + public PerformVoiceSearchRequest withSectionId(Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -124,7 +123,7 @@ public class PerformVoiceSearchRequest { /** * The number of items to return per hub */ - public PerformVoiceSearchRequest withLimit(Optional limit) { + public PerformVoiceSearchRequest withLimit(Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -140,14 +139,14 @@ public class PerformVoiceSearchRequest { } 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); + Objects.deepEquals(this.query, other.query) && + Objects.deepEquals(this.sectionId, other.sectionId) && + Objects.deepEquals(this.limit, other.limit); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( query, sectionId, limit); @@ -165,9 +164,9 @@ public class PerformVoiceSearchRequest { private String query; - private Optional sectionId = Optional.empty(); + private Optional sectionId = Optional.empty(); - private Optional limit; + private Optional limit; private Builder() { // force use of static builder() method @@ -194,7 +193,7 @@ public class PerformVoiceSearchRequest { /** * This gives context to the search, and can result in re-ordering of search result hubs */ - public Builder sectionId(Optional sectionId) { + public Builder sectionId(Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -212,7 +211,7 @@ public class PerformVoiceSearchRequest { /** * The number of items to return per hub */ - public Builder limit(Optional limit) { + public Builder limit(Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -221,18 +220,17 @@ public class PerformVoiceSearchRequest { public PerformVoiceSearchRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); - } - return new PerformVoiceSearchRequest( + } return new PerformVoiceSearchRequest( query, sectionId, limit); } - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java similarity index 57% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java index 2d77fb09..f2c1bddc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java @@ -1,37 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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( + private Optional sectionId = Optional.empty(); + private Optional limit = Utils.readDefaultOrConstValue( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); private final SDKMethodInterfaces.MethodCallPerformVoiceSearch sdk; public PerformVoiceSearchRequestBuilder(SDKMethodInterfaces.MethodCallPerformVoiceSearch sdk) { this.sdk = sdk; } - public PerformVoiceSearchRequestBuilder query(String query) { + public PerformVoiceSearchRequestBuilder query(java.lang.String query) { Utils.checkNotNull(query, "query"); this.query = query; return this; @@ -43,7 +37,7 @@ public class PerformVoiceSearchRequestBuilder { return this; } - public PerformVoiceSearchRequestBuilder sectionId(Optional sectionId) { + public PerformVoiceSearchRequestBuilder sectionId(java.util.Optional sectionId) { Utils.checkNotNull(sectionId, "sectionId"); this.sectionId = sectionId; return this; @@ -55,7 +49,7 @@ public class PerformVoiceSearchRequestBuilder { return this; } - public PerformVoiceSearchRequestBuilder limit(Optional limit) { + public PerformVoiceSearchRequestBuilder limit(java.util.Optional limit) { Utils.checkNotNull(limit, "limit"); this.limit = limit; return this; @@ -65,16 +59,15 @@ public class PerformVoiceSearchRequestBuilder { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } - return sdk.performVoiceSearch( query, sectionId, limit); } - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", "3", - new TypeReference>() {}); + new TypeReference>() {}); } diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java index a66272b4..7ce79087 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class PerformVoiceSearchResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class PerformVoiceSearchResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class PerformVoiceSearchResponse implements lukehagar.plexapi.plexapi.uti } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java b/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java new file mode 100644 index 00000000..8fdce8c7 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java @@ -0,0 +1,319 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class Pivot { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @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("context") + private Optional context; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("symbol") + private Optional symbol; + + @JsonCreator + public Pivot( + @JsonProperty("id") Optional id, + @JsonProperty("key") Optional key, + @JsonProperty("type") Optional type, + @JsonProperty("title") Optional title, + @JsonProperty("context") Optional context, + @JsonProperty("symbol") Optional symbol) { + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(context, "context"); + Utils.checkNotNull(symbol, "symbol"); + this.id = id; + this.key = key; + this.type = type; + this.title = title; + this.context = context; + this.symbol = symbol; + } + + public Pivot() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional id() { + return id; + } + + @JsonIgnore + public Optional key() { + return key; + } + + @JsonIgnore + public Optional type() { + return type; + } + + @JsonIgnore + public Optional title() { + return title; + } + + @JsonIgnore + public Optional context() { + return context; + } + + @JsonIgnore + public Optional symbol() { + return symbol; + } + + public final static Builder builder() { + return new Builder(); + } + + public Pivot withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Pivot withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Pivot withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + public Pivot withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public Pivot withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + public Pivot withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Pivot withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = Optional.ofNullable(title); + return this; + } + + public Pivot withTitle(Optional title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + public Pivot withContext(String context) { + Utils.checkNotNull(context, "context"); + this.context = Optional.ofNullable(context); + return this; + } + + public Pivot withContext(Optional context) { + Utils.checkNotNull(context, "context"); + this.context = context; + return this; + } + + public Pivot withSymbol(String symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = Optional.ofNullable(symbol); + return this; + } + + public Pivot withSymbol(Optional symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = symbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Pivot other = (Pivot) o; + return + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.context, other.context) && + Objects.deepEquals(this.symbol, other.symbol); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + key, + type, + title, + context, + symbol); + } + + @Override + public String toString() { + return Utils.toString(Pivot.class, + "id", id, + "key", key, + "type", type, + "title", title, + "context", context, + "symbol", symbol); + } + + public final static class Builder { + + private Optional id = Optional.empty(); + + private Optional key = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional title = Optional.empty(); + + private Optional context = Optional.empty(); + + private Optional symbol = 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 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 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 symbol(String symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = Optional.ofNullable(symbol); + return this; + } + + public Builder symbol(Optional symbol) { + Utils.checkNotNull(symbol, "symbol"); + this.symbol = symbol; + return this; + } + + public Pivot build() { + return new Pivot( + id, + key, + type, + title, + context, + symbol); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java b/src/main/java/dev/plexapi/sdk/models/operations/Player.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java rename to src/main/java/dev/plexapi/sdk/models/operations/Player.java index 3017b2fe..3283ab82 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Player.java @@ -1,102 +1,103 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Player { @JsonInclude(Include.NON_ABSENT) @JsonProperty("address") - private Optional address; + private Optional address; @JsonInclude(Include.NON_ABSENT) @JsonProperty("machineIdentifier") - private Optional machineIdentifier; + private Optional machineIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("model") - private Optional model; + private Optional model; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platform") - private Optional platform; + private Optional platform; @JsonInclude(Include.NON_ABSENT) @JsonProperty("platformVersion") - private Optional platformVersion; + private Optional platformVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("product") - private Optional product; + private Optional product; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") - private Optional profile; + private Optional profile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("remotePublicAddress") - private Optional remotePublicAddress; + private Optional remotePublicAddress; @JsonInclude(Include.NON_ABSENT) @JsonProperty("state") - private Optional state; + private Optional state; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional version; + private Optional version; @JsonInclude(Include.NON_ABSENT) @JsonProperty("local") - private Optional local; + private Optional local; @JsonInclude(Include.NON_ABSENT) @JsonProperty("relayed") - private Optional relayed; + private Optional relayed; @JsonInclude(Include.NON_ABSENT) @JsonProperty("secure") - private Optional secure; + private Optional secure; @JsonInclude(Include.NON_ABSENT) @JsonProperty("userID") - private Optional 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) { + @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"); @@ -133,94 +134,79 @@ public class 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; + return address; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional machineIdentifier() { - return (Optional) machineIdentifier; + return machineIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional model() { - return (Optional) model; + return model; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platform() { - return (Optional) platform; + return platform; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional platformVersion() { - return (Optional) platformVersion; + return platformVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional product() { - return (Optional) product; + return product; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional profile() { - return (Optional) profile; + return profile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional remotePublicAddress() { - return (Optional) remotePublicAddress; + return remotePublicAddress; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional state() { - return (Optional) state; + return state; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional local() { - return (Optional) local; + return local; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional relayed() { - return (Optional) relayed; + return relayed; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional secure() { - return (Optional) secure; + return secure; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional userID() { - return (Optional) userID; + return userID; } public final static Builder builder() { @@ -233,7 +219,7 @@ public class Player { return this; } - public Player withAddress(Optional address) { + public Player withAddress(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -245,7 +231,7 @@ public class Player { return this; } - public Player withMachineIdentifier(Optional machineIdentifier) { + public Player withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -257,7 +243,7 @@ public class Player { return this; } - public Player withModel(Optional model) { + public Player withModel(Optional model) { Utils.checkNotNull(model, "model"); this.model = model; return this; @@ -269,7 +255,7 @@ public class Player { return this; } - public Player withPlatform(Optional platform) { + public Player withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -281,7 +267,7 @@ public class Player { return this; } - public Player withPlatformVersion(Optional platformVersion) { + public Player withPlatformVersion(Optional platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = platformVersion; return this; @@ -293,7 +279,7 @@ public class Player { return this; } - public Player withProduct(Optional product) { + public Player withProduct(Optional product) { Utils.checkNotNull(product, "product"); this.product = product; return this; @@ -305,7 +291,7 @@ public class Player { return this; } - public Player withProfile(Optional profile) { + public Player withProfile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -317,7 +303,7 @@ public class Player { return this; } - public Player withRemotePublicAddress(Optional remotePublicAddress) { + public Player withRemotePublicAddress(Optional remotePublicAddress) { Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); this.remotePublicAddress = remotePublicAddress; return this; @@ -329,7 +315,7 @@ public class Player { return this; } - public Player withState(Optional state) { + public Player withState(Optional state) { Utils.checkNotNull(state, "state"); this.state = state; return this; @@ -341,7 +327,7 @@ public class Player { return this; } - public Player withTitle(Optional title) { + public Player withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -353,7 +339,7 @@ public class Player { return this; } - public Player withVersion(Optional version) { + public Player withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -365,7 +351,7 @@ public class Player { return this; } - public Player withLocal(Optional local) { + public Player withLocal(Optional local) { Utils.checkNotNull(local, "local"); this.local = local; return this; @@ -377,7 +363,7 @@ public class Player { return this; } - public Player withRelayed(Optional relayed) { + public Player withRelayed(Optional relayed) { Utils.checkNotNull(relayed, "relayed"); this.relayed = relayed; return this; @@ -389,7 +375,7 @@ public class Player { return this; } - public Player withSecure(Optional secure) { + public Player withSecure(Optional secure) { Utils.checkNotNull(secure, "secure"); this.secure = secure; return this; @@ -401,7 +387,7 @@ public class Player { return this; } - public Player withUserID(Optional userID) { + public Player withUserID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; @@ -417,26 +403,26 @@ public class Player { } 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); + Objects.deepEquals(this.address, other.address) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.model, other.model) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.platformVersion, other.platformVersion) && + Objects.deepEquals(this.product, other.product) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.remotePublicAddress, other.remotePublicAddress) && + Objects.deepEquals(this.state, other.state) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.version, other.version) && + Objects.deepEquals(this.local, other.local) && + Objects.deepEquals(this.relayed, other.relayed) && + Objects.deepEquals(this.secure, other.secure) && + Objects.deepEquals(this.userID, other.userID); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( address, machineIdentifier, model, @@ -476,35 +462,35 @@ public class Player { public final static class Builder { - private Optional address = Optional.empty(); + private Optional address = Optional.empty(); - private Optional machineIdentifier = Optional.empty(); + private Optional machineIdentifier = Optional.empty(); - private Optional model = Optional.empty(); + private Optional model = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); - private Optional platformVersion = Optional.empty(); + private Optional platformVersion = Optional.empty(); - private Optional product = Optional.empty(); + private Optional product = Optional.empty(); - private Optional profile = Optional.empty(); + private Optional profile = Optional.empty(); - private Optional remotePublicAddress = Optional.empty(); + private Optional remotePublicAddress = Optional.empty(); - private Optional state = Optional.empty(); + private Optional state = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); - private Optional local = Optional.empty(); + private Optional local = Optional.empty(); - private Optional relayed = Optional.empty(); + private Optional relayed = Optional.empty(); - private Optional secure = Optional.empty(); + private Optional secure = Optional.empty(); - private Optional userID = Optional.empty(); + private Optional userID = Optional.empty(); private Builder() { // force use of static builder() method @@ -516,7 +502,7 @@ public class Player { return this; } - public Builder address(Optional address) { + public Builder address(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -528,7 +514,7 @@ public class Player { return this; } - public Builder machineIdentifier(Optional machineIdentifier) { + public Builder machineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -540,7 +526,7 @@ public class Player { return this; } - public Builder model(Optional model) { + public Builder model(Optional model) { Utils.checkNotNull(model, "model"); this.model = model; return this; @@ -552,7 +538,7 @@ public class Player { return this; } - public Builder platform(Optional platform) { + public Builder platform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; @@ -564,7 +550,7 @@ public class Player { return this; } - public Builder platformVersion(Optional platformVersion) { + public Builder platformVersion(Optional platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = platformVersion; return this; @@ -576,7 +562,7 @@ public class Player { return this; } - public Builder product(Optional product) { + public Builder product(Optional product) { Utils.checkNotNull(product, "product"); this.product = product; return this; @@ -588,7 +574,7 @@ public class Player { return this; } - public Builder profile(Optional profile) { + public Builder profile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -600,7 +586,7 @@ public class Player { return this; } - public Builder remotePublicAddress(Optional remotePublicAddress) { + public Builder remotePublicAddress(Optional remotePublicAddress) { Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); this.remotePublicAddress = remotePublicAddress; return this; @@ -612,7 +598,7 @@ public class Player { return this; } - public Builder state(Optional state) { + public Builder state(Optional state) { Utils.checkNotNull(state, "state"); this.state = state; return this; @@ -624,7 +610,7 @@ public class Player { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -636,7 +622,7 @@ public class Player { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -648,7 +634,7 @@ public class Player { return this; } - public Builder local(Optional local) { + public Builder local(Optional local) { Utils.checkNotNull(local, "local"); this.local = local; return this; @@ -660,7 +646,7 @@ public class Player { return this; } - public Builder relayed(Optional relayed) { + public Builder relayed(Optional relayed) { Utils.checkNotNull(relayed, "relayed"); this.relayed = relayed; return this; @@ -672,7 +658,7 @@ public class Player { return this; } - public Builder secure(Optional secure) { + public Builder secure(Optional secure) { Utils.checkNotNull(secure, "secure"); this.secure = secure; return this; @@ -684,7 +670,7 @@ public class Player { return this; } - public Builder userID(Optional userID) { + public Builder userID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java b/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java new file mode 100644 index 00000000..4cf553ad --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * 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/dev/plexapi/sdk/models/operations/PlexDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java new file mode 100644 index 00000000..f9c1bd0b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java @@ -0,0 +1,869 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; +import java.util.Optional; + + +public class PlexDevice { + + @JsonProperty("name") + private String name; + + @JsonProperty("product") + private String product; + + @JsonProperty("productVersion") + private String productVersion; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("platform") + private Optional platform; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("platformVersion") + private Optional platformVersion; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("device") + private Optional device; + + @JsonProperty("clientIdentifier") + private String clientIdentifier; + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + @JsonProperty("lastSeenAt") + private OffsetDateTime lastSeenAt; + + @JsonProperty("provides") + private String provides; + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("ownerId") + private Optional ownerId; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("sourceTitle") + private Optional sourceTitle; + + @JsonProperty("publicAddress") + private String publicAddress; + + @JsonProperty("accessToken") + private String accessToken; + + @JsonProperty("owned") + private boolean owned; + + @JsonProperty("home") + private boolean home; + + @JsonProperty("synced") + private boolean synced; + + @JsonProperty("relay") + private boolean relay; + + @JsonProperty("presence") + private boolean presence; + + @JsonProperty("httpsRequired") + private boolean httpsRequired; + + @JsonProperty("publicAddressMatches") + private boolean publicAddressMatches; + + @JsonProperty("dnsRebindingProtection") + private boolean dnsRebindingProtection; + + @JsonProperty("natLoopbackSupported") + private boolean natLoopbackSupported; + + @JsonProperty("connections") + private List connections; + + @JsonCreator + public PlexDevice( + @JsonProperty("name") String name, + @JsonProperty("product") String product, + @JsonProperty("productVersion") String productVersion, + @JsonProperty("platform") Optional platform, + @JsonProperty("platformVersion") Optional platformVersion, + @JsonProperty("device") Optional device, + @JsonProperty("clientIdentifier") String clientIdentifier, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("lastSeenAt") OffsetDateTime lastSeenAt, + @JsonProperty("provides") String provides, + @JsonProperty("ownerId") Optional ownerId, + @JsonProperty("sourceTitle") Optional sourceTitle, + @JsonProperty("publicAddress") String publicAddress, + @JsonProperty("accessToken") String accessToken, + @JsonProperty("owned") boolean owned, + @JsonProperty("home") boolean home, + @JsonProperty("synced") boolean synced, + @JsonProperty("relay") boolean relay, + @JsonProperty("presence") boolean presence, + @JsonProperty("httpsRequired") boolean httpsRequired, + @JsonProperty("publicAddressMatches") boolean publicAddressMatches, + @JsonProperty("dnsRebindingProtection") boolean dnsRebindingProtection, + @JsonProperty("natLoopbackSupported") boolean natLoopbackSupported, + @JsonProperty("connections") List connections) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(product, "product"); + Utils.checkNotNull(productVersion, "productVersion"); + Utils.checkNotNull(platform, "platform"); + Utils.checkNotNull(platformVersion, "platformVersion"); + Utils.checkNotNull(device, "device"); + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(lastSeenAt, "lastSeenAt"); + Utils.checkNotNull(provides, "provides"); + Utils.checkNotNull(ownerId, "ownerId"); + Utils.checkNotNull(sourceTitle, "sourceTitle"); + Utils.checkNotNull(publicAddress, "publicAddress"); + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(owned, "owned"); + Utils.checkNotNull(home, "home"); + Utils.checkNotNull(synced, "synced"); + Utils.checkNotNull(relay, "relay"); + Utils.checkNotNull(presence, "presence"); + Utils.checkNotNull(httpsRequired, "httpsRequired"); + Utils.checkNotNull(publicAddressMatches, "publicAddressMatches"); + Utils.checkNotNull(dnsRebindingProtection, "dnsRebindingProtection"); + Utils.checkNotNull(natLoopbackSupported, "natLoopbackSupported"); + Utils.checkNotNull(connections, "connections"); + this.name = name; + this.product = product; + this.productVersion = productVersion; + this.platform = platform; + this.platformVersion = platformVersion; + this.device = device; + this.clientIdentifier = clientIdentifier; + this.createdAt = createdAt; + this.lastSeenAt = lastSeenAt; + this.provides = provides; + this.ownerId = ownerId; + this.sourceTitle = sourceTitle; + this.publicAddress = publicAddress; + this.accessToken = accessToken; + this.owned = owned; + this.home = home; + this.synced = synced; + this.relay = relay; + this.presence = presence; + this.httpsRequired = httpsRequired; + this.publicAddressMatches = publicAddressMatches; + this.dnsRebindingProtection = dnsRebindingProtection; + this.natLoopbackSupported = natLoopbackSupported; + this.connections = connections; + } + + public PlexDevice( + String name, + String product, + String productVersion, + String clientIdentifier, + OffsetDateTime createdAt, + OffsetDateTime lastSeenAt, + String provides, + String publicAddress, + String accessToken, + boolean owned, + boolean home, + boolean synced, + boolean relay, + boolean presence, + boolean httpsRequired, + boolean publicAddressMatches, + boolean dnsRebindingProtection, + boolean natLoopbackSupported, + List connections) { + this(name, product, productVersion, Optional.empty(), Optional.empty(), Optional.empty(), clientIdentifier, createdAt, lastSeenAt, provides, Optional.empty(), Optional.empty(), publicAddress, accessToken, owned, home, synced, relay, presence, httpsRequired, publicAddressMatches, dnsRebindingProtection, natLoopbackSupported, connections); + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public String product() { + return product; + } + + @JsonIgnore + public String productVersion() { + return productVersion; + } + + @JsonIgnore + public Optional platform() { + return platform; + } + + @JsonIgnore + public Optional platformVersion() { + return platformVersion; + } + + @JsonIgnore + public Optional device() { + return device; + } + + @JsonIgnore + public String clientIdentifier() { + return clientIdentifier; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public OffsetDateTime lastSeenAt() { + return lastSeenAt; + } + + @JsonIgnore + public String provides() { + return provides; + } + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + @JsonIgnore + public Optional ownerId() { + return ownerId; + } + + @JsonIgnore + public Optional sourceTitle() { + return sourceTitle; + } + + @JsonIgnore + public String publicAddress() { + return publicAddress; + } + + @JsonIgnore + public String accessToken() { + return accessToken; + } + + @JsonIgnore + public boolean owned() { + return owned; + } + + @JsonIgnore + public boolean home() { + return home; + } + + @JsonIgnore + public boolean synced() { + return synced; + } + + @JsonIgnore + public boolean relay() { + return relay; + } + + @JsonIgnore + public boolean presence() { + return presence; + } + + @JsonIgnore + public boolean httpsRequired() { + return httpsRequired; + } + + @JsonIgnore + public boolean publicAddressMatches() { + return publicAddressMatches; + } + + @JsonIgnore + public boolean dnsRebindingProtection() { + return dnsRebindingProtection; + } + + @JsonIgnore + public boolean natLoopbackSupported() { + return natLoopbackSupported; + } + + @JsonIgnore + public List connections() { + return connections; + } + + public final static Builder builder() { + return new Builder(); + } + + public PlexDevice withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public PlexDevice withProduct(String product) { + Utils.checkNotNull(product, "product"); + this.product = product; + return this; + } + + public PlexDevice withProductVersion(String productVersion) { + Utils.checkNotNull(productVersion, "productVersion"); + this.productVersion = productVersion; + return this; + } + + public PlexDevice withPlatform(String platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = Optional.ofNullable(platform); + return this; + } + + public PlexDevice withPlatform(Optional platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = platform; + return this; + } + + public PlexDevice withPlatformVersion(String platformVersion) { + Utils.checkNotNull(platformVersion, "platformVersion"); + this.platformVersion = Optional.ofNullable(platformVersion); + return this; + } + + public PlexDevice withPlatformVersion(Optional platformVersion) { + Utils.checkNotNull(platformVersion, "platformVersion"); + this.platformVersion = platformVersion; + return this; + } + + public PlexDevice withDevice(String device) { + Utils.checkNotNull(device, "device"); + this.device = Optional.ofNullable(device); + return this; + } + + public PlexDevice withDevice(Optional device) { + Utils.checkNotNull(device, "device"); + this.device = device; + return this; + } + + public PlexDevice withClientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + public PlexDevice withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public PlexDevice withLastSeenAt(OffsetDateTime lastSeenAt) { + Utils.checkNotNull(lastSeenAt, "lastSeenAt"); + this.lastSeenAt = lastSeenAt; + return this; + } + + public PlexDevice withProvides(String provides) { + Utils.checkNotNull(provides, "provides"); + this.provides = provides; + return this; + } + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + public PlexDevice withOwnerId(long ownerId) { + Utils.checkNotNull(ownerId, "ownerId"); + this.ownerId = Optional.ofNullable(ownerId); + return this; + } + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + public PlexDevice withOwnerId(Optional ownerId) { + Utils.checkNotNull(ownerId, "ownerId"); + this.ownerId = ownerId; + return this; + } + + public PlexDevice withSourceTitle(String sourceTitle) { + Utils.checkNotNull(sourceTitle, "sourceTitle"); + this.sourceTitle = Optional.ofNullable(sourceTitle); + return this; + } + + public PlexDevice withSourceTitle(Optional sourceTitle) { + Utils.checkNotNull(sourceTitle, "sourceTitle"); + this.sourceTitle = sourceTitle; + return this; + } + + public PlexDevice withPublicAddress(String publicAddress) { + Utils.checkNotNull(publicAddress, "publicAddress"); + this.publicAddress = publicAddress; + return this; + } + + public PlexDevice withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + public PlexDevice withOwned(boolean owned) { + Utils.checkNotNull(owned, "owned"); + this.owned = owned; + return this; + } + + public PlexDevice withHome(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + public PlexDevice withSynced(boolean synced) { + Utils.checkNotNull(synced, "synced"); + this.synced = synced; + return this; + } + + public PlexDevice withRelay(boolean relay) { + Utils.checkNotNull(relay, "relay"); + this.relay = relay; + return this; + } + + public PlexDevice withPresence(boolean presence) { + Utils.checkNotNull(presence, "presence"); + this.presence = presence; + return this; + } + + public PlexDevice withHttpsRequired(boolean httpsRequired) { + Utils.checkNotNull(httpsRequired, "httpsRequired"); + this.httpsRequired = httpsRequired; + return this; + } + + public PlexDevice withPublicAddressMatches(boolean publicAddressMatches) { + Utils.checkNotNull(publicAddressMatches, "publicAddressMatches"); + this.publicAddressMatches = publicAddressMatches; + return this; + } + + public PlexDevice withDnsRebindingProtection(boolean dnsRebindingProtection) { + Utils.checkNotNull(dnsRebindingProtection, "dnsRebindingProtection"); + this.dnsRebindingProtection = dnsRebindingProtection; + return this; + } + + public PlexDevice withNatLoopbackSupported(boolean natLoopbackSupported) { + Utils.checkNotNull(natLoopbackSupported, "natLoopbackSupported"); + this.natLoopbackSupported = natLoopbackSupported; + return this; + } + + public PlexDevice withConnections(List connections) { + Utils.checkNotNull(connections, "connections"); + this.connections = connections; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlexDevice other = (PlexDevice) o; + return + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.product, other.product) && + Objects.deepEquals(this.productVersion, other.productVersion) && + Objects.deepEquals(this.platform, other.platform) && + Objects.deepEquals(this.platformVersion, other.platformVersion) && + Objects.deepEquals(this.device, other.device) && + Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.lastSeenAt, other.lastSeenAt) && + Objects.deepEquals(this.provides, other.provides) && + Objects.deepEquals(this.ownerId, other.ownerId) && + Objects.deepEquals(this.sourceTitle, other.sourceTitle) && + Objects.deepEquals(this.publicAddress, other.publicAddress) && + Objects.deepEquals(this.accessToken, other.accessToken) && + Objects.deepEquals(this.owned, other.owned) && + Objects.deepEquals(this.home, other.home) && + Objects.deepEquals(this.synced, other.synced) && + Objects.deepEquals(this.relay, other.relay) && + Objects.deepEquals(this.presence, other.presence) && + Objects.deepEquals(this.httpsRequired, other.httpsRequired) && + Objects.deepEquals(this.publicAddressMatches, other.publicAddressMatches) && + Objects.deepEquals(this.dnsRebindingProtection, other.dnsRebindingProtection) && + Objects.deepEquals(this.natLoopbackSupported, other.natLoopbackSupported) && + Objects.deepEquals(this.connections, other.connections); + } + + @Override + public int hashCode() { + return Objects.hash( + name, + product, + productVersion, + platform, + platformVersion, + device, + clientIdentifier, + createdAt, + lastSeenAt, + provides, + ownerId, + sourceTitle, + publicAddress, + accessToken, + owned, + home, + synced, + relay, + presence, + httpsRequired, + publicAddressMatches, + dnsRebindingProtection, + natLoopbackSupported, + connections); + } + + @Override + public String toString() { + return Utils.toString(PlexDevice.class, + "name", name, + "product", product, + "productVersion", productVersion, + "platform", platform, + "platformVersion", platformVersion, + "device", device, + "clientIdentifier", clientIdentifier, + "createdAt", createdAt, + "lastSeenAt", lastSeenAt, + "provides", provides, + "ownerId", ownerId, + "sourceTitle", sourceTitle, + "publicAddress", publicAddress, + "accessToken", accessToken, + "owned", owned, + "home", home, + "synced", synced, + "relay", relay, + "presence", presence, + "httpsRequired", httpsRequired, + "publicAddressMatches", publicAddressMatches, + "dnsRebindingProtection", dnsRebindingProtection, + "natLoopbackSupported", natLoopbackSupported, + "connections", connections); + } + + public final static class Builder { + + private String name; + + private String product; + + private String productVersion; + + private Optional platform = Optional.empty(); + + private Optional platformVersion = Optional.empty(); + + private Optional device = Optional.empty(); + + private String clientIdentifier; + + private OffsetDateTime createdAt; + + private OffsetDateTime lastSeenAt; + + private String provides; + + private Optional ownerId = Optional.empty(); + + private Optional sourceTitle = Optional.empty(); + + private String publicAddress; + + private String accessToken; + + private Boolean owned; + + private Boolean home; + + private Boolean synced; + + private Boolean relay; + + private Boolean presence; + + private Boolean httpsRequired; + + private Boolean publicAddressMatches; + + private Boolean dnsRebindingProtection; + + private Boolean natLoopbackSupported; + + private List connections; + + private Builder() { + // force use of static builder() method + } + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Builder product(String product) { + Utils.checkNotNull(product, "product"); + this.product = product; + return this; + } + + public Builder productVersion(String productVersion) { + Utils.checkNotNull(productVersion, "productVersion"); + this.productVersion = productVersion; + 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 device(String 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 clientIdentifier(String clientIdentifier) { + Utils.checkNotNull(clientIdentifier, "clientIdentifier"); + this.clientIdentifier = clientIdentifier; + return this; + } + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public Builder lastSeenAt(OffsetDateTime lastSeenAt) { + Utils.checkNotNull(lastSeenAt, "lastSeenAt"); + this.lastSeenAt = lastSeenAt; + return this; + } + + public Builder provides(String provides) { + Utils.checkNotNull(provides, "provides"); + this.provides = provides; + return this; + } + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + public Builder ownerId(long ownerId) { + Utils.checkNotNull(ownerId, "ownerId"); + this.ownerId = Optional.ofNullable(ownerId); + return this; + } + + /** + * ownerId is null when the device is owned by the token used to send the request + */ + public Builder ownerId(Optional ownerId) { + Utils.checkNotNull(ownerId, "ownerId"); + this.ownerId = ownerId; + 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 publicAddress(String publicAddress) { + Utils.checkNotNull(publicAddress, "publicAddress"); + this.publicAddress = publicAddress; + return this; + } + + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + public Builder owned(boolean owned) { + Utils.checkNotNull(owned, "owned"); + this.owned = owned; + return this; + } + + public Builder home(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + public Builder synced(boolean synced) { + Utils.checkNotNull(synced, "synced"); + this.synced = synced; + return this; + } + + public Builder relay(boolean relay) { + Utils.checkNotNull(relay, "relay"); + this.relay = relay; + return this; + } + + public Builder presence(boolean presence) { + Utils.checkNotNull(presence, "presence"); + this.presence = presence; + return this; + } + + public Builder httpsRequired(boolean httpsRequired) { + Utils.checkNotNull(httpsRequired, "httpsRequired"); + this.httpsRequired = httpsRequired; + return this; + } + + public Builder publicAddressMatches(boolean publicAddressMatches) { + Utils.checkNotNull(publicAddressMatches, "publicAddressMatches"); + this.publicAddressMatches = publicAddressMatches; + return this; + } + + public Builder dnsRebindingProtection(boolean dnsRebindingProtection) { + Utils.checkNotNull(dnsRebindingProtection, "dnsRebindingProtection"); + this.dnsRebindingProtection = dnsRebindingProtection; + return this; + } + + public Builder natLoopbackSupported(boolean natLoopbackSupported) { + Utils.checkNotNull(natLoopbackSupported, "natLoopbackSupported"); + this.natLoopbackSupported = natLoopbackSupported; + return this; + } + + public Builder connections(List connections) { + Utils.checkNotNull(connections, "connections"); + this.connections = connections; + return this; + } + + public PlexDevice build() { + return new PlexDevice( + name, + product, + productVersion, + platform, + platformVersion, + device, + clientIdentifier, + createdAt, + lastSeenAt, + provides, + ownerId, + sourceTitle, + publicAddress, + accessToken, + owned, + home, + synced, + relay, + presence, + httpsRequired, + publicAddressMatches, + dnsRebindingProtection, + natLoopbackSupported, + connections); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationFeatures.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationFeatures.java new file mode 100644 index 00000000..96a2f7ee --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationFeatures.java @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum PostUsersSignInDataAuthenticationFeatures { + ANDROID_DOLBY_VISION("Android - Dolby Vision"), + ANDROID_PI_P("Android - PiP"), + CU_SUNSET("CU Sunset"), + HRK_ENABLE_EUR("HRK_enable_EUR"), + TREBLE_SHOW_FEATURES("TREBLE-show-features"), + AD_COUNTDOWN_TIMER("ad-countdown-timer"), + ADAPTIVE_BITRATE("adaptive_bitrate"), + AMAZON_LOOP_DEBUG("amazon-loop-debug"), + AVOD_AD_ANALYSIS("avod-ad-analysis"), + AVOD_NEW_MEDIA("avod-new-media"), + BLACKLIST_GET_SIGNIN("blacklist_get_signin"), + CLIENT_RADIO_STATIONS("client-radio-stations"), + CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), + COLLECTIONS("collections"), + COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), + COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), + COMPANIONS_SONOS("companions_sonos"), + CUSTOM_HOME_REMOVAL("custom-home-removal"), + DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), + DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), + DRM_SUPPORT("drm_support"), + EXCLUDE_RESTRICTIONS("exclude restrictions"), + FEDERATED_AUTH("federated-auth"), + FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), + GUIDED_UPGRADE("guided-upgrade"), + HOME("home"), + INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), + IOS14_PRIVACY_BANNER("ios14-privacy-banner"), + ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), + KEEP_PAYMENT_METHOD("keep-payment-method"), + KEVIN_BACON("kevin-bacon"), + KOREA_CONSENT("korea-consent"), + LE_ISRG_ROOT_X1("le_isrg_root_x1"), + LETS_ENCRYPT("lets_encrypt"), + LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), + LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), + LIVETV("livetv"), + METADATA_SEARCH("metadata_search"), + NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), + NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), + PHOTOS_FAVORITES("photos-favorites"), + PHOTOS_METADATA_EDITION("photos-metadata-edition"), + PMS_HEALTH("pms_health"), + RADIO("radio"), + RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), + SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), + SHARED_SERVER_NOTIFICATION("shared_server_notification"), + SHARED_SOURCE_NOTIFICATION("shared_source_notification"), + SIGNIN_WITH_APPLE("signin_with_apple"), + SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), + TRANSCODER_CACHE("transcoder_cache"), + TUNER_SHARING("tuner-sharing"), + TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), + UNSUPPORTEDTUNERS("unsupportedtuners"), + UPGRADE3DS2("upgrade-3ds2"), + VOD_SCHEMA("vod-schema"), + VOD_CLOUDFLARE("vod_cloudflare"), + WATCH_TOGETHER_INVITE("watch-together-invite"), + WEB_SERVER_DASHBOARD("web_server_dashboard"); + + @JsonValue + private final String value; + + private PostUsersSignInDataAuthenticationFeatures(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java new file mode 100644 index 00000000..b87799bc --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive + */ +public enum PostUsersSignInDataAuthenticationResponseStatus { + INACTIVE("Inactive"), + ACTIVE("Active"); + + @JsonValue + private final String value; + + private PostUsersSignInDataAuthenticationResponseStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java new file mode 100644 index 00000000..53f63ab8 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive + */ +public enum PostUsersSignInDataAuthenticationStatus { + INACTIVE("Inactive"), + ACTIVE("Active"); + + @JsonValue + private final String value; + + private PostUsersSignInDataAuthenticationStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java new file mode 100644 index 00000000..92e47d2a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java @@ -0,0 +1,433 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class PostUsersSignInDataAuthenticationSubscription { + + /** + * List of features allowed on your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("features") + private Optional> features; + + /** + * If the account's Plex Pass subscription is active + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("active") + private Optional active; + + /** + * Date the account subscribed to Plex Pass + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscribedAt") + private JsonNullable subscribedAt; + + /** + * String representation of subscriptionActive + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + private Optional status; + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("paymentService") + private JsonNullable paymentService; + + /** + * Name of Plex Pass subscription plan + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("plan") + private JsonNullable plan; + + @JsonCreator + public PostUsersSignInDataAuthenticationSubscription( + @JsonProperty("features") Optional> features, + @JsonProperty("active") Optional active, + @JsonProperty("subscribedAt") JsonNullable subscribedAt, + @JsonProperty("status") Optional status, + @JsonProperty("paymentService") JsonNullable paymentService, + @JsonProperty("plan") JsonNullable plan) { + Utils.checkNotNull(features, "features"); + Utils.checkNotNull(active, "active"); + Utils.checkNotNull(subscribedAt, "subscribedAt"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(paymentService, "paymentService"); + Utils.checkNotNull(plan, "plan"); + this.features = features; + this.active = active; + this.subscribedAt = subscribedAt; + this.status = status; + this.paymentService = paymentService; + this.plan = plan; + } + + public PostUsersSignInDataAuthenticationSubscription() { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> features() { + return (Optional>) features; + } + + /** + * If the account's Plex Pass subscription is active + */ + @JsonIgnore + public Optional active() { + return active; + } + + /** + * Date the account subscribed to Plex Pass + */ + @JsonIgnore + public JsonNullable subscribedAt() { + return subscribedAt; + } + + /** + * String representation of subscriptionActive + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional status() { + return (Optional) status; + } + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonIgnore + public JsonNullable paymentService() { + return paymentService; + } + + /** + * Name of Plex Pass subscription plan + */ + @JsonIgnore + public JsonNullable plan() { + return plan; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public PostUsersSignInDataAuthenticationSubscription withFeatures(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public PostUsersSignInDataAuthenticationSubscription withFeatures(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public PostUsersSignInDataAuthenticationSubscription withActive(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public PostUsersSignInDataAuthenticationSubscription withActive(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public PostUsersSignInDataAuthenticationSubscription withSubscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public PostUsersSignInDataAuthenticationSubscription withSubscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public PostUsersSignInDataAuthenticationSubscription withStatus(PostUsersSignInDataAuthenticationResponseStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public PostUsersSignInDataAuthenticationSubscription withStatus(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public PostUsersSignInDataAuthenticationSubscription withPaymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public PostUsersSignInDataAuthenticationSubscription withPaymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public PostUsersSignInDataAuthenticationSubscription withPlan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public PostUsersSignInDataAuthenticationSubscription withPlan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataAuthenticationSubscription other = (PostUsersSignInDataAuthenticationSubscription) o; + return + Objects.deepEquals(this.features, other.features) && + Objects.deepEquals(this.active, other.active) && + Objects.deepEquals(this.subscribedAt, other.subscribedAt) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.paymentService, other.paymentService) && + Objects.deepEquals(this.plan, other.plan); + } + + @Override + public int hashCode() { + return Objects.hash( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataAuthenticationSubscription.class, + "features", features, + "active", active, + "subscribedAt", subscribedAt, + "status", status, + "paymentService", paymentService, + "plan", plan); + } + + public final static class Builder { + + private Optional> features = Optional.empty(); + + private Optional active = Optional.empty(); + + private JsonNullable subscribedAt = JsonNullable.undefined(); + + private Optional status = Optional.empty(); + + private JsonNullable paymentService = JsonNullable.undefined(); + + private JsonNullable plan = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(PostUsersSignInDataAuthenticationResponseStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + public PostUsersSignInDataAuthenticationSubscription build() { + return new PostUsersSignInDataAuthenticationSubscription( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java new file mode 100644 index 00000000..c6820785 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ +public enum PostUsersSignInDataAutoSelectSubtitle { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private PostUsersSignInDataAutoSelectSubtitle(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java new file mode 100644 index 00000000..c7cc2b3a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ +public enum PostUsersSignInDataDefaultSubtitleAccessibility { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private PostUsersSignInDataDefaultSubtitleAccessibility(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java new file mode 100644 index 00000000..45e151f6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ +public enum PostUsersSignInDataDefaultSubtitleForced { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private PostUsersSignInDataDefaultSubtitleForced(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataFeatures.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataFeatures.java new file mode 100644 index 00000000..ed103226 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataFeatures.java @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum PostUsersSignInDataFeatures { + ANDROID_DOLBY_VISION("Android - Dolby Vision"), + ANDROID_PI_P("Android - PiP"), + CU_SUNSET("CU Sunset"), + HRK_ENABLE_EUR("HRK_enable_EUR"), + TREBLE_SHOW_FEATURES("TREBLE-show-features"), + AD_COUNTDOWN_TIMER("ad-countdown-timer"), + ADAPTIVE_BITRATE("adaptive_bitrate"), + AMAZON_LOOP_DEBUG("amazon-loop-debug"), + AVOD_AD_ANALYSIS("avod-ad-analysis"), + AVOD_NEW_MEDIA("avod-new-media"), + BLACKLIST_GET_SIGNIN("blacklist_get_signin"), + CLIENT_RADIO_STATIONS("client-radio-stations"), + CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), + COLLECTIONS("collections"), + COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), + COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), + COMPANIONS_SONOS("companions_sonos"), + CUSTOM_HOME_REMOVAL("custom-home-removal"), + DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), + DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), + DRM_SUPPORT("drm_support"), + EXCLUDE_RESTRICTIONS("exclude restrictions"), + FEDERATED_AUTH("federated-auth"), + FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), + GUIDED_UPGRADE("guided-upgrade"), + HOME("home"), + INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), + IOS14_PRIVACY_BANNER("ios14-privacy-banner"), + ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), + KEEP_PAYMENT_METHOD("keep-payment-method"), + KEVIN_BACON("kevin-bacon"), + KOREA_CONSENT("korea-consent"), + LE_ISRG_ROOT_X1("le_isrg_root_x1"), + LETS_ENCRYPT("lets_encrypt"), + LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), + LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), + LIVETV("livetv"), + METADATA_SEARCH("metadata_search"), + NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), + NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), + PHOTOS_FAVORITES("photos-favorites"), + PHOTOS_METADATA_EDITION("photos-metadata-edition"), + PMS_HEALTH("pms_health"), + RADIO("radio"), + RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), + SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), + SHARED_SERVER_NOTIFICATION("shared_server_notification"), + SHARED_SOURCE_NOTIFICATION("shared_source_notification"), + SIGNIN_WITH_APPLE("signin_with_apple"), + SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), + TRANSCODER_CACHE("transcoder_cache"), + TUNER_SHARING("tuner-sharing"), + TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), + UNSUPPORTEDTUNERS("unsupportedtuners"), + UPGRADE3DS2("upgrade-3ds2"), + VOD_SCHEMA("vod-schema"), + VOD_CLOUDFLARE("vod_cloudflare"), + WATCH_TOGETHER_INVITE("watch-together-invite"), + WEB_SERVER_DASHBOARD("web_server_dashboard"); + + @JsonValue + private final String value; + + private PostUsersSignInDataFeatures(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java new file mode 100644 index 00000000..4ed60d9b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * PostUsersSignInDataMailingListStatus - Your current mailing list status + */ +public enum PostUsersSignInDataMailingListStatus { + ACTIVE("active"), + UNSUBSCRIBED("unsubscribed"); + + @JsonValue + private final String value; + + private PostUsersSignInDataMailingListStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java new file mode 100644 index 00000000..cef52bce --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum PostUsersSignInDataMediaReviewsVisibility { + ZERO(0L), + ONE(1L); + + @JsonValue + private final long value; + + private PostUsersSignInDataMediaReviewsVisibility(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java new file mode 100644 index 00000000..7d46844b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class PostUsersSignInDataRequest { + + /** + * 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("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier") + private Optional xPlexClientIdentifier; + + /** + * Login credentials + */ + @SpeakeasyMetadata("request:mediaType=application/x-www-form-urlencoded") + private Optional requestBody; + + @JsonCreator + public PostUsersSignInDataRequest( + Optional xPlexClientIdentifier, + Optional requestBody) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + Utils.checkNotNull(requestBody, "requestBody"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + this.requestBody = requestBody; + } + + public PostUsersSignInDataRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * 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) + * + */ + @JsonIgnore + public Optional xPlexClientIdentifier() { + return xPlexClientIdentifier; + } + + /** + * Login credentials + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional requestBody() { + return (Optional) requestBody; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * 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 PostUsersSignInDataRequest 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 PostUsersSignInDataRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + return this; + } + + /** + * Login credentials + */ + public PostUsersSignInDataRequest withRequestBody(PostUsersSignInDataRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + /** + * Login credentials + */ + public PostUsersSignInDataRequest withRequestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataRequest other = (PostUsersSignInDataRequest) o; + return + Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) && + Objects.deepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Objects.hash( + xPlexClientIdentifier, + requestBody); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataRequest.class, + "xPlexClientIdentifier", xPlexClientIdentifier, + "requestBody", requestBody); + } + + public final static class Builder { + + private Optional xPlexClientIdentifier = Optional.empty(); + + private Optional requestBody = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * 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; + } + + /** + * Login credentials + */ + public Builder requestBody(PostUsersSignInDataRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + /** + * Login credentials + */ + public Builder requestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public PostUsersSignInDataRequest build() { + return new PostUsersSignInDataRequest( + xPlexClientIdentifier, + requestBody); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java new file mode 100644 index 00000000..fcf87406 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java @@ -0,0 +1,180 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * PostUsersSignInDataRequestBody - Login credentials + */ + +public class PostUsersSignInDataRequestBody { + + @SpeakeasyMetadata("form:name=login") + private String login; + + @SpeakeasyMetadata("form:name=password") + private String password; + + @SpeakeasyMetadata("form:name=rememberMe") + private Optional rememberMe; + + @JsonCreator + public PostUsersSignInDataRequestBody( + String login, + String password, + Optional rememberMe) { + Utils.checkNotNull(login, "login"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(rememberMe, "rememberMe"); + this.login = login; + this.password = password; + this.rememberMe = rememberMe; + } + + public PostUsersSignInDataRequestBody( + String login, + String password) { + this(login, password, Optional.empty()); + } + + @JsonIgnore + public String login() { + return login; + } + + @JsonIgnore + public String password() { + return password; + } + + @JsonIgnore + public Optional rememberMe() { + return rememberMe; + } + + public final static Builder builder() { + return new Builder(); + } + + public PostUsersSignInDataRequestBody withLogin(String login) { + Utils.checkNotNull(login, "login"); + this.login = login; + return this; + } + + public PostUsersSignInDataRequestBody withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public PostUsersSignInDataRequestBody withRememberMe(boolean rememberMe) { + Utils.checkNotNull(rememberMe, "rememberMe"); + this.rememberMe = Optional.ofNullable(rememberMe); + return this; + } + + public PostUsersSignInDataRequestBody withRememberMe(Optional rememberMe) { + Utils.checkNotNull(rememberMe, "rememberMe"); + this.rememberMe = rememberMe; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataRequestBody other = (PostUsersSignInDataRequestBody) o; + return + Objects.deepEquals(this.login, other.login) && + Objects.deepEquals(this.password, other.password) && + Objects.deepEquals(this.rememberMe, other.rememberMe); + } + + @Override + public int hashCode() { + return Objects.hash( + login, + password, + rememberMe); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataRequestBody.class, + "login", login, + "password", password, + "rememberMe", rememberMe); + } + + public final static class Builder { + + private String login; + + private String password; + + private Optional rememberMe; + + private Builder() { + // force use of static builder() method + } + + public Builder login(String login) { + Utils.checkNotNull(login, "login"); + this.login = login; + return this; + } + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public Builder rememberMe(boolean rememberMe) { + Utils.checkNotNull(rememberMe, "rememberMe"); + this.rememberMe = Optional.ofNullable(rememberMe); + return this; + } + + public Builder rememberMe(Optional rememberMe) { + Utils.checkNotNull(rememberMe, "rememberMe"); + this.rememberMe = rememberMe; + return this; + } + + public PostUsersSignInDataRequestBody build() { + if (rememberMe == null) { + rememberMe = _SINGLETON_VALUE_RememberMe.value(); + } return new PostUsersSignInDataRequestBody( + login, + password, + rememberMe); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_RememberMe = + new LazySingletonValue<>( + "rememberMe", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java new file mode 100644 index 00000000..3033a847 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class PostUsersSignInDataRequestBuilder { + + private Optional xPlexClientIdentifier = Optional.empty(); + private Optional requestBody = Optional.empty(); + private Optional serverURL = Optional.empty(); + private final SDKMethodInterfaces.MethodCallPostUsersSignInData sdk; + + public PostUsersSignInDataRequestBuilder(SDKMethodInterfaces.MethodCallPostUsersSignInData sdk) { + this.sdk = sdk; + } + + public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier); + return this; + } + + public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.util.Optional xPlexClientIdentifier) { + Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); + this.xPlexClientIdentifier = xPlexClientIdentifier; + return this; + } + + public PostUsersSignInDataRequestBuilder requestBody(dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.of(requestBody); + return this; + } + + public PostUsersSignInDataRequestBuilder requestBody(java.util.Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public PostUsersSignInDataRequestBuilder serverURL(java.lang.String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public PostUsersSignInDataRequestBuilder serverURL(java.util.Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public PostUsersSignInDataResponse call() throws Exception { + + return sdk.postUsersSignInData( + xPlexClientIdentifier, + requestBody, + serverURL); + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java new file mode 100644 index 00000000..5f21d898 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Objects; +import java.util.Optional; + + +public class PostUsersSignInDataResponse implements 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 the user account data with a valid auth token + */ + private Optional userPlexAccount; + + @JsonCreator + public PostUsersSignInDataResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional userPlexAccount) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.userPlexAccount = userPlexAccount; + } + + public PostUsersSignInDataResponse( + 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 the user account data with a valid auth token + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional userPlexAccount() { + return (Optional) userPlexAccount; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public PostUsersSignInDataResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PostUsersSignInDataResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PostUsersSignInDataResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Returns the user account data with a valid auth token + */ + public PostUsersSignInDataResponse withUserPlexAccount(PostUsersSignInDataUserPlexAccount userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = Optional.ofNullable(userPlexAccount); + return this; + } + + /** + * Returns the user account data with a valid auth token + */ + public PostUsersSignInDataResponse withUserPlexAccount(Optional userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = userPlexAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataResponse other = (PostUsersSignInDataResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.userPlexAccount, other.userPlexAccount); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + userPlexAccount); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "userPlexAccount", userPlexAccount); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional userPlexAccount = 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 the user account data with a valid auth token + */ + public Builder userPlexAccount(PostUsersSignInDataUserPlexAccount userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = Optional.ofNullable(userPlexAccount); + return this; + } + + /** + * Returns the user account data with a valid auth token + */ + public Builder userPlexAccount(Optional userPlexAccount) { + Utils.checkNotNull(userPlexAccount, "userPlexAccount"); + this.userPlexAccount = userPlexAccount; + return this; + } + + public PostUsersSignInDataResponse build() { + return new PostUsersSignInDataResponse( + contentType, + statusCode, + rawResponse, + userPlexAccount); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java new file mode 100644 index 00000000..af4e4f8e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class PostUsersSignInDataServices { + + @JsonProperty("identifier") + private String identifier; + + @JsonProperty("endpoint") + private String endpoint; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("token") + private Optional token; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("secret") + private Optional secret; + + @JsonProperty("status") + private PostUsersSignInDataStatus status; + + @JsonCreator + public PostUsersSignInDataServices( + @JsonProperty("identifier") String identifier, + @JsonProperty("endpoint") String endpoint, + @JsonProperty("token") Optional token, + @JsonProperty("secret") Optional secret, + @JsonProperty("status") PostUsersSignInDataStatus status) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(endpoint, "endpoint"); + Utils.checkNotNull(token, "token"); + Utils.checkNotNull(secret, "secret"); + Utils.checkNotNull(status, "status"); + this.identifier = identifier; + this.endpoint = endpoint; + this.token = token; + this.secret = secret; + this.status = status; + } + + public PostUsersSignInDataServices( + String identifier, + String endpoint, + PostUsersSignInDataStatus status) { + this(identifier, endpoint, Optional.empty(), Optional.empty(), status); + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String endpoint() { + return endpoint; + } + + @JsonIgnore + public Optional token() { + return token; + } + + @JsonIgnore + public Optional secret() { + return secret; + } + + @JsonIgnore + public PostUsersSignInDataStatus status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public PostUsersSignInDataServices withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public PostUsersSignInDataServices withEndpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public PostUsersSignInDataServices withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = Optional.ofNullable(token); + return this; + } + + public PostUsersSignInDataServices withToken(Optional token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public PostUsersSignInDataServices withSecret(String secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = Optional.ofNullable(secret); + return this; + } + + public PostUsersSignInDataServices withSecret(Optional secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = secret; + return this; + } + + public PostUsersSignInDataServices withStatus(PostUsersSignInDataStatus 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; + } + PostUsersSignInDataServices other = (PostUsersSignInDataServices) o; + return + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.endpoint, other.endpoint) && + Objects.deepEquals(this.token, other.token) && + Objects.deepEquals(this.secret, other.secret) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + identifier, + endpoint, + token, + secret, + status); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataServices.class, + "identifier", identifier, + "endpoint", endpoint, + "token", token, + "secret", secret, + "status", status); + } + + public final static class Builder { + + private String identifier; + + private String endpoint; + + private Optional token = Optional.empty(); + + private Optional secret = Optional.empty(); + + private PostUsersSignInDataStatus status; + + private Builder() { + // force use of static builder() method + } + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public Builder endpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = Optional.ofNullable(token); + return this; + } + + public Builder token(Optional token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public Builder secret(String secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = Optional.ofNullable(secret); + return this; + } + + public Builder secret(Optional secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = secret; + return this; + } + + public Builder status(PostUsersSignInDataStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + public PostUsersSignInDataServices build() { + return new PostUsersSignInDataServices( + identifier, + endpoint, + token, + secret, + status); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java new file mode 100644 index 00000000..aec010ac --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum PostUsersSignInDataState { + ENDED("ended"); + + @JsonValue + private final String value; + + private PostUsersSignInDataState(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java new file mode 100644 index 00000000..d139e30b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum PostUsersSignInDataStatus { + ONLINE("online"), + OFFLINE("offline"); + + @JsonValue + private final String value; + + private PostUsersSignInDataStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java new file mode 100644 index 00000000..a2b8acf9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java @@ -0,0 +1,436 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * PostUsersSignInDataSubscription - If the account’s Plex Pass subscription is active + */ + +public class PostUsersSignInDataSubscription { + + /** + * List of features allowed on your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("features") + private Optional> features; + + /** + * If the account's Plex Pass subscription is active + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("active") + private Optional active; + + /** + * Date the account subscribed to Plex Pass + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscribedAt") + private JsonNullable subscribedAt; + + /** + * String representation of subscriptionActive + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + private Optional status; + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("paymentService") + private JsonNullable paymentService; + + /** + * Name of Plex Pass subscription plan + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("plan") + private JsonNullable plan; + + @JsonCreator + public PostUsersSignInDataSubscription( + @JsonProperty("features") Optional> features, + @JsonProperty("active") Optional active, + @JsonProperty("subscribedAt") JsonNullable subscribedAt, + @JsonProperty("status") Optional status, + @JsonProperty("paymentService") JsonNullable paymentService, + @JsonProperty("plan") JsonNullable plan) { + Utils.checkNotNull(features, "features"); + Utils.checkNotNull(active, "active"); + Utils.checkNotNull(subscribedAt, "subscribedAt"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(paymentService, "paymentService"); + Utils.checkNotNull(plan, "plan"); + this.features = features; + this.active = active; + this.subscribedAt = subscribedAt; + this.status = status; + this.paymentService = paymentService; + this.plan = plan; + } + + public PostUsersSignInDataSubscription() { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> features() { + return (Optional>) features; + } + + /** + * If the account's Plex Pass subscription is active + */ + @JsonIgnore + public Optional active() { + return active; + } + + /** + * Date the account subscribed to Plex Pass + */ + @JsonIgnore + public JsonNullable subscribedAt() { + return subscribedAt; + } + + /** + * String representation of subscriptionActive + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional status() { + return (Optional) status; + } + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonIgnore + public JsonNullable paymentService() { + return paymentService; + } + + /** + * Name of Plex Pass subscription plan + */ + @JsonIgnore + public JsonNullable plan() { + return plan; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public PostUsersSignInDataSubscription withFeatures(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public PostUsersSignInDataSubscription withFeatures(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public PostUsersSignInDataSubscription withActive(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public PostUsersSignInDataSubscription withActive(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public PostUsersSignInDataSubscription withSubscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public PostUsersSignInDataSubscription withSubscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public PostUsersSignInDataSubscription withStatus(PostUsersSignInDataAuthenticationStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public PostUsersSignInDataSubscription withStatus(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public PostUsersSignInDataSubscription withPaymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public PostUsersSignInDataSubscription withPaymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public PostUsersSignInDataSubscription withPlan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public PostUsersSignInDataSubscription withPlan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataSubscription other = (PostUsersSignInDataSubscription) o; + return + Objects.deepEquals(this.features, other.features) && + Objects.deepEquals(this.active, other.active) && + Objects.deepEquals(this.subscribedAt, other.subscribedAt) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.paymentService, other.paymentService) && + Objects.deepEquals(this.plan, other.plan); + } + + @Override + public int hashCode() { + return Objects.hash( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataSubscription.class, + "features", features, + "active", active, + "subscribedAt", subscribedAt, + "status", status, + "paymentService", paymentService, + "plan", plan); + } + + public final static class Builder { + + private Optional> features = Optional.empty(); + + private Optional active = Optional.empty(); + + private JsonNullable subscribedAt = JsonNullable.undefined(); + + private Optional status = Optional.empty(); + + private JsonNullable paymentService = JsonNullable.undefined(); + + private JsonNullable plan = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(PostUsersSignInDataAuthenticationStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + public PostUsersSignInDataSubscription build() { + return new PostUsersSignInDataSubscription( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java new file mode 100644 index 00000000..81a05d38 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java @@ -0,0 +1,2273 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Deprecated; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * PostUsersSignInDataUserPlexAccount - Returns the user account data with a valid auth token + */ + +public class PostUsersSignInDataUserPlexAccount { + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsent") + private Optional adsConsent; + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsentReminderAt") + private Optional adsConsentReminderAt; + + /** + * Unknown + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("adsConsentSetAt") + private Optional adsConsentSetAt; + + /** + * Unknown + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("anonymous") + private JsonNullable anonymous; + + /** + * The account token + */ + @JsonProperty("authToken") + private String authToken; + + /** + * If the two-factor authentication backup codes have been created + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("backupCodesCreated") + private Optional backupCodesCreated; + + /** + * If the account has been confirmed + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("confirmed") + private Optional confirmed; + + /** + * The account country + */ + @JsonProperty("country") + private String country; + + /** + * The account email address + */ + @JsonProperty("email") + private String email; + + /** + * If login with email only is enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("emailOnlyAuth") + private Optional emailOnlyAuth; + + /** + * If experimental features are enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("experimentalFeatures") + private Optional experimentalFeatures; + + /** + * Your account full name + */ + @JsonProperty("friendlyName") + private String friendlyName; + + /** + * List of devices your allowed to use with this account + */ + @JsonProperty("entitlements") + private List entitlements; + + /** + * If the account is a Plex Home guest user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("guest") + private Optional guest; + + /** + * If the account has a password + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasPassword") + private Optional hasPassword; + + /** + * If the account is a Plex Home user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("home") + private Optional home; + + /** + * If the account is the Plex Home admin + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("homeAdmin") + private Optional homeAdmin; + + /** + * The number of accounts in the Plex Home + */ + @JsonProperty("homeSize") + private int homeSize; + + /** + * The Plex account ID + */ + @JsonProperty("id") + private int id; + + /** + * Unix epoch datetime the account joined Plex + */ + @JsonProperty("joinedAt") + private int joinedAt; + + /** + * The account locale + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("locale") + private Optional locale; + + /** + * If you are subscribed to the Plex newsletter + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mailingListActive") + private Optional mailingListActive; + + /** + * Your current mailing list status + */ + @JsonProperty("mailingListStatus") + private PostUsersSignInDataMailingListStatus mailingListStatus; + + /** + * The maximum number of accounts allowed in the Plex Home + */ + @JsonProperty("maxHomeSize") + private int maxHomeSize; + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pin") + @Deprecated + private Optional pin; + + @JsonProperty("profile") + private PostUsersSignInDataUserProfile profile; + + /** + * If the account has a Plex Home PIN enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protected") + private Optional protected_; + + /** + * Unix epoch datetime the authtoken expires + */ + @JsonProperty("rememberExpiresAt") + private int rememberExpiresAt; + + /** + * If the account is a Plex Home managed user + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("restricted") + private Optional restricted; + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("roles") + private Optional> roles; + + /** + * Unknown + */ + @JsonProperty("scrobbleTypes") + private String scrobbleTypes; + + @JsonProperty("services") + private List services; + + /** + * If the account’s Plex Pass subscription is active + */ + @JsonProperty("subscription") + private PostUsersSignInDataSubscription subscription; + + /** + * Description of the Plex Pass subscription + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("subscriptionDescription") + private Optional subscriptionDescription; + + @JsonProperty("subscriptions") + private List subscriptions; + + /** + * URL of the account thumbnail + */ + @JsonProperty("thumb") + private String thumb; + + /** + * The title of the account (username or friendly name) + */ + @JsonProperty("title") + private String title; + + /** + * If two-factor authentication is enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("twoFactorEnabled") + private Optional twoFactorEnabled; + + /** + * The account username + */ + @JsonProperty("username") + private String username; + + /** + * The account UUID + */ + @JsonProperty("uuid") + private String uuid; + + @JsonProperty("pastSubscriptions") + private List pastSubscriptions; + + @JsonProperty("trials") + private List trials; + + @JsonCreator + public PostUsersSignInDataUserPlexAccount( + @JsonProperty("adsConsent") Optional adsConsent, + @JsonProperty("adsConsentReminderAt") Optional adsConsentReminderAt, + @JsonProperty("adsConsentSetAt") Optional adsConsentSetAt, + @JsonProperty("anonymous") JsonNullable anonymous, + @JsonProperty("authToken") String authToken, + @JsonProperty("backupCodesCreated") Optional backupCodesCreated, + @JsonProperty("confirmed") Optional confirmed, + @JsonProperty("country") String country, + @JsonProperty("email") String email, + @JsonProperty("emailOnlyAuth") Optional emailOnlyAuth, + @JsonProperty("experimentalFeatures") Optional experimentalFeatures, + @JsonProperty("friendlyName") String friendlyName, + @JsonProperty("entitlements") List entitlements, + @JsonProperty("guest") Optional guest, + @JsonProperty("hasPassword") Optional hasPassword, + @JsonProperty("home") Optional home, + @JsonProperty("homeAdmin") Optional homeAdmin, + @JsonProperty("homeSize") int homeSize, + @JsonProperty("id") int id, + @JsonProperty("joinedAt") int joinedAt, + @JsonProperty("locale") Optional locale, + @JsonProperty("mailingListActive") Optional mailingListActive, + @JsonProperty("mailingListStatus") PostUsersSignInDataMailingListStatus mailingListStatus, + @JsonProperty("maxHomeSize") int maxHomeSize, + @JsonProperty("pin") Optional pin, + @JsonProperty("profile") PostUsersSignInDataUserProfile profile, + @JsonProperty("protected") Optional protected_, + @JsonProperty("rememberExpiresAt") int rememberExpiresAt, + @JsonProperty("restricted") Optional restricted, + @JsonProperty("roles") Optional> roles, + @JsonProperty("scrobbleTypes") String scrobbleTypes, + @JsonProperty("services") List services, + @JsonProperty("subscription") PostUsersSignInDataSubscription subscription, + @JsonProperty("subscriptionDescription") Optional subscriptionDescription, + @JsonProperty("subscriptions") List subscriptions, + @JsonProperty("thumb") String thumb, + @JsonProperty("title") String title, + @JsonProperty("twoFactorEnabled") Optional twoFactorEnabled, + @JsonProperty("username") String username, + @JsonProperty("uuid") String uuid, + @JsonProperty("pastSubscriptions") List pastSubscriptions, + @JsonProperty("trials") List trials) { + Utils.checkNotNull(adsConsent, "adsConsent"); + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + Utils.checkNotNull(anonymous, "anonymous"); + Utils.checkNotNull(authToken, "authToken"); + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + Utils.checkNotNull(confirmed, "confirmed"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(email, "email"); + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + Utils.checkNotNull(friendlyName, "friendlyName"); + Utils.checkNotNull(entitlements, "entitlements"); + Utils.checkNotNull(guest, "guest"); + Utils.checkNotNull(hasPassword, "hasPassword"); + Utils.checkNotNull(home, "home"); + Utils.checkNotNull(homeAdmin, "homeAdmin"); + Utils.checkNotNull(homeSize, "homeSize"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(joinedAt, "joinedAt"); + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(mailingListActive, "mailingListActive"); + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + Utils.checkNotNull(pin, "pin"); + Utils.checkNotNull(profile, "profile"); + Utils.checkNotNull(protected_, "protected_"); + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + Utils.checkNotNull(restricted, "restricted"); + Utils.checkNotNull(roles, "roles"); + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + Utils.checkNotNull(services, "services"); + Utils.checkNotNull(subscription, "subscription"); + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + Utils.checkNotNull(subscriptions, "subscriptions"); + Utils.checkNotNull(thumb, "thumb"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + Utils.checkNotNull(username, "username"); + Utils.checkNotNull(uuid, "uuid"); + Utils.checkNotNull(pastSubscriptions, "pastSubscriptions"); + Utils.checkNotNull(trials, "trials"); + this.adsConsent = adsConsent; + this.adsConsentReminderAt = adsConsentReminderAt; + this.adsConsentSetAt = adsConsentSetAt; + this.anonymous = anonymous; + this.authToken = authToken; + this.backupCodesCreated = backupCodesCreated; + this.confirmed = confirmed; + this.country = country; + this.email = email; + this.emailOnlyAuth = emailOnlyAuth; + this.experimentalFeatures = experimentalFeatures; + this.friendlyName = friendlyName; + this.entitlements = entitlements; + this.guest = guest; + this.hasPassword = hasPassword; + this.home = home; + this.homeAdmin = homeAdmin; + this.homeSize = homeSize; + this.id = id; + this.joinedAt = joinedAt; + this.locale = locale; + this.mailingListActive = mailingListActive; + this.mailingListStatus = mailingListStatus; + this.maxHomeSize = maxHomeSize; + this.pin = pin; + this.profile = profile; + this.protected_ = protected_; + this.rememberExpiresAt = rememberExpiresAt; + this.restricted = restricted; + this.roles = roles; + this.scrobbleTypes = scrobbleTypes; + this.services = services; + this.subscription = subscription; + this.subscriptionDescription = subscriptionDescription; + this.subscriptions = subscriptions; + this.thumb = thumb; + this.title = title; + this.twoFactorEnabled = twoFactorEnabled; + this.username = username; + this.uuid = uuid; + this.pastSubscriptions = pastSubscriptions; + this.trials = trials; + } + + public PostUsersSignInDataUserPlexAccount( + String authToken, + String country, + String email, + String friendlyName, + List entitlements, + int homeSize, + int id, + int joinedAt, + PostUsersSignInDataMailingListStatus mailingListStatus, + int maxHomeSize, + PostUsersSignInDataUserProfile profile, + int rememberExpiresAt, + String scrobbleTypes, + List services, + PostUsersSignInDataSubscription subscription, + List subscriptions, + String thumb, + String title, + String username, + String uuid, + List pastSubscriptions, + List trials) { + this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid, pastSubscriptions, trials); + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsent() { + return adsConsent; + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsentReminderAt() { + return adsConsentReminderAt; + } + + /** + * Unknown + */ + @JsonIgnore + public Optional adsConsentSetAt() { + return adsConsentSetAt; + } + + /** + * Unknown + */ + @JsonIgnore + public JsonNullable anonymous() { + return anonymous; + } + + /** + * The account token + */ + @JsonIgnore + public String authToken() { + return authToken; + } + + /** + * If the two-factor authentication backup codes have been created + */ + @JsonIgnore + public Optional backupCodesCreated() { + return backupCodesCreated; + } + + /** + * If the account has been confirmed + */ + @JsonIgnore + public Optional confirmed() { + return confirmed; + } + + /** + * The account country + */ + @JsonIgnore + public String country() { + return country; + } + + /** + * The account email address + */ + @JsonIgnore + public String email() { + return email; + } + + /** + * If login with email only is enabled + */ + @JsonIgnore + public Optional emailOnlyAuth() { + return emailOnlyAuth; + } + + /** + * If experimental features are enabled + */ + @JsonIgnore + public Optional experimentalFeatures() { + return experimentalFeatures; + } + + /** + * Your account full name + */ + @JsonIgnore + public String friendlyName() { + return friendlyName; + } + + /** + * List of devices your allowed to use with this account + */ + @JsonIgnore + public List entitlements() { + return entitlements; + } + + /** + * If the account is a Plex Home guest user + */ + @JsonIgnore + public Optional guest() { + return guest; + } + + /** + * If the account has a password + */ + @JsonIgnore + public Optional hasPassword() { + return hasPassword; + } + + /** + * If the account is a Plex Home user + */ + @JsonIgnore + public Optional home() { + return home; + } + + /** + * If the account is the Plex Home admin + */ + @JsonIgnore + public Optional homeAdmin() { + return homeAdmin; + } + + /** + * The number of accounts in the Plex Home + */ + @JsonIgnore + public int homeSize() { + return homeSize; + } + + /** + * The Plex account ID + */ + @JsonIgnore + public int id() { + return id; + } + + /** + * Unix epoch datetime the account joined Plex + */ + @JsonIgnore + public int joinedAt() { + return joinedAt; + } + + /** + * The account locale + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * If you are subscribed to the Plex newsletter + */ + @JsonIgnore + public Optional mailingListActive() { + return mailingListActive; + } + + /** + * Your current mailing list status + */ + @JsonIgnore + public PostUsersSignInDataMailingListStatus mailingListStatus() { + return mailingListStatus; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + @JsonIgnore + public int maxHomeSize() { + return maxHomeSize; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + @JsonIgnore + public Optional pin() { + return pin; + } + + @JsonIgnore + public PostUsersSignInDataUserProfile profile() { + return profile; + } + + /** + * If the account has a Plex Home PIN enabled + */ + @JsonIgnore + public Optional protected_() { + return protected_; + } + + /** + * Unix epoch datetime the authtoken expires + */ + @JsonIgnore + public int rememberExpiresAt() { + return rememberExpiresAt; + } + + /** + * If the account is a Plex Home managed user + */ + @JsonIgnore + public Optional restricted() { + return restricted; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> roles() { + return (Optional>) roles; + } + + /** + * Unknown + */ + @JsonIgnore + public String scrobbleTypes() { + return scrobbleTypes; + } + + @JsonIgnore + public List services() { + return services; + } + + /** + * If the account’s Plex Pass subscription is active + */ + @JsonIgnore + public PostUsersSignInDataSubscription subscription() { + return subscription; + } + + /** + * Description of the Plex Pass subscription + */ + @JsonIgnore + public Optional subscriptionDescription() { + return subscriptionDescription; + } + + @JsonIgnore + public List subscriptions() { + return subscriptions; + } + + /** + * URL of the account thumbnail + */ + @JsonIgnore + public String thumb() { + return thumb; + } + + /** + * The title of the account (username or friendly name) + */ + @JsonIgnore + public String title() { + return title; + } + + /** + * If two-factor authentication is enabled + */ + @JsonIgnore + public Optional twoFactorEnabled() { + return twoFactorEnabled; + } + + /** + * The account username + */ + @JsonIgnore + public String username() { + return username; + } + + /** + * The account UUID + */ + @JsonIgnore + public String uuid() { + return uuid; + } + + @JsonIgnore + public List pastSubscriptions() { + return pastSubscriptions; + } + + @JsonIgnore + public List trials() { + return trials; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsent(boolean adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = Optional.ofNullable(adsConsent); + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsent(Optional adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = adsConsent; + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsentReminderAt(OffsetDateTime adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = Optional.ofNullable(adsConsentReminderAt); + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsentReminderAt(Optional adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = adsConsentReminderAt; + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsentSetAt(OffsetDateTime adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = Optional.ofNullable(adsConsentSetAt); + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAdsConsentSetAt(Optional adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = adsConsentSetAt; + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAnonymous(boolean anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = JsonNullable.of(anonymous); + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withAnonymous(JsonNullable anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = anonymous; + return this; + } + + /** + * The account token + */ + public PostUsersSignInDataUserPlexAccount withAuthToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public PostUsersSignInDataUserPlexAccount withBackupCodesCreated(boolean backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = Optional.ofNullable(backupCodesCreated); + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public PostUsersSignInDataUserPlexAccount withBackupCodesCreated(Optional backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = backupCodesCreated; + return this; + } + + /** + * If the account has been confirmed + */ + public PostUsersSignInDataUserPlexAccount withConfirmed(boolean confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = Optional.ofNullable(confirmed); + return this; + } + + /** + * If the account has been confirmed + */ + public PostUsersSignInDataUserPlexAccount withConfirmed(Optional confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = confirmed; + return this; + } + + /** + * The account country + */ + public PostUsersSignInDataUserPlexAccount withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The account email address + */ + public PostUsersSignInDataUserPlexAccount withEmail(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * If login with email only is enabled + */ + public PostUsersSignInDataUserPlexAccount withEmailOnlyAuth(boolean emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = Optional.ofNullable(emailOnlyAuth); + return this; + } + + /** + * If login with email only is enabled + */ + public PostUsersSignInDataUserPlexAccount withEmailOnlyAuth(Optional emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = emailOnlyAuth; + return this; + } + + /** + * If experimental features are enabled + */ + public PostUsersSignInDataUserPlexAccount withExperimentalFeatures(boolean experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = Optional.ofNullable(experimentalFeatures); + return this; + } + + /** + * If experimental features are enabled + */ + public PostUsersSignInDataUserPlexAccount withExperimentalFeatures(Optional experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = experimentalFeatures; + return this; + } + + /** + * Your account full name + */ + public PostUsersSignInDataUserPlexAccount withFriendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * List of devices your allowed to use with this account + */ + public PostUsersSignInDataUserPlexAccount withEntitlements(List entitlements) { + Utils.checkNotNull(entitlements, "entitlements"); + this.entitlements = entitlements; + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public PostUsersSignInDataUserPlexAccount withGuest(boolean guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = Optional.ofNullable(guest); + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public PostUsersSignInDataUserPlexAccount withGuest(Optional guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = guest; + return this; + } + + /** + * If the account has a password + */ + public PostUsersSignInDataUserPlexAccount withHasPassword(boolean hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = Optional.ofNullable(hasPassword); + return this; + } + + /** + * If the account has a password + */ + public PostUsersSignInDataUserPlexAccount withHasPassword(Optional hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = hasPassword; + return this; + } + + /** + * If the account is a Plex Home user + */ + public PostUsersSignInDataUserPlexAccount withHome(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = Optional.ofNullable(home); + return this; + } + + /** + * If the account is a Plex Home user + */ + public PostUsersSignInDataUserPlexAccount withHome(Optional home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * If the account is the Plex Home admin + */ + public PostUsersSignInDataUserPlexAccount withHomeAdmin(boolean homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = Optional.ofNullable(homeAdmin); + return this; + } + + /** + * If the account is the Plex Home admin + */ + public PostUsersSignInDataUserPlexAccount withHomeAdmin(Optional homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = homeAdmin; + return this; + } + + /** + * The number of accounts in the Plex Home + */ + public PostUsersSignInDataUserPlexAccount withHomeSize(int homeSize) { + Utils.checkNotNull(homeSize, "homeSize"); + this.homeSize = homeSize; + return this; + } + + /** + * The Plex account ID + */ + public PostUsersSignInDataUserPlexAccount withId(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Unix epoch datetime the account joined Plex + */ + public PostUsersSignInDataUserPlexAccount withJoinedAt(int joinedAt) { + Utils.checkNotNull(joinedAt, "joinedAt"); + this.joinedAt = joinedAt; + return this; + } + + /** + * The account locale + */ + public PostUsersSignInDataUserPlexAccount withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The account locale + */ + public PostUsersSignInDataUserPlexAccount withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public PostUsersSignInDataUserPlexAccount withMailingListActive(boolean mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = Optional.ofNullable(mailingListActive); + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public PostUsersSignInDataUserPlexAccount withMailingListActive(Optional mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = mailingListActive; + return this; + } + + /** + * Your current mailing list status + */ + public PostUsersSignInDataUserPlexAccount withMailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) { + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + this.mailingListStatus = mailingListStatus; + return this; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + public PostUsersSignInDataUserPlexAccount withMaxHomeSize(int maxHomeSize) { + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + this.maxHomeSize = maxHomeSize; + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public PostUsersSignInDataUserPlexAccount withPin(String pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = Optional.ofNullable(pin); + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public PostUsersSignInDataUserPlexAccount withPin(Optional pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = pin; + return this; + } + + public PostUsersSignInDataUserPlexAccount withProfile(PostUsersSignInDataUserProfile profile) { + Utils.checkNotNull(profile, "profile"); + this.profile = profile; + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public PostUsersSignInDataUserPlexAccount withProtected(boolean protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = Optional.ofNullable(protected_); + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public PostUsersSignInDataUserPlexAccount withProtected(Optional protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = protected_; + return this; + } + + /** + * Unix epoch datetime the authtoken expires + */ + public PostUsersSignInDataUserPlexAccount withRememberExpiresAt(int rememberExpiresAt) { + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + this.rememberExpiresAt = rememberExpiresAt; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public PostUsersSignInDataUserPlexAccount withRestricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public PostUsersSignInDataUserPlexAccount withRestricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public PostUsersSignInDataUserPlexAccount withRoles(List roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = Optional.ofNullable(roles); + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public PostUsersSignInDataUserPlexAccount withRoles(Optional> roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = roles; + return this; + } + + /** + * Unknown + */ + public PostUsersSignInDataUserPlexAccount withScrobbleTypes(String scrobbleTypes) { + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + this.scrobbleTypes = scrobbleTypes; + return this; + } + + public PostUsersSignInDataUserPlexAccount withServices(List services) { + Utils.checkNotNull(services, "services"); + this.services = services; + return this; + } + + /** + * If the account’s Plex Pass subscription is active + */ + public PostUsersSignInDataUserPlexAccount withSubscription(PostUsersSignInDataSubscription subscription) { + Utils.checkNotNull(subscription, "subscription"); + this.subscription = subscription; + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public PostUsersSignInDataUserPlexAccount withSubscriptionDescription(String subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = Optional.ofNullable(subscriptionDescription); + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public PostUsersSignInDataUserPlexAccount withSubscriptionDescription(Optional subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = subscriptionDescription; + return this; + } + + public PostUsersSignInDataUserPlexAccount withSubscriptions(List subscriptions) { + Utils.checkNotNull(subscriptions, "subscriptions"); + this.subscriptions = subscriptions; + return this; + } + + /** + * URL of the account thumbnail + */ + public PostUsersSignInDataUserPlexAccount withThumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public PostUsersSignInDataUserPlexAccount withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * If two-factor authentication is enabled + */ + public PostUsersSignInDataUserPlexAccount withTwoFactorEnabled(boolean twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = Optional.ofNullable(twoFactorEnabled); + return this; + } + + /** + * If two-factor authentication is enabled + */ + public PostUsersSignInDataUserPlexAccount withTwoFactorEnabled(Optional twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = twoFactorEnabled; + return this; + } + + /** + * The account username + */ + public PostUsersSignInDataUserPlexAccount withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account UUID + */ + public PostUsersSignInDataUserPlexAccount withUuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + public PostUsersSignInDataUserPlexAccount withPastSubscriptions(List pastSubscriptions) { + Utils.checkNotNull(pastSubscriptions, "pastSubscriptions"); + this.pastSubscriptions = pastSubscriptions; + return this; + } + + public PostUsersSignInDataUserPlexAccount withTrials(List trials) { + Utils.checkNotNull(trials, "trials"); + this.trials = trials; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataUserPlexAccount other = (PostUsersSignInDataUserPlexAccount) o; + return + Objects.deepEquals(this.adsConsent, other.adsConsent) && + Objects.deepEquals(this.adsConsentReminderAt, other.adsConsentReminderAt) && + Objects.deepEquals(this.adsConsentSetAt, other.adsConsentSetAt) && + Objects.deepEquals(this.anonymous, other.anonymous) && + Objects.deepEquals(this.authToken, other.authToken) && + Objects.deepEquals(this.backupCodesCreated, other.backupCodesCreated) && + Objects.deepEquals(this.confirmed, other.confirmed) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.email, other.email) && + Objects.deepEquals(this.emailOnlyAuth, other.emailOnlyAuth) && + Objects.deepEquals(this.experimentalFeatures, other.experimentalFeatures) && + Objects.deepEquals(this.friendlyName, other.friendlyName) && + Objects.deepEquals(this.entitlements, other.entitlements) && + Objects.deepEquals(this.guest, other.guest) && + Objects.deepEquals(this.hasPassword, other.hasPassword) && + Objects.deepEquals(this.home, other.home) && + Objects.deepEquals(this.homeAdmin, other.homeAdmin) && + Objects.deepEquals(this.homeSize, other.homeSize) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.joinedAt, other.joinedAt) && + Objects.deepEquals(this.locale, other.locale) && + Objects.deepEquals(this.mailingListActive, other.mailingListActive) && + Objects.deepEquals(this.mailingListStatus, other.mailingListStatus) && + Objects.deepEquals(this.maxHomeSize, other.maxHomeSize) && + Objects.deepEquals(this.pin, other.pin) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.protected_, other.protected_) && + Objects.deepEquals(this.rememberExpiresAt, other.rememberExpiresAt) && + Objects.deepEquals(this.restricted, other.restricted) && + Objects.deepEquals(this.roles, other.roles) && + Objects.deepEquals(this.scrobbleTypes, other.scrobbleTypes) && + Objects.deepEquals(this.services, other.services) && + Objects.deepEquals(this.subscription, other.subscription) && + Objects.deepEquals(this.subscriptionDescription, other.subscriptionDescription) && + Objects.deepEquals(this.subscriptions, other.subscriptions) && + Objects.deepEquals(this.thumb, other.thumb) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.twoFactorEnabled, other.twoFactorEnabled) && + Objects.deepEquals(this.username, other.username) && + Objects.deepEquals(this.uuid, other.uuid) && + Objects.deepEquals(this.pastSubscriptions, other.pastSubscriptions) && + Objects.deepEquals(this.trials, other.trials); + } + + @Override + public int hashCode() { + return Objects.hash( + adsConsent, + adsConsentReminderAt, + adsConsentSetAt, + anonymous, + authToken, + backupCodesCreated, + confirmed, + country, + email, + emailOnlyAuth, + experimentalFeatures, + friendlyName, + entitlements, + guest, + hasPassword, + home, + homeAdmin, + homeSize, + id, + joinedAt, + locale, + mailingListActive, + mailingListStatus, + maxHomeSize, + pin, + profile, + protected_, + rememberExpiresAt, + restricted, + roles, + scrobbleTypes, + services, + subscription, + subscriptionDescription, + subscriptions, + thumb, + title, + twoFactorEnabled, + username, + uuid, + pastSubscriptions, + trials); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataUserPlexAccount.class, + "adsConsent", adsConsent, + "adsConsentReminderAt", adsConsentReminderAt, + "adsConsentSetAt", adsConsentSetAt, + "anonymous", anonymous, + "authToken", authToken, + "backupCodesCreated", backupCodesCreated, + "confirmed", confirmed, + "country", country, + "email", email, + "emailOnlyAuth", emailOnlyAuth, + "experimentalFeatures", experimentalFeatures, + "friendlyName", friendlyName, + "entitlements", entitlements, + "guest", guest, + "hasPassword", hasPassword, + "home", home, + "homeAdmin", homeAdmin, + "homeSize", homeSize, + "id", id, + "joinedAt", joinedAt, + "locale", locale, + "mailingListActive", mailingListActive, + "mailingListStatus", mailingListStatus, + "maxHomeSize", maxHomeSize, + "pin", pin, + "profile", profile, + "protected_", protected_, + "rememberExpiresAt", rememberExpiresAt, + "restricted", restricted, + "roles", roles, + "scrobbleTypes", scrobbleTypes, + "services", services, + "subscription", subscription, + "subscriptionDescription", subscriptionDescription, + "subscriptions", subscriptions, + "thumb", thumb, + "title", title, + "twoFactorEnabled", twoFactorEnabled, + "username", username, + "uuid", uuid, + "pastSubscriptions", pastSubscriptions, + "trials", trials); + } + + public final static class Builder { + + private Optional adsConsent = Optional.empty(); + + private Optional adsConsentReminderAt = Optional.empty(); + + private Optional adsConsentSetAt = Optional.empty(); + + private JsonNullable anonymous; + + private String authToken; + + private Optional backupCodesCreated; + + private Optional confirmed; + + private String country; + + private String email; + + private Optional emailOnlyAuth; + + private Optional experimentalFeatures; + + private String friendlyName; + + private List entitlements; + + private Optional guest; + + private Optional hasPassword; + + private Optional home; + + private Optional homeAdmin; + + private Integer homeSize; + + private Integer id; + + private Integer joinedAt; + + private Optional locale = Optional.empty(); + + private Optional mailingListActive; + + private PostUsersSignInDataMailingListStatus mailingListStatus; + + private Integer maxHomeSize; + + @Deprecated + private Optional pin = Optional.empty(); + + private PostUsersSignInDataUserProfile profile; + + private Optional protected_; + + private Integer rememberExpiresAt; + + private Optional restricted; + + private Optional> roles = Optional.empty(); + + private String scrobbleTypes; + + private List services; + + private PostUsersSignInDataSubscription subscription; + + private Optional subscriptionDescription = Optional.empty(); + + private List subscriptions; + + private String thumb; + + private String title; + + private Optional twoFactorEnabled; + + private String username; + + private String uuid; + + private List pastSubscriptions; + + private List trials; + + private Builder() { + // force use of static builder() method + } + + /** + * Unknown + */ + public Builder adsConsent(boolean adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = Optional.ofNullable(adsConsent); + return this; + } + + /** + * Unknown + */ + public Builder adsConsent(Optional adsConsent) { + Utils.checkNotNull(adsConsent, "adsConsent"); + this.adsConsent = adsConsent; + return this; + } + + /** + * Unknown + */ + public Builder adsConsentReminderAt(OffsetDateTime adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = Optional.ofNullable(adsConsentReminderAt); + return this; + } + + /** + * Unknown + */ + public Builder adsConsentReminderAt(Optional adsConsentReminderAt) { + Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt"); + this.adsConsentReminderAt = adsConsentReminderAt; + return this; + } + + /** + * Unknown + */ + public Builder adsConsentSetAt(OffsetDateTime adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = Optional.ofNullable(adsConsentSetAt); + return this; + } + + /** + * Unknown + */ + public Builder adsConsentSetAt(Optional adsConsentSetAt) { + Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt"); + this.adsConsentSetAt = adsConsentSetAt; + return this; + } + + /** + * Unknown + */ + public Builder anonymous(boolean anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = JsonNullable.of(anonymous); + return this; + } + + /** + * Unknown + */ + public Builder anonymous(JsonNullable anonymous) { + Utils.checkNotNull(anonymous, "anonymous"); + this.anonymous = anonymous; + return this; + } + + /** + * The account token + */ + public Builder authToken(String authToken) { + Utils.checkNotNull(authToken, "authToken"); + this.authToken = authToken; + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public Builder backupCodesCreated(boolean backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = Optional.ofNullable(backupCodesCreated); + return this; + } + + /** + * If the two-factor authentication backup codes have been created + */ + public Builder backupCodesCreated(Optional backupCodesCreated) { + Utils.checkNotNull(backupCodesCreated, "backupCodesCreated"); + this.backupCodesCreated = backupCodesCreated; + return this; + } + + /** + * If the account has been confirmed + */ + public Builder confirmed(boolean confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = Optional.ofNullable(confirmed); + return this; + } + + /** + * If the account has been confirmed + */ + public Builder confirmed(Optional confirmed) { + Utils.checkNotNull(confirmed, "confirmed"); + this.confirmed = confirmed; + return this; + } + + /** + * The account country + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The account email address + */ + public Builder email(String email) { + Utils.checkNotNull(email, "email"); + this.email = email; + return this; + } + + /** + * If login with email only is enabled + */ + public Builder emailOnlyAuth(boolean emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = Optional.ofNullable(emailOnlyAuth); + return this; + } + + /** + * If login with email only is enabled + */ + public Builder emailOnlyAuth(Optional emailOnlyAuth) { + Utils.checkNotNull(emailOnlyAuth, "emailOnlyAuth"); + this.emailOnlyAuth = emailOnlyAuth; + return this; + } + + /** + * If experimental features are enabled + */ + public Builder experimentalFeatures(boolean experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = Optional.ofNullable(experimentalFeatures); + return this; + } + + /** + * If experimental features are enabled + */ + public Builder experimentalFeatures(Optional experimentalFeatures) { + Utils.checkNotNull(experimentalFeatures, "experimentalFeatures"); + this.experimentalFeatures = experimentalFeatures; + return this; + } + + /** + * Your account full name + */ + public Builder friendlyName(String friendlyName) { + Utils.checkNotNull(friendlyName, "friendlyName"); + this.friendlyName = friendlyName; + return this; + } + + /** + * List of devices your allowed to use with this account + */ + public Builder entitlements(List entitlements) { + Utils.checkNotNull(entitlements, "entitlements"); + this.entitlements = entitlements; + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public Builder guest(boolean guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = Optional.ofNullable(guest); + return this; + } + + /** + * If the account is a Plex Home guest user + */ + public Builder guest(Optional guest) { + Utils.checkNotNull(guest, "guest"); + this.guest = guest; + return this; + } + + /** + * If the account has a password + */ + public Builder hasPassword(boolean hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = Optional.ofNullable(hasPassword); + return this; + } + + /** + * If the account has a password + */ + public Builder hasPassword(Optional hasPassword) { + Utils.checkNotNull(hasPassword, "hasPassword"); + this.hasPassword = hasPassword; + return this; + } + + /** + * If the account is a Plex Home user + */ + public Builder home(boolean home) { + Utils.checkNotNull(home, "home"); + this.home = Optional.ofNullable(home); + return this; + } + + /** + * If the account is a Plex Home user + */ + public Builder home(Optional home) { + Utils.checkNotNull(home, "home"); + this.home = home; + return this; + } + + /** + * If the account is the Plex Home admin + */ + public Builder homeAdmin(boolean homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = Optional.ofNullable(homeAdmin); + return this; + } + + /** + * If the account is the Plex Home admin + */ + public Builder homeAdmin(Optional homeAdmin) { + Utils.checkNotNull(homeAdmin, "homeAdmin"); + this.homeAdmin = homeAdmin; + return this; + } + + /** + * The number of accounts in the Plex Home + */ + public Builder homeSize(int homeSize) { + Utils.checkNotNull(homeSize, "homeSize"); + this.homeSize = homeSize; + return this; + } + + /** + * The Plex account ID + */ + public Builder id(int id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Unix epoch datetime the account joined Plex + */ + public Builder joinedAt(int joinedAt) { + Utils.checkNotNull(joinedAt, "joinedAt"); + this.joinedAt = joinedAt; + return this; + } + + /** + * The account locale + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The account locale + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public Builder mailingListActive(boolean mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = Optional.ofNullable(mailingListActive); + return this; + } + + /** + * If you are subscribed to the Plex newsletter + */ + public Builder mailingListActive(Optional mailingListActive) { + Utils.checkNotNull(mailingListActive, "mailingListActive"); + this.mailingListActive = mailingListActive; + return this; + } + + /** + * Your current mailing list status + */ + public Builder mailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) { + Utils.checkNotNull(mailingListStatus, "mailingListStatus"); + this.mailingListStatus = mailingListStatus; + return this; + } + + /** + * The maximum number of accounts allowed in the Plex Home + */ + public Builder maxHomeSize(int maxHomeSize) { + Utils.checkNotNull(maxHomeSize, "maxHomeSize"); + this.maxHomeSize = maxHomeSize; + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder pin(String pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = Optional.ofNullable(pin); + return this; + } + + /** + * [Might be removed] The hashed Plex Home PIN + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder pin(Optional pin) { + Utils.checkNotNull(pin, "pin"); + this.pin = pin; + return this; + } + + public Builder profile(PostUsersSignInDataUserProfile profile) { + Utils.checkNotNull(profile, "profile"); + this.profile = profile; + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public Builder protected_(boolean protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = Optional.ofNullable(protected_); + return this; + } + + /** + * If the account has a Plex Home PIN enabled + */ + public Builder protected_(Optional protected_) { + Utils.checkNotNull(protected_, "protected_"); + this.protected_ = protected_; + return this; + } + + /** + * Unix epoch datetime the authtoken expires + */ + public Builder rememberExpiresAt(int rememberExpiresAt) { + Utils.checkNotNull(rememberExpiresAt, "rememberExpiresAt"); + this.rememberExpiresAt = rememberExpiresAt; + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(boolean restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = Optional.ofNullable(restricted); + return this; + } + + /** + * If the account is a Plex Home managed user + */ + public Builder restricted(Optional restricted) { + Utils.checkNotNull(restricted, "restricted"); + this.restricted = restricted; + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public Builder roles(List roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = Optional.ofNullable(roles); + return this; + } + + /** + * [Might be removed] List of account roles. Plexpass membership listed here + */ + public Builder roles(Optional> roles) { + Utils.checkNotNull(roles, "roles"); + this.roles = roles; + return this; + } + + /** + * Unknown + */ + public Builder scrobbleTypes(String scrobbleTypes) { + Utils.checkNotNull(scrobbleTypes, "scrobbleTypes"); + this.scrobbleTypes = scrobbleTypes; + return this; + } + + public Builder services(List services) { + Utils.checkNotNull(services, "services"); + this.services = services; + return this; + } + + /** + * If the account’s Plex Pass subscription is active + */ + public Builder subscription(PostUsersSignInDataSubscription subscription) { + Utils.checkNotNull(subscription, "subscription"); + this.subscription = subscription; + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public Builder subscriptionDescription(String subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = Optional.ofNullable(subscriptionDescription); + return this; + } + + /** + * Description of the Plex Pass subscription + */ + public Builder subscriptionDescription(Optional subscriptionDescription) { + Utils.checkNotNull(subscriptionDescription, "subscriptionDescription"); + this.subscriptionDescription = subscriptionDescription; + return this; + } + + public Builder subscriptions(List subscriptions) { + Utils.checkNotNull(subscriptions, "subscriptions"); + this.subscriptions = subscriptions; + return this; + } + + /** + * URL of the account thumbnail + */ + public Builder thumb(String thumb) { + Utils.checkNotNull(thumb, "thumb"); + this.thumb = thumb; + return this; + } + + /** + * The title of the account (username or friendly name) + */ + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * If two-factor authentication is enabled + */ + public Builder twoFactorEnabled(boolean twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = Optional.ofNullable(twoFactorEnabled); + return this; + } + + /** + * If two-factor authentication is enabled + */ + public Builder twoFactorEnabled(Optional twoFactorEnabled) { + Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled"); + this.twoFactorEnabled = twoFactorEnabled; + return this; + } + + /** + * The account username + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + /** + * The account UUID + */ + public Builder uuid(String uuid) { + Utils.checkNotNull(uuid, "uuid"); + this.uuid = uuid; + return this; + } + + public Builder pastSubscriptions(List pastSubscriptions) { + Utils.checkNotNull(pastSubscriptions, "pastSubscriptions"); + this.pastSubscriptions = pastSubscriptions; + return this; + } + + public Builder trials(List trials) { + Utils.checkNotNull(trials, "trials"); + this.trials = trials; + return this; + } + + public PostUsersSignInDataUserPlexAccount build() { + if (anonymous == null) { + anonymous = _SINGLETON_VALUE_Anonymous.value(); + } + if (backupCodesCreated == null) { + backupCodesCreated = _SINGLETON_VALUE_BackupCodesCreated.value(); + } + if (confirmed == null) { + confirmed = _SINGLETON_VALUE_Confirmed.value(); + } + if (emailOnlyAuth == null) { + emailOnlyAuth = _SINGLETON_VALUE_EmailOnlyAuth.value(); + } + if (experimentalFeatures == null) { + experimentalFeatures = _SINGLETON_VALUE_ExperimentalFeatures.value(); + } + if (guest == null) { + guest = _SINGLETON_VALUE_Guest.value(); + } + if (hasPassword == null) { + hasPassword = _SINGLETON_VALUE_HasPassword.value(); + } + if (home == null) { + home = _SINGLETON_VALUE_Home.value(); + } + if (homeAdmin == null) { + homeAdmin = _SINGLETON_VALUE_HomeAdmin.value(); + } + if (mailingListActive == null) { + mailingListActive = _SINGLETON_VALUE_MailingListActive.value(); + } + if (protected_ == null) { + protected_ = _SINGLETON_VALUE_Protected.value(); + } + if (restricted == null) { + restricted = _SINGLETON_VALUE_Restricted.value(); + } + if (twoFactorEnabled == null) { + twoFactorEnabled = _SINGLETON_VALUE_TwoFactorEnabled.value(); + } return new PostUsersSignInDataUserPlexAccount( + adsConsent, + adsConsentReminderAt, + adsConsentSetAt, + anonymous, + authToken, + backupCodesCreated, + confirmed, + country, + email, + emailOnlyAuth, + experimentalFeatures, + friendlyName, + entitlements, + guest, + hasPassword, + home, + homeAdmin, + homeSize, + id, + joinedAt, + locale, + mailingListActive, + mailingListStatus, + maxHomeSize, + pin, + profile, + protected_, + rememberExpiresAt, + restricted, + roles, + scrobbleTypes, + services, + subscription, + subscriptionDescription, + subscriptions, + thumb, + title, + twoFactorEnabled, + username, + uuid, + pastSubscriptions, + trials); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Anonymous = + new LazySingletonValue<>( + "anonymous", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_BackupCodesCreated = + new LazySingletonValue<>( + "backupCodesCreated", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Confirmed = + new LazySingletonValue<>( + "confirmed", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_EmailOnlyAuth = + new LazySingletonValue<>( + "emailOnlyAuth", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ExperimentalFeatures = + new LazySingletonValue<>( + "experimentalFeatures", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Guest = + new LazySingletonValue<>( + "guest", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_HasPassword = + new LazySingletonValue<>( + "hasPassword", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Home = + new LazySingletonValue<>( + "home", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_HomeAdmin = + new LazySingletonValue<>( + "homeAdmin", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_MailingListActive = + new LazySingletonValue<>( + "mailingListActive", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Protected = + new LazySingletonValue<>( + "protected", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Restricted = + new LazySingletonValue<>( + "restricted", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TwoFactorEnabled = + new LazySingletonValue<>( + "twoFactorEnabled", + "false", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java new file mode 100644 index 00000000..6616036c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java @@ -0,0 +1,528 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class PostUsersSignInDataUserProfile { + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("autoSelectAudio") + private Optional autoSelectAudio; + + /** + * The preferred audio language for the account + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("defaultAudioLanguage") + private Optional defaultAudioLanguage; + + /** + * The preferred subtitle language for the account + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("defaultSubtitleLanguage") + private Optional defaultSubtitleLanguage; + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("autoSelectSubtitle") + private Optional autoSelectSubtitle; + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultSubtitleAccessibility") + private Optional defaultSubtitleAccessibility; + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultSubtitleForced") + private Optional defaultSubtitleForced; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("watchedIndicator") + private Optional watchedIndicator; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaReviewsVisibility") + private Optional mediaReviewsVisibility; + + @JsonCreator + public PostUsersSignInDataUserProfile( + @JsonProperty("autoSelectAudio") Optional autoSelectAudio, + @JsonProperty("defaultAudioLanguage") Optional defaultAudioLanguage, + @JsonProperty("defaultSubtitleLanguage") Optional defaultSubtitleLanguage, + @JsonProperty("autoSelectSubtitle") Optional autoSelectSubtitle, + @JsonProperty("defaultSubtitleAccessibility") Optional defaultSubtitleAccessibility, + @JsonProperty("defaultSubtitleForced") Optional defaultSubtitleForced, + @JsonProperty("watchedIndicator") Optional watchedIndicator, + @JsonProperty("mediaReviewsVisibility") Optional mediaReviewsVisibility) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.autoSelectAudio = autoSelectAudio; + this.defaultAudioLanguage = defaultAudioLanguage; + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + this.autoSelectSubtitle = autoSelectSubtitle; + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + this.defaultSubtitleForced = defaultSubtitleForced; + this.watchedIndicator = watchedIndicator; + this.mediaReviewsVisibility = mediaReviewsVisibility; + } + + public PostUsersSignInDataUserProfile() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + @JsonIgnore + public Optional autoSelectAudio() { + return autoSelectAudio; + } + + /** + * The preferred audio language for the account + */ + @JsonIgnore + public Optional defaultAudioLanguage() { + return defaultAudioLanguage; + } + + /** + * The preferred subtitle language for the account + */ + @JsonIgnore + public Optional defaultSubtitleLanguage() { + return defaultSubtitleLanguage; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional autoSelectSubtitle() { + return (Optional) autoSelectSubtitle; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional defaultSubtitleAccessibility() { + return (Optional) defaultSubtitleAccessibility; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional defaultSubtitleForced() { + return (Optional) defaultSubtitleForced; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional watchedIndicator() { + return (Optional) watchedIndicator; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mediaReviewsVisibility() { + return (Optional) mediaReviewsVisibility; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public PostUsersSignInDataUserProfile withAutoSelectAudio(boolean autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); + return this; + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public PostUsersSignInDataUserProfile withAutoSelectAudio(Optional autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = autoSelectAudio; + return this; + } + + /** + * The preferred audio language for the account + */ + public PostUsersSignInDataUserProfile withDefaultAudioLanguage(String defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); + return this; + } + + /** + * The preferred audio language for the account + */ + public PostUsersSignInDataUserProfile withDefaultAudioLanguage(Optional defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = defaultAudioLanguage; + return this; + } + + /** + * The preferred subtitle language for the account + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleLanguage(String defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); + return this; + } + + /** + * The preferred subtitle language for the account + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public PostUsersSignInDataUserProfile withAutoSelectSubtitle(PostUsersSignInDataAutoSelectSubtitle autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = Optional.ofNullable(autoSelectSubtitle); + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public PostUsersSignInDataUserProfile withAutoSelectSubtitle(Optional autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = autoSelectSubtitle; + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleAccessibility(PostUsersSignInDataDefaultSubtitleAccessibility defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = Optional.ofNullable(defaultSubtitleAccessibility); + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleAccessibility(Optional defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleForced(PostUsersSignInDataDefaultSubtitleForced defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = Optional.ofNullable(defaultSubtitleForced); + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public PostUsersSignInDataUserProfile withDefaultSubtitleForced(Optional defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = defaultSubtitleForced; + return this; + } + + public PostUsersSignInDataUserProfile withWatchedIndicator(PostUsersSignInDataWatchedIndicator watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = Optional.ofNullable(watchedIndicator); + return this; + } + + public PostUsersSignInDataUserProfile withWatchedIndicator(Optional watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = watchedIndicator; + return this; + } + + public PostUsersSignInDataUserProfile withMediaReviewsVisibility(PostUsersSignInDataMediaReviewsVisibility mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = Optional.ofNullable(mediaReviewsVisibility); + return this; + } + + public PostUsersSignInDataUserProfile withMediaReviewsVisibility(Optional mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = mediaReviewsVisibility; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostUsersSignInDataUserProfile other = (PostUsersSignInDataUserProfile) o; + return + Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && + Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && + Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && + Objects.deepEquals(this.autoSelectSubtitle, other.autoSelectSubtitle) && + Objects.deepEquals(this.defaultSubtitleAccessibility, other.defaultSubtitleAccessibility) && + Objects.deepEquals(this.defaultSubtitleForced, other.defaultSubtitleForced) && + Objects.deepEquals(this.watchedIndicator, other.watchedIndicator) && + Objects.deepEquals(this.mediaReviewsVisibility, other.mediaReviewsVisibility); + } + + @Override + public int hashCode() { + return Objects.hash( + autoSelectAudio, + defaultAudioLanguage, + defaultSubtitleLanguage, + autoSelectSubtitle, + defaultSubtitleAccessibility, + defaultSubtitleForced, + watchedIndicator, + mediaReviewsVisibility); + } + + @Override + public String toString() { + return Utils.toString(PostUsersSignInDataUserProfile.class, + "autoSelectAudio", autoSelectAudio, + "defaultAudioLanguage", defaultAudioLanguage, + "defaultSubtitleLanguage", defaultSubtitleLanguage, + "autoSelectSubtitle", autoSelectSubtitle, + "defaultSubtitleAccessibility", defaultSubtitleAccessibility, + "defaultSubtitleForced", defaultSubtitleForced, + "watchedIndicator", watchedIndicator, + "mediaReviewsVisibility", mediaReviewsVisibility); + } + + public final static class Builder { + + private Optional autoSelectAudio; + + private Optional defaultAudioLanguage = Optional.empty(); + + private Optional defaultSubtitleLanguage = Optional.empty(); + + private Optional autoSelectSubtitle = Optional.empty(); + + private Optional defaultSubtitleAccessibility = Optional.empty(); + + private Optional defaultSubtitleForced = Optional.empty(); + + private Optional watchedIndicator = Optional.empty(); + + private Optional mediaReviewsVisibility = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public Builder autoSelectAudio(boolean autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); + return this; + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public Builder autoSelectAudio(Optional autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = autoSelectAudio; + return this; + } + + /** + * The preferred audio language for the account + */ + public Builder defaultAudioLanguage(String defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); + return this; + } + + /** + * The preferred audio language for the account + */ + public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = defaultAudioLanguage; + return this; + } + + /** + * The preferred subtitle language for the account + */ + public Builder defaultSubtitleLanguage(String defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); + return this; + } + + /** + * The preferred subtitle language for the account + */ + public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public Builder autoSelectSubtitle(PostUsersSignInDataAutoSelectSubtitle autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = Optional.ofNullable(autoSelectSubtitle); + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public Builder autoSelectSubtitle(Optional autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = autoSelectSubtitle; + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public Builder defaultSubtitleAccessibility(PostUsersSignInDataDefaultSubtitleAccessibility defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = Optional.ofNullable(defaultSubtitleAccessibility); + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public Builder defaultSubtitleAccessibility(Optional defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public Builder defaultSubtitleForced(PostUsersSignInDataDefaultSubtitleForced defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = Optional.ofNullable(defaultSubtitleForced); + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public Builder defaultSubtitleForced(Optional defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = defaultSubtitleForced; + return this; + } + + public Builder watchedIndicator(PostUsersSignInDataWatchedIndicator watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = Optional.ofNullable(watchedIndicator); + return this; + } + + public Builder watchedIndicator(Optional watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = watchedIndicator; + return this; + } + + public Builder mediaReviewsVisibility(PostUsersSignInDataMediaReviewsVisibility mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = Optional.ofNullable(mediaReviewsVisibility); + return this; + } + + public Builder mediaReviewsVisibility(Optional mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = mediaReviewsVisibility; + return this; + } + + public PostUsersSignInDataUserProfile build() { + if (autoSelectAudio == null) { + autoSelectAudio = _SINGLETON_VALUE_AutoSelectAudio.value(); + } return new PostUsersSignInDataUserProfile( + autoSelectAudio, + defaultAudioLanguage, + defaultSubtitleLanguage, + autoSelectSubtitle, + defaultSubtitleAccessibility, + defaultSubtitleForced, + watchedIndicator, + mediaReviewsVisibility); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AutoSelectAudio = + new LazySingletonValue<>( + "autoSelectAudio", + "true", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java new file mode 100644 index 00000000..ad4e3d34 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum PostUsersSignInDataWatchedIndicator { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private PostUsersSignInDataWatchedIndicator(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/dev/plexapi/sdk/models/operations/Producer.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java rename to src/main/java/dev/plexapi/sdk/models/operations/Producer.java index a934a760..6c032176 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Producer.java @@ -1,52 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Producer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter") - private Optional filter; + private Optional filter; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("tagKey") - private Optional tagKey; + private Optional tagKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumb") - private Optional 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) { + @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"); @@ -63,34 +63,29 @@ public class Producer { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional filter() { - return (Optional) filter; + return filter; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tagKey() { - return (Optional) tagKey; + return tagKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional thumb() { - return (Optional) thumb; + return thumb; } public final static Builder builder() { @@ -103,7 +98,7 @@ public class Producer { return this; } - public Producer withId(Optional id) { + public Producer withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -115,7 +110,7 @@ public class Producer { return this; } - public Producer withFilter(Optional filter) { + public Producer withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -127,7 +122,7 @@ public class Producer { return this; } - public Producer withTag(Optional tag) { + public Producer withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -139,7 +134,7 @@ public class Producer { return this; } - public Producer withTagKey(Optional tagKey) { + public Producer withTagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -151,7 +146,7 @@ public class Producer { return this; } - public Producer withThumb(Optional thumb) { + public Producer withThumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; @@ -167,16 +162,16 @@ public class Producer { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.filter, other.filter) && + Objects.deepEquals(this.tag, other.tag) && + Objects.deepEquals(this.tagKey, other.tagKey) && + Objects.deepEquals(this.thumb, other.thumb); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, filter, tag, @@ -196,15 +191,15 @@ public class Producer { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -216,7 +211,7 @@ public class Producer { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -228,7 +223,7 @@ public class Producer { return this; } - public Builder filter(Optional filter) { + public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; @@ -240,7 +235,7 @@ public class Producer { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -252,7 +247,7 @@ public class Producer { return this; } - public Builder tagKey(Optional tagKey) { + public Builder tagKey(Optional tagKey) { Utils.checkNotNull(tagKey, "tagKey"); this.tagKey = tagKey; return this; @@ -264,7 +259,7 @@ public class Producer { return this; } - public Builder thumb(Optional thumb) { + public Builder thumb(Optional thumb) { Utils.checkNotNull(thumb, "thumb"); this.thumb = thumb; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java b/src/main/java/dev/plexapi/sdk/models/operations/Provider.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java rename to src/main/java/dev/plexapi/sdk/models/operations/Provider.java index 57c223c0..a0f3e6fa 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Provider.java @@ -1,42 +1,41 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Provider { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional title; + private Optional title; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonCreator public Provider( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type) { + @JsonProperty("key") Optional key, + @JsonProperty("title") Optional title, + @JsonProperty("type") Optional type) { Utils.checkNotNull(key, "key"); Utils.checkNotNull(title, "title"); Utils.checkNotNull(type, "type"); @@ -49,22 +48,19 @@ public class Provider { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } public final static Builder builder() { @@ -77,7 +73,7 @@ public class Provider { return this; } - public Provider withKey(Optional key) { + public Provider withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -89,7 +85,7 @@ public class Provider { return this; } - public Provider withTitle(Optional title) { + public Provider withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -101,7 +97,7 @@ public class Provider { return this; } - public Provider withType(Optional type) { + public Provider withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -117,14 +113,14 @@ public class Provider { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.type, other.type); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, title, type); @@ -140,11 +136,11 @@ public class Provider { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +152,7 @@ public class Provider { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -168,7 +164,7 @@ public class Provider { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -180,7 +176,7 @@ public class Provider { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java rename to src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java index bb0f7f06..5ab885a1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java @@ -1,28 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + /** - * Filter - Filters content by field and direction/equality + * QueryParamFilter - Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) * */ -public class Filter { +public class QueryParamFilter { @JsonCreator - public Filter() { + public QueryParamFilter() { } @@ -44,13 +42,13 @@ public class Filter { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } @Override public String toString() { - return Utils.toString(Filter.class); + return Utils.toString(QueryParamFilter.class); } public final static class Builder { @@ -59,8 +57,8 @@ public class Filter { // force use of static builder() method } - public Filter build() { - return new Filter( + public QueryParamFilter build() { + return new QueryParamFilter( ); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java new file mode 100644 index 00000000..4ec06b6c --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * QueryParamForce - 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 QueryParamForce { + ZERO(0L), + ONE(1L); + + @JsonValue + private final long value; + + private QueryParamForce(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java similarity index 50% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java rename to src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java index f8eabcb4..d40062dc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java @@ -1,19 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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). diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java new file mode 100644 index 00000000..2b27faa6 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/QueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java new file mode 100644 index 00000000..b293ae34 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * QueryParamType - The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ +public enum QueryParamType { + ONE(1L), + TWO(2L), + THREE(3L), + FOUR(4L); + + @JsonValue + private final long value; + + private QueryParamType(long value) { + this.value = value; + } + + public long value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java b/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java rename to src/main/java/dev/plexapi/sdk/models/operations/Ratings.java index c66f43a5..408bbc52 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Ratings { @JsonInclude(Include.NON_ABSENT) @JsonProperty("image") - private Optional image; + private Optional image; @JsonInclude(Include.NON_ABSENT) @JsonProperty("value") - private Optional value; + private Optional value; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonCreator public Ratings( - @JsonProperty("image") Optional image, - @JsonProperty("value") Optional value, - @JsonProperty("type") Optional type) { + @JsonProperty("image") Optional image, + @JsonProperty("value") Optional value, + @JsonProperty("type") Optional type) { Utils.checkNotNull(image, "image"); Utils.checkNotNull(value, "value"); Utils.checkNotNull(type, "type"); @@ -49,22 +49,19 @@ public class Ratings { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional image() { - return (Optional) image; + return image; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional value() { - return (Optional) value; + return value; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class Ratings { return this; } - public Ratings withImage(Optional image) { + public Ratings withImage(Optional image) { Utils.checkNotNull(image, "image"); this.image = image; return this; @@ -89,7 +86,7 @@ public class Ratings { return this; } - public Ratings withValue(Optional value) { + public Ratings withValue(Optional value) { Utils.checkNotNull(value, "value"); this.value = value; return this; @@ -101,7 +98,7 @@ public class Ratings { return this; } - public Ratings withType(Optional type) { + public Ratings withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -117,14 +114,14 @@ public class Ratings { } 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); + Objects.deepEquals(this.image, other.image) && + Objects.deepEquals(this.value, other.value) && + Objects.deepEquals(this.type, other.type); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( image, value, type); @@ -140,11 +137,11 @@ public class Ratings { public final static class Builder { - private Optional image = Optional.empty(); + private Optional image = Optional.empty(); - private Optional value = Optional.empty(); + private Optional value = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class Ratings { return this; } - public Builder image(Optional image) { + public Builder image(Optional image) { Utils.checkNotNull(image, "image"); this.image = image; return this; @@ -168,7 +165,7 @@ public class Ratings { return this; } - public Builder value(Optional value) { + public Builder value(Optional value) { Utils.checkNotNull(value, "value"); this.value = value; return this; @@ -180,7 +177,7 @@ public class Ratings { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java b/src/main/java/dev/plexapi/sdk/models/operations/Release.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java rename to src/main/java/dev/plexapi/sdk/models/operations/Release.java index 922c8fba..8fbeace3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Release.java @@ -1,57 +1,56 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Release { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional version; + private Optional version; @JsonInclude(Include.NON_ABSENT) @JsonProperty("added") - private Optional added; + private Optional added; @JsonInclude(Include.NON_ABSENT) @JsonProperty("fixed") - private Optional fixed; + private Optional fixed; @JsonInclude(Include.NON_ABSENT) @JsonProperty("downloadURL") - private Optional downloadURL; + private Optional downloadURL; @JsonInclude(Include.NON_ABSENT) @JsonProperty("state") - private Optional 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) { + @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"); @@ -70,40 +69,34 @@ public class Release { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional added() { - return (Optional) added; + return added; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional fixed() { - return (Optional) fixed; + return fixed; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional downloadURL() { - return (Optional) downloadURL; + return downloadURL; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional state() { - return (Optional) state; + return state; } public final static Builder builder() { @@ -116,7 +109,7 @@ public class Release { return this; } - public Release withKey(Optional key) { + public Release withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -128,7 +121,7 @@ public class Release { return this; } - public Release withVersion(Optional version) { + public Release withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -140,7 +133,7 @@ public class Release { return this; } - public Release withAdded(Optional added) { + public Release withAdded(Optional added) { Utils.checkNotNull(added, "added"); this.added = added; return this; @@ -152,7 +145,7 @@ public class Release { return this; } - public Release withFixed(Optional fixed) { + public Release withFixed(Optional fixed) { Utils.checkNotNull(fixed, "fixed"); this.fixed = fixed; return this; @@ -164,7 +157,7 @@ public class Release { return this; } - public Release withDownloadURL(Optional downloadURL) { + public Release withDownloadURL(Optional downloadURL) { Utils.checkNotNull(downloadURL, "downloadURL"); this.downloadURL = downloadURL; return this; @@ -176,7 +169,7 @@ public class Release { return this; } - public Release withState(Optional state) { + public Release withState(Optional state) { Utils.checkNotNull(state, "state"); this.state = state; return this; @@ -192,17 +185,17 @@ public class Release { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.version, other.version) && + Objects.deepEquals(this.added, other.added) && + Objects.deepEquals(this.fixed, other.fixed) && + Objects.deepEquals(this.downloadURL, other.downloadURL) && + Objects.deepEquals(this.state, other.state); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, version, added, @@ -224,17 +217,17 @@ public class Release { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); - private Optional added = Optional.empty(); + private Optional added = Optional.empty(); - private Optional fixed = Optional.empty(); + private Optional fixed = Optional.empty(); - private Optional downloadURL = Optional.empty(); + private Optional downloadURL = Optional.empty(); - private Optional state = Optional.empty(); + private Optional state = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +239,7 @@ public class Release { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -258,7 +251,7 @@ public class Release { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -270,7 +263,7 @@ public class Release { return this; } - public Builder added(Optional added) { + public Builder added(Optional added) { Utils.checkNotNull(added, "added"); this.added = added; return this; @@ -282,7 +275,7 @@ public class Release { return this; } - public Builder fixed(Optional fixed) { + public Builder fixed(Optional fixed) { Utils.checkNotNull(fixed, "fixed"); this.fixed = fixed; return this; @@ -294,7 +287,7 @@ public class Release { return this; } - public Builder downloadURL(Optional downloadURL) { + public Builder downloadURL(Optional downloadURL) { Utils.checkNotNull(downloadURL, "downloadURL"); this.downloadURL = downloadURL; return this; @@ -306,7 +299,7 @@ public class Release { return this; } - public Builder state(Optional state) { + public Builder state(Optional state) { Utils.checkNotNull(state, "state"); this.state = state; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java new file mode 100644 index 00000000..cb6e560d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java @@ -0,0 +1,246 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class ResponseBody { + + @JsonProperty("identifier") + private String identifier; + + @JsonProperty("baseURL") + private String baseURL; + + @JsonProperty("title") + private String title; + + @JsonProperty("linkURL") + private String linkURL; + + @JsonProperty("provides") + private String provides; + + /** + * The plex authtoken used to identify with + */ + @JsonProperty("token") + private String token; + + @JsonCreator + public ResponseBody( + @JsonProperty("identifier") String identifier, + @JsonProperty("baseURL") String baseURL, + @JsonProperty("title") String title, + @JsonProperty("linkURL") String linkURL, + @JsonProperty("provides") String provides, + @JsonProperty("token") String token) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(baseURL, "baseURL"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(linkURL, "linkURL"); + Utils.checkNotNull(provides, "provides"); + Utils.checkNotNull(token, "token"); + this.identifier = identifier; + this.baseURL = baseURL; + this.title = title; + this.linkURL = linkURL; + this.provides = provides; + this.token = token; + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String baseURL() { + return baseURL; + } + + @JsonIgnore + public String title() { + return title; + } + + @JsonIgnore + public String linkURL() { + return linkURL; + } + + @JsonIgnore + public String provides() { + return provides; + } + + /** + * The plex authtoken used to identify with + */ + @JsonIgnore + public String token() { + return token; + } + + public final static Builder builder() { + return new Builder(); + } + + public ResponseBody withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public ResponseBody withBaseURL(String baseURL) { + Utils.checkNotNull(baseURL, "baseURL"); + this.baseURL = baseURL; + return this; + } + + public ResponseBody withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + public ResponseBody withLinkURL(String linkURL) { + Utils.checkNotNull(linkURL, "linkURL"); + this.linkURL = linkURL; + return this; + } + + public ResponseBody withProvides(String provides) { + Utils.checkNotNull(provides, "provides"); + this.provides = provides; + return this; + } + + /** + * The plex authtoken used to identify with + */ + public ResponseBody withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseBody other = (ResponseBody) o; + return + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.baseURL, other.baseURL) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.linkURL, other.linkURL) && + Objects.deepEquals(this.provides, other.provides) && + Objects.deepEquals(this.token, other.token); + } + + @Override + public int hashCode() { + return Objects.hash( + identifier, + baseURL, + title, + linkURL, + provides, + token); + } + + @Override + public String toString() { + return Utils.toString(ResponseBody.class, + "identifier", identifier, + "baseURL", baseURL, + "title", title, + "linkURL", linkURL, + "provides", provides, + "token", token); + } + + public final static class Builder { + + private String identifier; + + private String baseURL; + + private String title; + + private String linkURL; + + private String provides; + + private String token; + + private Builder() { + // force use of static builder() method + } + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public Builder baseURL(String baseURL) { + Utils.checkNotNull(baseURL, "baseURL"); + this.baseURL = baseURL; + return this; + } + + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + public Builder linkURL(String linkURL) { + Utils.checkNotNull(linkURL, "linkURL"); + this.linkURL = linkURL; + return this; + } + + public Builder provides(String provides) { + Utils.checkNotNull(provides, "provides"); + this.provides = provides; + return this; + } + + /** + * The plex authtoken used to identify with + */ + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public ResponseBody build() { + return new ResponseBody( + identifier, + baseURL, + title, + linkURL, + provides, + token); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java b/src/main/java/dev/plexapi/sdk/models/operations/Role.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java rename to src/main/java/dev/plexapi/sdk/models/operations/Role.java index 5b80d2c6..45a55b95 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Role.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Role { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public Role( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class Role { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Role { return this; } - public Role withTag(Optional tag) { + public Role withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class Role { } Role other = (Role) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class Role { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Role { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java b/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java new file mode 100644 index 00000000..09faa555 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java @@ -0,0 +1,483 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.Optional; + +public class SDKMethodInterfaces { + + + public interface MethodCallGetServerCapabilities { + dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception; + } + + + public interface MethodCallGetServerPreferences { + dev.plexapi.sdk.models.operations.GetServerPreferencesResponse getServerPreferencesDirect() throws Exception; + } + + + public interface MethodCallGetAvailableClients { + dev.plexapi.sdk.models.operations.GetAvailableClientsResponse getAvailableClientsDirect() throws Exception; + } + + + public interface MethodCallGetDevices { + dev.plexapi.sdk.models.operations.GetDevicesResponse getDevicesDirect() throws Exception; + } + + + public interface MethodCallGetServerIdentity { + dev.plexapi.sdk.models.operations.GetServerIdentityResponse getServerIdentityDirect() throws Exception; + } + + + public interface MethodCallGetMyPlexAccount { + dev.plexapi.sdk.models.operations.GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception; + } + + + public interface MethodCallGetResizedPhoto { + dev.plexapi.sdk.models.operations.GetResizedPhotoResponse getResizedPhoto( + GetResizedPhotoRequest request) throws Exception; + } + + + public interface MethodCallGetMediaProviders { + dev.plexapi.sdk.models.operations.GetMediaProvidersResponse getMediaProviders( + String xPlexToken) throws Exception; + } + + + public interface MethodCallGetServerList { + dev.plexapi.sdk.models.operations.GetServerListResponse getServerListDirect() throws Exception; + } + + + public interface MethodCallMarkPlayed { + dev.plexapi.sdk.models.operations.MarkPlayedResponse markPlayed( + double key) throws Exception; + } + + + public interface MethodCallMarkUnplayed { + dev.plexapi.sdk.models.operations.MarkUnplayedResponse markUnplayed( + double key) throws Exception; + } + + + public interface MethodCallUpdatePlayProgress { + dev.plexapi.sdk.models.operations.UpdatePlayProgressResponse updatePlayProgress( + String key, + double time, + String state) throws Exception; + } + + + public interface MethodCallGetBannerImage { + dev.plexapi.sdk.models.operations.GetBannerImageResponse getBannerImage( + GetBannerImageRequest request) throws Exception; + } + + + public interface MethodCallGetThumbImage { + dev.plexapi.sdk.models.operations.GetThumbImageResponse getThumbImage( + GetThumbImageRequest request) throws Exception; + } + + + public interface MethodCallGetTimeline { + dev.plexapi.sdk.models.operations.GetTimelineResponse getTimeline( + GetTimelineRequest request) throws Exception; + } + + + public interface MethodCallStartUniversalTranscode { + dev.plexapi.sdk.models.operations.StartUniversalTranscodeResponse startUniversalTranscode( + StartUniversalTranscodeRequest request) throws Exception; + } + + + public interface MethodCallGetServerActivities { + dev.plexapi.sdk.models.operations.GetServerActivitiesResponse getServerActivitiesDirect() throws Exception; + } + + + public interface MethodCallCancelServerActivities { + dev.plexapi.sdk.models.operations.CancelServerActivitiesResponse cancelServerActivities( + String activityUUID) throws Exception; + } + + + public interface MethodCallGetButlerTasks { + dev.plexapi.sdk.models.operations.GetButlerTasksResponse getButlerTasksDirect() throws Exception; + } + + + public interface MethodCallStartAllTasks { + dev.plexapi.sdk.models.operations.StartAllTasksResponse startAllTasksDirect() throws Exception; + } + + + public interface MethodCallStopAllTasks { + dev.plexapi.sdk.models.operations.StopAllTasksResponse stopAllTasksDirect() throws Exception; + } + + + public interface MethodCallStartTask { + dev.plexapi.sdk.models.operations.StartTaskResponse startTask( + TaskName taskName) throws Exception; + } + + + public interface MethodCallStopTask { + dev.plexapi.sdk.models.operations.StopTaskResponse stopTask( + PathParamTaskName taskName) throws Exception; + } + + + public interface MethodCallGetCompanionsData { + dev.plexapi.sdk.models.operations.GetCompanionsDataResponse getCompanionsData( + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetUserFriends { + dev.plexapi.sdk.models.operations.GetUserFriendsResponse getUserFriends( + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetGeoData { + dev.plexapi.sdk.models.operations.GetGeoDataResponse getGeoData( + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetHomeData { + dev.plexapi.sdk.models.operations.GetHomeDataResponse getHomeDataDirect() throws Exception; + } + + + public interface MethodCallGetServerResources { + dev.plexapi.sdk.models.operations.GetServerResourcesResponse getServerResources( + GetServerResourcesRequest request, + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetPin { + dev.plexapi.sdk.models.operations.GetPinResponse getPin( + Optional strong, + Optional xPlexClientIdentifier, + Optional xPlexProduct, + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetTokenByPinId { + dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse getTokenByPinId( + Optional xPlexClientIdentifier, + long pinID, + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetGlobalHubs { + dev.plexapi.sdk.models.operations.GetGlobalHubsResponse getGlobalHubs( + Optional count, + Optional onlyTransient) throws Exception; + } + + + public interface MethodCallGetLibraryHubs { + dev.plexapi.sdk.models.operations.GetLibraryHubsResponse getLibraryHubs( + double sectionId, + Optional count, + Optional onlyTransient) throws Exception; + } + + + public interface MethodCallPerformSearch { + dev.plexapi.sdk.models.operations.PerformSearchResponse performSearch( + String query, + Optional sectionId, + Optional limit) throws Exception; + } + + + public interface MethodCallPerformVoiceSearch { + dev.plexapi.sdk.models.operations.PerformVoiceSearchResponse performVoiceSearch( + String query, + Optional sectionId, + Optional limit) throws Exception; + } + + + public interface MethodCallGetSearchResults { + dev.plexapi.sdk.models.operations.GetSearchResultsResponse getSearchResults( + String query) throws Exception; + } + + + public interface MethodCallGetFileHash { + dev.plexapi.sdk.models.operations.GetFileHashResponse getFileHash( + String url, + Optional type) throws Exception; + } + + + public interface MethodCallGetRecentlyAdded { + dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse getRecentlyAdded( + Optional xPlexContainerStart, + Optional xPlexContainerSize) throws Exception; + } + + + public interface MethodCallGetAllLibraries { + dev.plexapi.sdk.models.operations.GetAllLibrariesResponse getAllLibrariesDirect() throws Exception; + } + + + public interface MethodCallGetLibraryDetails { + dev.plexapi.sdk.models.operations.GetLibraryDetailsResponse getLibraryDetails( + int sectionKey, + Optional includeDetails) throws Exception; + } + + + public interface MethodCallDeleteLibrary { + dev.plexapi.sdk.models.operations.DeleteLibraryResponse deleteLibrary( + int sectionKey) throws Exception; + } + + + public interface MethodCallGetLibraryItems { + dev.plexapi.sdk.models.operations.GetLibraryItemsResponse getLibraryItems( + GetLibraryItemsRequest request) throws Exception; + } + + + public interface MethodCallGetRefreshLibraryMetadata { + dev.plexapi.sdk.models.operations.GetRefreshLibraryMetadataResponse getRefreshLibraryMetadata( + int sectionKey, + Optional force) throws Exception; + } + + + public interface MethodCallGetSearchLibrary { + dev.plexapi.sdk.models.operations.GetSearchLibraryResponse getSearchLibrary( + int sectionKey, + QueryParamType type) throws Exception; + } + + + public interface MethodCallGetMetaDataByRatingKey { + dev.plexapi.sdk.models.operations.GetMetaDataByRatingKeyResponse getMetaDataByRatingKey( + long ratingKey) throws Exception; + } + + + public interface MethodCallGetMetadataChildren { + dev.plexapi.sdk.models.operations.GetMetadataChildrenResponse getMetadataChildren( + double ratingKey, + Optional includeElements) throws Exception; + } + + + public interface MethodCallGetTopWatchedContent { + dev.plexapi.sdk.models.operations.GetTopWatchedContentResponse getTopWatchedContent( + GetTopWatchedContentQueryParamType type, + Optional includeGuids) throws Exception; + } + + + public interface MethodCallGetOnDeck { + dev.plexapi.sdk.models.operations.GetOnDeckResponse getOnDeckDirect() throws Exception; + } + + + public interface MethodCallGetWatchList { + dev.plexapi.sdk.models.operations.GetWatchListResponse getWatchList( + GetWatchListRequest request, + Optional serverURL) throws Exception; + } + + + public interface MethodCallLogLine { + dev.plexapi.sdk.models.operations.LogLineResponse logLine( + Level level, + String message, + String source) throws Exception; + } + + + public interface MethodCallLogMultiLine { + dev.plexapi.sdk.models.operations.LogMultiLineResponse logMultiLine( + String request) throws Exception; + } + + + public interface MethodCallEnablePaperTrail { + dev.plexapi.sdk.models.operations.EnablePaperTrailResponse enablePaperTrailDirect() throws Exception; + } + + + public interface MethodCallCreatePlaylist { + dev.plexapi.sdk.models.operations.CreatePlaylistResponse createPlaylist( + CreatePlaylistRequest request) throws Exception; + } + + + public interface MethodCallGetPlaylists { + dev.plexapi.sdk.models.operations.GetPlaylistsResponse getPlaylists( + Optional playlistType, + Optional smart) throws Exception; + } + + + public interface MethodCallGetPlaylist { + dev.plexapi.sdk.models.operations.GetPlaylistResponse getPlaylist( + double playlistID) throws Exception; + } + + + public interface MethodCallDeletePlaylist { + dev.plexapi.sdk.models.operations.DeletePlaylistResponse deletePlaylist( + double playlistID) throws Exception; + } + + + public interface MethodCallUpdatePlaylist { + dev.plexapi.sdk.models.operations.UpdatePlaylistResponse updatePlaylist( + double playlistID, + Optional title, + Optional summary) throws Exception; + } + + + public interface MethodCallGetPlaylistContents { + dev.plexapi.sdk.models.operations.GetPlaylistContentsResponse getPlaylistContents( + double playlistID, + GetPlaylistContentsQueryParamType type) throws Exception; + } + + + public interface MethodCallClearPlaylistContents { + dev.plexapi.sdk.models.operations.ClearPlaylistContentsResponse clearPlaylistContents( + double playlistID) throws Exception; + } + + + public interface MethodCallAddPlaylistContents { + dev.plexapi.sdk.models.operations.AddPlaylistContentsResponse addPlaylistContents( + double playlistID, + String uri, + Optional playQueueID) throws Exception; + } + + + public interface MethodCallUploadPlaylist { + dev.plexapi.sdk.models.operations.UploadPlaylistResponse uploadPlaylist( + String path, + QueryParamForce force) throws Exception; + } + + + public interface MethodCallGetTransientToken { + dev.plexapi.sdk.models.operations.GetTransientTokenResponse getTransientToken( + GetTransientTokenQueryParamType type, + Scope scope) throws Exception; + } + + + public interface MethodCallGetSourceConnectionInformation { + dev.plexapi.sdk.models.operations.GetSourceConnectionInformationResponse getSourceConnectionInformation( + String source) throws Exception; + } + + + public interface MethodCallGetUserDetails { + dev.plexapi.sdk.models.operations.GetUserDetailsResponse getUserDetails( + String xPlexToken, + Optional serverURL) throws Exception; + } + + + public interface MethodCallPostUsersSignInData { + dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse postUsersSignInData( + Optional xPlexClientIdentifier, + Optional requestBody, + Optional serverURL) throws Exception; + } + + + public interface MethodCallGetStatistics { + dev.plexapi.sdk.models.operations.GetStatisticsResponse getStatistics( + Optional timespan) throws Exception; + } + + + public interface MethodCallGetResourcesStatistics { + dev.plexapi.sdk.models.operations.GetResourcesStatisticsResponse getResourcesStatistics( + Optional timespan) throws Exception; + } + + + public interface MethodCallGetBandwidthStatistics { + dev.plexapi.sdk.models.operations.GetBandwidthStatisticsResponse getBandwidthStatistics( + Optional timespan) throws Exception; + } + + + public interface MethodCallGetSessions { + dev.plexapi.sdk.models.operations.GetSessionsResponse getSessionsDirect() throws Exception; + } + + + public interface MethodCallGetSessionHistory { + dev.plexapi.sdk.models.operations.GetSessionHistoryResponse getSessionHistory( + Optional sort, + Optional accountId, + Optional filter, + Optional librarySectionID) throws Exception; + } + + + public interface MethodCallGetTranscodeSessions { + dev.plexapi.sdk.models.operations.GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception; + } + + + public interface MethodCallStopTranscodeSession { + dev.plexapi.sdk.models.operations.StopTranscodeSessionResponse stopTranscodeSession( + String sessionKey) throws Exception; + } + + + public interface MethodCallGetUpdateStatus { + dev.plexapi.sdk.models.operations.GetUpdateStatusResponse getUpdateStatusDirect() throws Exception; + } + + + public interface MethodCallCheckForUpdates { + dev.plexapi.sdk.models.operations.CheckForUpdatesResponse checkForUpdates( + Optional download) throws Exception; + } + + + public interface MethodCallApplyUpdates { + dev.plexapi.sdk.models.operations.ApplyUpdatesResponse applyUpdates( + Optional tonight, + Optional skip) throws Exception; + } + + +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Scope.java b/src/main/java/dev/plexapi/sdk/models/operations/Scope.java new file mode 100644 index 00000000..93c29026 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Scope.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * 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/Server.java b/src/main/java/dev/plexapi/sdk/models/operations/Server.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java rename to src/main/java/dev/plexapi/sdk/models/operations/Server.java index 979c779b..bb124ecd 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Server.java @@ -1,82 +1,82 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Server { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("host") - private Optional host; + private Optional host; @JsonInclude(Include.NON_ABSENT) @JsonProperty("address") - private Optional address; + private Optional address; @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") - private Optional port; + private Optional port; @JsonInclude(Include.NON_ABSENT) @JsonProperty("machineIdentifier") - private Optional machineIdentifier; + private Optional machineIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") - private Optional version; + private Optional version; @JsonInclude(Include.NON_ABSENT) @JsonProperty("protocol") - private Optional protocol; + private Optional protocol; @JsonInclude(Include.NON_ABSENT) @JsonProperty("product") - private Optional product; + private Optional product; @JsonInclude(Include.NON_ABSENT) @JsonProperty("deviceClass") - private Optional deviceClass; + private Optional deviceClass; @JsonInclude(Include.NON_ABSENT) @JsonProperty("protocolVersion") - private Optional protocolVersion; + private Optional protocolVersion; @JsonInclude(Include.NON_ABSENT) @JsonProperty("protocolCapabilities") - private Optional 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) { + @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"); @@ -105,70 +105,59 @@ public class 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; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional host() { - return (Optional) host; + return host; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional address() { - return (Optional) address; + return address; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional port() { - return (Optional) port; + return port; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional machineIdentifier() { - return (Optional) machineIdentifier; + return machineIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional version() { - return (Optional) version; + return version; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional protocol() { - return (Optional) protocol; + return protocol; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional product() { - return (Optional) product; + return product; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional deviceClass() { - return (Optional) deviceClass; + return deviceClass; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional protocolVersion() { - return (Optional) protocolVersion; + return protocolVersion; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional protocolCapabilities() { - return (Optional) protocolCapabilities; + return protocolCapabilities; } public final static Builder builder() { @@ -181,7 +170,7 @@ public class Server { return this; } - public Server withName(Optional name) { + public Server withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -193,7 +182,7 @@ public class Server { return this; } - public Server withHost(Optional host) { + public Server withHost(Optional host) { Utils.checkNotNull(host, "host"); this.host = host; return this; @@ -205,7 +194,7 @@ public class Server { return this; } - public Server withAddress(Optional address) { + public Server withAddress(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -217,7 +206,7 @@ public class Server { return this; } - public Server withPort(Optional port) { + public Server withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -229,7 +218,7 @@ public class Server { return this; } - public Server withMachineIdentifier(Optional machineIdentifier) { + public Server withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -241,7 +230,7 @@ public class Server { return this; } - public Server withVersion(Optional version) { + public Server withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -253,7 +242,7 @@ public class Server { return this; } - public Server withProtocol(Optional protocol) { + public Server withProtocol(Optional protocol) { Utils.checkNotNull(protocol, "protocol"); this.protocol = protocol; return this; @@ -265,7 +254,7 @@ public class Server { return this; } - public Server withProduct(Optional product) { + public Server withProduct(Optional product) { Utils.checkNotNull(product, "product"); this.product = product; return this; @@ -277,7 +266,7 @@ public class Server { return this; } - public Server withDeviceClass(Optional deviceClass) { + public Server withDeviceClass(Optional deviceClass) { Utils.checkNotNull(deviceClass, "deviceClass"); this.deviceClass = deviceClass; return this; @@ -289,7 +278,7 @@ public class Server { return this; } - public Server withProtocolVersion(Optional protocolVersion) { + public Server withProtocolVersion(Optional protocolVersion) { Utils.checkNotNull(protocolVersion, "protocolVersion"); this.protocolVersion = protocolVersion; return this; @@ -301,7 +290,7 @@ public class Server { return this; } - public Server withProtocolCapabilities(Optional protocolCapabilities) { + public Server withProtocolCapabilities(Optional protocolCapabilities) { Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); this.protocolCapabilities = protocolCapabilities; return this; @@ -317,22 +306,22 @@ public class Server { } 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); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.host, other.host) && + Objects.deepEquals(this.address, other.address) && + Objects.deepEquals(this.port, other.port) && + Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && + Objects.deepEquals(this.version, other.version) && + Objects.deepEquals(this.protocol, other.protocol) && + Objects.deepEquals(this.product, other.product) && + Objects.deepEquals(this.deviceClass, other.deviceClass) && + Objects.deepEquals(this.protocolVersion, other.protocolVersion) && + Objects.deepEquals(this.protocolCapabilities, other.protocolCapabilities); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, host, address, @@ -364,27 +353,27 @@ public class Server { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional host = Optional.empty(); + private Optional host = Optional.empty(); - private Optional address = Optional.empty(); + private Optional address = Optional.empty(); - private Optional port = Optional.empty(); + private Optional port = Optional.empty(); - private Optional machineIdentifier = Optional.empty(); + private Optional machineIdentifier = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); - private Optional protocol = Optional.empty(); + private Optional protocol = Optional.empty(); - private Optional product = Optional.empty(); + private Optional product = Optional.empty(); - private Optional deviceClass = Optional.empty(); + private Optional deviceClass = Optional.empty(); - private Optional protocolVersion = Optional.empty(); + private Optional protocolVersion = Optional.empty(); - private Optional protocolCapabilities = Optional.empty(); + private Optional protocolCapabilities = Optional.empty(); private Builder() { // force use of static builder() method @@ -396,7 +385,7 @@ public class Server { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -408,7 +397,7 @@ public class Server { return this; } - public Builder host(Optional host) { + public Builder host(Optional host) { Utils.checkNotNull(host, "host"); this.host = host; return this; @@ -420,7 +409,7 @@ public class Server { return this; } - public Builder address(Optional address) { + public Builder address(Optional address) { Utils.checkNotNull(address, "address"); this.address = address; return this; @@ -432,7 +421,7 @@ public class Server { return this; } - public Builder port(Optional port) { + public Builder port(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; @@ -444,7 +433,7 @@ public class Server { return this; } - public Builder machineIdentifier(Optional machineIdentifier) { + public Builder machineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; @@ -456,7 +445,7 @@ public class Server { return this; } - public Builder version(Optional version) { + public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; @@ -468,7 +457,7 @@ public class Server { return this; } - public Builder protocol(Optional protocol) { + public Builder protocol(Optional protocol) { Utils.checkNotNull(protocol, "protocol"); this.protocol = protocol; return this; @@ -480,7 +469,7 @@ public class Server { return this; } - public Builder product(Optional product) { + public Builder product(Optional product) { Utils.checkNotNull(product, "product"); this.product = product; return this; @@ -492,7 +481,7 @@ public class Server { return this; } - public Builder deviceClass(Optional deviceClass) { + public Builder deviceClass(Optional deviceClass) { Utils.checkNotNull(deviceClass, "deviceClass"); this.deviceClass = deviceClass; return this; @@ -504,7 +493,7 @@ public class Server { return this; } - public Builder protocolVersion(Optional protocolVersion) { + public Builder protocolVersion(Optional protocolVersion) { Utils.checkNotNull(protocolVersion, "protocolVersion"); this.protocolVersion = protocolVersion; return this; @@ -516,7 +505,7 @@ public class Server { return this; } - public Builder protocolCapabilities(Optional protocolCapabilities) { + public Builder protocolCapabilities(Optional protocolCapabilities) { Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); this.protocolCapabilities = protocolCapabilities; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Services.java b/src/main/java/dev/plexapi/sdk/models/operations/Services.java new file mode 100644 index 00000000..a3b2c36f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Services.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + + +public class Services { + + @JsonProperty("identifier") + private String identifier; + + @JsonProperty("endpoint") + private String endpoint; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("token") + private Optional token; + + @JsonInclude(Include.ALWAYS) + @JsonProperty("secret") + private Optional secret; + + @JsonProperty("status") + private GetUserDetailsStatus status; + + @JsonCreator + public Services( + @JsonProperty("identifier") String identifier, + @JsonProperty("endpoint") String endpoint, + @JsonProperty("token") Optional token, + @JsonProperty("secret") Optional secret, + @JsonProperty("status") GetUserDetailsStatus status) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(endpoint, "endpoint"); + Utils.checkNotNull(token, "token"); + Utils.checkNotNull(secret, "secret"); + Utils.checkNotNull(status, "status"); + this.identifier = identifier; + this.endpoint = endpoint; + this.token = token; + this.secret = secret; + this.status = status; + } + + public Services( + String identifier, + String endpoint, + GetUserDetailsStatus status) { + this(identifier, endpoint, Optional.empty(), Optional.empty(), status); + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String endpoint() { + return endpoint; + } + + @JsonIgnore + public Optional token() { + return token; + } + + @JsonIgnore + public Optional secret() { + return secret; + } + + @JsonIgnore + public GetUserDetailsStatus status() { + return status; + } + + public final static Builder builder() { + return new Builder(); + } + + public Services withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public Services withEndpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public Services withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = Optional.ofNullable(token); + return this; + } + + public Services withToken(Optional token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public Services withSecret(String secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = Optional.ofNullable(secret); + return this; + } + + public Services withSecret(Optional secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = secret; + return this; + } + + public Services withStatus(GetUserDetailsStatus 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; + } + Services other = (Services) o; + return + Objects.deepEquals(this.identifier, other.identifier) && + Objects.deepEquals(this.endpoint, other.endpoint) && + Objects.deepEquals(this.token, other.token) && + Objects.deepEquals(this.secret, other.secret) && + Objects.deepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Objects.hash( + identifier, + endpoint, + token, + secret, + status); + } + + @Override + public String toString() { + return Utils.toString(Services.class, + "identifier", identifier, + "endpoint", endpoint, + "token", token, + "secret", secret, + "status", status); + } + + public final static class Builder { + + private String identifier; + + private String endpoint; + + private Optional token = Optional.empty(); + + private Optional secret = Optional.empty(); + + private GetUserDetailsStatus status; + + private Builder() { + // force use of static builder() method + } + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public Builder endpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = Optional.ofNullable(token); + return this; + } + + public Builder token(Optional token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public Builder secret(String secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = Optional.ofNullable(secret); + return this; + } + + public Builder secret(Optional secret) { + Utils.checkNotNull(secret, "secret"); + this.secret = secret; + return this; + } + + public Builder status(GetUserDetailsStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + public Services build() { + return new Services( + identifier, + endpoint, + token, + secret, + status); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java b/src/main/java/dev/plexapi/sdk/models/operations/Session.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java rename to src/main/java/dev/plexapi/sdk/models/operations/Session.java index e4f828b6..dd59279c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Session.java @@ -1,42 +1,42 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Session { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bandwidth") - private Optional bandwidth; + private Optional bandwidth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("location") - private Optional location; + private Optional location; @JsonCreator public Session( - @JsonProperty("id") Optional id, - @JsonProperty("bandwidth") Optional bandwidth, - @JsonProperty("location") Optional location) { + @JsonProperty("id") Optional id, + @JsonProperty("bandwidth") Optional bandwidth, + @JsonProperty("location") Optional location) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(bandwidth, "bandwidth"); Utils.checkNotNull(location, "location"); @@ -49,22 +49,19 @@ public class Session { this(Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bandwidth() { - return (Optional) bandwidth; + return bandwidth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional location() { - return (Optional) location; + return location; } public final static Builder builder() { @@ -77,7 +74,7 @@ public class Session { return this; } - public Session withId(Optional id) { + public Session withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -89,7 +86,7 @@ public class Session { return this; } - public Session withBandwidth(Optional bandwidth) { + public Session withBandwidth(Optional bandwidth) { Utils.checkNotNull(bandwidth, "bandwidth"); this.bandwidth = bandwidth; return this; @@ -101,7 +98,7 @@ public class Session { return this; } - public Session withLocation(Optional location) { + public Session withLocation(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; @@ -117,14 +114,14 @@ public class Session { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.bandwidth, other.bandwidth) && + Objects.deepEquals(this.location, other.location); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, bandwidth, location); @@ -140,11 +137,11 @@ public class Session { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional bandwidth = Optional.empty(); + private Optional bandwidth = Optional.empty(); - private Optional location = Optional.empty(); + private Optional location = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public class Session { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -168,7 +165,7 @@ public class Session { return this; } - public Builder bandwidth(Optional bandwidth) { + public Builder bandwidth(Optional bandwidth) { Utils.checkNotNull(bandwidth, "bandwidth"); this.bandwidth = bandwidth; return this; @@ -180,7 +177,7 @@ public class Session { return this; } - public Builder location(Optional location) { + public Builder location(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java b/src/main/java/dev/plexapi/sdk/models/operations/Setting.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java rename to src/main/java/dev/plexapi/sdk/models/operations/Setting.java index b71116f4..263b6947 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Setting.java @@ -1,77 +1,77 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Setting { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("label") - private Optional label; + private Optional label; @JsonInclude(Include.NON_ABSENT) @JsonProperty("summary") - private Optional summary; + private Optional summary; @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; @JsonInclude(Include.NON_ABSENT) @JsonProperty("default") - private Optional default_; + private Optional default_; @JsonInclude(Include.NON_ABSENT) @JsonProperty("value") - private Optional value; + private Optional value; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hidden") - private Optional hidden; + private Optional hidden; @JsonInclude(Include.NON_ABSENT) @JsonProperty("advanced") - private Optional advanced; + private Optional advanced; @JsonInclude(Include.NON_ABSENT) @JsonProperty("group") - private Optional group; + private Optional group; @JsonInclude(Include.NON_ABSENT) @JsonProperty("enumValues") - private Optional 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) { + @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"); @@ -98,64 +98,54 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional label() { - return (Optional) label; + return label; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional default_() { - return (Optional) default_; + return default_; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional value() { - return (Optional) value; + return value; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hidden() { - return (Optional) hidden; + return hidden; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional advanced() { - return (Optional) advanced; + return advanced; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional group() { - return (Optional) group; + return group; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional enumValues() { - return (Optional) enumValues; + return enumValues; } public final static Builder builder() { @@ -168,7 +158,7 @@ public class Setting { return this; } - public Setting withId(Optional id) { + public Setting withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -180,7 +170,7 @@ public class Setting { return this; } - public Setting withLabel(Optional label) { + public Setting withLabel(Optional label) { Utils.checkNotNull(label, "label"); this.label = label; return this; @@ -192,7 +182,7 @@ public class Setting { return this; } - public Setting withSummary(Optional summary) { + public Setting withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -204,7 +194,7 @@ public class Setting { return this; } - public Setting withType(Optional type) { + public Setting withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -216,7 +206,7 @@ public class Setting { return this; } - public Setting withDefault(Optional default_) { + public Setting withDefault(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -228,7 +218,7 @@ public class Setting { return this; } - public Setting withValue(Optional value) { + public Setting withValue(Optional value) { Utils.checkNotNull(value, "value"); this.value = value; return this; @@ -240,7 +230,7 @@ public class Setting { return this; } - public Setting withHidden(Optional hidden) { + public Setting withHidden(Optional hidden) { Utils.checkNotNull(hidden, "hidden"); this.hidden = hidden; return this; @@ -252,7 +242,7 @@ public class Setting { return this; } - public Setting withAdvanced(Optional advanced) { + public Setting withAdvanced(Optional advanced) { Utils.checkNotNull(advanced, "advanced"); this.advanced = advanced; return this; @@ -264,7 +254,7 @@ public class Setting { return this; } - public Setting withGroup(Optional group) { + public Setting withGroup(Optional group) { Utils.checkNotNull(group, "group"); this.group = group; return this; @@ -276,7 +266,7 @@ public class Setting { return this; } - public Setting withEnumValues(Optional enumValues) { + public Setting withEnumValues(Optional enumValues) { Utils.checkNotNull(enumValues, "enumValues"); this.enumValues = enumValues; return this; @@ -292,21 +282,21 @@ public class Setting { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.label, other.label) && + Objects.deepEquals(this.summary, other.summary) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.default_, other.default_) && + Objects.deepEquals(this.value, other.value) && + Objects.deepEquals(this.hidden, other.hidden) && + Objects.deepEquals(this.advanced, other.advanced) && + Objects.deepEquals(this.group, other.group) && + Objects.deepEquals(this.enumValues, other.enumValues); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, label, summary, @@ -336,25 +326,25 @@ public class Setting { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional label = Optional.empty(); + private Optional label = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional default_ = Optional.empty(); + private Optional default_ = Optional.empty(); - private Optional value = Optional.empty(); + private Optional value = Optional.empty(); - private Optional hidden = Optional.empty(); + private Optional hidden = Optional.empty(); - private Optional advanced = Optional.empty(); + private Optional advanced = Optional.empty(); - private Optional group = Optional.empty(); + private Optional group = Optional.empty(); - private Optional enumValues = Optional.empty(); + private Optional enumValues = Optional.empty(); private Builder() { // force use of static builder() method @@ -366,7 +356,7 @@ public class Setting { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -378,7 +368,7 @@ public class Setting { return this; } - public Builder label(Optional label) { + public Builder label(Optional label) { Utils.checkNotNull(label, "label"); this.label = label; return this; @@ -390,7 +380,7 @@ public class Setting { return this; } - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -402,7 +392,7 @@ public class Setting { return this; } - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -414,7 +404,7 @@ public class Setting { return this; } - public Builder default_(Optional default_) { + public Builder default_(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -426,7 +416,7 @@ public class Setting { return this; } - public Builder value(Optional value) { + public Builder value(Optional value) { Utils.checkNotNull(value, "value"); this.value = value; return this; @@ -438,7 +428,7 @@ public class Setting { return this; } - public Builder hidden(Optional hidden) { + public Builder hidden(Optional hidden) { Utils.checkNotNull(hidden, "hidden"); this.hidden = hidden; return this; @@ -450,7 +440,7 @@ public class Setting { return this; } - public Builder advanced(Optional advanced) { + public Builder advanced(Optional advanced) { Utils.checkNotNull(advanced, "advanced"); this.advanced = advanced; return this; @@ -462,7 +452,7 @@ public class Setting { return this; } - public Builder group(Optional group) { + public Builder group(Optional group) { Utils.checkNotNull(group, "group"); this.group = group; return this; @@ -474,7 +464,7 @@ public class Setting { return this; } - public Builder enumValues(Optional enumValues) { + public Builder enumValues(Optional enumValues) { Utils.checkNotNull(enumValues, "enumValues"); this.enumValues = enumValues; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java b/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java new file mode 100644 index 00000000..a51a3c9b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class SharedServers { + + @JsonCreator + public SharedServers() { + + + } + + 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 Objects.hash( + ); + } + + @Override + public String toString() { + return Utils.toString(SharedServers.class); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SharedServers build() { + return new SharedServers( + ); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java b/src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java new file mode 100644 index 00000000..f277f1fa --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class SharedSources { + + @JsonCreator + public SharedSources() { + + + } + + 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 Objects.hash( + ); + } + + @Override + public String toString() { + return Utils.toString(SharedSources.class); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SharedSources build() { + return new SharedSources( + ); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Skip.java b/src/main/java/dev/plexapi/sdk/models/operations/Skip.java new file mode 100644 index 00000000..6095437a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Skip.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/Smart.java b/src/main/java/dev/plexapi/sdk/models/operations/Smart.java new file mode 100644 index 00000000..de8b34c1 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Smart.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/Sort.java similarity index 67% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java rename to src/main/java/dev/plexapi/sdk/models/operations/Sort.java index c157fc15..75e3da94 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Sort.java @@ -1,57 +1,56 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Sort { @JsonInclude(Include.NON_ABSENT) @JsonProperty("default") - private Optional default_; + private Optional default_; @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") - private Optional defaultDirection; + private Optional defaultDirection; @JsonInclude(Include.NON_ABSENT) @JsonProperty("descKey") - private Optional descKey; + private Optional descKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("firstCharacterKey") - private Optional firstCharacterKey; + private Optional firstCharacterKey; @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") - private Optional 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) { + @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"); @@ -70,40 +69,34 @@ public class Sort { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional default_() { - return (Optional) default_; + return default_; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional defaultDirection() { - return (Optional) defaultDirection; + return defaultDirection; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional descKey() { - return (Optional) descKey; + return descKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional firstCharacterKey() { - return (Optional) firstCharacterKey; + return firstCharacterKey; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional key() { - return (Optional) key; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } public final static Builder builder() { @@ -116,7 +109,7 @@ public class Sort { return this; } - public Sort withDefault(Optional default_) { + public Sort withDefault(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -128,7 +121,7 @@ public class Sort { return this; } - public Sort withDefaultDirection(Optional defaultDirection) { + public Sort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); this.defaultDirection = defaultDirection; return this; @@ -140,7 +133,7 @@ public class Sort { return this; } - public Sort withDescKey(Optional descKey) { + public Sort withDescKey(Optional descKey) { Utils.checkNotNull(descKey, "descKey"); this.descKey = descKey; return this; @@ -152,7 +145,7 @@ public class Sort { return this; } - public Sort withFirstCharacterKey(Optional firstCharacterKey) { + public Sort withFirstCharacterKey(Optional firstCharacterKey) { Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); this.firstCharacterKey = firstCharacterKey; return this; @@ -164,7 +157,7 @@ public class Sort { return this; } - public Sort withKey(Optional key) { + public Sort withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -176,7 +169,7 @@ public class Sort { return this; } - public Sort withTitle(Optional title) { + public Sort withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -192,17 +185,17 @@ public class Sort { } 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); + Objects.deepEquals(this.default_, other.default_) && + Objects.deepEquals(this.defaultDirection, other.defaultDirection) && + Objects.deepEquals(this.descKey, other.descKey) && + Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) && + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.title, other.title); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( default_, defaultDirection, descKey, @@ -224,17 +217,17 @@ public class Sort { public final static class Builder { - private Optional default_ = Optional.empty(); + private Optional default_ = Optional.empty(); - private Optional defaultDirection = Optional.empty(); + private Optional defaultDirection = Optional.empty(); - private Optional descKey = Optional.empty(); + private Optional descKey = Optional.empty(); - private Optional firstCharacterKey = Optional.empty(); + private Optional firstCharacterKey = Optional.empty(); - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +239,7 @@ public class Sort { return this; } - public Builder default_(Optional default_) { + public Builder default_(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -258,7 +251,7 @@ public class Sort { return this; } - public Builder defaultDirection(Optional defaultDirection) { + public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); this.defaultDirection = defaultDirection; return this; @@ -270,7 +263,7 @@ public class Sort { return this; } - public Builder descKey(Optional descKey) { + public Builder descKey(Optional descKey) { Utils.checkNotNull(descKey, "descKey"); this.descKey = descKey; return this; @@ -282,7 +275,7 @@ public class Sort { return this; } - public Builder firstCharacterKey(Optional firstCharacterKey) { + public Builder firstCharacterKey(Optional firstCharacterKey) { Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); this.firstCharacterKey = firstCharacterKey; return this; @@ -294,7 +287,7 @@ public class Sort { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -306,7 +299,7 @@ public class Sort { return this; } - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java new file mode 100644 index 00000000..966a0423 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java index 60af603d..c1054bc5 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StartAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StartAllTasksResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StartAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Re } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java index 0e43e7f6..76c69d68 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class StartTaskRequest { @@ -61,12 +60,12 @@ public class StartTaskRequest { } StartTaskRequest other = (StartTaskRequest) o; return - java.util.Objects.deepEquals(this.taskName, other.taskName); + Objects.deepEquals(this.taskName, other.taskName); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( taskName); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java new file mode 100644 index 00000000..03cbf215 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class StartTaskRequestBuilder { + + private TaskName taskName; + private final SDKMethodInterfaces.MethodCallStartTask sdk; + + public StartTaskRequestBuilder(SDKMethodInterfaces.MethodCallStartTask sdk) { + this.sdk = sdk; + } + + public StartTaskRequestBuilder taskName(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/StartTaskResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java index deaaefea..b36841ce 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StartTaskResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StartTaskResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StartTaskResponse implements lukehagar.plexapi.plexapi.utils.Respon } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java index 5eaa0060..e73da19d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StartUniversalTranscodeRequest { @@ -52,67 +52,67 @@ public class StartUniversalTranscodeRequest { * Whether to use fast seek or not */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fastSeek") - private Optional fastSeek; + private Optional fastSeek; /** * Whether to use direct play or not */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directPlay") - private Optional directPlay; + private Optional directPlay; /** * Whether to use direct stream or not */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directStream") - private Optional directStream; + private Optional directStream; /** * The size of the subtitles */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtitleSize") - private Optional subtitleSize; + private Optional subtitleSize; /** * The subtitles */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtites") - private Optional subtites; + private Optional subtites; /** * The audio boost */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=audioBoost") - private Optional audioBoost; + private Optional audioBoost; /** * The location of the transcode session */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=location") - private Optional location; + private Optional location; /** * The size of the media buffer */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=mediaBufferSize") - private Optional mediaBufferSize; + private Optional mediaBufferSize; /** * The session ID */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=session") - private Optional session; + private Optional session; /** * Whether to add a debug overlay or not */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=addDebugOverlay") - private Optional addDebugOverlay; + private Optional addDebugOverlay; /** * Whether to auto adjust quality or not */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=autoAdjustQuality") - private Optional autoAdjustQuality; + private Optional autoAdjustQuality; @JsonCreator public StartUniversalTranscodeRequest( @@ -121,17 +121,17 @@ public class StartUniversalTranscodeRequest { 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) { + 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"); @@ -218,100 +218,89 @@ public class StartUniversalTranscodeRequest { /** * Whether to use fast seek or not */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional fastSeek() { - return (Optional) fastSeek; + return fastSeek; } /** * Whether to use direct play or not */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional directPlay() { - return (Optional) directPlay; + return directPlay; } /** * Whether to use direct stream or not */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional directStream() { - return (Optional) directStream; + return directStream; } /** * The size of the subtitles */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtitleSize() { - return (Optional) subtitleSize; + return subtitleSize; } /** * The subtitles */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtites() { - return (Optional) subtites; + return subtites; } /** * The audio boost */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioBoost() { - return (Optional) audioBoost; + return audioBoost; } /** * The location of the transcode session */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional location() { - return (Optional) location; + return location; } /** * The size of the media buffer */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional mediaBufferSize() { - return (Optional) mediaBufferSize; + return mediaBufferSize; } /** * The session ID */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional session() { - return (Optional) session; + return session; } /** * Whether to add a debug overlay or not */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional addDebugOverlay() { - return (Optional) addDebugOverlay; + return addDebugOverlay; } /** * Whether to auto adjust quality or not */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional autoAdjustQuality() { - return (Optional) autoAdjustQuality; + return autoAdjustQuality; } public final static Builder builder() { @@ -375,7 +364,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use fast seek or not */ - public StartUniversalTranscodeRequest withFastSeek(Optional fastSeek) { + public StartUniversalTranscodeRequest withFastSeek(Optional fastSeek) { Utils.checkNotNull(fastSeek, "fastSeek"); this.fastSeek = fastSeek; return this; @@ -393,7 +382,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use direct play or not */ - public StartUniversalTranscodeRequest withDirectPlay(Optional directPlay) { + public StartUniversalTranscodeRequest withDirectPlay(Optional directPlay) { Utils.checkNotNull(directPlay, "directPlay"); this.directPlay = directPlay; return this; @@ -411,7 +400,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use direct stream or not */ - public StartUniversalTranscodeRequest withDirectStream(Optional directStream) { + public StartUniversalTranscodeRequest withDirectStream(Optional directStream) { Utils.checkNotNull(directStream, "directStream"); this.directStream = directStream; return this; @@ -429,7 +418,7 @@ public class StartUniversalTranscodeRequest { /** * The size of the subtitles */ - public StartUniversalTranscodeRequest withSubtitleSize(Optional subtitleSize) { + public StartUniversalTranscodeRequest withSubtitleSize(Optional subtitleSize) { Utils.checkNotNull(subtitleSize, "subtitleSize"); this.subtitleSize = subtitleSize; return this; @@ -447,7 +436,7 @@ public class StartUniversalTranscodeRequest { /** * The subtitles */ - public StartUniversalTranscodeRequest withSubtites(Optional subtites) { + public StartUniversalTranscodeRequest withSubtites(Optional subtites) { Utils.checkNotNull(subtites, "subtites"); this.subtites = subtites; return this; @@ -465,7 +454,7 @@ public class StartUniversalTranscodeRequest { /** * The audio boost */ - public StartUniversalTranscodeRequest withAudioBoost(Optional audioBoost) { + public StartUniversalTranscodeRequest withAudioBoost(Optional audioBoost) { Utils.checkNotNull(audioBoost, "audioBoost"); this.audioBoost = audioBoost; return this; @@ -483,7 +472,7 @@ public class StartUniversalTranscodeRequest { /** * The location of the transcode session */ - public StartUniversalTranscodeRequest withLocation(Optional location) { + public StartUniversalTranscodeRequest withLocation(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; @@ -501,7 +490,7 @@ public class StartUniversalTranscodeRequest { /** * The size of the media buffer */ - public StartUniversalTranscodeRequest withMediaBufferSize(Optional mediaBufferSize) { + public StartUniversalTranscodeRequest withMediaBufferSize(Optional mediaBufferSize) { Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); this.mediaBufferSize = mediaBufferSize; return this; @@ -519,7 +508,7 @@ public class StartUniversalTranscodeRequest { /** * The session ID */ - public StartUniversalTranscodeRequest withSession(Optional session) { + public StartUniversalTranscodeRequest withSession(Optional session) { Utils.checkNotNull(session, "session"); this.session = session; return this; @@ -537,7 +526,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to add a debug overlay or not */ - public StartUniversalTranscodeRequest withAddDebugOverlay(Optional addDebugOverlay) { + public StartUniversalTranscodeRequest withAddDebugOverlay(Optional addDebugOverlay) { Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); this.addDebugOverlay = addDebugOverlay; return this; @@ -555,7 +544,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to auto adjust quality or not */ - public StartUniversalTranscodeRequest withAutoAdjustQuality(Optional autoAdjustQuality) { + public StartUniversalTranscodeRequest withAutoAdjustQuality(Optional autoAdjustQuality) { Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); this.autoAdjustQuality = autoAdjustQuality; return this; @@ -571,27 +560,27 @@ public class StartUniversalTranscodeRequest { } 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); + Objects.deepEquals(this.hasMDE, other.hasMDE) && + Objects.deepEquals(this.path, other.path) && + Objects.deepEquals(this.mediaIndex, other.mediaIndex) && + Objects.deepEquals(this.partIndex, other.partIndex) && + Objects.deepEquals(this.protocol, other.protocol) && + Objects.deepEquals(this.fastSeek, other.fastSeek) && + Objects.deepEquals(this.directPlay, other.directPlay) && + Objects.deepEquals(this.directStream, other.directStream) && + Objects.deepEquals(this.subtitleSize, other.subtitleSize) && + Objects.deepEquals(this.subtites, other.subtites) && + Objects.deepEquals(this.audioBoost, other.audioBoost) && + Objects.deepEquals(this.location, other.location) && + Objects.deepEquals(this.mediaBufferSize, other.mediaBufferSize) && + Objects.deepEquals(this.session, other.session) && + Objects.deepEquals(this.addDebugOverlay, other.addDebugOverlay) && + Objects.deepEquals(this.autoAdjustQuality, other.autoAdjustQuality); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hasMDE, path, mediaIndex, @@ -643,27 +632,27 @@ public class StartUniversalTranscodeRequest { private String protocol; - private Optional fastSeek = Optional.empty(); + private Optional fastSeek = Optional.empty(); - private Optional directPlay = Optional.empty(); + private Optional directPlay = Optional.empty(); - private Optional directStream = Optional.empty(); + private Optional directStream = Optional.empty(); - private Optional subtitleSize = Optional.empty(); + private Optional subtitleSize = Optional.empty(); - private Optional subtites = Optional.empty(); + private Optional subtites = Optional.empty(); - private Optional audioBoost = Optional.empty(); + private Optional audioBoost = Optional.empty(); - private Optional location = Optional.empty(); + private Optional location = Optional.empty(); - private Optional mediaBufferSize = Optional.empty(); + private Optional mediaBufferSize = Optional.empty(); - private Optional session = Optional.empty(); + private Optional session = Optional.empty(); - private Optional addDebugOverlay = Optional.empty(); + private Optional addDebugOverlay = Optional.empty(); - private Optional autoAdjustQuality = Optional.empty(); + private Optional autoAdjustQuality = Optional.empty(); private Builder() { // force use of static builder() method @@ -726,7 +715,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use fast seek or not */ - public Builder fastSeek(Optional fastSeek) { + public Builder fastSeek(Optional fastSeek) { Utils.checkNotNull(fastSeek, "fastSeek"); this.fastSeek = fastSeek; return this; @@ -744,7 +733,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use direct play or not */ - public Builder directPlay(Optional directPlay) { + public Builder directPlay(Optional directPlay) { Utils.checkNotNull(directPlay, "directPlay"); this.directPlay = directPlay; return this; @@ -762,7 +751,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to use direct stream or not */ - public Builder directStream(Optional directStream) { + public Builder directStream(Optional directStream) { Utils.checkNotNull(directStream, "directStream"); this.directStream = directStream; return this; @@ -780,7 +769,7 @@ public class StartUniversalTranscodeRequest { /** * The size of the subtitles */ - public Builder subtitleSize(Optional subtitleSize) { + public Builder subtitleSize(Optional subtitleSize) { Utils.checkNotNull(subtitleSize, "subtitleSize"); this.subtitleSize = subtitleSize; return this; @@ -798,7 +787,7 @@ public class StartUniversalTranscodeRequest { /** * The subtitles */ - public Builder subtites(Optional subtites) { + public Builder subtites(Optional subtites) { Utils.checkNotNull(subtites, "subtites"); this.subtites = subtites; return this; @@ -816,7 +805,7 @@ public class StartUniversalTranscodeRequest { /** * The audio boost */ - public Builder audioBoost(Optional audioBoost) { + public Builder audioBoost(Optional audioBoost) { Utils.checkNotNull(audioBoost, "audioBoost"); this.audioBoost = audioBoost; return this; @@ -834,7 +823,7 @@ public class StartUniversalTranscodeRequest { /** * The location of the transcode session */ - public Builder location(Optional location) { + public Builder location(Optional location) { Utils.checkNotNull(location, "location"); this.location = location; return this; @@ -852,7 +841,7 @@ public class StartUniversalTranscodeRequest { /** * The size of the media buffer */ - public Builder mediaBufferSize(Optional mediaBufferSize) { + public Builder mediaBufferSize(Optional mediaBufferSize) { Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); this.mediaBufferSize = mediaBufferSize; return this; @@ -870,7 +859,7 @@ public class StartUniversalTranscodeRequest { /** * The session ID */ - public Builder session(Optional session) { + public Builder session(Optional session) { Utils.checkNotNull(session, "session"); this.session = session; return this; @@ -888,7 +877,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to add a debug overlay or not */ - public Builder addDebugOverlay(Optional addDebugOverlay) { + public Builder addDebugOverlay(Optional addDebugOverlay) { Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); this.addDebugOverlay = addDebugOverlay; return this; @@ -906,7 +895,7 @@ public class StartUniversalTranscodeRequest { /** * Whether to auto adjust quality or not */ - public Builder autoAdjustQuality(Optional autoAdjustQuality) { + public Builder autoAdjustQuality(Optional autoAdjustQuality) { Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); this.autoAdjustQuality = autoAdjustQuality; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java new file mode 100644 index 00000000..feef219b --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class StartUniversalTranscodeRequestBuilder { + + private StartUniversalTranscodeRequest request; + private final SDKMethodInterfaces.MethodCallStartUniversalTranscode sdk; + + public StartUniversalTranscodeRequestBuilder(SDKMethodInterfaces.MethodCallStartUniversalTranscode sdk) { + this.sdk = sdk; + } + + public StartUniversalTranscodeRequestBuilder request(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java index e75bf7c5..fed7721c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StartUniversalTranscodeResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StartUniversalTranscodeResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StartUniversalTranscodeResponse implements lukehagar.plexapi.plexap } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/State.java b/src/main/java/dev/plexapi/sdk/models/operations/State.java new file mode 100644 index 00000000..e988f103 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/State.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * 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/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java rename to src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java index 00c6a969..e45026fe 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java @@ -1,57 +1,59 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StatisticsBandwidth { @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountID") - private Optional accountID; + private Optional accountID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("deviceID") - private Optional deviceID; + private Optional deviceID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("timespan") - private Optional timespan; + private Optional timespan; @JsonInclude(Include.NON_ABSENT) @JsonProperty("at") - private Optional at; + private Optional at; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lan") - private Optional lan; + private Optional lan; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bytes") - private Optional 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) { + @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"); @@ -70,40 +72,34 @@ public class StatisticsBandwidth { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional accountID() { - return (Optional) accountID; + return accountID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional deviceID() { - return (Optional) deviceID; + return deviceID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional at() { - return (Optional) at; + return at; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lan() { - return (Optional) lan; + return lan; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bytes() { - return (Optional) bytes; + return bytes; } public final static Builder builder() { @@ -116,7 +112,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withAccountID(Optional accountID) { + public StatisticsBandwidth withAccountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -128,7 +124,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withDeviceID(Optional deviceID) { + public StatisticsBandwidth withDeviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; @@ -140,7 +136,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withTimespan(Optional timespan) { + public StatisticsBandwidth withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -152,7 +148,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withAt(Optional at) { + public StatisticsBandwidth withAt(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -164,7 +160,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withLan(Optional lan) { + public StatisticsBandwidth withLan(Optional lan) { Utils.checkNotNull(lan, "lan"); this.lan = lan; return this; @@ -176,7 +172,7 @@ public class StatisticsBandwidth { return this; } - public StatisticsBandwidth withBytes(Optional bytes) { + public StatisticsBandwidth withBytes(Optional bytes) { Utils.checkNotNull(bytes, "bytes"); this.bytes = bytes; return this; @@ -192,17 +188,17 @@ public class StatisticsBandwidth { } 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); + Objects.deepEquals(this.accountID, other.accountID) && + Objects.deepEquals(this.deviceID, other.deviceID) && + Objects.deepEquals(this.timespan, other.timespan) && + Objects.deepEquals(this.at, other.at) && + Objects.deepEquals(this.lan, other.lan) && + Objects.deepEquals(this.bytes, other.bytes); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( accountID, deviceID, timespan, @@ -224,17 +220,17 @@ public class StatisticsBandwidth { public final static class Builder { - private Optional accountID = Optional.empty(); + private Optional accountID = Optional.empty(); - private Optional deviceID = Optional.empty(); + private Optional deviceID = Optional.empty(); - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); - private Optional at = Optional.empty(); + private Optional at = Optional.empty(); - private Optional lan = Optional.empty(); + private Optional lan = Optional.empty(); - private Optional bytes = Optional.empty(); + private Optional bytes = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +242,7 @@ public class StatisticsBandwidth { return this; } - public Builder accountID(Optional accountID) { + public Builder accountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -258,7 +254,7 @@ public class StatisticsBandwidth { return this; } - public Builder deviceID(Optional deviceID) { + public Builder deviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; @@ -270,7 +266,7 @@ public class StatisticsBandwidth { return this; } - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -282,7 +278,7 @@ public class StatisticsBandwidth { return this; } - public Builder at(Optional at) { + public Builder at(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -294,7 +290,7 @@ public class StatisticsBandwidth { return this; } - public Builder lan(Optional lan) { + public Builder lan(Optional lan) { Utils.checkNotNull(lan, "lan"); this.lan = lan; return this; @@ -306,7 +302,7 @@ public class StatisticsBandwidth { return this; } - public Builder bytes(Optional bytes) { + public Builder bytes(Optional bytes) { Utils.checkNotNull(bytes, "bytes"); this.bytes = bytes; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java rename to src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java index 46961bd7..93c5a083 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java @@ -1,62 +1,62 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StatisticsMedia { @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountID") - private Optional accountID; + private Optional accountID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("deviceID") - private Optional deviceID; + private Optional deviceID; @JsonInclude(Include.NON_ABSENT) @JsonProperty("timespan") - private Optional timespan; + private Optional timespan; @JsonInclude(Include.NON_ABSENT) @JsonProperty("at") - private Optional at; + private Optional at; @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadataType") - private Optional metadataType; + private Optional metadataType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("count") - private Optional count; + private Optional count; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional 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) { + @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"); @@ -77,46 +77,39 @@ public class 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; + return accountID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional deviceID() { - return (Optional) deviceID; + return deviceID; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional at() { - return (Optional) at; + return at; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional metadataType() { - return (Optional) metadataType; + return metadataType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional count() { - return (Optional) count; + return count; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } public final static Builder builder() { @@ -129,7 +122,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withAccountID(Optional accountID) { + public StatisticsMedia withAccountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -141,7 +134,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withDeviceID(Optional deviceID) { + public StatisticsMedia withDeviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; @@ -153,7 +146,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withTimespan(Optional timespan) { + public StatisticsMedia withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -165,7 +158,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withAt(Optional at) { + public StatisticsMedia withAt(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -177,7 +170,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withMetadataType(Optional metadataType) { + public StatisticsMedia withMetadataType(Optional metadataType) { Utils.checkNotNull(metadataType, "metadataType"); this.metadataType = metadataType; return this; @@ -189,7 +182,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withCount(Optional count) { + public StatisticsMedia withCount(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -201,7 +194,7 @@ public class StatisticsMedia { return this; } - public StatisticsMedia withDuration(Optional duration) { + public StatisticsMedia withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -217,18 +210,18 @@ public class StatisticsMedia { } 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); + Objects.deepEquals(this.accountID, other.accountID) && + Objects.deepEquals(this.deviceID, other.deviceID) && + Objects.deepEquals(this.timespan, other.timespan) && + Objects.deepEquals(this.at, other.at) && + Objects.deepEquals(this.metadataType, other.metadataType) && + Objects.deepEquals(this.count, other.count) && + Objects.deepEquals(this.duration, other.duration); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( accountID, deviceID, timespan, @@ -252,19 +245,19 @@ public class StatisticsMedia { public final static class Builder { - private Optional accountID = Optional.empty(); + private Optional accountID = Optional.empty(); - private Optional deviceID = Optional.empty(); + private Optional deviceID = Optional.empty(); - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); - private Optional at = Optional.empty(); + private Optional at = Optional.empty(); - private Optional metadataType = Optional.empty(); + private Optional metadataType = Optional.empty(); - private Optional count = Optional.empty(); + private Optional count = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); private Builder() { // force use of static builder() method @@ -276,7 +269,7 @@ public class StatisticsMedia { return this; } - public Builder accountID(Optional accountID) { + public Builder accountID(Optional accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = accountID; return this; @@ -288,7 +281,7 @@ public class StatisticsMedia { return this; } - public Builder deviceID(Optional deviceID) { + public Builder deviceID(Optional deviceID) { Utils.checkNotNull(deviceID, "deviceID"); this.deviceID = deviceID; return this; @@ -300,7 +293,7 @@ public class StatisticsMedia { return this; } - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -312,7 +305,7 @@ public class StatisticsMedia { return this; } - public Builder at(Optional at) { + public Builder at(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -324,7 +317,7 @@ public class StatisticsMedia { return this; } - public Builder metadataType(Optional metadataType) { + public Builder metadataType(Optional metadataType) { Utils.checkNotNull(metadataType, "metadataType"); this.metadataType = metadataType; return this; @@ -336,7 +329,7 @@ public class StatisticsMedia { return this; } - public Builder count(Optional count) { + public Builder count(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -348,7 +341,7 @@ public class StatisticsMedia { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java rename to src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java index 9c0a015f..7e2dac7d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java @@ -1,57 +1,58 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Float; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class StatisticsResources { @JsonInclude(Include.NON_ABSENT) @JsonProperty("timespan") - private Optional timespan; + private Optional timespan; @JsonInclude(Include.NON_ABSENT) @JsonProperty("at") - private Optional at; + private Optional at; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostCpuUtilization") - private Optional hostCpuUtilization; + private Optional hostCpuUtilization; @JsonInclude(Include.NON_ABSENT) @JsonProperty("processCpuUtilization") - private Optional processCpuUtilization; + private Optional processCpuUtilization; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostMemoryUtilization") - private Optional hostMemoryUtilization; + private Optional hostMemoryUtilization; @JsonInclude(Include.NON_ABSENT) @JsonProperty("processMemoryUtilization") - private Optional 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) { + @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"); @@ -70,40 +71,34 @@ public class StatisticsResources { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional timespan() { - return (Optional) timespan; + return timespan; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional at() { - return (Optional) at; + return at; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hostCpuUtilization() { - return (Optional) hostCpuUtilization; + return hostCpuUtilization; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional processCpuUtilization() { - return (Optional) processCpuUtilization; + return processCpuUtilization; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hostMemoryUtilization() { - return (Optional) hostMemoryUtilization; + return hostMemoryUtilization; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional processMemoryUtilization() { - return (Optional) processMemoryUtilization; + return processMemoryUtilization; } public final static Builder builder() { @@ -116,7 +111,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withTimespan(Optional timespan) { + public StatisticsResources withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -128,7 +123,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withAt(Optional at) { + public StatisticsResources withAt(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -140,7 +135,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withHostCpuUtilization(Optional hostCpuUtilization) { + public StatisticsResources withHostCpuUtilization(Optional hostCpuUtilization) { Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); this.hostCpuUtilization = hostCpuUtilization; return this; @@ -152,7 +147,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withProcessCpuUtilization(Optional processCpuUtilization) { + public StatisticsResources withProcessCpuUtilization(Optional processCpuUtilization) { Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); this.processCpuUtilization = processCpuUtilization; return this; @@ -164,7 +159,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withHostMemoryUtilization(Optional hostMemoryUtilization) { + public StatisticsResources withHostMemoryUtilization(Optional hostMemoryUtilization) { Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); this.hostMemoryUtilization = hostMemoryUtilization; return this; @@ -176,7 +171,7 @@ public class StatisticsResources { return this; } - public StatisticsResources withProcessMemoryUtilization(Optional processMemoryUtilization) { + public StatisticsResources withProcessMemoryUtilization(Optional processMemoryUtilization) { Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); this.processMemoryUtilization = processMemoryUtilization; return this; @@ -192,17 +187,17 @@ public class StatisticsResources { } 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); + Objects.deepEquals(this.timespan, other.timespan) && + Objects.deepEquals(this.at, other.at) && + Objects.deepEquals(this.hostCpuUtilization, other.hostCpuUtilization) && + Objects.deepEquals(this.processCpuUtilization, other.processCpuUtilization) && + Objects.deepEquals(this.hostMemoryUtilization, other.hostMemoryUtilization) && + Objects.deepEquals(this.processMemoryUtilization, other.processMemoryUtilization); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( timespan, at, hostCpuUtilization, @@ -224,17 +219,17 @@ public class StatisticsResources { public final static class Builder { - private Optional timespan = Optional.empty(); + private Optional timespan = Optional.empty(); - private Optional at = Optional.empty(); + private Optional at = Optional.empty(); - private Optional hostCpuUtilization = Optional.empty(); + private Optional hostCpuUtilization = Optional.empty(); - private Optional processCpuUtilization = Optional.empty(); + private Optional processCpuUtilization = Optional.empty(); - private Optional hostMemoryUtilization = Optional.empty(); + private Optional hostMemoryUtilization = Optional.empty(); - private Optional processMemoryUtilization = Optional.empty(); + private Optional processMemoryUtilization = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,7 +241,7 @@ public class StatisticsResources { return this; } - public Builder timespan(Optional timespan) { + public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; @@ -258,7 +253,7 @@ public class StatisticsResources { return this; } - public Builder at(Optional at) { + public Builder at(Optional at) { Utils.checkNotNull(at, "at"); this.at = at; return this; @@ -270,7 +265,7 @@ public class StatisticsResources { return this; } - public Builder hostCpuUtilization(Optional hostCpuUtilization) { + public Builder hostCpuUtilization(Optional hostCpuUtilization) { Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); this.hostCpuUtilization = hostCpuUtilization; return this; @@ -282,7 +277,7 @@ public class StatisticsResources { return this; } - public Builder processCpuUtilization(Optional processCpuUtilization) { + public Builder processCpuUtilization(Optional processCpuUtilization) { Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); this.processCpuUtilization = processCpuUtilization; return this; @@ -294,7 +289,7 @@ public class StatisticsResources { return this; } - public Builder hostMemoryUtilization(Optional hostMemoryUtilization) { + public Builder hostMemoryUtilization(Optional hostMemoryUtilization) { Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); this.hostMemoryUtilization = hostMemoryUtilization; return this; @@ -306,7 +301,7 @@ public class StatisticsResources { return this; } - public Builder processMemoryUtilization(Optional processMemoryUtilization) { + public Builder processMemoryUtilization(Optional processMemoryUtilization) { Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); this.processMemoryUtilization = processMemoryUtilization; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Status.java b/src/main/java/dev/plexapi/sdk/models/operations/Status.java new file mode 100644 index 00000000..1fbc64b1 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Status.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +/** + * Status - Current friend request status + */ +public enum Status { + ACCEPTED("accepted"); + + @JsonValue + private final String value; + + private Status(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java new file mode 100644 index 00000000..f31e3f2d --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +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/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java index d0c0a32c..f77bf45d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StopAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StopAllTasksResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StopAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Res } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java index db0e9b44..1a7793bc 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class StopTaskRequest { @@ -61,12 +60,12 @@ public class StopTaskRequest { } StopTaskRequest other = (StopTaskRequest) o; return - java.util.Objects.deepEquals(this.taskName, other.taskName); + Objects.deepEquals(this.taskName, other.taskName); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( taskName); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java new file mode 100644 index 00000000..216bf8c5 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java @@ -0,0 +1,29 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; + +public class StopTaskRequestBuilder { + + private PathParamTaskName taskName; + private final SDKMethodInterfaces.MethodCallStopTask sdk; + + public StopTaskRequestBuilder(SDKMethodInterfaces.MethodCallStopTask sdk) { + this.sdk = sdk; + } + + public StopTaskRequestBuilder taskName(dev.plexapi.sdk.models.operations.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/dev/plexapi/sdk/models/operations/StopTaskResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java index 67727705..5f9d4908 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StopTaskResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StopTaskResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StopTaskResponse implements lukehagar.plexapi.plexapi.utils.Respons } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java index 91c111ad..47c3676c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class StopTranscodeSessionRequest { @@ -61,12 +60,12 @@ public class StopTranscodeSessionRequest { } StopTranscodeSessionRequest other = (StopTranscodeSessionRequest) o; return - java.util.Objects.deepEquals(this.sessionKey, other.sessionKey); + Objects.deepEquals(this.sessionKey, other.sessionKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( sessionKey); } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java new file mode 100644 index 00000000..cda1199e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class StopTranscodeSessionRequestBuilder { + + private String sessionKey; + private final SDKMethodInterfaces.MethodCallStopTranscodeSession sdk; + + public StopTranscodeSessionRequestBuilder(SDKMethodInterfaces.MethodCallStopTranscodeSession sdk) { + this.sdk = sdk; + } + + public StopTranscodeSessionRequestBuilder sessionKey(java.lang.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/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java index fe8bf984..b5015ab6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class StopTranscodeSessionResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class StopTranscodeSessionResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class StopTranscodeSessionResponse implements lukehagar.plexapi.plexapi.u } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java b/src/main/java/dev/plexapi/sdk/models/operations/Stream.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java rename to src/main/java/dev/plexapi/sdk/models/operations/Stream.java index 6b470728..cd67b62c 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Stream.java @@ -1,187 +1,188 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Stream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamType") - private Optional streamType; + private Optional streamType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("default") - private Optional default_; + private Optional default_; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") - private Optional codec; + private Optional codec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("index") - private Optional index; + private Optional index; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitDepth") - private Optional bitDepth; + private Optional bitDepth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaLocation") - private Optional chromaLocation; + private Optional chromaLocation; @JsonInclude(Include.NON_ABSENT) @JsonProperty("chromaSubsampling") - private Optional chromaSubsampling; + private Optional chromaSubsampling; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedHeight") - private Optional codedHeight; + private Optional codedHeight; @JsonInclude(Include.NON_ABSENT) @JsonProperty("codedWidth") - private Optional codedWidth; + private Optional codedWidth; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorPrimaries") - private Optional colorPrimaries; + private Optional colorPrimaries; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorRange") - private Optional colorRange; + private Optional colorRange; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorSpace") - private Optional colorSpace; + private Optional colorSpace; @JsonInclude(Include.NON_ABSENT) @JsonProperty("colorTrc") - private Optional colorTrc; + private Optional colorTrc; @JsonInclude(Include.NON_ABSENT) @JsonProperty("frameRate") - private Optional frameRate; + private Optional frameRate; @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasScalingMatrix") - private Optional hasScalingMatrix; + private Optional hasScalingMatrix; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("level") - private Optional level; + private Optional level; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") - private Optional profile; + private Optional profile; @JsonInclude(Include.NON_ABSENT) @JsonProperty("refFrames") - private Optional refFrames; + private Optional refFrames; @JsonInclude(Include.NON_ABSENT) @JsonProperty("scanType") - private Optional scanType; + private Optional scanType; @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamIdentifier") - private Optional streamIdentifier; + private Optional streamIdentifier; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("displayTitle") - private Optional displayTitle; + private Optional displayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("extendedDisplayTitle") - private Optional extendedDisplayTitle; + private Optional extendedDisplayTitle; @JsonInclude(Include.NON_ABSENT) @JsonProperty("selected") - private Optional selected; + private Optional selected; @JsonInclude(Include.NON_ABSENT) @JsonProperty("channels") - private Optional channels; + private Optional channels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("language") - private Optional language; + private Optional language; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageTag") - private Optional languageTag; + private Optional languageTag; @JsonInclude(Include.NON_ABSENT) @JsonProperty("languageCode") - private Optional languageCode; + private Optional languageCode; @JsonInclude(Include.NON_ABSENT) @JsonProperty("samplingRate") - private Optional 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) { + @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_"); @@ -252,196 +253,164 @@ public class 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; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamType() { - return (Optional) streamType; + return streamType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional default_() { - return (Optional) default_; + return default_; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codec() { - return (Optional) codec; + return codec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional index() { - return (Optional) index; + return index; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitDepth() { - return (Optional) bitDepth; + return bitDepth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chromaLocation() { - return (Optional) chromaLocation; + return chromaLocation; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional chromaSubsampling() { - return (Optional) chromaSubsampling; + return chromaSubsampling; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codedHeight() { - return (Optional) codedHeight; + return codedHeight; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional codedWidth() { - return (Optional) codedWidth; + return codedWidth; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional colorPrimaries() { - return (Optional) colorPrimaries; + return colorPrimaries; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional colorRange() { - return (Optional) colorRange; + return colorRange; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional colorSpace() { - return (Optional) colorSpace; + return colorSpace; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional colorTrc() { - return (Optional) colorTrc; + return colorTrc; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional frameRate() { - return (Optional) frameRate; + return frameRate; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional hasScalingMatrix() { - return (Optional) hasScalingMatrix; + return hasScalingMatrix; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional level() { - return (Optional) level; + return level; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional profile() { - return (Optional) profile; + return profile; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional refFrames() { - return (Optional) refFrames; + return refFrames; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional scanType() { - return (Optional) scanType; + return scanType; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamIdentifier() { - return (Optional) streamIdentifier; + return streamIdentifier; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional displayTitle() { - return (Optional) displayTitle; + return displayTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; + return extendedDisplayTitle; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional selected() { - return (Optional) selected; + return selected; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional channels() { - return (Optional) channels; + return channels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional language() { - return (Optional) language; + return language; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional languageTag() { - return (Optional) languageTag; + return languageTag; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional languageCode() { - return (Optional) languageCode; + return languageCode; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional samplingRate() { - return (Optional) samplingRate; + return samplingRate; } public final static Builder builder() { @@ -454,7 +423,7 @@ public class Stream { return this; } - public Stream withId(Optional id) { + public Stream withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -466,7 +435,7 @@ public class Stream { return this; } - public Stream withStreamType(Optional streamType) { + public Stream withStreamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -478,7 +447,7 @@ public class Stream { return this; } - public Stream withDefault(Optional default_) { + public Stream withDefault(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -490,7 +459,7 @@ public class Stream { return this; } - public Stream withCodec(Optional codec) { + public Stream withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -502,7 +471,7 @@ public class Stream { return this; } - public Stream withIndex(Optional index) { + public Stream withIndex(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -514,7 +483,7 @@ public class Stream { return this; } - public Stream withBitrate(Optional bitrate) { + public Stream withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -526,7 +495,7 @@ public class Stream { return this; } - public Stream withBitDepth(Optional bitDepth) { + public Stream withBitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -538,7 +507,7 @@ public class Stream { return this; } - public Stream withChromaLocation(Optional chromaLocation) { + public Stream withChromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; @@ -550,7 +519,7 @@ public class Stream { return this; } - public Stream withChromaSubsampling(Optional chromaSubsampling) { + public Stream withChromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; @@ -562,7 +531,7 @@ public class Stream { return this; } - public Stream withCodedHeight(Optional codedHeight) { + public Stream withCodedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; @@ -574,7 +543,7 @@ public class Stream { return this; } - public Stream withCodedWidth(Optional codedWidth) { + public Stream withCodedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; @@ -586,7 +555,7 @@ public class Stream { return this; } - public Stream withColorPrimaries(Optional colorPrimaries) { + public Stream withColorPrimaries(Optional colorPrimaries) { Utils.checkNotNull(colorPrimaries, "colorPrimaries"); this.colorPrimaries = colorPrimaries; return this; @@ -598,7 +567,7 @@ public class Stream { return this; } - public Stream withColorRange(Optional colorRange) { + public Stream withColorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; @@ -610,7 +579,7 @@ public class Stream { return this; } - public Stream withColorSpace(Optional colorSpace) { + public Stream withColorSpace(Optional colorSpace) { Utils.checkNotNull(colorSpace, "colorSpace"); this.colorSpace = colorSpace; return this; @@ -622,7 +591,7 @@ public class Stream { return this; } - public Stream withColorTrc(Optional colorTrc) { + public Stream withColorTrc(Optional colorTrc) { Utils.checkNotNull(colorTrc, "colorTrc"); this.colorTrc = colorTrc; return this; @@ -634,7 +603,7 @@ public class Stream { return this; } - public Stream withFrameRate(Optional frameRate) { + public Stream withFrameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; @@ -646,7 +615,7 @@ public class Stream { return this; } - public Stream withHasScalingMatrix(Optional hasScalingMatrix) { + public Stream withHasScalingMatrix(Optional hasScalingMatrix) { Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); this.hasScalingMatrix = hasScalingMatrix; return this; @@ -658,7 +627,7 @@ public class Stream { return this; } - public Stream withHeight(Optional height) { + public Stream withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -670,7 +639,7 @@ public class Stream { return this; } - public Stream withLevel(Optional level) { + public Stream withLevel(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; @@ -682,7 +651,7 @@ public class Stream { return this; } - public Stream withProfile(Optional profile) { + public Stream withProfile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -694,7 +663,7 @@ public class Stream { return this; } - public Stream withRefFrames(Optional refFrames) { + public Stream withRefFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; @@ -706,7 +675,7 @@ public class Stream { return this; } - public Stream withScanType(Optional scanType) { + public Stream withScanType(Optional scanType) { Utils.checkNotNull(scanType, "scanType"); this.scanType = scanType; return this; @@ -718,7 +687,7 @@ public class Stream { return this; } - public Stream withStreamIdentifier(Optional streamIdentifier) { + public Stream withStreamIdentifier(Optional streamIdentifier) { Utils.checkNotNull(streamIdentifier, "streamIdentifier"); this.streamIdentifier = streamIdentifier; return this; @@ -730,7 +699,7 @@ public class Stream { return this; } - public Stream withWidth(Optional width) { + public Stream withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -742,7 +711,7 @@ public class Stream { return this; } - public Stream withDisplayTitle(Optional displayTitle) { + public Stream withDisplayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -754,7 +723,7 @@ public class Stream { return this; } - public Stream withExtendedDisplayTitle(Optional extendedDisplayTitle) { + public Stream withExtendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; @@ -766,7 +735,7 @@ public class Stream { return this; } - public Stream withSelected(Optional selected) { + public Stream withSelected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; @@ -778,7 +747,7 @@ public class Stream { return this; } - public Stream withChannels(Optional channels) { + public Stream withChannels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -790,7 +759,7 @@ public class Stream { return this; } - public Stream withLanguage(Optional language) { + public Stream withLanguage(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; @@ -802,7 +771,7 @@ public class Stream { return this; } - public Stream withLanguageTag(Optional languageTag) { + public Stream withLanguageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; @@ -814,7 +783,7 @@ public class Stream { return this; } - public Stream withLanguageCode(Optional languageCode) { + public Stream withLanguageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; @@ -826,7 +795,7 @@ public class Stream { return this; } - public Stream withSamplingRate(Optional samplingRate) { + public Stream withSamplingRate(Optional samplingRate) { Utils.checkNotNull(samplingRate, "samplingRate"); this.samplingRate = samplingRate; return this; @@ -842,43 +811,43 @@ public class Stream { } 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); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.streamType, other.streamType) && + Objects.deepEquals(this.default_, other.default_) && + Objects.deepEquals(this.codec, other.codec) && + Objects.deepEquals(this.index, other.index) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.bitDepth, other.bitDepth) && + Objects.deepEquals(this.chromaLocation, other.chromaLocation) && + Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) && + Objects.deepEquals(this.codedHeight, other.codedHeight) && + Objects.deepEquals(this.codedWidth, other.codedWidth) && + Objects.deepEquals(this.colorPrimaries, other.colorPrimaries) && + Objects.deepEquals(this.colorRange, other.colorRange) && + Objects.deepEquals(this.colorSpace, other.colorSpace) && + Objects.deepEquals(this.colorTrc, other.colorTrc) && + Objects.deepEquals(this.frameRate, other.frameRate) && + Objects.deepEquals(this.hasScalingMatrix, other.hasScalingMatrix) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.level, other.level) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.refFrames, other.refFrames) && + Objects.deepEquals(this.scanType, other.scanType) && + Objects.deepEquals(this.streamIdentifier, other.streamIdentifier) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.displayTitle, other.displayTitle) && + Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle) && + Objects.deepEquals(this.selected, other.selected) && + Objects.deepEquals(this.channels, other.channels) && + Objects.deepEquals(this.language, other.language) && + Objects.deepEquals(this.languageTag, other.languageTag) && + Objects.deepEquals(this.languageCode, other.languageCode) && + Objects.deepEquals(this.samplingRate, other.samplingRate); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, streamType, default_, @@ -952,69 +921,69 @@ public class Stream { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional streamType = Optional.empty(); + private Optional streamType = Optional.empty(); - private Optional default_ = Optional.empty(); + private Optional default_ = Optional.empty(); - private Optional codec = Optional.empty(); + private Optional codec = Optional.empty(); - private Optional index = Optional.empty(); + private Optional index = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional bitDepth = Optional.empty(); + private Optional bitDepth = Optional.empty(); - private Optional chromaLocation = Optional.empty(); + private Optional chromaLocation = Optional.empty(); - private Optional chromaSubsampling = Optional.empty(); + private Optional chromaSubsampling = Optional.empty(); - private Optional codedHeight = Optional.empty(); + private Optional codedHeight = Optional.empty(); - private Optional codedWidth = Optional.empty(); + private Optional codedWidth = Optional.empty(); - private Optional colorPrimaries = Optional.empty(); + private Optional colorPrimaries = Optional.empty(); - private Optional colorRange = Optional.empty(); + private Optional colorRange = Optional.empty(); - private Optional colorSpace = Optional.empty(); + private Optional colorSpace = Optional.empty(); - private Optional colorTrc = Optional.empty(); + private Optional colorTrc = Optional.empty(); - private Optional frameRate = Optional.empty(); + private Optional frameRate = Optional.empty(); - private Optional hasScalingMatrix = Optional.empty(); + private Optional hasScalingMatrix = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional level = Optional.empty(); + private Optional level = Optional.empty(); - private Optional profile = Optional.empty(); + private Optional profile = Optional.empty(); - private Optional refFrames = Optional.empty(); + private Optional refFrames = Optional.empty(); - private Optional scanType = Optional.empty(); + private Optional scanType = Optional.empty(); - private Optional streamIdentifier = Optional.empty(); + private Optional streamIdentifier = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional displayTitle = Optional.empty(); + private Optional displayTitle = Optional.empty(); - private Optional extendedDisplayTitle = Optional.empty(); + private Optional extendedDisplayTitle = Optional.empty(); - private Optional selected = Optional.empty(); + private Optional selected = Optional.empty(); - private Optional channels = Optional.empty(); + private Optional channels = Optional.empty(); - private Optional language = Optional.empty(); + private Optional language = Optional.empty(); - private Optional languageTag = Optional.empty(); + private Optional languageTag = Optional.empty(); - private Optional languageCode = Optional.empty(); + private Optional languageCode = Optional.empty(); - private Optional samplingRate = Optional.empty(); + private Optional samplingRate = Optional.empty(); private Builder() { // force use of static builder() method @@ -1026,7 +995,7 @@ public class Stream { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -1038,7 +1007,7 @@ public class Stream { return this; } - public Builder streamType(Optional streamType) { + public Builder streamType(Optional streamType) { Utils.checkNotNull(streamType, "streamType"); this.streamType = streamType; return this; @@ -1050,7 +1019,7 @@ public class Stream { return this; } - public Builder default_(Optional default_) { + public Builder default_(Optional default_) { Utils.checkNotNull(default_, "default_"); this.default_ = default_; return this; @@ -1062,7 +1031,7 @@ public class Stream { return this; } - public Builder codec(Optional codec) { + public Builder codec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; @@ -1074,7 +1043,7 @@ public class Stream { return this; } - public Builder index(Optional index) { + public Builder index(Optional index) { Utils.checkNotNull(index, "index"); this.index = index; return this; @@ -1086,7 +1055,7 @@ public class Stream { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -1098,7 +1067,7 @@ public class Stream { return this; } - public Builder bitDepth(Optional bitDepth) { + public Builder bitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -1110,7 +1079,7 @@ public class Stream { return this; } - public Builder chromaLocation(Optional chromaLocation) { + public Builder chromaLocation(Optional chromaLocation) { Utils.checkNotNull(chromaLocation, "chromaLocation"); this.chromaLocation = chromaLocation; return this; @@ -1122,7 +1091,7 @@ public class Stream { return this; } - public Builder chromaSubsampling(Optional chromaSubsampling) { + public Builder chromaSubsampling(Optional chromaSubsampling) { Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); this.chromaSubsampling = chromaSubsampling; return this; @@ -1134,7 +1103,7 @@ public class Stream { return this; } - public Builder codedHeight(Optional codedHeight) { + public Builder codedHeight(Optional codedHeight) { Utils.checkNotNull(codedHeight, "codedHeight"); this.codedHeight = codedHeight; return this; @@ -1146,7 +1115,7 @@ public class Stream { return this; } - public Builder codedWidth(Optional codedWidth) { + public Builder codedWidth(Optional codedWidth) { Utils.checkNotNull(codedWidth, "codedWidth"); this.codedWidth = codedWidth; return this; @@ -1158,7 +1127,7 @@ public class Stream { return this; } - public Builder colorPrimaries(Optional colorPrimaries) { + public Builder colorPrimaries(Optional colorPrimaries) { Utils.checkNotNull(colorPrimaries, "colorPrimaries"); this.colorPrimaries = colorPrimaries; return this; @@ -1170,7 +1139,7 @@ public class Stream { return this; } - public Builder colorRange(Optional colorRange) { + public Builder colorRange(Optional colorRange) { Utils.checkNotNull(colorRange, "colorRange"); this.colorRange = colorRange; return this; @@ -1182,7 +1151,7 @@ public class Stream { return this; } - public Builder colorSpace(Optional colorSpace) { + public Builder colorSpace(Optional colorSpace) { Utils.checkNotNull(colorSpace, "colorSpace"); this.colorSpace = colorSpace; return this; @@ -1194,7 +1163,7 @@ public class Stream { return this; } - public Builder colorTrc(Optional colorTrc) { + public Builder colorTrc(Optional colorTrc) { Utils.checkNotNull(colorTrc, "colorTrc"); this.colorTrc = colorTrc; return this; @@ -1206,7 +1175,7 @@ public class Stream { return this; } - public Builder frameRate(Optional frameRate) { + public Builder frameRate(Optional frameRate) { Utils.checkNotNull(frameRate, "frameRate"); this.frameRate = frameRate; return this; @@ -1218,7 +1187,7 @@ public class Stream { return this; } - public Builder hasScalingMatrix(Optional hasScalingMatrix) { + public Builder hasScalingMatrix(Optional hasScalingMatrix) { Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); this.hasScalingMatrix = hasScalingMatrix; return this; @@ -1230,7 +1199,7 @@ public class Stream { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -1242,7 +1211,7 @@ public class Stream { return this; } - public Builder level(Optional level) { + public Builder level(Optional level) { Utils.checkNotNull(level, "level"); this.level = level; return this; @@ -1254,7 +1223,7 @@ public class Stream { return this; } - public Builder profile(Optional profile) { + public Builder profile(Optional profile) { Utils.checkNotNull(profile, "profile"); this.profile = profile; return this; @@ -1266,7 +1235,7 @@ public class Stream { return this; } - public Builder refFrames(Optional refFrames) { + public Builder refFrames(Optional refFrames) { Utils.checkNotNull(refFrames, "refFrames"); this.refFrames = refFrames; return this; @@ -1278,7 +1247,7 @@ public class Stream { return this; } - public Builder scanType(Optional scanType) { + public Builder scanType(Optional scanType) { Utils.checkNotNull(scanType, "scanType"); this.scanType = scanType; return this; @@ -1290,7 +1259,7 @@ public class Stream { return this; } - public Builder streamIdentifier(Optional streamIdentifier) { + public Builder streamIdentifier(Optional streamIdentifier) { Utils.checkNotNull(streamIdentifier, "streamIdentifier"); this.streamIdentifier = streamIdentifier; return this; @@ -1302,7 +1271,7 @@ public class Stream { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -1314,7 +1283,7 @@ public class Stream { return this; } - public Builder displayTitle(Optional displayTitle) { + public Builder displayTitle(Optional displayTitle) { Utils.checkNotNull(displayTitle, "displayTitle"); this.displayTitle = displayTitle; return this; @@ -1326,7 +1295,7 @@ public class Stream { return this; } - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { + public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); this.extendedDisplayTitle = extendedDisplayTitle; return this; @@ -1338,7 +1307,7 @@ public class Stream { return this; } - public Builder selected(Optional selected) { + public Builder selected(Optional selected) { Utils.checkNotNull(selected, "selected"); this.selected = selected; return this; @@ -1350,7 +1319,7 @@ public class Stream { return this; } - public Builder channels(Optional channels) { + public Builder channels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -1362,7 +1331,7 @@ public class Stream { return this; } - public Builder language(Optional language) { + public Builder language(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; return this; @@ -1374,7 +1343,7 @@ public class Stream { return this; } - public Builder languageTag(Optional languageTag) { + public Builder languageTag(Optional languageTag) { Utils.checkNotNull(languageTag, "languageTag"); this.languageTag = languageTag; return this; @@ -1386,7 +1355,7 @@ public class Stream { return this; } - public Builder languageCode(Optional languageCode) { + public Builder languageCode(Optional languageCode) { Utils.checkNotNull(languageCode, "languageCode"); this.languageCode = languageCode; return this; @@ -1398,7 +1367,7 @@ public class Stream { return this; } - public Builder samplingRate(Optional samplingRate) { + public Builder samplingRate(Optional samplingRate) { Utils.checkNotNull(samplingRate, "samplingRate"); this.samplingRate = samplingRate; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java b/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java new file mode 100644 index 00000000..e04efb46 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java @@ -0,0 +1,436 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Subscription - If the account’s Plex Pass subscription is active + */ + +public class Subscription { + + /** + * List of features allowed on your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("features") + private Optional> features; + + /** + * If the account's Plex Pass subscription is active + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("active") + private Optional active; + + /** + * Date the account subscribed to Plex Pass + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscribedAt") + private JsonNullable subscribedAt; + + /** + * String representation of subscriptionActive + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + private Optional status; + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("paymentService") + private JsonNullable paymentService; + + /** + * Name of Plex Pass subscription plan + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("plan") + private JsonNullable plan; + + @JsonCreator + public Subscription( + @JsonProperty("features") Optional> features, + @JsonProperty("active") Optional active, + @JsonProperty("subscribedAt") JsonNullable subscribedAt, + @JsonProperty("status") Optional status, + @JsonProperty("paymentService") JsonNullable paymentService, + @JsonProperty("plan") JsonNullable plan) { + Utils.checkNotNull(features, "features"); + Utils.checkNotNull(active, "active"); + Utils.checkNotNull(subscribedAt, "subscribedAt"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(paymentService, "paymentService"); + Utils.checkNotNull(plan, "plan"); + this.features = features; + this.active = active; + this.subscribedAt = subscribedAt; + this.status = status; + this.paymentService = paymentService; + this.plan = plan; + } + + public Subscription() { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> features() { + return (Optional>) features; + } + + /** + * If the account's Plex Pass subscription is active + */ + @JsonIgnore + public Optional active() { + return active; + } + + /** + * Date the account subscribed to Plex Pass + */ + @JsonIgnore + public JsonNullable subscribedAt() { + return subscribedAt; + } + + /** + * String representation of subscriptionActive + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional status() { + return (Optional) status; + } + + /** + * Payment service used for your Plex Pass subscription + */ + @JsonIgnore + public JsonNullable paymentService() { + return paymentService; + } + + /** + * Name of Plex Pass subscription plan + */ + @JsonIgnore + public JsonNullable plan() { + return plan; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Subscription withFeatures(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Subscription withFeatures(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Subscription withActive(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Subscription withActive(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Subscription withSubscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Subscription withSubscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public Subscription withStatus(GetUserDetailsAuthenticationStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public Subscription withStatus(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Subscription withPaymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Subscription withPaymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Subscription withPlan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Subscription withPlan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Subscription other = (Subscription) o; + return + Objects.deepEquals(this.features, other.features) && + Objects.deepEquals(this.active, other.active) && + Objects.deepEquals(this.subscribedAt, other.subscribedAt) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.paymentService, other.paymentService) && + Objects.deepEquals(this.plan, other.plan); + } + + @Override + public int hashCode() { + return Objects.hash( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + + @Override + public String toString() { + return Utils.toString(Subscription.class, + "features", features, + "active", active, + "subscribedAt", subscribedAt, + "status", status, + "paymentService", paymentService, + "plan", plan); + } + + public final static class Builder { + + private Optional> features = Optional.empty(); + + private Optional active = Optional.empty(); + + private JsonNullable subscribedAt = JsonNullable.undefined(); + + private Optional status = Optional.empty(); + + private JsonNullable paymentService = JsonNullable.undefined(); + + private JsonNullable plan = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(List features) { + Utils.checkNotNull(features, "features"); + this.features = Optional.ofNullable(features); + return this; + } + + /** + * List of features allowed on your Plex Pass subscription + */ + public Builder features(Optional> features) { + Utils.checkNotNull(features, "features"); + this.features = features; + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(boolean active) { + Utils.checkNotNull(active, "active"); + this.active = Optional.ofNullable(active); + return this; + } + + /** + * If the account's Plex Pass subscription is active + */ + public Builder active(Optional active) { + Utils.checkNotNull(active, "active"); + this.active = active; + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(String subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = JsonNullable.of(subscribedAt); + return this; + } + + /** + * Date the account subscribed to Plex Pass + */ + public Builder subscribedAt(JsonNullable subscribedAt) { + Utils.checkNotNull(subscribedAt, "subscribedAt"); + this.subscribedAt = subscribedAt; + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(GetUserDetailsAuthenticationStatus status) { + Utils.checkNotNull(status, "status"); + this.status = Optional.ofNullable(status); + return this; + } + + /** + * String representation of subscriptionActive + */ + public Builder status(Optional status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(String paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = JsonNullable.of(paymentService); + return this; + } + + /** + * Payment service used for your Plex Pass subscription + */ + public Builder paymentService(JsonNullable paymentService) { + Utils.checkNotNull(paymentService, "paymentService"); + this.paymentService = paymentService; + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(String plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = JsonNullable.of(plan); + return this; + } + + /** + * Name of Plex Pass subscription plan + */ + public Builder plan(JsonNullable plan) { + Utils.checkNotNull(plan, "plan"); + this.plan = plan; + return this; + } + + public Subscription build() { + return new Subscription( + features, + active, + subscribedAt, + status, + paymentService, + plan); + } + } +} + diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java b/src/main/java/dev/plexapi/sdk/models/operations/Tag.java similarity index 62% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java rename to src/main/java/dev/plexapi/sdk/models/operations/Tag.java index a5d2f11b..1313f0d4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Tag.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import java.lang.String; /** * Tag - A key representing a specific tag within the section. diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java b/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java rename to src/main/java/dev/plexapi/sdk/models/operations/TaskName.java index 9327c577..e85a320a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import java.lang.String; /** * TaskName - the name of the task to be started. diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java b/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java new file mode 100644 index 00000000..3cb7160f --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/TranscodeSession.java similarity index 66% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java rename to src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java index 75a32b2b..bcd66a12 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java @@ -1,147 +1,149 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class TranscodeSession { @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") - private Optional key; + private Optional key; @JsonInclude(Include.NON_ABSENT) @JsonProperty("throttled") - private Optional throttled; + private Optional throttled; @JsonInclude(Include.NON_ABSENT) @JsonProperty("complete") - private Optional complete; + private Optional complete; @JsonInclude(Include.NON_ABSENT) @JsonProperty("progress") - private Optional progress; + private Optional progress; @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("speed") - private Optional speed; + private Optional speed; @JsonInclude(Include.NON_ABSENT) @JsonProperty("error") - private Optional error; + private Optional error; @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("remaining") - private Optional remaining; + private Optional remaining; @JsonInclude(Include.NON_ABSENT) @JsonProperty("context") - private Optional context; + private Optional context; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceVideoCodec") - private Optional sourceVideoCodec; + private Optional sourceVideoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceAudioCodec") - private Optional sourceAudioCodec; + private Optional sourceAudioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoDecision") - private Optional videoDecision; + private Optional videoDecision; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioDecision") - private Optional audioDecision; + private Optional audioDecision; @JsonInclude(Include.NON_ABSENT) @JsonProperty("subtitleDecision") - private Optional subtitleDecision; + private Optional subtitleDecision; @JsonInclude(Include.NON_ABSENT) @JsonProperty("protocol") - private Optional protocol; + private Optional protocol; @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") - private Optional container; + private Optional container; @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoCodec") - private Optional videoCodec; + private Optional videoCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioCodec") - private Optional audioCodec; + private Optional audioCodec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("audioChannels") - private Optional audioChannels; + private Optional audioChannels; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodeHwRequested") - private Optional transcodeHwRequested; + private Optional transcodeHwRequested; @JsonInclude(Include.NON_ABSENT) @JsonProperty("timeStamp") - private Optional timeStamp; + private Optional timeStamp; @JsonInclude(Include.NON_ABSENT) @JsonProperty("maxOffsetAvailable") - private Optional maxOffsetAvailable; + private Optional maxOffsetAvailable; @JsonInclude(Include.NON_ABSENT) @JsonProperty("minOffsetAvailable") - private Optional 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) { + @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"); @@ -196,148 +198,124 @@ public class 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; + return key; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional throttled() { - return (Optional) throttled; + return throttled; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional complete() { - return (Optional) complete; + return complete; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional progress() { - return (Optional) progress; + return progress; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional speed() { - return (Optional) speed; + return speed; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional error() { - return (Optional) error; + return error; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional remaining() { - return (Optional) remaining; + return remaining; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional context() { - return (Optional) context; + return context; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceVideoCodec() { - return (Optional) sourceVideoCodec; + return sourceVideoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceAudioCodec() { - return (Optional) sourceAudioCodec; + return sourceAudioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoDecision() { - return (Optional) videoDecision; + return videoDecision; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioDecision() { - return (Optional) audioDecision; + return audioDecision; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional subtitleDecision() { - return (Optional) subtitleDecision; + return subtitleDecision; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional protocol() { - return (Optional) protocol; + return protocol; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional container() { - return (Optional) container; + return container; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoCodec() { - return (Optional) videoCodec; + return videoCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioCodec() { - return (Optional) audioCodec; + return audioCodec; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional audioChannels() { - return (Optional) audioChannels; + return audioChannels; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodeHwRequested() { - return (Optional) transcodeHwRequested; + return transcodeHwRequested; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional timeStamp() { - return (Optional) timeStamp; + return timeStamp; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional maxOffsetAvailable() { - return (Optional) maxOffsetAvailable; + return maxOffsetAvailable; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional minOffsetAvailable() { - return (Optional) minOffsetAvailable; + return minOffsetAvailable; } public final static Builder builder() { @@ -350,7 +328,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withKey(Optional key) { + public TranscodeSession withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -362,7 +340,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withThrottled(Optional throttled) { + public TranscodeSession withThrottled(Optional throttled) { Utils.checkNotNull(throttled, "throttled"); this.throttled = throttled; return this; @@ -374,7 +352,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withComplete(Optional complete) { + public TranscodeSession withComplete(Optional complete) { Utils.checkNotNull(complete, "complete"); this.complete = complete; return this; @@ -386,7 +364,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withProgress(Optional progress) { + public TranscodeSession withProgress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -398,7 +376,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withSize(Optional size) { + public TranscodeSession withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -410,7 +388,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withSpeed(Optional speed) { + public TranscodeSession withSpeed(Optional speed) { Utils.checkNotNull(speed, "speed"); this.speed = speed; return this; @@ -422,7 +400,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withError(Optional error) { + public TranscodeSession withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -434,7 +412,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withDuration(Optional duration) { + public TranscodeSession withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -446,7 +424,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withRemaining(Optional remaining) { + public TranscodeSession withRemaining(Optional remaining) { Utils.checkNotNull(remaining, "remaining"); this.remaining = remaining; return this; @@ -458,7 +436,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withContext(Optional context) { + public TranscodeSession withContext(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -470,7 +448,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withSourceVideoCodec(Optional sourceVideoCodec) { + public TranscodeSession withSourceVideoCodec(Optional sourceVideoCodec) { Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); this.sourceVideoCodec = sourceVideoCodec; return this; @@ -482,7 +460,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withSourceAudioCodec(Optional sourceAudioCodec) { + public TranscodeSession withSourceAudioCodec(Optional sourceAudioCodec) { Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); this.sourceAudioCodec = sourceAudioCodec; return this; @@ -494,7 +472,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withVideoDecision(Optional videoDecision) { + public TranscodeSession withVideoDecision(Optional videoDecision) { Utils.checkNotNull(videoDecision, "videoDecision"); this.videoDecision = videoDecision; return this; @@ -506,7 +484,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withAudioDecision(Optional audioDecision) { + public TranscodeSession withAudioDecision(Optional audioDecision) { Utils.checkNotNull(audioDecision, "audioDecision"); this.audioDecision = audioDecision; return this; @@ -518,7 +496,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withSubtitleDecision(Optional subtitleDecision) { + public TranscodeSession withSubtitleDecision(Optional subtitleDecision) { Utils.checkNotNull(subtitleDecision, "subtitleDecision"); this.subtitleDecision = subtitleDecision; return this; @@ -530,7 +508,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withProtocol(Optional protocol) { + public TranscodeSession withProtocol(Optional protocol) { Utils.checkNotNull(protocol, "protocol"); this.protocol = protocol; return this; @@ -542,7 +520,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withContainer(Optional container) { + public TranscodeSession withContainer(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -554,7 +532,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withVideoCodec(Optional videoCodec) { + public TranscodeSession withVideoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -566,7 +544,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withAudioCodec(Optional audioCodec) { + public TranscodeSession withAudioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -578,7 +556,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withAudioChannels(Optional audioChannels) { + public TranscodeSession withAudioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -590,7 +568,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withTranscodeHwRequested(Optional transcodeHwRequested) { + public TranscodeSession withTranscodeHwRequested(Optional transcodeHwRequested) { Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); this.transcodeHwRequested = transcodeHwRequested; return this; @@ -602,7 +580,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withTimeStamp(Optional timeStamp) { + public TranscodeSession withTimeStamp(Optional timeStamp) { Utils.checkNotNull(timeStamp, "timeStamp"); this.timeStamp = timeStamp; return this; @@ -614,7 +592,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withMaxOffsetAvailable(Optional maxOffsetAvailable) { + public TranscodeSession withMaxOffsetAvailable(Optional maxOffsetAvailable) { Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); this.maxOffsetAvailable = maxOffsetAvailable; return this; @@ -626,7 +604,7 @@ public class TranscodeSession { return this; } - public TranscodeSession withMinOffsetAvailable(Optional minOffsetAvailable) { + public TranscodeSession withMinOffsetAvailable(Optional minOffsetAvailable) { Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); this.minOffsetAvailable = minOffsetAvailable; return this; @@ -642,35 +620,35 @@ public class TranscodeSession { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.throttled, other.throttled) && + Objects.deepEquals(this.complete, other.complete) && + Objects.deepEquals(this.progress, other.progress) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.speed, other.speed) && + Objects.deepEquals(this.error, other.error) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.remaining, other.remaining) && + Objects.deepEquals(this.context, other.context) && + Objects.deepEquals(this.sourceVideoCodec, other.sourceVideoCodec) && + Objects.deepEquals(this.sourceAudioCodec, other.sourceAudioCodec) && + Objects.deepEquals(this.videoDecision, other.videoDecision) && + Objects.deepEquals(this.audioDecision, other.audioDecision) && + Objects.deepEquals(this.subtitleDecision, other.subtitleDecision) && + Objects.deepEquals(this.protocol, other.protocol) && + Objects.deepEquals(this.container, other.container) && + Objects.deepEquals(this.videoCodec, other.videoCodec) && + Objects.deepEquals(this.audioCodec, other.audioCodec) && + Objects.deepEquals(this.audioChannels, other.audioChannels) && + Objects.deepEquals(this.transcodeHwRequested, other.transcodeHwRequested) && + Objects.deepEquals(this.timeStamp, other.timeStamp) && + Objects.deepEquals(this.maxOffsetAvailable, other.maxOffsetAvailable) && + Objects.deepEquals(this.minOffsetAvailable, other.minOffsetAvailable); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, throttled, complete, @@ -728,53 +706,53 @@ public class TranscodeSession { public final static class Builder { - private Optional key = Optional.empty(); + private Optional key = Optional.empty(); - private Optional throttled = Optional.empty(); + private Optional throttled = Optional.empty(); - private Optional complete = Optional.empty(); + private Optional complete = Optional.empty(); - private Optional progress = Optional.empty(); + private Optional progress = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional speed = Optional.empty(); + private Optional speed = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional remaining = Optional.empty(); + private Optional remaining = Optional.empty(); - private Optional context = Optional.empty(); + private Optional context = Optional.empty(); - private Optional sourceVideoCodec = Optional.empty(); + private Optional sourceVideoCodec = Optional.empty(); - private Optional sourceAudioCodec = Optional.empty(); + private Optional sourceAudioCodec = Optional.empty(); - private Optional videoDecision = Optional.empty(); + private Optional videoDecision = Optional.empty(); - private Optional audioDecision = Optional.empty(); + private Optional audioDecision = Optional.empty(); - private Optional subtitleDecision = Optional.empty(); + private Optional subtitleDecision = Optional.empty(); - private Optional protocol = Optional.empty(); + private Optional protocol = Optional.empty(); - private Optional container = Optional.empty(); + private Optional container = Optional.empty(); - private Optional videoCodec = Optional.empty(); + private Optional videoCodec = Optional.empty(); - private Optional audioCodec = Optional.empty(); + private Optional audioCodec = Optional.empty(); - private Optional audioChannels = Optional.empty(); + private Optional audioChannels = Optional.empty(); - private Optional transcodeHwRequested = Optional.empty(); + private Optional transcodeHwRequested = Optional.empty(); - private Optional timeStamp = Optional.empty(); + private Optional timeStamp = Optional.empty(); - private Optional maxOffsetAvailable = Optional.empty(); + private Optional maxOffsetAvailable = Optional.empty(); - private Optional minOffsetAvailable = Optional.empty(); + private Optional minOffsetAvailable = Optional.empty(); private Builder() { // force use of static builder() method @@ -786,7 +764,7 @@ public class TranscodeSession { return this; } - public Builder key(Optional key) { + public Builder key(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -798,7 +776,7 @@ public class TranscodeSession { return this; } - public Builder throttled(Optional throttled) { + public Builder throttled(Optional throttled) { Utils.checkNotNull(throttled, "throttled"); this.throttled = throttled; return this; @@ -810,7 +788,7 @@ public class TranscodeSession { return this; } - public Builder complete(Optional complete) { + public Builder complete(Optional complete) { Utils.checkNotNull(complete, "complete"); this.complete = complete; return this; @@ -822,7 +800,7 @@ public class TranscodeSession { return this; } - public Builder progress(Optional progress) { + public Builder progress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -834,7 +812,7 @@ public class TranscodeSession { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -846,7 +824,7 @@ public class TranscodeSession { return this; } - public Builder speed(Optional speed) { + public Builder speed(Optional speed) { Utils.checkNotNull(speed, "speed"); this.speed = speed; return this; @@ -858,7 +836,7 @@ public class TranscodeSession { return this; } - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -870,7 +848,7 @@ public class TranscodeSession { return this; } - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -882,7 +860,7 @@ public class TranscodeSession { return this; } - public Builder remaining(Optional remaining) { + public Builder remaining(Optional remaining) { Utils.checkNotNull(remaining, "remaining"); this.remaining = remaining; return this; @@ -894,7 +872,7 @@ public class TranscodeSession { return this; } - public Builder context(Optional context) { + public Builder context(Optional context) { Utils.checkNotNull(context, "context"); this.context = context; return this; @@ -906,7 +884,7 @@ public class TranscodeSession { return this; } - public Builder sourceVideoCodec(Optional sourceVideoCodec) { + public Builder sourceVideoCodec(Optional sourceVideoCodec) { Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); this.sourceVideoCodec = sourceVideoCodec; return this; @@ -918,7 +896,7 @@ public class TranscodeSession { return this; } - public Builder sourceAudioCodec(Optional sourceAudioCodec) { + public Builder sourceAudioCodec(Optional sourceAudioCodec) { Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); this.sourceAudioCodec = sourceAudioCodec; return this; @@ -930,7 +908,7 @@ public class TranscodeSession { return this; } - public Builder videoDecision(Optional videoDecision) { + public Builder videoDecision(Optional videoDecision) { Utils.checkNotNull(videoDecision, "videoDecision"); this.videoDecision = videoDecision; return this; @@ -942,7 +920,7 @@ public class TranscodeSession { return this; } - public Builder audioDecision(Optional audioDecision) { + public Builder audioDecision(Optional audioDecision) { Utils.checkNotNull(audioDecision, "audioDecision"); this.audioDecision = audioDecision; return this; @@ -954,7 +932,7 @@ public class TranscodeSession { return this; } - public Builder subtitleDecision(Optional subtitleDecision) { + public Builder subtitleDecision(Optional subtitleDecision) { Utils.checkNotNull(subtitleDecision, "subtitleDecision"); this.subtitleDecision = subtitleDecision; return this; @@ -966,7 +944,7 @@ public class TranscodeSession { return this; } - public Builder protocol(Optional protocol) { + public Builder protocol(Optional protocol) { Utils.checkNotNull(protocol, "protocol"); this.protocol = protocol; return this; @@ -978,7 +956,7 @@ public class TranscodeSession { return this; } - public Builder container(Optional container) { + public Builder container(Optional container) { Utils.checkNotNull(container, "container"); this.container = container; return this; @@ -990,7 +968,7 @@ public class TranscodeSession { return this; } - public Builder videoCodec(Optional videoCodec) { + public Builder videoCodec(Optional videoCodec) { Utils.checkNotNull(videoCodec, "videoCodec"); this.videoCodec = videoCodec; return this; @@ -1002,7 +980,7 @@ public class TranscodeSession { return this; } - public Builder audioCodec(Optional audioCodec) { + public Builder audioCodec(Optional audioCodec) { Utils.checkNotNull(audioCodec, "audioCodec"); this.audioCodec = audioCodec; return this; @@ -1014,7 +992,7 @@ public class TranscodeSession { return this; } - public Builder audioChannels(Optional audioChannels) { + public Builder audioChannels(Optional audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); this.audioChannels = audioChannels; return this; @@ -1026,7 +1004,7 @@ public class TranscodeSession { return this; } - public Builder transcodeHwRequested(Optional transcodeHwRequested) { + public Builder transcodeHwRequested(Optional transcodeHwRequested) { Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); this.transcodeHwRequested = transcodeHwRequested; return this; @@ -1038,7 +1016,7 @@ public class TranscodeSession { return this; } - public Builder timeStamp(Optional timeStamp) { + public Builder timeStamp(Optional timeStamp) { Utils.checkNotNull(timeStamp, "timeStamp"); this.timeStamp = timeStamp; return this; @@ -1050,7 +1028,7 @@ public class TranscodeSession { return this; } - public Builder maxOffsetAvailable(Optional maxOffsetAvailable) { + public Builder maxOffsetAvailable(Optional maxOffsetAvailable) { Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); this.maxOffsetAvailable = maxOffsetAvailable; return this; @@ -1062,7 +1040,7 @@ public class TranscodeSession { return this; } - public Builder minOffsetAvailable(Optional minOffsetAvailable) { + public Builder minOffsetAvailable(Optional minOffsetAvailable) { Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); this.minOffsetAvailable = minOffsetAvailable; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Trials.java b/src/main/java/dev/plexapi/sdk/models/operations/Trials.java new file mode 100644 index 00000000..f743daf9 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Trials.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + + +public class Trials { + + @JsonCreator + public Trials() { + + + } + + 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 Objects.hash( + ); + } + + @Override + public String toString() { + return Utils.toString(Trials.class); + } + + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public Trials build() { + return new Trials( + ); + } + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Type.java b/src/main/java/dev/plexapi/sdk/models/operations/Type.java new file mode 100644 index 00000000..0c900e46 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Type.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Type - The type of media to retrieve. + * 1 = movie + * 2 = show + * 3 = season + * 4 = episode + * E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries + * + */ +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/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java similarity index 84% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java index f77c21ab..b8389485 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class UpdatePlayProgressRequest { @@ -113,14 +113,14 @@ public class UpdatePlayProgressRequest { } 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); + Objects.deepEquals(this.key, other.key) && + Objects.deepEquals(this.time, other.time) && + Objects.deepEquals(this.state, other.state); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( key, time, state); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java similarity index 54% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java index e8b540f7..9e4cbfd3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java @@ -1,21 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). 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; +package dev.plexapi.sdk.models.operations; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; public class UpdatePlayProgressRequestBuilder { @@ -28,7 +19,7 @@ public class UpdatePlayProgressRequestBuilder { this.sdk = sdk; } - public UpdatePlayProgressRequestBuilder key(String key) { + public UpdatePlayProgressRequestBuilder key(java.lang.String key) { Utils.checkNotNull(key, "key"); this.key = key; return this; @@ -40,7 +31,7 @@ public class UpdatePlayProgressRequestBuilder { return this; } - public UpdatePlayProgressRequestBuilder state(String state) { + public UpdatePlayProgressRequestBuilder state(java.lang.String state) { Utils.checkNotNull(state, "state"); this.state = state; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java index 4ed7815a..58163721 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class UpdatePlayProgressResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class UpdatePlayProgressResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class UpdatePlayProgressResponse implements lukehagar.plexapi.plexapi.uti } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java similarity index 75% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java index 020e157d..8c3081f3 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; + public class UpdatePlaylistRequest { @@ -28,19 +28,19 @@ public class UpdatePlaylistRequest { * name of the playlist */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=title") - private Optional title; + private Optional title; /** * summary description of the playlist */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=summary") - private Optional summary; + private Optional summary; @JsonCreator public UpdatePlaylistRequest( double playlistID, - Optional title, - Optional summary) { + Optional title, + Optional summary) { Utils.checkNotNull(playlistID, "playlistID"); Utils.checkNotNull(title, "title"); Utils.checkNotNull(summary, "summary"); @@ -65,19 +65,17 @@ public class UpdatePlaylistRequest { /** * name of the playlist */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional title() { - return (Optional) title; + return title; } /** * summary description of the playlist */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional summary() { - return (Optional) summary; + return summary; } public final static Builder builder() { @@ -105,7 +103,7 @@ public class UpdatePlaylistRequest { /** * name of the playlist */ - public UpdatePlaylistRequest withTitle(Optional title) { + public UpdatePlaylistRequest withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -123,7 +121,7 @@ public class UpdatePlaylistRequest { /** * summary description of the playlist */ - public UpdatePlaylistRequest withSummary(Optional summary) { + public UpdatePlaylistRequest withSummary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; @@ -139,14 +137,14 @@ public class UpdatePlaylistRequest { } 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); + Objects.deepEquals(this.playlistID, other.playlistID) && + Objects.deepEquals(this.title, other.title) && + Objects.deepEquals(this.summary, other.summary); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playlistID, title, summary); @@ -164,9 +162,9 @@ public class UpdatePlaylistRequest { private Double playlistID; - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); private Builder() { // force use of static builder() method @@ -193,7 +191,7 @@ public class UpdatePlaylistRequest { /** * name of the playlist */ - public Builder title(Optional title) { + public Builder title(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -211,7 +209,7 @@ public class UpdatePlaylistRequest { /** * summary description of the playlist */ - public Builder summary(Optional summary) { + public Builder summary(Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java similarity index 53% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java index fba32e3c..7bd4b939 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java @@ -1,27 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Double; +import java.lang.String; 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 Optional title = Optional.empty(); + private Optional summary = Optional.empty(); private final SDKMethodInterfaces.MethodCallUpdatePlaylist sdk; public UpdatePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallUpdatePlaylist sdk) { @@ -34,25 +26,25 @@ public class UpdatePlaylistRequestBuilder { return this; } - public UpdatePlaylistRequestBuilder title(String title) { + public UpdatePlaylistRequestBuilder title(java.lang.String title) { Utils.checkNotNull(title, "title"); this.title = Optional.of(title); return this; } - public UpdatePlaylistRequestBuilder title(Optional title) { + public UpdatePlaylistRequestBuilder title(java.util.Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; } - public UpdatePlaylistRequestBuilder summary(String summary) { + public UpdatePlaylistRequestBuilder summary(java.lang.String summary) { Utils.checkNotNull(summary, "summary"); this.summary = Optional.of(summary); return this; } - public UpdatePlaylistRequestBuilder summary(Optional summary) { + public UpdatePlaylistRequestBuilder summary(java.util.Optional summary) { Utils.checkNotNull(summary, "summary"); this.summary = summary; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java index 17594a74..1fcbeba4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class UpdatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class UpdatePlaylistResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class UpdatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java similarity index 88% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java rename to src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java index c0121b7a..069fa506 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; + public class UploadPlaylistRequest { @@ -37,12 +36,12 @@ public class UploadPlaylistRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=force") - private Force force; + private QueryParamForce force; @JsonCreator public UploadPlaylistRequest( String path, - Force force) { + QueryParamForce force) { Utils.checkNotNull(path, "path"); Utils.checkNotNull(force, "force"); this.path = path; @@ -71,7 +70,7 @@ public class UploadPlaylistRequest { * */ @JsonIgnore - public Force force() { + public QueryParamForce force() { return force; } @@ -101,7 +100,7 @@ public class UploadPlaylistRequest { * 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) { + public UploadPlaylistRequest withForce(QueryParamForce force) { Utils.checkNotNull(force, "force"); this.force = force; return this; @@ -117,13 +116,13 @@ public class UploadPlaylistRequest { } UploadPlaylistRequest other = (UploadPlaylistRequest) o; return - java.util.Objects.deepEquals(this.path, other.path) && - java.util.Objects.deepEquals(this.force, other.force); + Objects.deepEquals(this.path, other.path) && + Objects.deepEquals(this.force, other.force); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path, force); } @@ -139,7 +138,7 @@ public class UploadPlaylistRequest { private String path; - private Force force; + private QueryParamForce force; private Builder() { // force use of static builder() method @@ -167,7 +166,7 @@ public class UploadPlaylistRequest { * 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) { + public Builder force(QueryParamForce force) { Utils.checkNotNull(force, "force"); this.force = force; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java new file mode 100644 index 00000000..4a6f939a --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import dev.plexapi.sdk.utils.Utils; +import java.lang.String; + +public class UploadPlaylistRequestBuilder { + + private String path; + private QueryParamForce force; + private final SDKMethodInterfaces.MethodCallUploadPlaylist sdk; + + public UploadPlaylistRequestBuilder(SDKMethodInterfaces.MethodCallUploadPlaylist sdk) { + this.sdk = sdk; + } + + public UploadPlaylistRequestBuilder path(java.lang.String path) { + Utils.checkNotNull(path, "path"); + this.path = path; + return this; + } + + public UploadPlaylistRequestBuilder force(dev.plexapi.sdk.models.operations.QueryParamForce 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/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java similarity index 85% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java rename to src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java index e059feb4..ce88ea98 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Response; +import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; +import java.util.Objects; -public class UploadPlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { + +public class UploadPlaylistResponse implements Response { /** * HTTP response content type for this operation @@ -110,14 +112,14 @@ public class UploadPlaylistResponse implements lukehagar.plexapi.plexapi.utils.R } 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); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse); diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java b/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java new file mode 100644 index 00000000..4261ece4 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/dev/plexapi/sdk/models/operations/User.java similarity index 68% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java rename to src/main/java/dev/plexapi/sdk/models/operations/User.java index c23f0362..9ff6a2ee 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/User.java @@ -1,32 +1,32 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class User { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public User( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -35,10 +35,9 @@ public class User { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -51,7 +50,7 @@ public class User { return this; } - public User withId(Optional id) { + public User withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -67,12 +66,12 @@ public class User { } User other = (User) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -84,7 +83,7 @@ public class User { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +95,7 @@ public class User { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java b/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java new file mode 100644 index 00000000..1b97c8d2 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java @@ -0,0 +1,528 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import dev.plexapi.sdk.utils.LazySingletonValue; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + + +public class UserProfile { + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("autoSelectAudio") + private Optional autoSelectAudio; + + /** + * The preferred audio language for the account + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("defaultAudioLanguage") + private Optional defaultAudioLanguage; + + /** + * The preferred subtitle language for the account + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("defaultSubtitleLanguage") + private Optional defaultSubtitleLanguage; + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("autoSelectSubtitle") + private Optional autoSelectSubtitle; + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultSubtitleAccessibility") + private Optional defaultSubtitleAccessibility; + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultSubtitleForced") + private Optional defaultSubtitleForced; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("watchedIndicator") + private Optional watchedIndicator; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaReviewsVisibility") + private Optional mediaReviewsVisibility; + + @JsonCreator + public UserProfile( + @JsonProperty("autoSelectAudio") Optional autoSelectAudio, + @JsonProperty("defaultAudioLanguage") Optional defaultAudioLanguage, + @JsonProperty("defaultSubtitleLanguage") Optional defaultSubtitleLanguage, + @JsonProperty("autoSelectSubtitle") Optional autoSelectSubtitle, + @JsonProperty("defaultSubtitleAccessibility") Optional defaultSubtitleAccessibility, + @JsonProperty("defaultSubtitleForced") Optional defaultSubtitleForced, + @JsonProperty("watchedIndicator") Optional watchedIndicator, + @JsonProperty("mediaReviewsVisibility") Optional mediaReviewsVisibility) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.autoSelectAudio = autoSelectAudio; + this.defaultAudioLanguage = defaultAudioLanguage; + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + this.autoSelectSubtitle = autoSelectSubtitle; + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + this.defaultSubtitleForced = defaultSubtitleForced; + this.watchedIndicator = watchedIndicator; + this.mediaReviewsVisibility = mediaReviewsVisibility; + } + + public UserProfile() { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + @JsonIgnore + public Optional autoSelectAudio() { + return autoSelectAudio; + } + + /** + * The preferred audio language for the account + */ + @JsonIgnore + public Optional defaultAudioLanguage() { + return defaultAudioLanguage; + } + + /** + * The preferred subtitle language for the account + */ + @JsonIgnore + public Optional defaultSubtitleLanguage() { + return defaultSubtitleLanguage; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional autoSelectSubtitle() { + return (Optional) autoSelectSubtitle; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional defaultSubtitleAccessibility() { + return (Optional) defaultSubtitleAccessibility; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional defaultSubtitleForced() { + return (Optional) defaultSubtitleForced; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional watchedIndicator() { + return (Optional) watchedIndicator; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mediaReviewsVisibility() { + return (Optional) mediaReviewsVisibility; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public UserProfile withAutoSelectAudio(boolean autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); + return this; + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public UserProfile withAutoSelectAudio(Optional autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = autoSelectAudio; + return this; + } + + /** + * The preferred audio language for the account + */ + public UserProfile withDefaultAudioLanguage(String defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); + return this; + } + + /** + * The preferred audio language for the account + */ + public UserProfile withDefaultAudioLanguage(Optional defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = defaultAudioLanguage; + return this; + } + + /** + * The preferred subtitle language for the account + */ + public UserProfile withDefaultSubtitleLanguage(String defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); + return this; + } + + /** + * The preferred subtitle language for the account + */ + public UserProfile withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public UserProfile withAutoSelectSubtitle(AutoSelectSubtitle autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = Optional.ofNullable(autoSelectSubtitle); + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public UserProfile withAutoSelectSubtitle(Optional autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = autoSelectSubtitle; + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public UserProfile withDefaultSubtitleAccessibility(DefaultSubtitleAccessibility defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = Optional.ofNullable(defaultSubtitleAccessibility); + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public UserProfile withDefaultSubtitleAccessibility(Optional defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public UserProfile withDefaultSubtitleForced(DefaultSubtitleForced defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = Optional.ofNullable(defaultSubtitleForced); + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public UserProfile withDefaultSubtitleForced(Optional defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = defaultSubtitleForced; + return this; + } + + public UserProfile withWatchedIndicator(WatchedIndicator watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = Optional.ofNullable(watchedIndicator); + return this; + } + + public UserProfile withWatchedIndicator(Optional watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = watchedIndicator; + return this; + } + + public UserProfile withMediaReviewsVisibility(MediaReviewsVisibility mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = Optional.ofNullable(mediaReviewsVisibility); + return this; + } + + public UserProfile withMediaReviewsVisibility(Optional mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = mediaReviewsVisibility; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserProfile other = (UserProfile) o; + return + Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && + Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && + Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && + Objects.deepEquals(this.autoSelectSubtitle, other.autoSelectSubtitle) && + Objects.deepEquals(this.defaultSubtitleAccessibility, other.defaultSubtitleAccessibility) && + Objects.deepEquals(this.defaultSubtitleForced, other.defaultSubtitleForced) && + Objects.deepEquals(this.watchedIndicator, other.watchedIndicator) && + Objects.deepEquals(this.mediaReviewsVisibility, other.mediaReviewsVisibility); + } + + @Override + public int hashCode() { + return Objects.hash( + autoSelectAudio, + defaultAudioLanguage, + defaultSubtitleLanguage, + autoSelectSubtitle, + defaultSubtitleAccessibility, + defaultSubtitleForced, + watchedIndicator, + mediaReviewsVisibility); + } + + @Override + public String toString() { + return Utils.toString(UserProfile.class, + "autoSelectAudio", autoSelectAudio, + "defaultAudioLanguage", defaultAudioLanguage, + "defaultSubtitleLanguage", defaultSubtitleLanguage, + "autoSelectSubtitle", autoSelectSubtitle, + "defaultSubtitleAccessibility", defaultSubtitleAccessibility, + "defaultSubtitleForced", defaultSubtitleForced, + "watchedIndicator", watchedIndicator, + "mediaReviewsVisibility", mediaReviewsVisibility); + } + + public final static class Builder { + + private Optional autoSelectAudio; + + private Optional defaultAudioLanguage = Optional.empty(); + + private Optional defaultSubtitleLanguage = Optional.empty(); + + private Optional autoSelectSubtitle = Optional.empty(); + + private Optional defaultSubtitleAccessibility = Optional.empty(); + + private Optional defaultSubtitleForced = Optional.empty(); + + private Optional watchedIndicator = Optional.empty(); + + private Optional mediaReviewsVisibility = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public Builder autoSelectAudio(boolean autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); + return this; + } + + /** + * If the account has automatically select audio and subtitle tracks enabled + */ + public Builder autoSelectAudio(Optional autoSelectAudio) { + Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); + this.autoSelectAudio = autoSelectAudio; + return this; + } + + /** + * The preferred audio language for the account + */ + public Builder defaultAudioLanguage(String defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); + return this; + } + + /** + * The preferred audio language for the account + */ + public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { + Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); + this.defaultAudioLanguage = defaultAudioLanguage; + return this; + } + + /** + * The preferred subtitle language for the account + */ + public Builder defaultSubtitleLanguage(String defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); + return this; + } + + /** + * The preferred subtitle language for the account + */ + public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { + Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); + this.defaultSubtitleLanguage = defaultSubtitleLanguage; + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public Builder autoSelectSubtitle(AutoSelectSubtitle autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = Optional.ofNullable(autoSelectSubtitle); + return this; + } + + /** + * The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + */ + public Builder autoSelectSubtitle(Optional autoSelectSubtitle) { + Utils.checkNotNull(autoSelectSubtitle, "autoSelectSubtitle"); + this.autoSelectSubtitle = autoSelectSubtitle; + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public Builder defaultSubtitleAccessibility(DefaultSubtitleAccessibility defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = Optional.ofNullable(defaultSubtitleAccessibility); + return this; + } + + /** + * The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) + */ + public Builder defaultSubtitleAccessibility(Optional defaultSubtitleAccessibility) { + Utils.checkNotNull(defaultSubtitleAccessibility, "defaultSubtitleAccessibility"); + this.defaultSubtitleAccessibility = defaultSubtitleAccessibility; + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public Builder defaultSubtitleForced(DefaultSubtitleForced defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = Optional.ofNullable(defaultSubtitleForced); + return this; + } + + /** + * The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) + */ + public Builder defaultSubtitleForced(Optional defaultSubtitleForced) { + Utils.checkNotNull(defaultSubtitleForced, "defaultSubtitleForced"); + this.defaultSubtitleForced = defaultSubtitleForced; + return this; + } + + public Builder watchedIndicator(WatchedIndicator watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = Optional.ofNullable(watchedIndicator); + return this; + } + + public Builder watchedIndicator(Optional watchedIndicator) { + Utils.checkNotNull(watchedIndicator, "watchedIndicator"); + this.watchedIndicator = watchedIndicator; + return this; + } + + public Builder mediaReviewsVisibility(MediaReviewsVisibility mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = Optional.ofNullable(mediaReviewsVisibility); + return this; + } + + public Builder mediaReviewsVisibility(Optional mediaReviewsVisibility) { + Utils.checkNotNull(mediaReviewsVisibility, "mediaReviewsVisibility"); + this.mediaReviewsVisibility = mediaReviewsVisibility; + return this; + } + + public UserProfile build() { + if (autoSelectAudio == null) { + autoSelectAudio = _SINGLETON_VALUE_AutoSelectAudio.value(); + } return new UserProfile( + autoSelectAudio, + defaultAudioLanguage, + defaultSubtitleLanguage, + autoSelectSubtitle, + defaultSubtitleAccessibility, + defaultSubtitleForced, + watchedIndicator, + mediaReviewsVisibility); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_AutoSelectAudio = + new LazySingletonValue<>( + "autoSelectAudio", + "true", + new TypeReference>() {}); + } +} + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java b/src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java new file mode 100644 index 00000000..0a3f6c72 --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package dev.plexapi.sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum WatchedIndicator { + ZERO("0"), + ONE("1"); + + @JsonValue + private final String value; + + private WatchedIndicator(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java b/src/main/java/dev/plexapi/sdk/models/operations/Writer.java similarity index 69% rename from src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java rename to src/main/java/dev/plexapi/sdk/models/operations/Writer.java index 77c8d0da..acabda6b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Writer.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.operations; +package dev.plexapi.sdk.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 dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; + public class Writer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") - private Optional tag; + private Optional tag; @JsonCreator public Writer( - @JsonProperty("tag") Optional tag) { + @JsonProperty("tag") Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; } @@ -35,10 +34,9 @@ public class Writer { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional tag() { - return (Optional) tag; + return tag; } public final static Builder builder() { @@ -51,7 +49,7 @@ public class Writer { return this; } - public Writer withTag(Optional tag) { + public Writer withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; @@ -67,12 +65,12 @@ public class Writer { } Writer other = (Writer) o; return - java.util.Objects.deepEquals(this.tag, other.tag); + Objects.deepEquals(this.tag, other.tag); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( tag); } @@ -84,7 +82,7 @@ public class Writer { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public class Writer { return this; } - public Builder tag(Optional tag) { + public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java b/src/main/java/dev/plexapi/sdk/models/shared/Security.java similarity index 59% rename from src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java rename to src/main/java/dev/plexapi/sdk/models/shared/Security.java index 57d26724..73fd797d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java +++ b/src/main/java/dev/plexapi/sdk/models/shared/Security.java @@ -1,35 +1,38 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.models.shared; +package dev.plexapi.sdk.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; +import dev.plexapi.sdk.utils.SpeakeasyMetadata; +import dev.plexapi.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + public class Security { - @SpeakeasyMetadata("security:scheme=true,type=apiKey,subtype=header,name=X-Plex-Token") - private String accessToken; + @SpeakeasyMetadata("security:scheme=true,type=apiKey,subtype=query,name=X-Plex-Token") + private Optional accessToken; @JsonCreator public Security( - String accessToken) { + Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; } + + public Security() { + this(Optional.empty()); + } @JsonIgnore - public String accessToken() { + public Optional accessToken() { return accessToken; } @@ -38,6 +41,12 @@ public class Security { } public Security withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + public Security withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; @@ -53,12 +62,12 @@ public class Security { } Security other = (Security) o; return - java.util.Objects.deepEquals(this.accessToken, other.accessToken); + Objects.deepEquals(this.accessToken, other.accessToken); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( accessToken); } @@ -70,13 +79,19 @@ public class Security { public final static class Builder { - private String accessToken; + private Optional accessToken = Optional.empty(); private Builder() { // force use of static builder() method } public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java b/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java similarity index 98% rename from src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java rename to src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java index 6c078a6e..80721241 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java +++ b/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java b/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java similarity index 96% rename from src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java rename to src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java index 745938bd..ce24b273 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java +++ b/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.math.BigDecimal; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java b/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java similarity index 96% rename from src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java rename to src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java index 6418958a..8d151eaa 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java +++ b/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.math.BigInteger; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java b/src/main/java/dev/plexapi/sdk/utils/Deserializers.java similarity index 98% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java rename to src/main/java/dev/plexapi/sdk/utils/Deserializers.java index e9a53b00..7764108f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java +++ b/src/main/java/dev/plexapi/sdk/utils/Deserializers.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.time.LocalDate; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java b/src/main/java/dev/plexapi/sdk/utils/EventStream.java similarity index 96% rename from src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java rename to src/main/java/dev/plexapi/sdk/utils/EventStream.java index 0430e72e..73e3cab9 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStream.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.io.InputStream; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java similarity index 93% rename from src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java rename to src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java index 50ca9601..e70126cb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.io.Reader; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java similarity index 92% rename from src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java rename to src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java index c5a760b6..04235f7f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.util.Optional; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java similarity index 97% rename from src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java rename to src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java index f1bcc6fa..7d97ed8b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.BufferedReader; import java.io.IOException; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java b/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/FormMetadata.java index 2baef0d1..e1f16cbb 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java b/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java similarity index 89% rename from src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java rename to src/main/java/dev/plexapi/sdk/utils/HTTPClient.java index c458ce3a..5362e0e4 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java +++ b/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.io.InputStream; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java b/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java similarity index 96% rename from src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java rename to src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java index 7623f36a..71e74568 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java +++ b/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.net.URISyntaxException; import java.net.http.HttpRequest; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java b/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java similarity index 78% rename from src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java index fac187f0..90532703 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java b/src/main/java/dev/plexapi/sdk/utils/Helpers.java similarity index 93% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java rename to src/main/java/dev/plexapi/sdk/utils/Helpers.java index 93056b17..d13cb74e 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java +++ b/src/main/java/dev/plexapi/sdk/utils/Helpers.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.net.http.HttpRequest; import java.util.function.BiPredicate; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java b/src/main/java/dev/plexapi/sdk/utils/Hook.java similarity index 98% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java rename to src/main/java/dev/plexapi/sdk/utils/Hook.java index 433d2cee..3a4c2791 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java +++ b/src/main/java/dev/plexapi/sdk/utils/Hook.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.InputStream; import java.net.http.HttpResponse; @@ -11,7 +11,7 @@ import java.util.List; import java.util.Optional; import java.util.UUID; -import lukehagar.plexapi.plexapi.SecuritySource; +import dev.plexapi.sdk.SecuritySource; /** * Holder class for hook-associated types. This class does not get diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java b/src/main/java/dev/plexapi/sdk/utils/Hooks.java similarity index 91% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java rename to src/main/java/dev/plexapi/sdk/utils/Hooks.java index 40589935..30b9f5e2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java +++ b/src/main/java/dev/plexapi/sdk/utils/Hooks.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.InputStream; import java.net.http.HttpResponse; @@ -11,14 +11,14 @@ 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; +import dev.plexapi.sdk.utils.Hook.AfterError; +import dev.plexapi.sdk.utils.Hook.AfterErrorContext; +import dev.plexapi.sdk.utils.Hook.AfterSuccess; +import dev.plexapi.sdk.utils.Hook.AfterSuccessContext; +import dev.plexapi.sdk.utils.Hook.BeforeRequest; +import dev.plexapi.sdk.utils.Hook.BeforeRequestContext; +import dev.plexapi.sdk.utils.Hook.SdkInit; +import dev.plexapi.sdk.utils.Hook.SdkInitData; /** * Registers hooks for use at runtime by an end-user or for use by a customer diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java b/src/main/java/dev/plexapi/sdk/utils/JSON.java similarity index 89% rename from src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java rename to src/main/java/dev/plexapi/sdk/utils/JSON.java index 610f355e..c24d736a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java +++ b/src/main/java/dev/plexapi/sdk/utils/JSON.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import org.openapitools.jackson.nullable.JsonNullableModule; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java b/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java similarity index 86% rename from src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java rename to src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java index fbe54bb8..78c8481b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java +++ b/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java b/src/main/java/dev/plexapi/sdk/utils/Metadata.java similarity index 94% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java rename to src/main/java/dev/plexapi/sdk/utils/Metadata.java index 59aefbf8..0dcb2245 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/Metadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; import java.util.HashMap; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java b/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java index 73bb1c40..27d8beb2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java b/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java similarity index 87% rename from src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java rename to src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java index 95c5af30..ad13038d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java +++ b/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.lang.reflect.Constructor; @@ -17,7 +17,7 @@ import java.util.List; import java.util.Set; import java.util.stream.Collectors; -import lukehagar.plexapi.plexapi.utils.Utils.TypeReferenceWithShape; +import dev.plexapi.sdk.utils.Utils.TypeReferenceWithShape; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; @@ -37,31 +37,45 @@ public class OneOfDeserializer extends StdDeserializer { private final List typeReferences; // oneOf subschemas private final Class cls; + private final boolean strict; private final ObjectMapper mapper; - protected OneOfDeserializer(Class cls, TypeReferenceWithShape... typeReferences) { + /** + * Constructor. + * + * @param cls oneOf type + * @param strict if true then when multiple matches encountered an + * exception is thrown. If false then when multiple + * matches encountered the first match from the + * typeReferences array is used as deserialization result. + * @param typeReferences the types of the oneOf subschemas. When strict is false + * the first matching member of this array will be the + * type of the deserialization result. + */ + protected OneOfDeserializer(Class cls, boolean strict, TypeReferenceWithShape... typeReferences) { super(cls); this.typeReferences= Arrays.asList(typeReferences); this.cls = cls; + this.strict = strict; this.mapper = JSON.getMapper(); } @Override public T deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { - return deserializeOneOf(mapper, p, ctxt, typeReferences, cls); + return deserializeOneOf(mapper, p, ctxt, typeReferences, cls, strict); } private static T deserializeOneOf(ObjectMapper mapper, JsonParser p, DeserializationContext ctxt, - List typeReferences, Class cls) throws IOException { + List typeReferences, Class cls, boolean strict) 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); + return deserializeOneOf(mapper, json, typeReferences, cls, ctxt, strict); } private static T deserializeOneOf(ObjectMapper mapper, String json, List typeReferences, Class cls, - DeserializationContext ctxt) throws JsonProcessingException { + DeserializationContext ctxt, boolean strict) throws JsonProcessingException { List> matches = new ArrayList<>(); for (TypeReferenceWithShape c : typeReferences) { // try to deserialize with each of the member classes @@ -84,8 +98,14 @@ public class OneOfDeserializer extends StdDeserializer { 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); + if (strict) { + throw JsonMappingException.from(ctxt, + "json matched more than one of the possible type references, matches are: " + + typeNames(matches) + " - json=\n" + json); + } else { + // return first match + return matches.get(0).value; + } } else { throw JsonMappingException.from(ctxt, "json did not match any of the possible type references: " + typeReferenceNames(typeReferences) + ", json=\n" + json); diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Options.java b/src/main/java/dev/plexapi/sdk/utils/Options.java similarity index 58% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Options.java rename to src/main/java/dev/plexapi/sdk/utils/Options.java index 1d8d1f6c..2977182d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Options.java +++ b/src/main/java/dev/plexapi/sdk/utils/Options.java @@ -1,13 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.util.Optional; import java.util.List; -import lukehagar.plexapi.plexapi.utils.Utils; - public class Options { @@ -15,14 +13,14 @@ public class Options { RETRY_CONFIG; } - private Optional retryConfig = Optional.empty(); + private Optional retryConfig = Optional.empty(); - private Options(Optional retryConfig) { + private Options(Optional retryConfig) { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; } - public Optional retryConfig() { + public Optional retryConfig() { return retryConfig; } @@ -38,17 +36,17 @@ public class Options { public final static class Builder { - private Optional retryConfig = Optional.empty(); + private Optional retryConfig = Optional.empty(); private Builder() {} - public Builder retryConfig(lukehagar.plexapi.plexapi.utils.RetryConfig retryConfig) throws IllegalArgumentException { + public Builder retryConfig(dev.plexapi.sdk.utils.RetryConfig retryConfig) throws IllegalArgumentException { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = Optional.of(retryConfig); return this; } - public Builder retryConfig(Optional retryConfig) throws IllegalArgumentException { + public Builder retryConfig(Optional retryConfig) throws IllegalArgumentException { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; return this; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/PathParamsMetadata.java b/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java similarity index 80% rename from src/main/java/lukehagar/plexapi/plexapi/utils/PathParamsMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java index 28194cb6..2ffc1c84 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/PathParamsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/QueryParameters.java b/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java similarity index 97% rename from src/main/java/lukehagar/plexapi/plexapi/utils/QueryParameters.java rename to src/main/java/dev/plexapi/sdk/utils/QueryParameters.java index 66ee386d..534d7a65 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/QueryParameters.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; import java.lang.reflect.Modifier; @@ -14,10 +14,7 @@ import java.util.stream.Collectors; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; -import lukehagar.plexapi.plexapi.utils.Utils.JsonShape; - import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; public class QueryParameters { diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/QueryParamsMetadata.java b/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java similarity index 80% rename from src/main/java/lukehagar/plexapi/plexapi/utils/QueryParamsMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java index ee861363..6a5d68ee 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/QueryParamsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/RequestBody.java b/src/main/java/dev/plexapi/sdk/utils/RequestBody.java similarity index 99% rename from src/main/java/lukehagar/plexapi/plexapi/utils/RequestBody.java rename to src/main/java/dev/plexapi/sdk/utils/RequestBody.java index 4b8a7844..a0af477a 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/RequestBody.java +++ b/src/main/java/dev/plexapi/sdk/utils/RequestBody.java @@ -1,11 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; -import java.io.InputStream; import java.io.UncheckedIOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/RequestMetadata.java b/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java similarity index 77% rename from src/main/java/lukehagar/plexapi/plexapi/utils/RequestMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java index aa34f336..e84698a1 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/RequestMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Response.java b/src/main/java/dev/plexapi/sdk/utils/Response.java similarity index 77% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Response.java rename to src/main/java/dev/plexapi/sdk/utils/Response.java index a60b385c..b0c01e97 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Response.java +++ b/src/main/java/dev/plexapi/sdk/utils/Response.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.InputStream; import java.net.http.HttpResponse; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Retries.java b/src/main/java/dev/plexapi/sdk/utils/Retries.java similarity index 97% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Retries.java rename to src/main/java/dev/plexapi/sdk/utils/Retries.java index f4540f02..57dd794b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Retries.java +++ b/src/main/java/dev/plexapi/sdk/utils/Retries.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.io.InputStream; @@ -10,10 +10,7 @@ import java.net.http.HttpResponse; import java.net.ConnectException; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; -import java.util.ArrayList; import java.util.List; -import java.util.Optional; - public class Retries { diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/RetryConfig.java b/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java similarity index 94% rename from src/main/java/lukehagar/plexapi/plexapi/utils/RetryConfig.java rename to src/main/java/dev/plexapi/sdk/utils/RetryConfig.java index 497a724f..98810df6 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/RetryConfig.java +++ b/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java @@ -1,12 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - public class RetryConfig { diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Security.java b/src/main/java/dev/plexapi/sdk/utils/Security.java similarity index 97% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Security.java rename to src/main/java/dev/plexapi/sdk/utils/Security.java index f0f1a984..8fe871ad 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Security.java +++ b/src/main/java/dev/plexapi/sdk/utils/Security.java @@ -1,15 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; - +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; import java.util.Base64; -import org.apache.http.message.BasicNameValuePair; - public final class Security { private Security() { diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/SecurityMetadata.java b/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java similarity index 79% rename from src/main/java/lukehagar/plexapi/plexapi/utils/SecurityMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java index 1f76210c..47db414d 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/SecurityMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/SerializedBody.java b/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java similarity index 82% rename from src/main/java/lukehagar/plexapi/plexapi/utils/SerializedBody.java rename to src/main/java/dev/plexapi/sdk/utils/SerializedBody.java index fff4ecde..16d9ce3b 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/SerializedBody.java +++ b/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.net.http.HttpRequest.BodyPublisher; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyHTTPClient.java b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java similarity index 83% rename from src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyHTTPClient.java rename to src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java index f7cce85a..7a335fdf 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; import java.net.URISyntaxException; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyMetadata.java b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java similarity index 73% rename from src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyMetadata.java rename to src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java index 7987b1ee..02d740f2 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/TypedObject.java b/src/main/java/dev/plexapi/sdk/utils/TypedObject.java similarity index 90% rename from src/main/java/lukehagar/plexapi/plexapi/utils/TypedObject.java rename to src/main/java/dev/plexapi/sdk/utils/TypedObject.java index 9a9f44d5..e456a20f 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/TypedObject.java +++ b/src/main/java/dev/plexapi/sdk/utils/TypedObject.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.IOException; @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import lukehagar.plexapi.plexapi.utils.Utils.JsonShape; +import dev.plexapi.sdk.utils.Utils.JsonShape; @JsonSerialize(using = TypedObject.Serializer.class) public class TypedObject { diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Types.java b/src/main/java/dev/plexapi/sdk/utils/Types.java similarity index 92% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Types.java rename to src/main/java/dev/plexapi/sdk/utils/Types.java index 85bfcbf4..4fd16795 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Types.java +++ b/src/main/java/dev/plexapi/sdk/utils/Types.java @@ -1,8 +1,8 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.util.HashSet; import java.util.List; diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Utils.java b/src/main/java/dev/plexapi/sdk/utils/Utils.java similarity index 97% rename from src/main/java/lukehagar/plexapi/plexapi/utils/Utils.java rename to src/main/java/dev/plexapi/sdk/utils/Utils.java index 8c19aa8f..efd3ca98 100644 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Utils.java +++ b/src/main/java/dev/plexapi/sdk/utils/Utils.java @@ -1,13 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package lukehagar.plexapi.plexapi.utils; +package dev.plexapi.sdk.utils; import java.io.InputStream; import java.io.ByteArrayInputStream; import java.io.IOException; import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.math.BigDecimal; import java.math.BigInteger; import java.net.URI; @@ -549,6 +551,10 @@ public final class Utils { return JSON.getMapper().readValue(json, typeReference); } + public static byte[] extractByteArrayFromBody(HttpResponse response) throws IOException { + return toByteArrayAndClose(response.body()); + } + public static byte[] toByteArrayAndClose(InputStream in) throws IOException { try { return IOUtils.toByteArray(in); @@ -1023,4 +1029,25 @@ public final class Utils { } return new String(hexChars); } + + @SuppressWarnings("unchecked") + public static String discriminatorToString(Object o) { + // expects o to be either an Optional, Enum (with a String value() method) + // or a String value + Class cls = o.getClass(); + if (cls.equals(Optional.class)) { + Optional a = (Optional) o; + return a.map(x -> discriminatorToString(x)).orElse(null); + } else if (cls.isEnum()) { + try { + Method m = cls.getMethod("value"); + return (String) m.invoke(o); + } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException + | InvocationTargetException e) { + throw new RuntimeException(e); + } + } else { + return (String) o; + } + } } 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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; - } -}