diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 130585cb..2cc2e6a1 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,17 +3,17 @@ id: 1732900d-e173-47c1-a90d-d45182eb35d9 management: docChecksum: 68de03e6e877c4fc50ebfdd47bb117ac docVersion: 0.0.3 - speakeasyVersion: 1.513.4 - generationVersion: 2.545.4 - releaseVersion: 0.13.1 - configChecksum: 39e28952431ec2bd258ad0fc42723ccf + speakeasyVersion: 1.526.6 + generationVersion: 2.563.1 + releaseVersion: 0.14.0 + configChecksum: 71169cb6f3e069af6b5d97957c9020e6 repoURL: https://github.com/LukeHagar/plexjava.git published: true features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.34.0 + core: 3.36.0 deprecations: 2.81.1 downloadStreams: 0.1.1 enums: 2.81.2 @@ -26,7 +26,7 @@ features: methodServerURLs: 2.82.1 nameOverrides: 2.81.3 nullables: 0.1.0 - sdkHooks: 0.1.0 + sdkHooks: 1.0.0 unions: 0.0.6 generatedFiles: - .gitattributes @@ -941,6 +941,7 @@ generatedFiles: - docs/sdks/users/README.md - docs/sdks/video/README.md - docs/sdks/watchlist/README.md + - gradle.properties - gradle/wrapper/gradle-wrapper.jar - gradle/wrapper/gradle-wrapper.properties - gradlew @@ -1951,6 +1952,7 @@ generatedFiles: - 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/HasSecurity.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 @@ -2353,7 +2355,7 @@ examples: X-Plex-Container-Size: 50 responses: "200": - application/json: {"MediaContainer": {"size": 50, "totalSize": 50, "offset": 0, "allowSync": false, "identifier": "com.plexapp.plugins.library", "Meta": {"Type": [{"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}, {"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}, {"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}], "FieldType": [{"type": "tag", "Operator": [{"key": "=", "title": "is"}]}, {"type": "tag", "Operator": []}, {"type": "tag", "Operator": []}]}, "Metadata": [{"addedAt": 1556281940, "art": "/library/metadata/58683/art/1703239236", "audienceRatingImage": "rottentomatoes://image.rating.upright", "audienceRating": 9.2, "chapterSource": "media", "childCount": 1, "contentRating": "PG-13", "createdAtAccuracy": "epoch,local", "createdAtTZOffset": "0", "duration": 11558112, "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentRatingKey": "66", "grandparentSlug": "alice-in-borderland-2020", "grandparentTheme": "/library/metadata/66/theme/1705716261", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentTitle": "Caprica", "guid": "plex://movie/5d7768ba96b655001fdc0408", "index": 1, "key": "/library/metadata/58683", "lastRatedAt": 1721813113, "lastViewedAt": 1682752242, "leafCount": 14, "librarySectionID": 1, "librarySectionKey": "/library/sections/1", "librarySectionTitle": "Movies", "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "originallyAvailableAt": "2022-12-14", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentIndex": 1, "parentKey": "/library/metadata/66", "parentRatingKey": "66", "parentSlug": "alice-in-borderland-2020", "parentStudio": "UCP", "parentTheme": "/library/metadata/66/theme/1705716261", "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTitle": "Caprica", "parentYear": 2010, "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "ratingKey": "58683", "rating": 7.6, "seasonCount": 2022, "skipCount": 1, "slug": "4-for-texas", "studio": "20th Century Studios", "subtype": "clip", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.\nOnce a familiar threat returns to finish what was previously started, Jake must\nwork with Neytiri and the army of the Na'vi race to protect their home.\n", "tagline": "Return to Pandora.", "theme": "/library/metadata/1/theme/1705636920", "thumb": "/library/metadata/58683/thumb/1703239236", "titleSort": "Whale", "title": "Avatar: The Way of Water", "type": "movie", "updatedAt": 1556281940, "userRating": 10, "viewCount": 1, "viewOffset": 5222500, "viewedLeafCount": 0, "year": 2022, "Image": [{"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}], "UltraBlurColors": {"topLeft": "11333b", "topRight": "0a232d", "bottomRight": "73958", "bottomLeft": "1f5066"}, "Media": [{"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": 1, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": true, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}], "Genre": [{"id": 259, "filter": "genre=19", "tag": "Crime"}], "Country": [{"id": 259, "tag": "United States of America", "filter": "country=19"}], "Director": [{"tag": "Danny Boyle"}, {"tag": "Danny Boyle"}], "Writer": [{"id": 126522, "filter": "writer=126522", "tag": "Jamie P. Hanson", "tagKey": "5d77683d85719b001f3a535e"}], "Role": [{"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Producer": [{"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Rating": [{"image": "imdb://image.rating", "value": 5.1, "type": "audience"}, {"image": "imdb://image.rating", "value": 5.1, "type": "audience"}, {"image": "imdb://image.rating", "value": 5.1, "type": "audience"}], "Similar": [{"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}], "Location": [{"path": "/TV Shows/Clarkson's Farm"}, {"path": "/TV Shows/Clarkson's Farm"}, {"path": "/TV Shows/Clarkson's Farm"}], "Guid": [{"id": "tvdb://2337"}], "Collection": [{"tag": "My Awesome Collection"}]}, {"addedAt": 1556281940, "art": "/library/metadata/58683/art/1703239236", "audienceRatingImage": "rottentomatoes://image.rating.upright", "audienceRating": 9.2, "chapterSource": "media", "childCount": 1, "contentRating": "PG-13", "createdAtAccuracy": "epoch,local", "createdAtTZOffset": "0", "duration": 11558112, "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentRatingKey": "66", "grandparentSlug": "alice-in-borderland-2020", "grandparentTheme": "/library/metadata/66/theme/1705716261", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentTitle": "Caprica", "guid": "plex://movie/5d7768ba96b655001fdc0408", "index": 1, "key": "/library/metadata/58683", "lastRatedAt": 1721813113, "lastViewedAt": 1682752242, "leafCount": 14, "librarySectionID": 1, "librarySectionKey": "/library/sections/1", "librarySectionTitle": "Movies", "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "originallyAvailableAt": "2022-12-14", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentIndex": 1, "parentKey": "/library/metadata/66", "parentRatingKey": "66", "parentSlug": "alice-in-borderland-2020", "parentStudio": "UCP", "parentTheme": "/library/metadata/66/theme/1705716261", "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTitle": "Caprica", "parentYear": 2010, "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "ratingKey": "58683", "rating": 7.6, "seasonCount": 2022, "skipCount": 1, "slug": "4-for-texas", "studio": "20th Century Studios", "subtype": "clip", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.\nOnce a familiar threat returns to finish what was previously started, Jake must\nwork with Neytiri and the army of the Na'vi race to protect their home.\n", "tagline": "Return to Pandora.", "theme": "/library/metadata/1/theme/1705636920", "thumb": "/library/metadata/58683/thumb/1703239236", "titleSort": "Whale", "title": "Avatar: The Way of Water", "type": "movie", "updatedAt": 1556281940, "userRating": 10, "viewCount": 1, "viewOffset": 5222500, "viewedLeafCount": 0, "year": 2022, "Image": [{"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}, {"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}, {"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}], "UltraBlurColors": {"topLeft": "11333b", "topRight": "0a232d", "bottomRight": "73958", "bottomLeft": "1f5066"}, "Media": [{"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": []}, {"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": false, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": false, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}, {"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": false, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": 0, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}], "Genre": [{"id": 259, "filter": "genre=19", "tag": "Crime"}], "Country": [{"id": 259, "tag": "United States of America", "filter": "country=19"}], "Director": [{"tag": "Danny Boyle"}, {"tag": "Danny Boyle"}], "Writer": [{"id": 126522, "filter": "writer=126522", "tag": "Jamie P. Hanson", "tagKey": "5d77683d85719b001f3a535e"}], "Role": [{"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Producer": [{"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Rating": [{"image": "imdb://image.rating", "value": 5.1, "type": "audience"}], "Similar": [{"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}], "Location": [{"path": "/TV Shows/Clarkson's Farm"}], "Guid": [{"id": "tvdb://2337"}, {"id": "tvdb://2337"}], "Collection": [{"tag": "My Awesome Collection"}, {"tag": "My Awesome Collection"}]}]}} + application/json: {"MediaContainer": {"size": 50, "totalSize": 50, "offset": 0, "allowSync": false, "identifier": "com.plexapp.plugins.library", "Meta": {"Type": [{"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}, {"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}, {"key": "/library/sections/2/all?type=2", "type": "filter", "subtype": "clip", "title": "TV Shows", "active": false, "Filter": [{"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}, {"filter": "genre", "filterType": "string", "key": "/library/sections/2/genre?type=2", "title": "Genre", "type": "filter", "advanced": true}], "Sort": [{"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}, {"default": "asc", "active": false, "activeDirection": "asc", "defaultDirection": "asc", "descKey": "titleSort:desc", "firstCharacterKey": "/library/sections/2/firstCharacter", "key": "titleSort", "title": "Title"}], "Field": [{"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}, {"key": "show.title", "title": "Show Title", "type": "string", "subType": "rating"}]}], "FieldType": [{"type": "tag", "Operator": [{"key": "=", "title": "is"}]}, {"type": "tag", "Operator": []}, {"type": "tag", "Operator": []}]}, "Metadata": [{"addedAt": 1556281940, "art": "/library/metadata/58683/art/1703239236", "audienceRatingImage": "rottentomatoes://image.rating.upright", "audienceRating": 9.2, "chapterSource": "media", "childCount": 1, "contentRating": "PG-13", "createdAtAccuracy": "epoch,local", "createdAtTZOffset": "0", "duration": 11558112, "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentRatingKey": "66", "grandparentSlug": "alice-in-borderland-2020", "grandparentTheme": "/library/metadata/66/theme/1705716261", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentTitle": "Caprica", "guid": "plex://movie/5d7768ba96b655001fdc0408", "index": 1, "key": "/library/metadata/58683", "lastRatedAt": 1721813113, "lastViewedAt": 1682752242, "leafCount": 14, "librarySectionID": 1, "librarySectionKey": "/library/sections/1", "librarySectionTitle": "Movies", "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "originallyAvailableAt": "2022-12-14", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentIndex": 1, "parentKey": "/library/metadata/66", "parentRatingKey": "66", "parentSlug": "alice-in-borderland-2020", "parentStudio": "UCP", "parentTheme": "/library/metadata/66/theme/1705716261", "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTitle": "Caprica", "parentYear": 2010, "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "ratingKey": "58683", "rating": 7.6, "seasonCount": 2022, "skipCount": 1, "slug": "4-for-texas", "studio": "20th Century Studios", "subtype": "clip", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.\nOnce a familiar threat returns to finish what was previously started, Jake must\nwork with Neytiri and the army of the Na'vi race to protect their home.\n", "tagline": "Return to Pandora.", "theme": "/library/metadata/1/theme/1705636920", "thumb": "/library/metadata/58683/thumb/1703239236", "titleSort": "Whale", "title": "Avatar: The Way of Water", "type": "movie", "updatedAt": 1556281940, "userRating": 10, "viewCount": 1, "viewOffset": 5222500, "viewedLeafCount": 0, "year": 2022, "Image": [{"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}], "UltraBlurColors": {"topLeft": "11333b", "topRight": "0a232d", "bottomRight": "73958", "bottomLeft": "1f5066"}, "Media": [{"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": 1, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": true, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}], "Genre": [{"id": 259, "filter": "genre=19", "tag": "Crime"}], "Country": [{"id": 259, "tag": "United States of America", "filter": "country=19"}], "Director": [{"tag": "Danny Boyle"}, {"tag": "Danny Boyle"}], "Writer": [{"id": 126522, "filter": "writer=126522", "tag": "Jamie P. Hanson", "tagKey": "5d77683d85719b001f3a535e"}], "Role": [{"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Producer": [{"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Rating": [{"image": "imdb://image.rating", "value": 5.1, "type": "audience"}, {"image": "imdb://image.rating", "value": 5.1, "type": "audience"}, {"image": "imdb://image.rating", "value": 5.1, "type": "audience"}], "Similar": [{"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}], "Location": [{"path": "/TV Shows/Clarkson's Farm"}, {"path": "/TV Shows/Clarkson's Farm"}, {"path": "/TV Shows/Clarkson's Farm"}], "Guid": [{"id": "tvdb://2337"}], "Collection": [{"tag": "My Awesome Collection"}]}, {"addedAt": 1556281940, "art": "/library/metadata/58683/art/1703239236", "audienceRatingImage": "rottentomatoes://image.rating.upright", "audienceRating": 9.2, "chapterSource": "media", "childCount": 1, "contentRating": "PG-13", "createdAtAccuracy": "epoch,local", "createdAtTZOffset": "0", "duration": 11558112, "grandparentArt": "/library/metadata/66/art/1705716261", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentKey": "/library/metadata/66", "grandparentRatingKey": "66", "grandparentSlug": "alice-in-borderland-2020", "grandparentTheme": "/library/metadata/66/theme/1705716261", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentTitle": "Caprica", "guid": "plex://movie/5d7768ba96b655001fdc0408", "index": 1, "key": "/library/metadata/58683", "lastRatedAt": 1721813113, "lastViewedAt": 1682752242, "leafCount": 14, "librarySectionID": 1, "librarySectionKey": "/library/sections/1", "librarySectionTitle": "Movies", "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "originallyAvailableAt": "2022-12-14", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "parentIndex": 1, "parentKey": "/library/metadata/66", "parentRatingKey": "66", "parentSlug": "alice-in-borderland-2020", "parentStudio": "UCP", "parentTheme": "/library/metadata/66/theme/1705716261", "parentThumb": "/library/metadata/66/thumb/1705716261", "parentTitle": "Caprica", "parentYear": 2010, "primaryExtraKey": "/library/metadata/58684", "ratingImage": "rottentomatoes://image.rating.ripe", "ratingKey": "58683", "rating": 7.6, "seasonCount": 2022, "skipCount": 1, "slug": "4-for-texas", "studio": "20th Century Studios", "subtype": "clip", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.\nOnce a familiar threat returns to finish what was previously started, Jake must\nwork with Neytiri and the army of the Na'vi race to protect their home.\n", "tagline": "Return to Pandora.", "theme": "/library/metadata/1/theme/1705636920", "thumb": "/library/metadata/58683/thumb/1703239236", "titleSort": "Whale", "title": "Avatar: The Way of Water", "type": "movie", "updatedAt": 1556281940, "userRating": 10, "viewCount": 1, "viewOffset": 5222500, "viewedLeafCount": 0, "year": 2022, "Image": [{"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}, {"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}, {"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}], "UltraBlurColors": {"topLeft": "11333b", "topRight": "0a232d", "bottomRight": "73958", "bottomLeft": "1f5066"}, "Media": [{"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": []}, {"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": 1, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": true, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}, {"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "eac3", "videoCodec": "hevc", "videoResolution": "4k", "container": "mkv", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "optimizedForStreaming": 1, "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": false, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}, {"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "optimizedForStreaming": false, "hasThumbnail": "1", "Stream": [{"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}, {"id": 1002625, "streamType": 1, "default": true, "codec": "hevc", "index": 0, "bitrate": 24743, "language": "English", "languageTag": "en", "languageCode": "eng", "headerCompression": true, "DOVIBLCompatID": 1, "DOVIBLPresent": true, "DOVIELPresent": false, "DOVILevel": 6, "DOVIPresent": true, "DOVIProfile": 8, "DOVIRPUPresent": true, "DOVIVersion": "1.0", "bitDepth": 10, "chromaLocation": "topleft", "chromaSubsampling": "4:2:0", "codedHeight": 1608, "codedWidth": 3840, "closedCaptions": true, "colorPrimaries": "bt2020", "colorRange": "tv", "colorSpace": "bt2020nc", "colorTrc": "smpte2084", "frameRate": 23.976, "height": 1602, "level": 150, "original": true, "hasScalingMatrix": false, "profile": "main 10", "scanType": "progressive", "embeddedInVideo": "progressive", "refFrames": 1, "width": 3840, "displayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "extendedDisplayTitle": "4K DoVi/HDR10 (HEVC Main 10)", "selected": true, "forced": true, "channels": 6, "audioChannelLayout": "5.1(side)", "samplingRate": 48000, "canAutoSync": false, "hearingImpaired": true, "dub": true, "title": "SDH"}]}]}], "Genre": [{"id": 259, "filter": "genre=19", "tag": "Crime"}], "Country": [{"id": 259, "tag": "United States of America", "filter": "country=19"}], "Director": [{"tag": "Danny Boyle"}, {"tag": "Danny Boyle"}], "Writer": [{"id": 126522, "filter": "writer=126522", "tag": "Jamie P. Hanson", "tagKey": "5d77683d85719b001f3a535e"}], "Role": [{"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}, {"id": 126522, "filter": "actor=126522", "tag": "Teller", "tagKey": "5d77683d85719b001f3a535e", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Producer": [{"id": 126522, "filter": "producer=126522", "tag": "Amelia Knapp", "tagKey": "5d77683d85719b001f3a535e", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Rating": [{"image": "imdb://image.rating", "value": 5.1, "type": "audience"}], "Similar": [{"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}, {"id": 259, "filter": "similar=259", "tag": "Criss Angel Mindfreak"}], "Location": [{"path": "/TV Shows/Clarkson's Farm"}], "Guid": [{"id": "tvdb://2337"}, {"id": "tvdb://2337"}], "Collection": [{"tag": "My Awesome Collection"}, {"tag": "My Awesome Collection"}]}]}} getLibraryHubs: speakeasy-default-get-library-hubs: parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 21ec7269..39f9637c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false java: - version: 0.13.1 + version: 0.14.0 additionalDependencies: [] additionalPlugins: [] artifactID: plexapi diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bf3806b9..3f919e66 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.513.4 +speakeasyVersion: 1.526.6 sources: my-source: sourceNamespace: my-source @@ -8,19 +8,19 @@ sources: - latest plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4 + sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351 tags: - latest - - speakeasy-sdk-regen-1741479884 + - speakeasy-sdk-regen-1743440866 targets: plexjava: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4 + sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351 codeSamplesNamespace: code-samples-java-plexjava - codeSamplesRevisionDigest: sha256:4064f5ad7cfcedb8f9c65f1154bc2cdf5c92ebf8c60ba752d5537bb5692305e7 + codeSamplesRevisionDigest: sha256:efd9a529c906a73b2d32257e52235b87cdb19f16486800f6eb2172eec9454726 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -42,3 +42,5 @@ workflow: output: codeSamples.yaml registry: location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-java-plexjava + labelOverride: + fixedValue: PlexJava diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 1ac9e0c8..80b4b234 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -15,8 +15,8 @@ targets: gpgSecretKey: $java_gpg_secret_key gpgPassPhrase: $java_gpg_passphrase codeSamples: - labelOverride: - fixedValue: PlexJava output: codeSamples.yaml registry: location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-java-plexjava + labelOverride: + fixedValue: PlexJava diff --git a/README.md b/README.md index 6296be00..da7827e3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'dev.plexapi:plexapi:0.13.1' +implementation 'dev.plexapi:plexapi:0.14.0' ``` Maven: @@ -77,7 +77,7 @@ Maven: dev.plexapi plexapi - 0.13.1 + 0.14.0 ``` @@ -332,6 +332,7 @@ The default server `{protocol}://{ip}:{port}` contains variables and is set to ` package hello.world; import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.SDK.Builder.ServerProtocol; import dev.plexapi.sdk.models.errors.GetServerCapabilitiesBadRequest; import dev.plexapi.sdk.models.errors.GetServerCapabilitiesUnauthorized; import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse; @@ -342,7 +343,7 @@ public class Application { public static void main(String[] args) throws GetServerCapabilitiesBadRequest, GetServerCapabilitiesUnauthorized, Exception { PlexAPI sdk = PlexAPI.builder() - .protocol("https") + .protocol(ServerProtocol.HTTPS) .ip("e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9") .port("40311") .accessToken("") diff --git a/RELEASES.md b/RELEASES.md index a0d83153..07792d87 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -278,4 +278,14 @@ Based on: ### Generated - [java v0.13.1] . ### Releases -- [Maven Central v0.13.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.1 - . \ No newline at end of file +- [Maven Central v0.13.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.1 - . + +## 2025-03-31 17:07:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.14.0] . +### Releases +- [Maven Central v0.14.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.14.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 51df87c2..f11d9113 100644 --- a/build.gradle +++ b/build.gradle @@ -39,9 +39,12 @@ model { } } +version = "${version}" +group = "${groupId}" + jar { dependsOn(":generatePomFileForMavenPublication") - archiveBaseName = "plexapi" + archiveBaseName = "${artifactId}" into("META-INF/maven/dev.plexapi/plexapi") { from("$buildDir/pom.xml") @@ -62,15 +65,12 @@ tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') } -group = "dev.plexapi" -version = "0.13.1" - sourcesJar { - archiveBaseName = "plexapi" + archiveBaseName = "${artifactId}" } javadocJar { - archiveBaseName = "plexapi" + archiveBaseName = "${artifactId}" } sonatypeCentralUpload { // This is your Sonatype generated username @@ -80,9 +80,9 @@ sonatypeCentralUpload { // This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central) archives = files( - "$buildDir/libs/plexapi-${version}.jar", - "$buildDir/libs/plexapi-${version}-sources.jar", - "$buildDir/libs/plexapi-${version}-javadoc.jar" + "$buildDir/libs/${artifactId}-${version}.jar", + "$buildDir/libs/${artifactId}-${version}-sources.jar", + "$buildDir/libs/${artifactId}-${version}-javadoc.jar" ) // This is the pom file to upload. This is required by central @@ -99,9 +99,11 @@ publishing { publications { maven(MavenPublication) { - groupId = 'dev.plexapi' - artifactId = 'plexapi' - version = '0.13.1' + // note that properties can't yet be used below! + // https://github.com/gradle/gradle/issues/18619 + groupId = "dev.plexapi" + artifactId = "plexapi" + version = "0.14.0" from components.java diff --git a/codeSamples.yaml b/codeSamples.yaml index 71e028db..8da02166 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -7,7 +7,7 @@ actions: update: x-codeSamples: - lang: java - label: getServerCapabilities + label: PlexJava source: |- package hello.world; @@ -37,7 +37,7 @@ actions: update: x-codeSamples: - lang: java - label: getServerPreferences + label: PlexJava source: |- package hello.world; @@ -67,7 +67,7 @@ actions: update: x-codeSamples: - lang: java - label: updatePlayProgress + label: PlexJava source: |- package hello.world; @@ -87,7 +87,7 @@ actions: UpdatePlayProgressResponse res = sdk.media().updatePlayProgress() .key("") - .time(90000d) + .time(90000) .state("played") .call(); @@ -98,7 +98,7 @@ actions: update: x-codeSamples: - lang: java - label: markPlayed + label: PlexJava source: |- package hello.world; @@ -117,7 +117,7 @@ actions: .build(); MarkPlayedResponse res = sdk.media().markPlayed() - .key(59398d) + .key(59398) .call(); // handle response @@ -127,16 +127,14 @@ actions: update: x-codeSamples: - lang: java - label: getTimeline + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetTimelineBadRequest; import dev.plexapi.plexapi.models.errors.GetTimelineUnauthorized; - import dev.plexapi.plexapi.models.operations.GetTimelineRequest; - import dev.plexapi.plexapi.models.operations.GetTimelineResponse; - import dev.plexapi.plexapi.models.operations.State; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -148,16 +146,16 @@ actions: .build(); GetTimelineRequest req = GetTimelineRequest.builder() - .ratingKey(23409d) + .ratingKey(23409) .key("/library/metadata/23409") .state(State.PLAYING) - .hasMDE(1d) - .time(2000d) - .duration(10000d) + .hasMDE(1) + .time(2000) + .duration(10000) .context("home:hub.continueWatching") - .playQueueItemID(1d) - .playBackTime(2000d) - .row(1d) + .playQueueItemID(1) + .playBackTime(2000) + .row(1) .build(); GetTimelineResponse res = sdk.video().getTimeline() @@ -171,7 +169,7 @@ actions: update: x-codeSamples: - lang: java - label: markUnplayed + label: PlexJava source: |- package hello.world; @@ -190,7 +188,7 @@ actions: .build(); MarkUnplayedResponse res = sdk.media().markUnplayed() - .key(59398d) + .key(59398) .call(); // handle response @@ -200,7 +198,7 @@ actions: update: x-codeSamples: - lang: java - label: getServerActivities + label: PlexJava source: |- package hello.world; @@ -230,7 +228,7 @@ actions: update: x-codeSamples: - lang: java - label: cancelServerActivities + label: PlexJava source: |- package hello.world; @@ -259,7 +257,7 @@ actions: update: x-codeSamples: - lang: java - label: stopAllTasks + label: PlexJava source: |- package hello.world; @@ -287,7 +285,7 @@ actions: update: x-codeSamples: - lang: java - label: getButlerTasks + label: PlexJava source: |- package hello.world; @@ -317,7 +315,7 @@ actions: update: x-codeSamples: - lang: java - label: startAllTasks + label: PlexJava source: |- package hello.world; @@ -345,7 +343,7 @@ actions: update: x-codeSamples: - lang: java - label: stopTask + label: PlexJava source: |- package hello.world; @@ -375,7 +373,7 @@ actions: update: x-codeSamples: - lang: java - label: startTask + label: PlexJava source: |- package hello.world; @@ -405,7 +403,7 @@ actions: update: x-codeSamples: - lang: java - label: getAvailableClients + label: PlexJava source: |- package hello.world; @@ -435,7 +433,7 @@ actions: update: x-codeSamples: - lang: java - label: getCompanionsData + label: PlexJava source: |- package hello.world; @@ -465,7 +463,7 @@ actions: update: x-codeSamples: - lang: java - label: getDevices + label: PlexJava source: |- package hello.world; @@ -495,7 +493,7 @@ actions: update: x-codeSamples: - lang: java - label: getUserFriends + label: PlexJava source: |- package hello.world; @@ -525,7 +523,7 @@ actions: update: x-codeSamples: - lang: java - label: getGeoData + label: PlexJava source: |- package hello.world; @@ -554,7 +552,7 @@ actions: update: x-codeSamples: - lang: java - label: getHomeData + label: PlexJava source: |- package hello.world; @@ -584,7 +582,7 @@ actions: update: x-codeSamples: - lang: java - label: getGlobalHubs + label: PlexJava source: |- package hello.world; @@ -604,7 +602,7 @@ actions: .build(); GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs() - .count(1262.49d) + .count(1262.49) .onlyTransient(OnlyTransient.ONE) .call(); @@ -617,14 +615,12 @@ actions: update: x-codeSamples: - lang: java - label: get-recently-added + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; - import dev.plexapi.plexapi.models.operations.GetRecentlyAddedRequest; - import dev.plexapi.plexapi.models.operations.GetRecentlyAddedResponse; - import dev.plexapi.plexapi.models.operations.Type; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -654,7 +650,7 @@ actions: update: x-codeSamples: - lang: java - label: performSearch + label: PlexJava source: |- package hello.world; @@ -674,8 +670,8 @@ actions: PerformSearchResponse res = sdk.search().performSearch() .query("dylan") - .sectionId(9487.88d) - .limit(5d) + .sectionId(9487.88) + .limit(5) .call(); // handle response @@ -685,7 +681,7 @@ actions: update: x-codeSamples: - lang: java - label: performVoiceSearch + label: PlexJava source: |- package hello.world; @@ -705,8 +701,8 @@ actions: PerformVoiceSearchResponse res = sdk.search().performVoiceSearch() .query("dead+poop") - .sectionId(4094.8d) - .limit(5d) + .sectionId(4094.8) + .limit(5) .call(); // handle response @@ -716,7 +712,7 @@ actions: update: x-codeSamples: - lang: java - label: getLibraryHubs + label: PlexJava source: |- package hello.world; @@ -736,8 +732,8 @@ actions: .build(); GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs() - .sectionId(6728.76d) - .count(6728.76d) + .sectionId(6728.76) + .count(6728.76) .onlyTransient(QueryParamOnlyTransient.ZERO) .call(); @@ -750,7 +746,7 @@ actions: update: x-codeSamples: - lang: java - label: get-server-identity + label: PlexJava source: |- package hello.world; @@ -778,7 +774,7 @@ actions: update: x-codeSamples: - lang: java - label: getTopWatchedContent + label: PlexJava source: |- package hello.world; @@ -811,7 +807,7 @@ actions: update: x-codeSamples: - lang: java - label: getFileHash + label: PlexJava source: |- package hello.world; @@ -831,7 +827,7 @@ actions: GetFileHashResponse res = sdk.library().getFileHash() .url("file://C:\Image.png&type=13") - .type(4462.17d) + .type(4462.17) .call(); // handle response @@ -841,7 +837,7 @@ actions: update: x-codeSamples: - lang: java - label: get-media-meta-data + label: PlexJava source: |- package hello.world; @@ -890,7 +886,7 @@ actions: update: x-codeSamples: - lang: java - label: get-banner-image + label: PlexJava source: |- package hello.world; @@ -931,7 +927,7 @@ actions: update: x-codeSamples: - lang: java - label: getMetadataChildren + label: PlexJava source: |- package hello.world; @@ -950,7 +946,7 @@ actions: .build(); GetMetadataChildrenResponse res = sdk.library().getMetadataChildren() - .ratingKey(1539.14d) + .ratingKey(1539.14) .includeElements("Stream") .call(); @@ -963,7 +959,7 @@ actions: update: x-codeSamples: - lang: java - label: get-thumb-image + label: PlexJava source: |- package hello.world; @@ -1004,16 +1000,14 @@ actions: update: x-codeSamples: - lang: java - label: get-recently-added-library + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryBadRequest; import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryUnauthorized; - import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryRequest; - import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryResponse; - import dev.plexapi.plexapi.models.operations.QueryParamType; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; import java.util.List; @@ -1057,16 +1051,14 @@ actions: update: x-codeSamples: - lang: java - label: get-search-all-libraries + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesBadRequest; import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesUnauthorized; - import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesRequest; - import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesResponse; - import dev.plexapi.plexapi.models.operations.SearchTypes; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; import java.util.List; @@ -1098,7 +1090,7 @@ actions: update: x-codeSamples: - lang: java - label: get-all-libraries + label: PlexJava source: |- package hello.world; @@ -1128,16 +1120,14 @@ actions: update: x-codeSamples: - lang: java - label: get-watch-list + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetWatchListBadRequest; import dev.plexapi.plexapi.models.errors.GetWatchListUnauthorized; - import dev.plexapi.plexapi.models.operations.Filter; - import dev.plexapi.plexapi.models.operations.GetWatchListRequest; - import dev.plexapi.plexapi.models.operations.GetWatchListResponse; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1166,7 +1156,7 @@ actions: update: x-codeSamples: - lang: java - label: deleteLibrary + label: PlexJava source: |- package hello.world; @@ -1195,7 +1185,7 @@ actions: update: x-codeSamples: - lang: java - label: get-library-details + label: PlexJava source: |- package hello.world; @@ -1228,7 +1218,7 @@ actions: update: x-codeSamples: - lang: java - label: get-actors-library + label: PlexJava source: |- package hello.world; @@ -1261,16 +1251,14 @@ actions: update: x-codeSamples: - lang: java - label: get-all-media-library + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetAllMediaLibraryBadRequest; import dev.plexapi.plexapi.models.errors.GetAllMediaLibraryUnauthorized; - import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryQueryParamType; - import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryRequest; - import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryResponse; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1299,7 +1287,7 @@ actions: update: x-codeSamples: - lang: java - label: get-countries-library + label: PlexJava source: |- package hello.world; @@ -1332,7 +1320,7 @@ actions: update: x-codeSamples: - lang: java - label: get-genres-library + label: PlexJava source: |- package hello.world; @@ -1365,7 +1353,7 @@ actions: update: x-codeSamples: - lang: java - label: get-refresh-library-metadata + label: PlexJava source: |- package hello.world; @@ -1396,7 +1384,7 @@ actions: update: x-codeSamples: - lang: java - label: get-search-library + label: PlexJava source: |- package hello.world; @@ -1429,17 +1417,14 @@ actions: update: x-codeSamples: - lang: java - label: get-library-items + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetLibraryItemsBadRequest; import dev.plexapi.plexapi.models.errors.GetLibraryItemsUnauthorized; - import dev.plexapi.plexapi.models.operations.GetLibraryItemsQueryParamType; - import dev.plexapi.plexapi.models.operations.GetLibraryItemsRequest; - import dev.plexapi.plexapi.models.operations.GetLibraryItemsResponse; - import dev.plexapi.plexapi.models.operations.Tag; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1469,7 +1454,7 @@ actions: update: x-codeSamples: - lang: java - label: logLine + label: PlexJava source: |- package hello.world; @@ -1501,7 +1486,7 @@ actions: update: x-codeSamples: - lang: java - label: logMultiLine + label: PlexJava source: |- package hello.world; @@ -1533,7 +1518,7 @@ actions: update: x-codeSamples: - lang: java - label: enablePaperTrail + label: PlexJava source: |- package hello.world; @@ -1561,7 +1546,7 @@ actions: update: x-codeSamples: - lang: java - label: get-media-providers + label: PlexJava source: |- package hello.world; @@ -1592,7 +1577,7 @@ actions: update: x-codeSamples: - lang: java - label: getMyPlexAccount + label: PlexJava source: |- package hello.world; @@ -1622,17 +1607,14 @@ actions: update: x-codeSamples: - lang: java - label: getResizedPhoto + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetResizedPhotoBadRequest; import dev.plexapi.plexapi.models.errors.GetResizedPhotoUnauthorized; - 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 dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1644,10 +1626,10 @@ actions: .build(); GetResizedPhotoRequest req = GetResizedPhotoRequest.builder() - .width(110d) - .height(165d) + .width(110) + .height(165) .opacity(100L) - .blur(0d) + .blur(0) .minSize(MinSize.ONE) .upscale(Upscale.ONE) .url("/library/metadata/49564/thumb/1654258204") @@ -1664,7 +1646,7 @@ actions: update: x-codeSamples: - lang: java - label: getPin + label: PlexJava source: |- package hello.world; @@ -1702,7 +1684,7 @@ actions: update: x-codeSamples: - lang: java - label: getTokenByPinId + label: PlexJava source: |- package hello.world; @@ -1742,16 +1724,14 @@ actions: update: x-codeSamples: - lang: java - label: getPlaylists + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetPlaylistsBadRequest; import dev.plexapi.plexapi.models.errors.GetPlaylistsUnauthorized; - import dev.plexapi.plexapi.models.operations.GetPlaylistsResponse; - import dev.plexapi.plexapi.models.operations.PlaylistType; - import dev.plexapi.plexapi.models.operations.QueryParamSmart; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1776,17 +1756,14 @@ actions: update: x-codeSamples: - lang: java - label: createPlaylist + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.CreatePlaylistBadRequest; import dev.plexapi.plexapi.models.errors.CreatePlaylistUnauthorized; - 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 dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -1817,7 +1794,7 @@ actions: update: x-codeSamples: - lang: java - label: uploadPlaylist + label: PlexJava source: |- package hello.world; @@ -1849,7 +1826,7 @@ actions: update: x-codeSamples: - lang: java - label: deletePlaylist + label: PlexJava source: |- package hello.world; @@ -1868,7 +1845,7 @@ actions: .build(); DeletePlaylistResponse res = sdk.playlists().deletePlaylist() - .playlistID(216.22d) + .playlistID(216.22) .call(); // handle response @@ -1878,7 +1855,7 @@ actions: update: x-codeSamples: - lang: java - label: getPlaylist + label: PlexJava source: |- package hello.world; @@ -1897,7 +1874,7 @@ actions: .build(); GetPlaylistResponse res = sdk.playlists().getPlaylist() - .playlistID(4109.48d) + .playlistID(4109.48) .call(); if (res.object().isPresent()) { @@ -1909,7 +1886,7 @@ actions: update: x-codeSamples: - lang: java - label: updatePlaylist + label: PlexJava source: |- package hello.world; @@ -1928,7 +1905,7 @@ actions: .build(); UpdatePlaylistResponse res = sdk.playlists().updatePlaylist() - .playlistID(3915d) + .playlistID(3915) .title("") .summary("") .call(); @@ -1940,7 +1917,7 @@ actions: update: x-codeSamples: - lang: java - label: clearPlaylistContents + label: PlexJava source: |- package hello.world; @@ -1959,7 +1936,7 @@ actions: .build(); ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents() - .playlistID(1893.18d) + .playlistID(1893.18) .call(); // handle response @@ -1969,7 +1946,7 @@ actions: update: x-codeSamples: - lang: java - label: getPlaylistContents + label: PlexJava source: |- package hello.world; @@ -1989,7 +1966,7 @@ actions: .build(); GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents() - .playlistID(5004.46d) + .playlistID(5004.46) .type(GetPlaylistContentsQueryParamType.TvShow) .call(); @@ -2002,7 +1979,7 @@ actions: update: x-codeSamples: - lang: java - label: addPlaylistContents + label: PlexJava source: |- package hello.world; @@ -2021,9 +1998,9 @@ actions: .build(); AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents() - .playlistID(8502.01d) + .playlistID(8502.01) .uri("server://12345/com.plexapp.plugins.library/library/metadata/1") - .playQueueID(123d) + .playQueueID(123) .call(); if (res.object().isPresent()) { @@ -2035,17 +2012,14 @@ actions: update: x-codeSamples: - lang: java - label: get-server-resources + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetServerResourcesBadRequest; import dev.plexapi.plexapi.models.errors.GetServerResourcesUnauthorized; - 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 dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -2072,7 +2046,7 @@ actions: update: x-codeSamples: - lang: java - label: getSearchResults + label: PlexJava source: |- package hello.world; @@ -2103,7 +2077,7 @@ actions: update: x-codeSamples: - lang: java - label: getSourceConnectionInformation + label: PlexJava source: |- package hello.world; @@ -2132,16 +2106,14 @@ actions: update: x-codeSamples: - lang: java - label: getTransientToken + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.GetTransientTokenBadRequest; import dev.plexapi.plexapi.models.errors.GetTransientTokenUnauthorized; - import dev.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType; - import dev.plexapi.plexapi.models.operations.GetTransientTokenResponse; - import dev.plexapi.plexapi.models.operations.Scope; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -2164,7 +2136,7 @@ actions: update: x-codeSamples: - lang: java - label: getServerList + label: PlexJava source: |- package hello.world; @@ -2194,7 +2166,7 @@ actions: update: x-codeSamples: - lang: java - label: getBandwidthStatistics + label: PlexJava source: |- package hello.world; @@ -2225,7 +2197,7 @@ actions: update: x-codeSamples: - lang: java - label: getStatistics + label: PlexJava source: |- package hello.world; @@ -2256,7 +2228,7 @@ actions: update: x-codeSamples: - lang: java - label: getResourcesStatistics + label: PlexJava source: |- package hello.world; @@ -2287,7 +2259,7 @@ actions: update: x-codeSamples: - lang: java - label: getSessions + label: PlexJava source: |- package hello.world; @@ -2317,7 +2289,7 @@ actions: update: x-codeSamples: - lang: java - label: getSessionHistory + label: PlexJava source: |- package hello.world; @@ -2353,7 +2325,7 @@ actions: update: x-codeSamples: - lang: java - label: getTranscodeSessions + label: PlexJava source: |- package hello.world; @@ -2383,7 +2355,7 @@ actions: update: x-codeSamples: - lang: java - label: stopTranscodeSession + label: PlexJava source: |- package hello.world; @@ -2412,16 +2384,14 @@ actions: update: x-codeSamples: - lang: java - label: applyUpdates + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.ApplyUpdatesBadRequest; import dev.plexapi.plexapi.models.errors.ApplyUpdatesUnauthorized; - import dev.plexapi.plexapi.models.operations.ApplyUpdatesResponse; - import dev.plexapi.plexapi.models.operations.Skip; - import dev.plexapi.plexapi.models.operations.Tonight; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -2444,7 +2414,7 @@ actions: update: x-codeSamples: - lang: java - label: checkForUpdates + label: PlexJava source: |- package hello.world; @@ -2474,7 +2444,7 @@ actions: update: x-codeSamples: - lang: java - label: getUpdateStatus + label: PlexJava source: |- package hello.world; @@ -2504,7 +2474,7 @@ actions: update: x-codeSamples: - lang: java - label: getTokenDetails + label: PlexJava source: |- package hello.world; @@ -2534,7 +2504,7 @@ actions: update: x-codeSamples: - lang: java - label: get-users + label: PlexJava source: |- package hello.world; @@ -2581,16 +2551,14 @@ actions: update: x-codeSamples: - lang: java - label: post-users-sign-in-data + label: PlexJava source: |- package hello.world; import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.models.errors.PostUsersSignInDataBadRequest; import dev.plexapi.plexapi.models.errors.PostUsersSignInDataUnauthorized; - import dev.plexapi.plexapi.models.operations.PostUsersSignInDataRequest; - import dev.plexapi.plexapi.models.operations.PostUsersSignInDataRequestBody; - import dev.plexapi.plexapi.models.operations.PostUsersSignInDataResponse; + import dev.plexapi.plexapi.models.operations.*; import java.lang.Exception; public class Application { @@ -2626,7 +2594,7 @@ actions: update: x-codeSamples: - lang: java - label: startUniversalTranscode + label: PlexJava source: |- package hello.world; @@ -2646,22 +2614,22 @@ actions: .build(); StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder() - .hasMDE(1d) + .hasMDE(1) .path("/library/metadata/23409") - .mediaIndex(0d) - .partIndex(0d) + .mediaIndex(0) + .partIndex(0) .protocol("hls") - .fastSeek(0d) - .directPlay(0d) - .directStream(0d) - .subtitleSize(100d) + .fastSeek(0) + .directPlay(0) + .directStream(0) + .subtitleSize(100) .subtites("burn") - .audioBoost(100d) + .audioBoost(100) .location("lan") - .mediaBufferSize(102400d) + .mediaBufferSize(102400) .session("zvcage8b7rkioqcm8f4uns4c") - .addDebugOverlay(0d) - .autoAdjustQuality(0d) + .addDebugOverlay(0) + .autoAdjustQuality(0) .build(); StartUniversalTranscodeResponse res = sdk.video().startUniversalTranscode() diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index ad9d3c98..9e7b8567 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -26,9 +26,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetTransientTokenBadRequest; import dev.plexapi.sdk.models.errors.GetTransientTokenUnauthorized; -import dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType; -import dev.plexapi.sdk.models.operations.GetTransientTokenResponse; -import dev.plexapi.sdk.models.operations.Scope; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -183,9 +181,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.PostUsersSignInDataBadRequest; import dev.plexapi.sdk.models.errors.PostUsersSignInDataUnauthorized; -import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequest; -import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody; -import dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index e35da521..142f6b2b 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -37,7 +37,7 @@ public class Application { .build(); GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs() - .count(1262.49d) + .count(1262.49) .onlyTransient(OnlyTransient.ONE) .call(); @@ -78,9 +78,7 @@ This endpoint will return the recently added content. package hello.world; import dev.plexapi.sdk.PlexAPI; -import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest; -import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse; -import dev.plexapi.sdk.models.operations.Type; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -150,8 +148,8 @@ public class Application { .build(); GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs() - .sectionId(6728.76d) - .count(6728.76d) + .sectionId(6728.76) + .count(6728.76) .onlyTransient(QueryParamOnlyTransient.ZERO) .call(); diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 227aa718..9dd0d634 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -50,7 +50,7 @@ public class Application { GetFileHashResponse res = sdk.library().getFileHash() .url("file://C:\Image.png&type=13") - .type(4462.17d) + .type(4462.17) .call(); // handle response @@ -90,9 +90,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryBadRequest; import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized; -import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest; -import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse; -import dev.plexapi.sdk.models.operations.QueryParamType; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; import java.util.List; @@ -380,10 +378,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest; import dev.plexapi.sdk.models.errors.GetLibraryItemsUnauthorized; -import dev.plexapi.sdk.models.operations.GetLibraryItemsQueryParamType; -import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest; -import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse; -import dev.plexapi.sdk.models.operations.Tag; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -442,9 +437,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetAllMediaLibraryBadRequest; import dev.plexapi.sdk.models.errors.GetAllMediaLibraryUnauthorized; -import dev.plexapi.sdk.models.operations.GetAllMediaLibraryQueryParamType; -import dev.plexapi.sdk.models.operations.GetAllMediaLibraryRequest; -import dev.plexapi.sdk.models.operations.GetAllMediaLibraryResponse; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -797,9 +790,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesBadRequest; import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesUnauthorized; -import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesRequest; -import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesResponse; -import dev.plexapi.sdk.models.operations.SearchTypes; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; import java.util.List; @@ -943,7 +934,7 @@ public class Application { .build(); GetMetadataChildrenResponse res = sdk.library().getMetadataChildren() - .ratingKey(1539.14d) + .ratingKey(1539.14) .includeElements("Stream") .call(); diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index b45d4ce1..f0057e69 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -38,7 +38,7 @@ public class Application { .build(); MarkPlayedResponse res = sdk.media().markPlayed() - .key(59398d) + .key(59398) .call(); // handle response @@ -88,7 +88,7 @@ public class Application { .build(); MarkUnplayedResponse res = sdk.media().markUnplayed() - .key(59398d) + .key(59398) .call(); // handle response @@ -140,7 +140,7 @@ public class Application { UpdatePlayProgressResponse res = sdk.media().updatePlayProgress() .key("") - .time(90000d) + .time(90000) .state("played") .call(); diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 267697cb..d14189fb 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -36,10 +36,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.CreatePlaylistBadRequest; import dev.plexapi.sdk.models.errors.CreatePlaylistUnauthorized; -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 dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -98,9 +95,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetPlaylistsBadRequest; import dev.plexapi.sdk.models.errors.GetPlaylistsUnauthorized; -import dev.plexapi.sdk.models.operations.GetPlaylistsResponse; -import dev.plexapi.sdk.models.operations.PlaylistType; -import dev.plexapi.sdk.models.operations.QueryParamSmart; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -168,7 +163,7 @@ public class Application { .build(); GetPlaylistResponse res = sdk.playlists().getPlaylist() - .playlistID(4109.48d) + .playlistID(4109.48) .call(); if (res.object().isPresent()) { @@ -221,7 +216,7 @@ public class Application { .build(); DeletePlaylistResponse res = sdk.playlists().deletePlaylist() - .playlistID(216.22d) + .playlistID(216.22) .call(); // handle response @@ -272,7 +267,7 @@ public class Application { .build(); UpdatePlaylistResponse res = sdk.playlists().updatePlaylist() - .playlistID(3915d) + .playlistID(3915) .title("") .summary("") .call(); @@ -331,7 +326,7 @@ public class Application { .build(); GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents() - .playlistID(5004.46d) + .playlistID(5004.46) .type(GetPlaylistContentsQueryParamType.TvShow) .call(); @@ -386,7 +381,7 @@ public class Application { .build(); ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents() - .playlistID(1893.18d) + .playlistID(1893.18) .call(); // handle response @@ -438,9 +433,9 @@ public class Application { .build(); AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents() - .playlistID(8502.01d) + .playlistID(8502.01) .uri("server://12345/com.plexapp.plugins.library/library/metadata/1") - .playQueueID(123d) + .playQueueID(123) .call(); if (res.object().isPresent()) { diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index d698c7be..5ade8181 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -225,10 +225,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetServerResourcesBadRequest; import dev.plexapi.sdk.models.errors.GetServerResourcesUnauthorized; -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 dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 30287e40..ff739728 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -49,8 +49,8 @@ public class Application { PerformSearchResponse res = sdk.search().performSearch() .query("dylan") - .sectionId(9487.88d) - .limit(5d) + .sectionId(9487.88) + .limit(5) .call(); // handle response @@ -107,8 +107,8 @@ public class Application { PerformVoiceSearchResponse res = sdk.search().performVoiceSearch() .query("dead+poop") - .sectionId(4094.8d) - .limit(5d) + .sectionId(4094.8) + .limit(5) .call(); // handle response diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 01e3a16e..c892151c 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -298,10 +298,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetResizedPhotoBadRequest; import dev.plexapi.sdk.models.errors.GetResizedPhotoUnauthorized; -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 dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -313,10 +310,10 @@ public class Application { .build(); GetResizedPhotoRequest req = GetResizedPhotoRequest.builder() - .width(110d) - .height(165d) + .width(110) + .height(165) .opacity(100L) - .blur(0d) + .blur(0) .minSize(MinSize.ONE) .upscale(Upscale.ONE) .url("/library/metadata/49564/thumb/1654258204") diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index 2ebccc7e..a9c37caf 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -122,9 +122,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.ApplyUpdatesBadRequest; import dev.plexapi.sdk.models.errors.ApplyUpdatesUnauthorized; -import dev.plexapi.sdk.models.operations.ApplyUpdatesResponse; -import dev.plexapi.sdk.models.operations.Skip; -import dev.plexapi.sdk.models.operations.Tonight; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index a9060df8..9f024a20 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -23,9 +23,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetTimelineBadRequest; import dev.plexapi.sdk.models.errors.GetTimelineUnauthorized; -import dev.plexapi.sdk.models.operations.GetTimelineRequest; -import dev.plexapi.sdk.models.operations.GetTimelineResponse; -import dev.plexapi.sdk.models.operations.State; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { @@ -37,16 +35,16 @@ public class Application { .build(); GetTimelineRequest req = GetTimelineRequest.builder() - .ratingKey(23409d) + .ratingKey(23409) .key("/library/metadata/23409") .state(State.PLAYING) - .hasMDE(1d) - .time(2000d) - .duration(10000d) + .hasMDE(1) + .time(2000) + .duration(10000) .context("home:hub.continueWatching") - .playQueueItemID(1d) - .playBackTime(2000d) - .row(1d) + .playQueueItemID(1) + .playBackTime(2000) + .row(1) .build(); GetTimelineResponse res = sdk.video().getTimeline() @@ -101,22 +99,22 @@ public class Application { .build(); StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder() - .hasMDE(1d) + .hasMDE(1) .path("/library/metadata/23409") - .mediaIndex(0d) - .partIndex(0d) + .mediaIndex(0) + .partIndex(0) .protocol("hls") - .fastSeek(0d) - .directPlay(0d) - .directStream(0d) - .subtitleSize(100d) + .fastSeek(0) + .directPlay(0) + .directStream(0) + .subtitleSize(100) .subtites("burn") - .audioBoost(100d) + .audioBoost(100) .location("lan") - .mediaBufferSize(102400d) + .mediaBufferSize(102400) .session("zvcage8b7rkioqcm8f4uns4c") - .addDebugOverlay(0d) - .autoAdjustQuality(0d) + .addDebugOverlay(0) + .autoAdjustQuality(0) .build(); StartUniversalTranscodeResponse res = sdk.video().startUniversalTranscode() diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 4b643056..a6b4d848 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -22,9 +22,7 @@ package hello.world; import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.models.errors.GetWatchListBadRequest; import dev.plexapi.sdk.models.errors.GetWatchListUnauthorized; -import dev.plexapi.sdk.models.operations.Filter; -import dev.plexapi.sdk.models.operations.GetWatchListRequest; -import dev.plexapi.sdk.models.operations.GetWatchListResponse; +import dev.plexapi.sdk.models.operations.*; import java.lang.Exception; public class Application { diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..8f1cd670 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,3 @@ +groupId=dev.plexapi +artifactId=plexapi +version=0.14.0 \ No newline at end of file diff --git a/src/main/java/dev/plexapi/sdk/Activities.java b/src/main/java/dev/plexapi/sdk/Activities.java index 796583bf..34df7aa8 100644 --- a/src/main/java/dev/plexapi/sdk/Activities.java +++ b/src/main/java/dev/plexapi/sdk/Activities.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -29,7 +28,9 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +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. @@ -39,7 +40,6 @@ import java.util.Optional; * - They must contain an `type` which is used by clients to distinguish the specific activity. * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * */ public class Activities implements MethodCallGetServerActivities, @@ -54,7 +54,9 @@ public class Activities implements /** * Get Server Activities - * Get Server Activities + * + *

Get Server Activities + * * @return The call builder */ public GetServerActivitiesRequestBuilder getServerActivities() { @@ -63,7 +65,9 @@ public class Activities implements /** * Get Server Activities - * Get Server Activities + * + *

Get Server Activities + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -87,6 +91,7 @@ public class Activities implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -98,6 +103,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -107,6 +113,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -116,6 +123,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -209,7 +217,9 @@ public class Activities implements /** * Cancel Server Activities - * Cancel Server Activities + * + *

Cancel Server Activities + * * @return The call builder */ public CancelServerActivitiesRequestBuilder cancelServerActivities() { @@ -218,7 +228,9 @@ public class Activities implements /** * Cancel Server Activities - * Cancel Server Activities + * + *

Cancel Server Activities + * * @param activityUUID The UUID of the activity to cancel. * @return The response from the API call * @throws Exception if the API call fails @@ -252,6 +264,7 @@ public class Activities implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "cancelServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -263,6 +276,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "cancelServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -272,6 +286,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "cancelServerActivities", Optional.of(List.of()), _hookSecuritySource), @@ -281,6 +296,7 @@ public class Activities implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "cancelServerActivities", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Authentication.java b/src/main/java/dev/plexapi/sdk/Authentication.java index 1216ba2a..d54619d9 100644 --- a/src/main/java/dev/plexapi/sdk/Authentication.java +++ b/src/main/java/dev/plexapi/sdk/Authentication.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -46,11 +45,12 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.HashMap; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls regarding authentication for Plex Media Server - * */ public class Authentication implements MethodCallGetTransientToken, @@ -81,7 +81,8 @@ public class Authentication implements /** * 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. + * + *

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 */ @@ -91,7 +92,8 @@ public class Authentication implements /** * 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. + * + *

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. @@ -132,6 +134,7 @@ public class Authentication implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTransientToken", Optional.of(List.of()), _hookSecuritySource), @@ -143,6 +146,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTransientToken", Optional.of(List.of()), _hookSecuritySource), @@ -152,6 +156,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTransientToken", Optional.of(List.of()), _hookSecuritySource), @@ -161,6 +166,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTransientToken", Optional.of(List.of()), _hookSecuritySource), @@ -243,7 +249,8 @@ public class Authentication implements /** * 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. + * + *

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 @@ -254,7 +261,8 @@ public class Authentication implements /** * 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. + * + *

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. @@ -293,6 +301,7 @@ public class Authentication implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getSourceConnectionInformation", Optional.of(List.of()), _hookSecuritySource), @@ -304,6 +313,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSourceConnectionInformation", Optional.of(List.of()), _hookSecuritySource), @@ -313,6 +323,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getSourceConnectionInformation", Optional.of(List.of()), _hookSecuritySource), @@ -322,6 +333,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSourceConnectionInformation", Optional.of(List.of()), _hookSecuritySource), @@ -404,7 +416,9 @@ public class Authentication implements /** * Get Token Details - * Get the User data from the provided X-Plex-Token + * + *

Get the User data from the provided X-Plex-Token + * * @return The call builder */ public GetTokenDetailsRequestBuilder getTokenDetails() { @@ -413,7 +427,9 @@ public class Authentication implements /** * Get Token Details - * Get the User data from the provided X-Plex-Token + * + *

Get the User data from the provided X-Plex-Token + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -423,16 +439,20 @@ public class Authentication implements /** * Get Token Details - * Get the User data from the provided X-Plex-Token + * + *

Get the User data from the provided X-Plex-Token + * * @param serverURL Overrides the server URL. * @return The response from the API call * @throws Exception if the API call fails */ public GetTokenDetailsResponse getTokenDetails( Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_TOKEN_DETAILS_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_TOKEN_DETAILS_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -451,6 +471,7 @@ public class Authentication implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTokenDetails", Optional.of(List.of()), _hookSecuritySource), @@ -462,6 +483,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTokenDetails", Optional.of(List.of()), _hookSecuritySource), @@ -471,6 +493,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTokenDetails", Optional.of(List.of()), _hookSecuritySource), @@ -480,6 +503,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTokenDetails", Optional.of(List.of()), _hookSecuritySource), @@ -573,7 +597,9 @@ public class Authentication implements /** * Get User Sign In Data - * Sign in user with username and password and return user data with Plex authentication token + * + *

Sign in user with username and password and return user data with Plex authentication token + * * @return The call builder */ public PostUsersSignInDataRequestBuilder postUsersSignInData() { @@ -582,7 +608,9 @@ public class Authentication implements /** * Get User Sign In Data - * Sign in user with username and password and return user data with Plex authentication token + * + *

Sign in user with username and password and return user data with Plex authentication token + * * @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 @@ -594,7 +622,9 @@ public class Authentication implements /** * Get User Sign In Data - * Sign in user with username and password and return user data with Plex authentication token + * + *

Sign in user with username and password and return user data with Plex authentication token + * * @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 @@ -603,9 +633,11 @@ public class Authentication implements public PostUsersSignInDataResponse postUsersSignInData( PostUsersSignInDataRequest request, Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -632,6 +664,7 @@ public class Authentication implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "post-users-sign-in-data", Optional.of(List.of()), _hookSecuritySource), @@ -643,6 +676,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "post-users-sign-in-data", Optional.of(List.of()), _hookSecuritySource), @@ -652,6 +686,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "post-users-sign-in-data", Optional.of(List.of()), _hookSecuritySource), @@ -661,6 +696,7 @@ public class Authentication implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "post-users-sign-in-data", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Butler.java b/src/main/java/dev/plexapi/sdk/Butler.java index c3d294a2..a908be3f 100644 --- a/src/main/java/dev/plexapi/sdk/Butler.java +++ b/src/main/java/dev/plexapi/sdk/Butler.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -44,11 +43,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * Butler is the task manager of the Plex Media Server Ecosystem. - * */ public class Butler implements MethodCallGetButlerTasks, @@ -66,7 +66,9 @@ public class Butler implements /** * Get Butler tasks - * Returns a list of butler tasks + * + *

Returns a list of butler tasks + * * @return The call builder */ public GetButlerTasksRequestBuilder getButlerTasks() { @@ -75,7 +77,9 @@ public class Butler implements /** * Get Butler tasks - * Returns a list of butler tasks + * + *

Returns a list of butler tasks + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -99,6 +103,7 @@ public class Butler implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getButlerTasks", Optional.of(List.of()), _hookSecuritySource), @@ -110,6 +115,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getButlerTasks", Optional.of(List.of()), _hookSecuritySource), @@ -119,6 +125,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getButlerTasks", Optional.of(List.of()), _hookSecuritySource), @@ -128,6 +135,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getButlerTasks", Optional.of(List.of()), _hookSecuritySource), @@ -221,7 +229,8 @@ public class Butler implements /** * Start all Butler tasks - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * + *

This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: * 1. Any tasks not scheduled to run on the current day will be skipped. * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. @@ -235,7 +244,8 @@ public class Butler implements /** * Start all Butler tasks - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * + *

This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: * 1. Any tasks not scheduled to run on the current day will be skipped. * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. @@ -264,6 +274,7 @@ public class Butler implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "startAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -275,6 +286,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -284,6 +296,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "startAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -293,6 +306,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -375,7 +389,8 @@ public class Butler implements /** * Stop all Butler tasks - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. + * + *

This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. * * @return The call builder */ @@ -385,7 +400,8 @@ public class Butler implements /** * Stop all Butler tasks - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. + * + *

This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. * * @return The response from the API call * @throws Exception if the API call fails @@ -410,6 +426,7 @@ public class Butler implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "stopAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -421,6 +438,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -430,6 +448,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "stopAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -439,6 +458,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopAllTasks", Optional.of(List.of()), _hookSecuritySource), @@ -521,7 +541,8 @@ public class Butler implements /** * Start a single Butler task - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * + *

This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: * 1. Any tasks not scheduled to run on the current day will be skipped. * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. @@ -535,7 +556,8 @@ public class Butler implements /** * Start a single Butler task - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * + *

This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: * 1. Any tasks not scheduled to run on the current day will be skipped. * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. @@ -574,6 +596,7 @@ public class Butler implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "startTask", Optional.of(List.of()), _hookSecuritySource), @@ -585,6 +608,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startTask", Optional.of(List.of()), _hookSecuritySource), @@ -594,6 +618,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "startTask", Optional.of(List.of()), _hookSecuritySource), @@ -603,6 +628,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startTask", Optional.of(List.of()), _hookSecuritySource), @@ -685,7 +711,8 @@ public class Butler implements /** * Stop a single Butler task - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. + * + *

This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. * * @return The call builder */ @@ -695,7 +722,8 @@ public class Butler implements /** * Stop a single Butler task - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. + * + *

This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. * * @param taskName The name of the task to be started. * @return The response from the API call @@ -730,6 +758,7 @@ public class Butler implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "stopTask", Optional.of(List.of()), _hookSecuritySource), @@ -741,6 +770,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopTask", Optional.of(List.of()), _hookSecuritySource), @@ -750,6 +780,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "stopTask", Optional.of(List.of()), _hookSecuritySource), @@ -759,6 +790,7 @@ public class Butler implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopTask", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Hubs.java b/src/main/java/dev/plexapi/sdk/Hubs.java index d8d6eb87..3d812a1f 100644 --- a/src/main/java/dev/plexapi/sdk/Hubs.java +++ b/src/main/java/dev/plexapi/sdk/Hubs.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -38,11 +37,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * */ public class Hubs implements MethodCallGetGlobalHubs, @@ -58,7 +58,9 @@ public class Hubs implements /** * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. + * + *

Get Global Hubs filtered by the parameters provided. + * * @return The call builder */ public GetGlobalHubsRequestBuilder getGlobalHubs() { @@ -67,7 +69,9 @@ public class Hubs implements /** * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. + * + *

Get Global Hubs filtered by the parameters provided. + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -77,7 +81,9 @@ public class Hubs implements /** * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. + * + *

Get Global Hubs filtered by the parameters provided. + * * @param count The number of items to return with each hub. * @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). * @return The response from the API call @@ -117,6 +123,7 @@ public class Hubs implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getGlobalHubs", Optional.of(List.of()), _hookSecuritySource), @@ -128,6 +135,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getGlobalHubs", Optional.of(List.of()), _hookSecuritySource), @@ -137,6 +145,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getGlobalHubs", Optional.of(List.of()), _hookSecuritySource), @@ -146,6 +155,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getGlobalHubs", Optional.of(List.of()), _hookSecuritySource), @@ -239,7 +249,8 @@ public class Hubs implements /** * Get Recently Added - * This endpoint will return the recently added content. + * + *

This endpoint will return the recently added content. * * @return The call builder */ @@ -249,7 +260,8 @@ public class Hubs implements /** * Get Recently Added - * This endpoint will return the recently added content. + * + *

This endpoint will return the recently added content. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -281,6 +293,7 @@ public class Hubs implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-recently-added", Optional.of(List.of()), _hookSecuritySource), @@ -292,6 +305,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-recently-added", Optional.of(List.of()), _hookSecuritySource), @@ -301,6 +315,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-recently-added", Optional.of(List.of()), _hookSecuritySource), @@ -310,6 +325,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-recently-added", Optional.of(List.of()), _hookSecuritySource), @@ -371,7 +387,8 @@ public class Hubs implements /** * Get library specific hubs - * This endpoint will return a list of library specific hubs + * + *

This endpoint will return a list of library specific hubs * * @return The call builder */ @@ -381,7 +398,8 @@ public class Hubs implements /** * Get library specific hubs - * This endpoint will return a list of library specific hubs + * + *

This endpoint will return a list of library specific hubs * * @param sectionId the Id of the library to query * @return The response from the API call @@ -394,7 +412,8 @@ public class Hubs implements /** * Get library specific hubs - * This endpoint will return a list of library specific hubs + * + *

This endpoint will return a list of library specific hubs * * @param sectionId the Id of the library to query * @param count The number of items to return with each hub. @@ -440,6 +459,7 @@ public class Hubs implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getLibraryHubs", Optional.of(List.of()), _hookSecuritySource), @@ -451,6 +471,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getLibraryHubs", Optional.of(List.of()), _hookSecuritySource), @@ -460,6 +481,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getLibraryHubs", Optional.of(List.of()), _hookSecuritySource), @@ -469,6 +491,7 @@ public class Hubs implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getLibraryHubs", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Library.java b/src/main/java/dev/plexapi/sdk/Library.java index 1bb3b5da..9248b173 100644 --- a/src/main/java/dev/plexapi/sdk/Library.java +++ b/src/main/java/dev/plexapi/sdk/Library.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -120,11 +119,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls interacting with Plex Media Server Libraries - * */ public class Library implements MethodCallGetFileHash, @@ -153,7 +153,9 @@ public class Library implements /** * Get Hash Value - * This resource returns hash values for local files + * + *

This resource returns hash values for local files + * * @return The call builder */ public GetFileHashRequestBuilder getFileHash() { @@ -162,7 +164,9 @@ public class Library implements /** * Get Hash Value - * This resource returns hash values for local files + * + *

This resource returns hash values for local files + * * @param url This is the path to the local file, must be prefixed by `file://` * @return The response from the API call * @throws Exception if the API call fails @@ -174,7 +178,9 @@ public class Library implements /** * Get Hash Value - * This resource returns hash values for local files + * + *

This resource returns hash values for local files + * * @param url This is the path to the local file, must be prefixed by `file://` * @param type Item type * @return The response from the API call @@ -214,6 +220,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getFileHash", Optional.of(List.of()), _hookSecuritySource), @@ -225,6 +232,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getFileHash", Optional.of(List.of()), _hookSecuritySource), @@ -234,6 +242,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getFileHash", Optional.of(List.of()), _hookSecuritySource), @@ -243,6 +252,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getFileHash", Optional.of(List.of()), _hookSecuritySource), @@ -325,7 +335,8 @@ public class Library implements /** * Get Recently Added - * This endpoint will return the recently added content. + * + *

This endpoint will return the recently added content. * * @return The call builder */ @@ -335,7 +346,8 @@ public class Library implements /** * Get Recently Added - * This endpoint will return the recently added content. + * + *

This endpoint will return the recently added content. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -367,6 +379,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-recently-added-library", Optional.of(List.of()), _hookSecuritySource), @@ -378,6 +391,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-recently-added-library", Optional.of(List.of()), _hookSecuritySource), @@ -387,6 +401,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-recently-added-library", Optional.of(List.of()), _hookSecuritySource), @@ -396,6 +411,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-recently-added-library", Optional.of(List.of()), _hookSecuritySource), @@ -489,11 +505,12 @@ public class Library implements /** * Get All Libraries - * A library section (commonly referred to as just a library) is a collection of media. + * + *

A library section (commonly referred to as just a library) is a collection of media. * Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. * For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. * - * Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. + *

Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). * * @return The call builder @@ -504,11 +521,12 @@ public class Library implements /** * Get All Libraries - * A library section (commonly referred to as just a library) is a collection of media. + * + *

A library section (commonly referred to as just a library) is a collection of media. * Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. * For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. * - * Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. + *

Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). * * @return The response from the API call @@ -534,6 +552,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -545,6 +564,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -554,6 +574,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -563,6 +584,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -656,45 +678,46 @@ public class Library implements /** * Get Library Details - * ## Library Details Endpoint * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. + *

## Library Details Endpoint * - * The details include: + *

This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. * - * ### Directories + *

The details include: + * + *

### Directories * Organized into three categories: * - * - **Primary Directories**: + *

- **Primary Directories**: * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). * - Most can be replicated via media queries. * - Customizable by users. * - * - **Secondary Directories**: + *

- **Secondary Directories**: * - Marked with `secondary="1"`. * - Used in older clients for structured navigation. * - * - **Special Directories**: + *

- **Special Directories**: * - Includes a "By Folder" entry for filesystem-based browsing. * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. * - * ### Types + *

### Types * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: * - * - **Type Object Attributes**: + *

- **Type Object Attributes**: * - `key`: Endpoint for the media list of this type. * - `type`: Metadata type (if standard Plex type). * - `title`: Title for this content type (e.g., "Movies"). * - * - **Filter Objects**: + *

- **Filter Objects**: * - Subset of the media query language. * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. * - * - **Sort Objects**: + *

- **Sort Objects**: * - Description of sort fields. * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. + *

> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * * @return The call builder */ @@ -704,49 +727,50 @@ public class Library implements /** * Get Library Details - * ## Library Details Endpoint * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. + *

## Library Details Endpoint * - * The details include: + *

This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. * - * ### Directories + *

The details include: + * + *

### Directories * Organized into three categories: * - * - **Primary Directories**: + *

- **Primary Directories**: * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). * - Most can be replicated via media queries. * - Customizable by users. * - * - **Secondary Directories**: + *

- **Secondary Directories**: * - Marked with `secondary="1"`. * - Used in older clients for structured navigation. * - * - **Special Directories**: + *

- **Special Directories**: * - Includes a "By Folder" entry for filesystem-based browsing. * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. * - * ### Types + *

### Types * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: * - * - **Type Object Attributes**: + *

- **Type Object Attributes**: * - `key`: Endpoint for the media list of this type. * - `type`: Metadata type (if standard Plex type). * - `title`: Title for this content type (e.g., "Movies"). * - * - **Filter Objects**: + *

- **Filter Objects**: * - Subset of the media query language. * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. * - * - **Sort Objects**: + *

- **Sort Objects**: * - Description of sort fields. * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. + *

> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * 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 */ @@ -757,52 +781,53 @@ public class Library implements /** * Get Library Details - * ## Library Details Endpoint * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. + *

## Library Details Endpoint * - * The details include: + *

This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. * - * ### Directories + *

The details include: + * + *

### Directories * Organized into three categories: * - * - **Primary Directories**: + *

- **Primary Directories**: * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). * - Most can be replicated via media queries. * - Customizable by users. * - * - **Secondary Directories**: + *

- **Secondary Directories**: * - Marked with `secondary="1"`. * - Used in older clients for structured navigation. * - * - **Special Directories**: + *

- **Special Directories**: * - Includes a "By Folder" entry for filesystem-based browsing. * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. * - * ### Types + *

### Types * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: * - * - **Type Object Attributes**: + *

- **Type Object Attributes**: * - `key`: Endpoint for the media list of this type. * - `type`: Metadata type (if standard Plex type). * - `title`: Title for this content type (e.g., "Movies"). * - * - **Filter Objects**: + *

- **Filter Objects**: * - Subset of the media query language. * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. * - * - **Sort Objects**: + *

- **Sort Objects**: * - Description of sort fields. * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. + *

> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * * @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. - + * Only exists for backwards compatibility, media providers other than the server libraries have it on always. + * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * 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 */ @@ -842,6 +867,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-library-details", Optional.of(List.of()), _hookSecuritySource), @@ -853,6 +879,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-library-details", Optional.of(List.of()), _hookSecuritySource), @@ -862,6 +889,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-library-details", Optional.of(List.of()), _hookSecuritySource), @@ -871,6 +899,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-library-details", Optional.of(List.of()), _hookSecuritySource), @@ -964,7 +993,9 @@ public class Library implements /** * Delete Library Section - * Delete a library using a specific section id + * + *

Delete a library using a specific section id + * * @return The call builder */ public DeleteLibraryRequestBuilder deleteLibrary() { @@ -973,10 +1004,12 @@ public class Library implements /** * Delete Library Section - * Delete a library using a specific section id + * + *

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. - + * 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 */ @@ -1009,6 +1042,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "deleteLibrary", Optional.of(List.of()), _hookSecuritySource), @@ -1020,6 +1054,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "deleteLibrary", Optional.of(List.of()), _hookSecuritySource), @@ -1029,6 +1064,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "deleteLibrary", Optional.of(List.of()), _hookSecuritySource), @@ -1038,6 +1074,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "deleteLibrary", Optional.of(List.of()), _hookSecuritySource), @@ -1120,7 +1157,8 @@ public class Library implements /** * 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: + * + *

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. @@ -1150,7 +1188,8 @@ public class Library implements /** * 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: + * + *

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. @@ -1204,6 +1243,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-library-items", Optional.of(List.of()), _hookSecuritySource), @@ -1215,6 +1255,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-library-items", Optional.of(List.of()), _hookSecuritySource), @@ -1224,6 +1265,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-library-items", Optional.of(List.of()), _hookSecuritySource), @@ -1233,6 +1275,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-library-items", Optional.of(List.of()), _hookSecuritySource), @@ -1326,7 +1369,8 @@ public class Library implements /** * Get all media of library - * Retrieves a list of all general media data for this library. + * + *

Retrieves a list of all general media data for this library. * * @return The call builder */ @@ -1336,7 +1380,8 @@ public class Library implements /** * Get all media of library - * Retrieves a list of all general media data for this library. + * + *

Retrieves a list of all general media data for this library. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -1370,6 +1415,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-all-media-library", Optional.of(List.of()), _hookSecuritySource), @@ -1381,6 +1427,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-all-media-library", Optional.of(List.of()), _hookSecuritySource), @@ -1390,6 +1437,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-all-media-library", Optional.of(List.of()), _hookSecuritySource), @@ -1399,6 +1447,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-all-media-library", Optional.of(List.of()), _hookSecuritySource), @@ -1492,7 +1541,8 @@ public class Library implements /** * Refresh Metadata Of The Library - * This endpoint Refreshes all the Metadata of the library. + * + *

This endpoint Refreshes all the Metadata of the library. * * @return The call builder */ @@ -1502,11 +1552,12 @@ public class Library implements /** * Refresh Metadata Of The Library - * This endpoint Refreshes all the 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. - + * 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 */ @@ -1517,12 +1568,13 @@ public class Library implements /** * Refresh Metadata Of The Library - * This endpoint Refreshes all the Metadata of the library. + * + *

This endpoint Refreshes all the Metadata of the library. * * @param force Force the refresh even if the library is already being refreshed. * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * 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 */ @@ -1562,6 +1614,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-refresh-library-metadata", Optional.of(List.of()), _hookSecuritySource), @@ -1573,6 +1626,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-refresh-library-metadata", Optional.of(List.of()), _hookSecuritySource), @@ -1582,6 +1636,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-refresh-library-metadata", Optional.of(List.of()), _hookSecuritySource), @@ -1591,6 +1646,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-refresh-library-metadata", Optional.of(List.of()), _hookSecuritySource), @@ -1673,24 +1729,25 @@ public class Library implements /** * Search Library - * Search for content within a specific section of the library. * - * ### Types + *

Search for content within a specific section of the library. + * + *

### Types * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: * - * - **Type Object Attributes**: + *

- **Type Object Attributes**: * - `type`: Metadata type (if standard Plex type). * - `title`: Title for this content type (e.g., "Movies"). * - * - **Filter Objects**: + *

- **Filter Objects**: * - Subset of the media query language. * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. * - * - **Sort Objects**: + *

- **Sort Objects**: * - Description of sort fields. * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. + *

> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * * @return The call builder */ @@ -1700,35 +1757,36 @@ public class Library implements /** * Search Library - * Search for content within a specific section of the library. * - * ### Types + *

Search for content within a specific section of the library. + * + *

### Types * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: * - * - **Type Object Attributes**: + *

- **Type Object Attributes**: * - `type`: Metadata type (if standard Plex type). * - `title`: Title for this content type (e.g., "Movies"). * - * - **Filter Objects**: + *

- **Filter Objects**: * - Subset of the media query language. * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. * - * - **Sort Objects**: + *

- **Sort Objects**: * - Description of sort fields. * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. + *

> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * Note: This is unique in the context of the Plex server. + * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -1768,6 +1826,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-search-library", Optional.of(List.of()), _hookSecuritySource), @@ -1779,6 +1838,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-search-library", Optional.of(List.of()), _hookSecuritySource), @@ -1788,6 +1848,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-search-library", Optional.of(List.of()), _hookSecuritySource), @@ -1797,6 +1858,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-search-library", Optional.of(List.of()), _hookSecuritySource), @@ -1890,7 +1952,8 @@ public class Library implements /** * Get Genres of library media - * Retrieves a list of all the genres that are found for the media in this library. + * + *

Retrieves a list of all the genres that are found for the media in this library. * * @return The call builder */ @@ -1900,18 +1963,19 @@ public class Library implements /** * Get Genres of library media - * Retrieves a list of all the genres that are found for the media in this library. + * + *

Retrieves a list of all the genres that are found for the media in this library. * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * Note: This is unique in the context of the Plex server. + * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -1951,6 +2015,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-genres-library", Optional.of(List.of()), _hookSecuritySource), @@ -1962,6 +2027,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-genres-library", Optional.of(List.of()), _hookSecuritySource), @@ -1971,6 +2037,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-genres-library", Optional.of(List.of()), _hookSecuritySource), @@ -1980,6 +2047,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-genres-library", Optional.of(List.of()), _hookSecuritySource), @@ -2073,7 +2141,8 @@ public class Library implements /** * Get Countries of library media - * Retrieves a list of all the countries that are found for the media in this library. + * + *

Retrieves a list of all the countries that are found for the media in this library. * * @return The call builder */ @@ -2083,18 +2152,19 @@ public class Library implements /** * Get Countries of library media - * Retrieves a list of all the countries that are found for the media in this library. + * + *

Retrieves a list of all the countries that are found for the media in this library. * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * Note: This is unique in the context of the Plex server. + * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -2134,6 +2204,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-countries-library", Optional.of(List.of()), _hookSecuritySource), @@ -2145,6 +2216,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-countries-library", Optional.of(List.of()), _hookSecuritySource), @@ -2154,6 +2226,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-countries-library", Optional.of(List.of()), _hookSecuritySource), @@ -2163,6 +2236,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-countries-library", Optional.of(List.of()), _hookSecuritySource), @@ -2256,7 +2330,8 @@ public class Library implements /** * Get Actors of library media - * Retrieves a list of all the actors that are found for the media in this library. + * + *

Retrieves a list of all the actors that are found for the media in this library. * * @return The call builder */ @@ -2266,18 +2341,19 @@ public class Library implements /** * Get Actors of library media - * Retrieves a list of all the actors that are found for the media in this library. + * + *

Retrieves a list of all the actors that are found for the media in this library. * * @param sectionKey The unique key of the Plex library. - Note: This is unique in the context of the Plex server. - + * Note: This is unique in the context of the Plex server. + * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -2317,6 +2393,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-actors-library", Optional.of(List.of()), _hookSecuritySource), @@ -2328,6 +2405,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-actors-library", Optional.of(List.of()), _hookSecuritySource), @@ -2337,6 +2415,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-actors-library", Optional.of(List.of()), _hookSecuritySource), @@ -2346,6 +2425,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-actors-library", Optional.of(List.of()), _hookSecuritySource), @@ -2439,7 +2519,8 @@ public class Library implements /** * Search All Libraries - * Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type. + * + *

Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type. * * @return The call builder */ @@ -2449,7 +2530,8 @@ public class Library implements /** * Search All Libraries - * Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type. + * + *

Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -2482,6 +2564,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-search-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -2493,6 +2576,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-search-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -2502,6 +2586,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-search-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -2511,6 +2596,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-search-all-libraries", Optional.of(List.of()), _hookSecuritySource), @@ -2604,7 +2690,8 @@ public class Library implements /** * Get Media Metadata - * This endpoint will return all the (meta)data of a library item specified with by the ratingKey. + * + *

This endpoint will return all the (meta)data of a library item specified with by the ratingKey. * * @return The call builder */ @@ -2614,7 +2701,8 @@ public class Library implements /** * Get Media Metadata - * This endpoint will return all the (meta)data of a library item specified with by the ratingKey. + * + *

This endpoint will return all the (meta)data of a library item specified with by the ratingKey. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -2648,6 +2736,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-media-meta-data", Optional.of(List.of()), _hookSecuritySource), @@ -2659,6 +2748,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-media-meta-data", Optional.of(List.of()), _hookSecuritySource), @@ -2668,6 +2758,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-media-meta-data", Optional.of(List.of()), _hookSecuritySource), @@ -2677,6 +2768,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-media-meta-data", Optional.of(List.of()), _hookSecuritySource), @@ -2770,7 +2862,8 @@ public class Library implements /** * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. + * + *

This endpoint will return the children of of a library item specified with the ratingKey. * * @return The call builder */ @@ -2780,7 +2873,8 @@ public class Library implements /** * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. + * + *

This endpoint will return the children of of a library item specified with the ratingKey. * * @param ratingKey the id of the library item to return the children of. * @return The response from the API call @@ -2793,11 +2887,12 @@ public class Library implements /** * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. + * + *

This endpoint will return the children of of a library item specified with the ratingKey. * * @param ratingKey the id of the library item to return the children of. * @param includeElements Adds additional elements to the response. Supported types are (Stream) - + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -2837,6 +2932,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getMetadataChildren", Optional.of(List.of()), _hookSecuritySource), @@ -2848,6 +2944,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getMetadataChildren", Optional.of(List.of()), _hookSecuritySource), @@ -2857,6 +2954,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getMetadataChildren", Optional.of(List.of()), _hookSecuritySource), @@ -2866,6 +2964,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getMetadataChildren", Optional.of(List.of()), _hookSecuritySource), @@ -2959,7 +3058,8 @@ public class Library implements /** * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type + * + *

This endpoint will return the top watched content from libraries of a certain type * * @return The call builder */ @@ -2969,15 +3069,16 @@ public class Library implements /** * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type + * + *

This endpoint will return the top watched content from libraries of a certain type * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -2988,17 +3089,18 @@ public class Library implements /** * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type + * + *

This endpoint will return the top watched content from libraries of a certain type * * @param includeGuids Adds the Guids object to the response - + * * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -3036,6 +3138,7 @@ public class Library implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTopWatchedContent", Optional.of(List.of()), _hookSecuritySource), @@ -3047,6 +3150,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTopWatchedContent", Optional.of(List.of()), _hookSecuritySource), @@ -3056,6 +3160,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTopWatchedContent", Optional.of(List.of()), _hookSecuritySource), @@ -3065,6 +3170,7 @@ public class Library implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTopWatchedContent", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Log.java b/src/main/java/dev/plexapi/sdk/Log.java index 0889d979..230c43f9 100644 --- a/src/main/java/dev/plexapi/sdk/Log.java +++ b/src/main/java/dev/plexapi/sdk/Log.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -36,11 +35,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * Submit logs to the Log Handler for Plex Media Server - * */ public class Log implements MethodCallLogLine, @@ -56,7 +56,8 @@ public class Log implements /** * Logging a single line message. - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. + * + *

This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. * * @return The call builder */ @@ -66,15 +67,16 @@ public class Log implements /** * Logging a single line message. - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. + * + *

This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. * * @param level An integer log level to write to the PMS log with. - 0: Error - 1: Warning - 2: Info - 3: Debug - 4: Verbose - + * 0: Error + * 1: Warning + * 2: Info + * 3: Debug + * 4: Verbose + * * @param message The text of the message to write to the log. * @param source a string indicating the source of the message. * @return The response from the API call @@ -116,6 +118,7 @@ public class Log implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "logLine", Optional.of(List.of()), _hookSecuritySource), @@ -127,6 +130,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "logLine", Optional.of(List.of()), _hookSecuritySource), @@ -136,6 +140,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "logLine", Optional.of(List.of()), _hookSecuritySource), @@ -145,6 +150,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "logLine", Optional.of(List.of()), _hookSecuritySource), @@ -227,27 +233,28 @@ public class Log implements /** * Logging a multi-line message - * This endpoint allows for the batch addition of log entries to the main Plex Media Server log. + * + *

This endpoint allows for the batch addition of log entries to the main Plex Media Server log. * It accepts a text/plain request body, where each line represents a distinct log entry. * Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. * - * Log entries are separated by a newline character (`\n`). + *

Log entries are separated by a newline character (`\n`). * Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. * This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. * - * The 'level' parameter specifies the log entry's severity or importance, with the following integer values: + *

The 'level' parameter specifies the log entry's severity or importance, with the following integer values: * - `0`: Error - Critical issues that require immediate attention. * - `1`: Warning - Important events that are not critical but may indicate potential issues. * - `2`: Info - General informational messages about system operation. * - `3`: Debug - Detailed information useful for debugging purposes. * - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis. * - * The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). + *

The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). * - * Example of a single log entry format: + *

Example of a single log entry format: * `level=4&message=Sample%20log%20entry&source=applicationName` * - * Ensure each parameter is properly URL-encoded to avoid interpretation issues. + *

Ensure each parameter is properly URL-encoded to avoid interpretation issues. * * @return The call builder */ @@ -257,27 +264,28 @@ public class Log implements /** * Logging a multi-line message - * This endpoint allows for the batch addition of log entries to the main Plex Media Server log. + * + *

This endpoint allows for the batch addition of log entries to the main Plex Media Server log. * It accepts a text/plain request body, where each line represents a distinct log entry. * Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. * - * Log entries are separated by a newline character (`\n`). + *

Log entries are separated by a newline character (`\n`). * Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. * This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. * - * The 'level' parameter specifies the log entry's severity or importance, with the following integer values: + *

The 'level' parameter specifies the log entry's severity or importance, with the following integer values: * - `0`: Error - Critical issues that require immediate attention. * - `1`: Warning - Important events that are not critical but may indicate potential issues. * - `2`: Info - General informational messages about system operation. * - `3`: Debug - Detailed information useful for debugging purposes. * - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis. * - * The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). + *

The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). * - * Example of a single log entry format: + *

Example of a single log entry format: * `level=4&message=Sample%20log%20entry&source=applicationName` * - * Ensure each parameter is properly URL-encoded to avoid interpretation issues. + *

Ensure each parameter is properly URL-encoded to avoid interpretation issues. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -317,6 +325,7 @@ public class Log implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "logMultiLine", Optional.of(List.of()), _hookSecuritySource), @@ -328,6 +337,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "logMultiLine", Optional.of(List.of()), _hookSecuritySource), @@ -337,6 +347,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "logMultiLine", Optional.of(List.of()), _hookSecuritySource), @@ -346,6 +357,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "logMultiLine", Optional.of(List.of()), _hookSecuritySource), @@ -428,7 +440,8 @@ public class Log implements /** * Enabling Papertrail - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. + * + *

This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. * * @return The call builder */ @@ -438,7 +451,8 @@ public class Log implements /** * Enabling Papertrail - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. + * + *

This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. * * @return The response from the API call * @throws Exception if the API call fails @@ -463,6 +477,7 @@ public class Log implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "enablePaperTrail", Optional.of(List.of()), _hookSecuritySource), @@ -474,6 +489,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "enablePaperTrail", Optional.of(List.of()), _hookSecuritySource), @@ -483,6 +499,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "enablePaperTrail", Optional.of(List.of()), _hookSecuritySource), @@ -492,6 +509,7 @@ public class Log implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "enablePaperTrail", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Media.java b/src/main/java/dev/plexapi/sdk/Media.java index 0e121f1a..efce05f8 100644 --- a/src/main/java/dev/plexapi/sdk/Media.java +++ b/src/main/java/dev/plexapi/sdk/Media.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -44,11 +43,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls interacting with Plex Media Server Media - * */ public class Media implements MethodCallMarkPlayed, @@ -66,7 +66,9 @@ public class Media implements /** * Mark Media Played - * This will mark the provided media key as Played. + * + *

This will mark the provided media key as Played. + * * @return The call builder */ public MarkPlayedRequestBuilder markPlayed() { @@ -75,7 +77,9 @@ public class Media implements /** * Mark Media Played - * This will mark the provided media key as 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 @@ -112,6 +116,7 @@ public class Media implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "markPlayed", Optional.of(List.of()), _hookSecuritySource), @@ -123,6 +128,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "markPlayed", Optional.of(List.of()), _hookSecuritySource), @@ -132,6 +138,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "markPlayed", Optional.of(List.of()), _hookSecuritySource), @@ -141,6 +148,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "markPlayed", Optional.of(List.of()), _hookSecuritySource), @@ -223,7 +231,9 @@ public class Media implements /** * Mark Media Unplayed - * This will mark the provided media key as Unplayed. + * + *

This will mark the provided media key as Unplayed. + * * @return The call builder */ public MarkUnplayedRequestBuilder markUnplayed() { @@ -232,7 +242,9 @@ public class Media implements /** * Mark Media Unplayed - * This will mark the provided media key as 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 @@ -269,6 +281,7 @@ public class Media implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "markUnplayed", Optional.of(List.of()), _hookSecuritySource), @@ -280,6 +293,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "markUnplayed", Optional.of(List.of()), _hookSecuritySource), @@ -289,6 +303,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "markUnplayed", Optional.of(List.of()), _hookSecuritySource), @@ -298,6 +313,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "markUnplayed", Optional.of(List.of()), _hookSecuritySource), @@ -380,7 +396,8 @@ public class Media implements /** * Update Media Play Progress - * This API command can be used to update the play progress of a media item. + * + *

This API command can be used to update the play progress of a media item. * * @return The call builder */ @@ -390,7 +407,8 @@ public class Media implements /** * Update Media Play Progress - * This API command can be used to update the play progress of a media item. + * + *

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. @@ -434,6 +452,7 @@ public class Media implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "updatePlayProgress", Optional.of(List.of()), _hookSecuritySource), @@ -445,6 +464,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "updatePlayProgress", Optional.of(List.of()), _hookSecuritySource), @@ -454,6 +474,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "updatePlayProgress", Optional.of(List.of()), _hookSecuritySource), @@ -463,6 +484,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "updatePlayProgress", Optional.of(List.of()), _hookSecuritySource), @@ -545,7 +567,9 @@ public class Media implements /** * Get Banner Image - * Gets the banner image of the media item + * + *

Gets the banner image of the media item + * * @return The call builder */ public GetBannerImageRequestBuilder getBannerImage() { @@ -554,7 +578,9 @@ public class Media implements /** * Get Banner Image - * Gets the banner image of the media item + * + *

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 @@ -588,6 +614,7 @@ public class Media implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-banner-image", Optional.of(List.of()), _hookSecuritySource), @@ -599,6 +626,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-banner-image", Optional.of(List.of()), _hookSecuritySource), @@ -608,6 +636,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-banner-image", Optional.of(List.of()), _hookSecuritySource), @@ -617,6 +646,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-banner-image", Optional.of(List.of()), _hookSecuritySource), @@ -710,7 +740,9 @@ public class Media implements /** * Get Thumb Image - * Gets the thumbnail image of the media item + * + *

Gets the thumbnail image of the media item + * * @return The call builder */ public GetThumbImageRequestBuilder getThumbImage() { @@ -719,7 +751,9 @@ public class Media implements /** * Get Thumb Image - * Gets the thumbnail image of the media item + * + *

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 @@ -753,6 +787,7 @@ public class Media implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-thumb-image", Optional.of(List.of()), _hookSecuritySource), @@ -764,6 +799,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-thumb-image", Optional.of(List.of()), _hookSecuritySource), @@ -773,6 +809,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-thumb-image", Optional.of(List.of()), _hookSecuritySource), @@ -782,6 +819,7 @@ public class Media implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-thumb-image", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Playlists.java b/src/main/java/dev/plexapi/sdk/Playlists.java index 4657acf7..425d07df 100644 --- a/src/main/java/dev/plexapi/sdk/Playlists.java +++ b/src/main/java/dev/plexapi/sdk/Playlists.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -74,14 +73,15 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +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"). * They can be organized in (optionally nesting) folders. * Retrieving a playlist, or its items, will trigger a refresh of its metadata. * This may cause the duration and number of items to change. - * */ public class Playlists implements MethodCallCreatePlaylist, @@ -103,7 +103,8 @@ public class Playlists implements /** * Create a Playlist - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: + * + *

Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: * - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`). * - `playQueueID` - To create a playlist from an existing play queue. * @@ -115,7 +116,8 @@ public class Playlists implements /** * Create a Playlist - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: + * + *

Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: * - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`). * - `playQueueID` - To create a playlist from an existing play queue. * @@ -149,6 +151,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "createPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -160,6 +163,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "createPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -169,6 +173,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "createPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -178,6 +183,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "createPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -271,7 +277,9 @@ public class Playlists implements /** * Get All Playlists - * Get All Playlists given the specified filters. + * + *

Get All Playlists given the specified filters. + * * @return The call builder */ public GetPlaylistsRequestBuilder getPlaylists() { @@ -280,7 +288,9 @@ public class Playlists implements /** * Get All Playlists - * Get All Playlists given the specified filters. + * + *

Get All Playlists given the specified filters. + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -290,7 +300,9 @@ public class Playlists implements /** * Get All Playlists - * Get All Playlists given the specified filters. + * + *

Get All Playlists given the specified filters. + * * @param playlistType limit to a type of playlist. * @param smart type of playlists to return (default is all). * @return The response from the API call @@ -330,6 +342,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getPlaylists", Optional.of(List.of()), _hookSecuritySource), @@ -341,6 +354,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylists", Optional.of(List.of()), _hookSecuritySource), @@ -350,6 +364,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getPlaylists", Optional.of(List.of()), _hookSecuritySource), @@ -359,6 +374,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylists", Optional.of(List.of()), _hookSecuritySource), @@ -452,7 +468,8 @@ public class Playlists implements /** * Retrieve Playlist - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: + * + *

Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: * Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. * * @return The call builder @@ -463,7 +480,8 @@ public class Playlists implements /** * Retrieve Playlist - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: + * + *

Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: * Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. * * @param playlistID the ID of the playlist @@ -499,6 +517,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -510,6 +529,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -519,6 +539,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -528,6 +549,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -621,7 +643,8 @@ public class Playlists implements /** * Deletes a Playlist - * This endpoint will delete a playlist + * + *

This endpoint will delete a playlist * * @return The call builder */ @@ -631,7 +654,8 @@ public class Playlists implements /** * Deletes a Playlist - * This endpoint will delete a playlist + * + *

This endpoint will delete a playlist * * @param playlistID the ID of the playlist * @return The response from the API call @@ -666,6 +690,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "deletePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -677,6 +702,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "deletePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -686,6 +712,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "deletePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -695,6 +722,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "deletePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -777,7 +805,8 @@ public class Playlists implements /** * 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}` + * + *

From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` * * @return The call builder */ @@ -787,7 +816,8 @@ public class Playlists implements /** * 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}` + * + *

From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` * * @param playlistID the ID of the playlist * @return The response from the API call @@ -800,7 +830,8 @@ public class Playlists implements /** * 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}` + * + *

From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` * * @param playlistID the ID of the playlist * @param title name of the playlist @@ -846,6 +877,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "updatePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -857,6 +889,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "updatePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -866,6 +899,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "updatePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -875,6 +909,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "updatePlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -957,7 +992,8 @@ public class Playlists implements /** * Retrieve Playlist Contents - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. + * + *

Gets the contents of a playlist. Should be paged by clients via standard mechanisms. * By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. * For example, you could use this to display a list of recently added albums vis a smart playlist. * Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. @@ -970,19 +1006,20 @@ public class Playlists implements /** * Retrieve Playlist Contents - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. + * + *

Gets the contents of a playlist. Should be paged by clients via standard mechanisms. * By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. * For example, you could use this to display a list of recently added albums vis a smart playlist. * Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. * * @param playlistID the ID of the playlist * @param type The type of media to retrieve or filter by. - 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 - + * 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 */ @@ -1022,6 +1059,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1033,6 +1071,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1042,6 +1081,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1051,6 +1091,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1144,7 +1185,8 @@ public class Playlists implements /** * Delete Playlist Contents - * Clears a playlist, only works with dumb playlists. Returns the playlist. + * + *

Clears a playlist, only works with dumb playlists. Returns the playlist. * * @return The call builder */ @@ -1154,7 +1196,8 @@ public class Playlists implements /** * Delete Playlist Contents - * Clears a playlist, only works with dumb playlists. Returns the playlist. + * + *

Clears a playlist, only works with dumb playlists. Returns the playlist. * * @param playlistID the ID of the playlist * @return The response from the API call @@ -1189,6 +1232,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "clearPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1200,6 +1244,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "clearPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1209,6 +1254,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "clearPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1218,6 +1264,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "clearPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1300,7 +1347,8 @@ public class Playlists implements /** * 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. + * + *

Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. * * @return The call builder @@ -1311,7 +1359,8 @@ public class Playlists implements /** * 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. + * + *

Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. * * @param playlistID the ID of the playlist @@ -1327,7 +1376,8 @@ public class Playlists implements /** * 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. + * + *

Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. * * @param playlistID the ID of the playlist @@ -1374,6 +1424,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "addPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1385,6 +1436,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "addPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1394,6 +1446,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "addPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1403,6 +1456,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "addPlaylistContents", Optional.of(List.of()), _hookSecuritySource), @@ -1496,7 +1550,8 @@ public class Playlists implements /** * Upload Playlist - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. + * + *

Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. * * @return The call builder */ @@ -1506,20 +1561,21 @@ public class Playlists implements /** * Upload Playlist - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. + * + *

Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. * * @param path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. - If the `path` argument is a directory, that path will be scanned for playlist files to be processed. - Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. - The GUID of each playlist is based on the filename. - If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. - The GUID of each playlist is based on the filename. - + * If the `path` argument is a directory, that path will be scanned for playlist files to be processed. + * Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. + * The GUID of each playlist is based on the filename. + * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. + * The GUID of each playlist is based on the filename. + * * @param force Force overwriting of duplicate playlists. - By default, a playlist file uploaded with the same path will overwrite the existing playlist. - The `force` argument is used to disable overwriting. - If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - + * 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. + * * @param sectionID Possibly the section ID to upload the playlist to, we are not certain. * @return The response from the API call * @throws Exception if the API call fails @@ -1560,6 +1616,7 @@ public class Playlists implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "uploadPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -1571,6 +1628,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "uploadPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -1580,6 +1638,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "uploadPlaylist", Optional.of(List.of()), _hookSecuritySource), @@ -1589,6 +1648,7 @@ public class Playlists implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "uploadPlaylist", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Plex.java b/src/main/java/dev/plexapi/sdk/Plex.java index f32fee8f..8b577c7f 100644 --- a/src/main/java/dev/plexapi/sdk/Plex.java +++ b/src/main/java/dev/plexapi/sdk/Plex.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -60,11 +59,12 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.HashMap; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform operations directly against https://Plex.tv - * */ public class Plex implements MethodCallGetCompanionsData, @@ -126,7 +126,9 @@ public class Plex implements /** * Get Companions Data - * Get Companions Data + * + *

Get Companions Data + * * @return The call builder */ public GetCompanionsDataRequestBuilder getCompanionsData() { @@ -135,7 +137,9 @@ public class Plex implements /** * Get Companions Data - * Get Companions Data + * + *

Get Companions Data + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -145,16 +149,20 @@ public class Plex implements /** * Get Companions Data - * 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()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_COMPANIONS_DATA_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -173,6 +181,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getCompanionsData", Optional.of(List.of()), _hookSecuritySource), @@ -184,6 +193,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getCompanionsData", Optional.of(List.of()), _hookSecuritySource), @@ -193,6 +203,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getCompanionsData", Optional.of(List.of()), _hookSecuritySource), @@ -202,6 +213,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getCompanionsData", Optional.of(List.of()), _hookSecuritySource), @@ -295,7 +307,9 @@ public class Plex implements /** * Get list of friends of the user logged in - * Get friends of provided auth token. + * + *

Get friends of provided auth token. + * * @return The call builder */ public GetUserFriendsRequestBuilder getUserFriends() { @@ -304,7 +318,9 @@ public class Plex implements /** * Get list of friends of the user logged in - * Get friends of provided auth token. + * + *

Get friends of provided auth token. + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -314,16 +330,20 @@ public class Plex implements /** * Get list of friends of the user logged in - * Get friends of provided auth token. + * + *

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()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_USER_FRIENDS_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -342,6 +362,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getUserFriends", Optional.of(List.of()), _hookSecuritySource), @@ -353,6 +374,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getUserFriends", Optional.of(List.of()), _hookSecuritySource), @@ -362,6 +384,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getUserFriends", Optional.of(List.of()), _hookSecuritySource), @@ -371,6 +394,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getUserFriends", Optional.of(List.of()), _hookSecuritySource), @@ -464,7 +488,9 @@ public class Plex implements /** * Get Geo Data - * Returns the geolocation and locale data of the caller + * + *

Returns the geolocation and locale data of the caller + * * @return The call builder */ public GetGeoDataRequestBuilder getGeoData() { @@ -473,7 +499,9 @@ public class Plex implements /** * Get Geo Data - * Returns the geolocation and locale data of the caller + * + *

Returns the geolocation and locale data of the caller + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -483,16 +511,20 @@ public class Plex implements /** * Get Geo Data - * Returns the geolocation and locale data of the caller + * + *

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()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_GEO_DATA_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -508,6 +540,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getGeoData", Optional.of(List.of()), _hookSecuritySource), @@ -519,6 +552,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getGeoData", Optional.of(List.of()), _hookSecuritySource), @@ -528,6 +562,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getGeoData", Optional.of(List.of()), _hookSecuritySource), @@ -537,6 +572,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getGeoData", Optional.of(List.of()), _hookSecuritySource), @@ -630,7 +666,9 @@ public class Plex implements /** * Get Plex Home Data - * Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. + * + *

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() { @@ -639,7 +677,9 @@ public class Plex implements /** * Get Plex Home Data - * Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. + * + *

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 */ @@ -663,6 +703,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getHomeData", Optional.of(List.of()), _hookSecuritySource), @@ -674,6 +715,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getHomeData", Optional.of(List.of()), _hookSecuritySource), @@ -683,6 +725,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getHomeData", Optional.of(List.of()), _hookSecuritySource), @@ -692,6 +735,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getHomeData", Optional.of(List.of()), _hookSecuritySource), @@ -785,7 +829,9 @@ public class Plex implements /** * Get Server Resources - * Get Plex server access tokens and server connections + * + *

Get Plex server access tokens and server connections + * * @return The call builder */ public GetServerResourcesRequestBuilder getServerResources() { @@ -794,7 +840,9 @@ public class Plex implements /** * Get Server Resources - * Get Plex server access tokens and server connections + * + *

Get Plex server access tokens and server connections + * * @param clientID An opaque identifier unique to the client (UUID, serial number, or other unique device ID) * @return The response from the API call * @throws Exception if the API call fails @@ -806,11 +854,13 @@ public class Plex implements /** * Get Server Resources - * Get Plex server access tokens and server connections + * + *

Get Plex server access tokens and server connections + * * @param includeHttps Include Https entries in the results * @param includeRelay Include Relay addresses in the results - E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 - + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * * @param includeIPv6 Include IPv6 entries in the results * @param clientID An opaque identifier unique to the client (UUID, serial number, or other unique device ID) * @param serverURL Overrides the server URL. @@ -832,9 +882,11 @@ public class Plex implements .clientID(clientID) .build(); - String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -859,6 +911,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-server-resources", Optional.of(List.of()), _hookSecuritySource), @@ -870,6 +923,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-server-resources", Optional.of(List.of()), _hookSecuritySource), @@ -879,6 +933,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-server-resources", Optional.of(List.of()), _hookSecuritySource), @@ -888,6 +943,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-server-resources", Optional.of(List.of()), _hookSecuritySource), @@ -981,7 +1037,9 @@ public class Plex implements /** * Get a Pin - * Retrieve a Pin ID from Plex.tv to use for authentication flows + * + *

Retrieve a Pin ID from Plex.tv to use for authentication flows + * * @return The call builder */ public GetPinRequestBuilder getPin() { @@ -990,7 +1048,9 @@ public class Plex implements /** * Get a Pin - * Retrieve a Pin ID from Plex.tv to use for authentication flows + * + *

Retrieve a Pin ID from Plex.tv to use for authentication flows + * * @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 @@ -1002,7 +1062,9 @@ public class Plex implements /** * Get a Pin - * Retrieve a Pin ID from Plex.tv to use for authentication flows + * + *

Retrieve a Pin ID from Plex.tv to use for authentication flows + * * @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 @@ -1011,9 +1073,11 @@ public class Plex implements public GetPinResponse getPin( GetPinRequest request, Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -1035,6 +1099,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getPin", Optional.of(List.of()), _hookSecuritySource), @@ -1046,6 +1111,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPin", Optional.of(List.of()), _hookSecuritySource), @@ -1055,6 +1121,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getPin", Optional.of(List.of()), _hookSecuritySource), @@ -1064,6 +1131,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getPin", Optional.of(List.of()), _hookSecuritySource), @@ -1141,7 +1209,9 @@ public class Plex implements /** * Get Access Token by PinId - * Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * + *

Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * * @return The call builder */ public GetTokenByPinIdRequestBuilder getTokenByPinId() { @@ -1150,7 +1220,9 @@ public class Plex implements /** * Get Access Token by PinId - * Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * + *

Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * * @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 @@ -1162,7 +1234,9 @@ public class Plex implements /** * Get Access Token by PinId - * Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * + *

Retrieve an Access Token from Plex.tv after the Pin has been authenticated + * * @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 @@ -1171,9 +1245,11 @@ public class Plex implements public GetTokenByPinIdResponse getTokenByPinId( GetTokenByPinIdRequest request, Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( GetTokenByPinIdRequest.class, @@ -1192,6 +1268,7 @@ public class Plex implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTokenByPinId", Optional.of(List.of()), _hookSecuritySource), @@ -1203,6 +1280,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTokenByPinId", Optional.of(List.of()), _hookSecuritySource), @@ -1212,6 +1290,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTokenByPinId", Optional.of(List.of()), _hookSecuritySource), @@ -1221,6 +1300,7 @@ public class Plex implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTokenByPinId", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/PlexAPI.java b/src/main/java/dev/plexapi/sdk/PlexAPI.java index 0d8b21d7..32bc91a2 100644 --- a/src/main/java/dev/plexapi/sdk/PlexAPI.java +++ b/src/main/java/dev/plexapi/sdk/PlexAPI.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.annotation.JsonValue; @@ -11,26 +10,30 @@ import dev.plexapi.sdk.utils.SpeakeasyHTTPClient; import dev.plexapi.sdk.utils.Utils; import java.lang.String; import java.util.Map; +import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; + + /** * Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server - * # Plex Media Server OpenAPI Specification * - * An Open Source OpenAPI Specification for Plex Media Server + *

# Plex Media Server OpenAPI Specification * - * Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/) + *

An Open Source OpenAPI Specification for Plex Media Server * - * ## Documentation + *

Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/) * - * [API Documentation](https://plexapi.dev) + *

## Documentation * - * ## SDKs + *

[API Documentation](https://plexapi.dev) * - * The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec). + *

## SDKs * - * | Language | Repository | Releases | Other | + *

The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec). + * + *

| Language | Repository | Releases | Other | * | --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- | * | Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - | * | JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - | @@ -40,7 +43,6 @@ import java.util.function.Consumer; * | PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - | * | Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - | * | C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | - - * */ public class PlexAPI { @@ -57,19 +59,16 @@ public class PlexAPI { /** * Operations against the Plex Media Server System. - * */ private final Server server; /** * API Calls interacting with Plex Media Server Media - * */ private final Media media; /** * API Calls that perform operations with Plex Media Server Videos - * */ private final Video video; @@ -81,49 +80,41 @@ public class PlexAPI { * - They must contain an `type` which is used by clients to distinguish the specific activity. * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * */ private final Activities activities; /** * Butler is the task manager of the Plex Media Server Ecosystem. - * */ private final Butler butler; /** * API Calls that perform operations directly against https://Plex.tv - * */ private final Plex plex; /** * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * */ private final Hubs hubs; /** * API Calls that perform search operations with Plex Media Server - * */ private final Search search; /** * API Calls interacting with Plex Media Server Libraries - * */ private final Library library; /** * API Calls that perform operations with Plex Media Server Watchlists - * */ private final Watchlist watchlist; /** * Submit logs to the Log Handler for Plex Media Server - * */ private final Log log; @@ -132,32 +123,27 @@ public class PlexAPI { * They can be organized in (optionally nesting) folders. * Retrieving a playlist, or its items, will trigger a refresh of its metadata. * This may cause the duration and number of items to change. - * */ private final Playlists playlists; /** * API Calls regarding authentication for Plex Media Server - * */ private final Authentication authentication; /** * API Calls that perform operations with Plex Media Server Statistics - * */ private final Statistics statistics; /** * API Calls that perform search operations with Plex Media Server Sessions - * */ private final Sessions sessions; /** * This describes the API for searching and applying updates to the Plex Media Server. * Updates to the status can be observed via the Event API. - * */ private final Updater updater; @@ -165,7 +151,6 @@ public class PlexAPI { /** * Operations against the Plex Media Server System. - * */ public Server server() { return server; @@ -173,7 +158,6 @@ public class PlexAPI { /** * API Calls interacting with Plex Media Server Media - * */ public Media media() { return media; @@ -181,7 +165,6 @@ public class PlexAPI { /** * API Calls that perform operations with Plex Media Server Videos - * */ public Video video() { return video; @@ -195,7 +178,6 @@ public class PlexAPI { * - They must contain an `type` which is used by clients to distinguish the specific activity. * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * */ public Activities activities() { return activities; @@ -203,7 +185,6 @@ public class PlexAPI { /** * Butler is the task manager of the Plex Media Server Ecosystem. - * */ public Butler butler() { return butler; @@ -211,7 +192,6 @@ public class PlexAPI { /** * API Calls that perform operations directly against https://Plex.tv - * */ public Plex plex() { return plex; @@ -219,7 +199,6 @@ public class PlexAPI { /** * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * */ public Hubs hubs() { return hubs; @@ -227,7 +206,6 @@ public class PlexAPI { /** * API Calls that perform search operations with Plex Media Server - * */ public Search search() { return search; @@ -235,7 +213,6 @@ public class PlexAPI { /** * API Calls interacting with Plex Media Server Libraries - * */ public Library library() { return library; @@ -243,7 +220,6 @@ public class PlexAPI { /** * API Calls that perform operations with Plex Media Server Watchlists - * */ public Watchlist watchlist() { return watchlist; @@ -251,7 +227,6 @@ public class PlexAPI { /** * Submit logs to the Log Handler for Plex Media Server - * */ public Log log() { return log; @@ -262,7 +237,6 @@ public class PlexAPI { * They can be organized in (optionally nesting) folders. * Retrieving a playlist, or its items, will trigger a refresh of its metadata. * This may cause the duration and number of items to change. - * */ public Playlists playlists() { return playlists; @@ -270,7 +244,6 @@ public class PlexAPI { /** * API Calls regarding authentication for Plex Media Server - * */ public Authentication authentication() { return authentication; @@ -278,7 +251,6 @@ public class PlexAPI { /** * API Calls that perform operations with Plex Media Server Statistics - * */ public Statistics statistics() { return statistics; @@ -286,7 +258,6 @@ public class PlexAPI { /** * API Calls that perform search operations with Plex Media Server Sessions - * */ public Sessions sessions() { return sessions; @@ -295,7 +266,6 @@ public class PlexAPI { /** * This describes the API for searching and applying updates to the Plex Media Server. * Updates to the status can be observed via the Event API. - * */ public Updater updater() { return updater; @@ -342,6 +312,7 @@ public class PlexAPI { /** * Configures the SDK to use a custom security source. + * * @param securitySource The security source to use for all requests. * @return The builder instance. */ @@ -396,7 +367,9 @@ public class PlexAPI { return this; } /** - * ServerProtocol - The protocol to use for the server connection + * ServerProtocol + * + *

The protocol to use for the server connection */ public enum ServerProtocol { HTTP("http"), @@ -412,6 +385,15 @@ public class PlexAPI { public String value() { return value; } + + public static Optional fromValue(String value) { + for (ServerProtocol o: ServerProtocol.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } } /** * Sets the protocol variable for url substitution. @@ -478,6 +460,7 @@ public class PlexAPI { /** * Builds a new instance of the SDK. + * * @return The SDK instance. */ public PlexAPI build() { @@ -500,6 +483,7 @@ public class PlexAPI { /** * Get a new instance of the SDK builder to configure a new instance of the SDK. + * * @return The SDK builder instance. */ public static Builder builder() { diff --git a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java index 5f8fecae..eff274b4 100644 --- a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java +++ b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import dev.plexapi.sdk.hooks.SDKHooks; @@ -18,6 +17,8 @@ import java.util.List; import java.util.Map; import java.util.Optional; + + class SDKConfiguration { public SecuritySource securitySource; @@ -43,8 +44,8 @@ class SDKConfiguration { } }; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.0.3"; - public static final String SDK_VERSION = "0.13.1"; - public static final String GEN_VERSION = "2.545.4"; + public static final String SDK_VERSION = "0.14.0"; + public static final String GEN_VERSION = "2.563.1"; private static final String BASE_PACKAGE = "dev.plexapi.sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/dev/plexapi/sdk/Search.java b/src/main/java/dev/plexapi/sdk/Search.java index c3b31fd7..ed198ed3 100644 --- a/src/main/java/dev/plexapi/sdk/Search.java +++ b/src/main/java/dev/plexapi/sdk/Search.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -36,11 +35,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform search operations with Plex Media Server - * */ public class Search implements MethodCallPerformSearch, @@ -56,18 +56,19 @@ public class Search implements /** * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + *

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). * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + *

In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + *

- `reason`: The reason for the result, if not because of a direct search term match; can be either: * - `section`: There are multiple identical results from different sections. * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. * - * This request is intended to be very fast, and called as the user types. + *

This request is intended to be very fast, and called as the user types. * * @return The call builder */ @@ -77,18 +78,19 @@ public class Search implements /** * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + *

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). * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + *

In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + *

- `reason`: The reason for the result, if not because of a direct search term match; can be either: * - `section`: There are multiple identical results from different sections. * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. * - * This request is intended to be very fast, and called as the user types. + *

This request is intended to be very fast, and called as the user types. * * @param query The query term * @return The response from the API call @@ -101,18 +103,19 @@ public class Search implements /** * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + *

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). * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + *

In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + *

- `reason`: The reason for the result, if not because of a direct search term match; can be either: * - `section`: There are multiple identical results from different sections. * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. * - * This request is intended to be very fast, and called as the user types. + *

This request is intended to be very fast, and called as the user types. * * @param query The query term * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs @@ -156,6 +159,7 @@ public class Search implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "performSearch", Optional.of(List.of()), _hookSecuritySource), @@ -167,6 +171,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "performSearch", Optional.of(List.of()), _hookSecuritySource), @@ -176,6 +181,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "performSearch", Optional.of(List.of()), _hookSecuritySource), @@ -185,6 +191,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "performSearch", Optional.of(List.of()), _hookSecuritySource), @@ -267,7 +274,8 @@ public class Search implements /** * 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. + * + *

This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. * Whenever possible, clients should limit the search to the appropriate type. * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. @@ -280,7 +288,8 @@ public class Search implements /** * 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. + * + *

This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. * Whenever possible, clients should limit the search to the appropriate type. * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. @@ -296,7 +305,8 @@ public class Search implements /** * 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. + * + *

This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. * Whenever possible, clients should limit the search to the appropriate type. * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. @@ -343,6 +353,7 @@ public class Search implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "performVoiceSearch", Optional.of(List.of()), _hookSecuritySource), @@ -354,6 +365,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "performVoiceSearch", Optional.of(List.of()), _hookSecuritySource), @@ -363,6 +375,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "performVoiceSearch", Optional.of(List.of()), _hookSecuritySource), @@ -372,6 +385,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "performVoiceSearch", Optional.of(List.of()), _hookSecuritySource), @@ -454,7 +468,9 @@ public class Search implements /** * Get Search Results - * This will search the database for the string provided. + * + *

This will search the database for the string provided. + * * @return The call builder */ public GetSearchResultsRequestBuilder getSearchResults() { @@ -463,7 +479,9 @@ public class Search implements /** * Get Search Results - * This will search the database for the string provided. + * + *

This will search the database for the string provided. + * * @param query The search query string to use * @return The response from the API call * @throws Exception if the API call fails @@ -500,6 +518,7 @@ public class Search implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getSearchResults", Optional.of(List.of()), _hookSecuritySource), @@ -511,6 +530,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSearchResults", Optional.of(List.of()), _hookSecuritySource), @@ -520,6 +540,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getSearchResults", Optional.of(List.of()), _hookSecuritySource), @@ -529,6 +550,7 @@ public class Search implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSearchResults", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/SecuritySource.java b/src/main/java/dev/plexapi/sdk/SecuritySource.java index 035cc6d1..622efc75 100644 --- a/src/main/java/dev/plexapi/sdk/SecuritySource.java +++ b/src/main/java/dev/plexapi/sdk/SecuritySource.java @@ -1,27 +1,28 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; -import dev.plexapi.sdk.models.shared.Security; +import dev.plexapi.sdk.utils.HasSecurity; + + public interface SecuritySource { - Security getSecurity(); + HasSecurity getSecurity(); - public static SecuritySource of(Security security) { + public static SecuritySource of(HasSecurity security) { return new DefaultSecuritySource(security); } public static class DefaultSecuritySource implements SecuritySource { - private Security security; + private HasSecurity security; - public DefaultSecuritySource(Security security) { + public DefaultSecuritySource(HasSecurity security) { this.security = security; } - public Security getSecurity() { + public HasSecurity getSecurity() { return security; } } diff --git a/src/main/java/dev/plexapi/sdk/Server.java b/src/main/java/dev/plexapi/sdk/Server.java index 930e9e77..0f0d0a34 100644 --- a/src/main/java/dev/plexapi/sdk/Server.java +++ b/src/main/java/dev/plexapi/sdk/Server.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -64,11 +63,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * Operations against the Plex Media Server System. - * */ public class Server implements MethodCallGetServerCapabilities, @@ -90,7 +90,9 @@ public class Server implements /** * Get Server Capabilities - * Get Server Capabilities + * + *

Get Server Capabilities + * * @return The call builder */ public GetServerCapabilitiesRequestBuilder getServerCapabilities() { @@ -99,7 +101,9 @@ public class Server implements /** * Get Server Capabilities - * Get Server Capabilities + * + *

Get Server Capabilities + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -123,6 +127,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getServerCapabilities", Optional.of(List.of()), _hookSecuritySource), @@ -134,6 +139,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerCapabilities", Optional.of(List.of()), _hookSecuritySource), @@ -143,6 +149,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getServerCapabilities", Optional.of(List.of()), _hookSecuritySource), @@ -152,6 +159,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerCapabilities", Optional.of(List.of()), _hookSecuritySource), @@ -245,7 +253,9 @@ public class Server implements /** * Get Server Preferences - * Get Server Preferences + * + *

Get Server Preferences + * * @return The call builder */ public GetServerPreferencesRequestBuilder getServerPreferences() { @@ -254,7 +264,9 @@ public class Server implements /** * Get Server Preferences - * Get Server Preferences + * + *

Get Server Preferences + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -278,6 +290,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getServerPreferences", Optional.of(List.of()), _hookSecuritySource), @@ -289,6 +302,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerPreferences", Optional.of(List.of()), _hookSecuritySource), @@ -298,6 +312,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getServerPreferences", Optional.of(List.of()), _hookSecuritySource), @@ -307,6 +322,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerPreferences", Optional.of(List.of()), _hookSecuritySource), @@ -400,7 +416,9 @@ public class Server implements /** * Get Available Clients - * Get Available Clients + * + *

Get Available Clients + * * @return The call builder */ public GetAvailableClientsRequestBuilder getAvailableClients() { @@ -409,7 +427,9 @@ public class Server implements /** * Get Available Clients - * Get Available Clients + * + *

Get Available Clients + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -433,6 +453,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getAvailableClients", Optional.of(List.of()), _hookSecuritySource), @@ -444,6 +465,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getAvailableClients", Optional.of(List.of()), _hookSecuritySource), @@ -453,6 +475,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getAvailableClients", Optional.of(List.of()), _hookSecuritySource), @@ -462,6 +485,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getAvailableClients", Optional.of(List.of()), _hookSecuritySource), @@ -555,7 +579,9 @@ public class Server implements /** * Get Devices - * Get Devices + * + *

Get Devices + * * @return The call builder */ public GetDevicesRequestBuilder getDevices() { @@ -564,7 +590,9 @@ public class Server implements /** * Get Devices - * Get Devices + * + *

Get Devices + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -588,6 +616,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getDevices", Optional.of(List.of()), _hookSecuritySource), @@ -599,6 +628,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getDevices", Optional.of(List.of()), _hookSecuritySource), @@ -608,6 +638,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getDevices", Optional.of(List.of()), _hookSecuritySource), @@ -617,6 +648,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getDevices", Optional.of(List.of()), _hookSecuritySource), @@ -710,7 +742,9 @@ public class Server implements /** * Get Server Identity - * This request is useful to determine if the server is online or offline + * + *

This request is useful to determine if the server is online or offline + * * @return The call builder */ public GetServerIdentityRequestBuilder getServerIdentity() { @@ -719,7 +753,9 @@ public class Server implements /** * Get Server Identity - * This request is useful to determine if the server is online or offline + * + *

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 */ @@ -740,6 +776,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-server-identity", Optional.of(List.of()), _hookSecuritySource), @@ -751,6 +788,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-server-identity", Optional.of(List.of()), _hookSecuritySource), @@ -760,6 +798,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-server-identity", Optional.of(List.of()), _hookSecuritySource), @@ -769,6 +808,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-server-identity", Optional.of(List.of()), _hookSecuritySource), @@ -846,7 +886,9 @@ public class Server implements /** * Get MyPlex Account - * Returns MyPlex Account Information + * + *

Returns MyPlex Account Information + * * @return The call builder */ public GetMyPlexAccountRequestBuilder getMyPlexAccount() { @@ -855,7 +897,9 @@ public class Server implements /** * Get MyPlex Account - * Returns MyPlex Account Information + * + *

Returns MyPlex Account Information + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -879,6 +923,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getMyPlexAccount", Optional.of(List.of()), _hookSecuritySource), @@ -890,6 +935,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getMyPlexAccount", Optional.of(List.of()), _hookSecuritySource), @@ -899,6 +945,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getMyPlexAccount", Optional.of(List.of()), _hookSecuritySource), @@ -908,6 +955,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getMyPlexAccount", Optional.of(List.of()), _hookSecuritySource), @@ -1001,7 +1049,8 @@ public class Server implements /** * Get a Resized Photo - * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. + * + *

Plex's Photo transcoder is used throughout the service to serve images at specified sizes. * * @return The call builder */ @@ -1011,7 +1060,8 @@ public class Server implements /** * Get a Resized Photo - * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. + * + *

Plex's Photo transcoder is used throughout the service to serve images at specified sizes. * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call @@ -1043,6 +1093,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getResizedPhoto", Optional.of(List.of()), _hookSecuritySource), @@ -1054,6 +1105,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getResizedPhoto", Optional.of(List.of()), _hookSecuritySource), @@ -1063,6 +1115,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getResizedPhoto", Optional.of(List.of()), _hookSecuritySource), @@ -1072,6 +1125,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getResizedPhoto", Optional.of(List.of()), _hookSecuritySource), @@ -1154,7 +1208,9 @@ public class Server implements /** * Get Media Providers - * Retrieves media providers and their features from the Plex server. + * + *

Retrieves media providers and their features from the Plex server. + * * @return The call builder */ public GetMediaProvidersRequestBuilder getMediaProviders() { @@ -1163,7 +1219,9 @@ public class Server implements /** * Get Media Providers - * Retrieves media providers and their features from the Plex server. + * + *

Retrieves media providers and their features from the Plex server. + * * @param xPlexToken An authentication token, obtained from plex.tv * @return The response from the API call * @throws Exception if the API call fails @@ -1196,6 +1254,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-media-providers", Optional.of(List.of()), _hookSecuritySource), @@ -1207,6 +1266,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-media-providers", Optional.of(List.of()), _hookSecuritySource), @@ -1216,6 +1276,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-media-providers", Optional.of(List.of()), _hookSecuritySource), @@ -1225,6 +1286,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-media-providers", Optional.of(List.of()), _hookSecuritySource), @@ -1318,7 +1380,9 @@ public class Server implements /** * Get Server List - * Get Server List + * + *

Get Server List + * * @return The call builder */ public GetServerListRequestBuilder getServerList() { @@ -1327,7 +1391,9 @@ public class Server implements /** * Get Server List - * Get Server List + * + *

Get Server List + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -1351,6 +1417,7 @@ public class Server implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getServerList", Optional.of(List.of()), _hookSecuritySource), @@ -1362,6 +1429,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerList", Optional.of(List.of()), _hookSecuritySource), @@ -1371,6 +1439,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getServerList", Optional.of(List.of()), _hookSecuritySource), @@ -1380,6 +1449,7 @@ public class Server implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getServerList", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Sessions.java b/src/main/java/dev/plexapi/sdk/Sessions.java index c0fda3c3..c5a07882 100644 --- a/src/main/java/dev/plexapi/sdk/Sessions.java +++ b/src/main/java/dev/plexapi/sdk/Sessions.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -42,11 +41,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform search operations with Plex Media Server Sessions - * */ public class Sessions implements MethodCallGetSessions, @@ -63,7 +63,9 @@ public class Sessions implements /** * Get Active Sessions - * This will retrieve the "Now Playing" Information of the PMS. + * + *

This will retrieve the "Now Playing" Information of the PMS. + * * @return The call builder */ public GetSessionsRequestBuilder getSessions() { @@ -72,7 +74,9 @@ public class Sessions implements /** * Get Active Sessions - * This will retrieve the "Now Playing" Information of the PMS. + * + *

This will retrieve the "Now Playing" Information of the PMS. + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -96,6 +100,7 @@ public class Sessions implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getSessions", Optional.of(List.of()), _hookSecuritySource), @@ -107,6 +112,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSessions", Optional.of(List.of()), _hookSecuritySource), @@ -116,6 +122,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getSessions", Optional.of(List.of()), _hookSecuritySource), @@ -125,6 +132,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSessions", Optional.of(List.of()), _hookSecuritySource), @@ -218,7 +226,9 @@ public class Sessions implements /** * Get Session History - * This will Retrieve a listing of all history views. + * + *

This will Retrieve a listing of all history views. + * * @return The call builder */ public GetSessionHistoryRequestBuilder getSessionHistory() { @@ -227,7 +237,9 @@ public class Sessions implements /** * Get Session History - * This will Retrieve a listing of all history views. + * + *

This will Retrieve a listing of all history views. + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -237,16 +249,18 @@ public class Sessions implements /** * Get Session History - * This will Retrieve a listing of all history views. + * + *

This will Retrieve a listing of all history views. + * * @param sort Sorts the results by the specified field followed by the direction (asc, desc) - + * * @param accountId Filter results by those that are related to a specific users id - + * * @param filter Filters content by field and direction/equality - (Unknown if viewedAt is the only supported column) - + * (Unknown if viewedAt is the only supported column) + * * @param librarySectionID Filters the results based on the id of a valid library section - + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -288,6 +302,7 @@ public class Sessions implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getSessionHistory", Optional.of(List.of()), _hookSecuritySource), @@ -299,6 +314,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSessionHistory", Optional.of(List.of()), _hookSecuritySource), @@ -308,6 +324,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getSessionHistory", Optional.of(List.of()), _hookSecuritySource), @@ -317,6 +334,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getSessionHistory", Optional.of(List.of()), _hookSecuritySource), @@ -410,7 +428,9 @@ public class Sessions implements /** * Get Transcode Sessions - * Get Transcode Sessions + * + *

Get Transcode Sessions + * * @return The call builder */ public GetTranscodeSessionsRequestBuilder getTranscodeSessions() { @@ -419,7 +439,9 @@ public class Sessions implements /** * Get Transcode Sessions - * Get Transcode Sessions + * + *

Get Transcode Sessions + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -443,6 +465,7 @@ public class Sessions implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTranscodeSessions", Optional.of(List.of()), _hookSecuritySource), @@ -454,6 +477,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTranscodeSessions", Optional.of(List.of()), _hookSecuritySource), @@ -463,6 +487,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTranscodeSessions", Optional.of(List.of()), _hookSecuritySource), @@ -472,6 +497,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTranscodeSessions", Optional.of(List.of()), _hookSecuritySource), @@ -565,7 +591,9 @@ public class Sessions implements /** * Stop a Transcode Session - * Stop a Transcode Session + * + *

Stop a Transcode Session + * * @return The call builder */ public StopTranscodeSessionRequestBuilder stopTranscodeSession() { @@ -574,7 +602,9 @@ public class Sessions implements /** * Stop a Transcode Session - * Stop a Transcode Session + * + *

Stop a Transcode Session + * * @param sessionKey the Key of the transcode session to stop * @return The response from the API call * @throws Exception if the API call fails @@ -608,6 +638,7 @@ public class Sessions implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "stopTranscodeSession", Optional.of(List.of()), _hookSecuritySource), @@ -619,6 +650,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopTranscodeSession", Optional.of(List.of()), _hookSecuritySource), @@ -628,6 +660,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "stopTranscodeSession", Optional.of(List.of()), _hookSecuritySource), @@ -637,6 +670,7 @@ public class Sessions implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "stopTranscodeSession", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Statistics.java b/src/main/java/dev/plexapi/sdk/Statistics.java index 02243131..8278ad87 100644 --- a/src/main/java/dev/plexapi/sdk/Statistics.java +++ b/src/main/java/dev/plexapi/sdk/Statistics.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -38,11 +37,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform operations with Plex Media Server Statistics - * */ public class Statistics implements MethodCallGetStatistics, @@ -58,7 +58,9 @@ public class Statistics implements /** * Get Media Statistics - * This will return the media statistics for the server + * + *

This will return the media statistics for the server + * * @return The call builder */ public GetStatisticsRequestBuilder getStatistics() { @@ -67,7 +69,9 @@ public class Statistics implements /** * Get Media Statistics - * This will return the media statistics for the server + * + *

This will return the media statistics for the server + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -77,10 +81,12 @@ public class Statistics implements /** * Get Media Statistics - * This will return the media statistics for the server + * + *

This will return the media statistics for the server + * * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - + * the exact meaning of this parameter is not known + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -116,6 +122,7 @@ public class Statistics implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -127,6 +134,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -136,6 +144,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -145,6 +154,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -238,7 +248,9 @@ public class Statistics implements /** * Get Resources Statistics - * This will return the resources for the server + * + *

This will return the resources for the server + * * @return The call builder */ public GetResourcesStatisticsRequestBuilder getResourcesStatistics() { @@ -247,7 +259,9 @@ public class Statistics implements /** * Get Resources Statistics - * This will return the resources for the server + * + *

This will return the resources for the server + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -257,10 +271,12 @@ public class Statistics implements /** * Get Resources Statistics - * This will return the resources for the server + * + *

This will return the resources for the server + * * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - + * the exact meaning of this parameter is not known + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -296,6 +312,7 @@ public class Statistics implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getResourcesStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -307,6 +324,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getResourcesStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -316,6 +334,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getResourcesStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -325,6 +344,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getResourcesStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -418,7 +438,9 @@ public class Statistics implements /** * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server + * + *

This will return the bandwidth statistics for the server + * * @return The call builder */ public GetBandwidthStatisticsRequestBuilder getBandwidthStatistics() { @@ -427,7 +449,9 @@ public class Statistics implements /** * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server + * + *

This will return the bandwidth statistics for the server + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -437,10 +461,12 @@ public class Statistics implements /** * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server + * + *

This will return the bandwidth statistics for the server + * * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - + * the exact meaning of this parameter is not known + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -476,6 +502,7 @@ public class Statistics implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getBandwidthStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -487,6 +514,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getBandwidthStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -496,6 +524,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getBandwidthStatistics", Optional.of(List.of()), _hookSecuritySource), @@ -505,6 +534,7 @@ public class Statistics implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getBandwidthStatistics", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Updater.java b/src/main/java/dev/plexapi/sdk/Updater.java index 59b3b145..3ca0c4f0 100644 --- a/src/main/java/dev/plexapi/sdk/Updater.java +++ b/src/main/java/dev/plexapi/sdk/Updater.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -37,12 +36,13 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * This describes the API for searching and applying updates to the Plex Media Server. * Updates to the status can be observed via the Event API. - * */ public class Updater implements MethodCallGetUpdateStatus, @@ -58,7 +58,9 @@ public class Updater implements /** * Querying status of updates - * Querying status of updates + * + *

Querying status of updates + * * @return The call builder */ public GetUpdateStatusRequestBuilder getUpdateStatus() { @@ -67,7 +69,9 @@ public class Updater implements /** * Querying status of updates - * Querying status of updates + * + *

Querying status of updates + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -91,6 +95,7 @@ public class Updater implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getUpdateStatus", Optional.of(List.of()), _hookSecuritySource), @@ -102,6 +107,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getUpdateStatus", Optional.of(List.of()), _hookSecuritySource), @@ -111,6 +117,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getUpdateStatus", Optional.of(List.of()), _hookSecuritySource), @@ -120,6 +127,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getUpdateStatus", Optional.of(List.of()), _hookSecuritySource), @@ -213,7 +221,9 @@ public class Updater implements /** * Checking for updates - * Checking for updates + * + *

Checking for updates + * * @return The call builder */ public CheckForUpdatesRequestBuilder checkForUpdates() { @@ -222,7 +232,9 @@ public class Updater implements /** * Checking for updates - * Checking for updates + * + *

Checking for updates + * * @return The response from the API call * @throws Exception if the API call fails */ @@ -232,7 +244,9 @@ public class Updater implements /** * Checking for updates - * Checking for updates + * + *

Checking for updates + * * @param download Indicate that you want to start download any updates found. * @return The response from the API call * @throws Exception if the API call fails @@ -269,6 +283,7 @@ public class Updater implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "checkForUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -280,6 +295,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "checkForUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -289,6 +305,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "checkForUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -298,6 +315,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "checkForUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -380,7 +398,8 @@ public class Updater implements /** * 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 + * + *

Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed * * @return The call builder */ @@ -390,7 +409,8 @@ public class Updater implements /** * 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 + * + *

Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed * * @return The response from the API call * @throws Exception if the API call fails @@ -401,7 +421,8 @@ public class Updater implements /** * 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 + * + *

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 [Release] entry for this version will have the `state` set to `skipped`. @@ -442,6 +463,7 @@ public class Updater implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "applyUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -453,6 +475,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "applyUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -462,6 +485,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "applyUpdates", Optional.of(List.of()), _hookSecuritySource), @@ -471,6 +495,7 @@ public class Updater implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "applyUpdates", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Users.java b/src/main/java/dev/plexapi/sdk/Users.java index 34e7446a..50ced3a7 100644 --- a/src/main/java/dev/plexapi/sdk/Users.java +++ b/src/main/java/dev/plexapi/sdk/Users.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -25,7 +24,9 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.HashMap; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + public class Users implements MethodCallGetUsers { @@ -46,7 +47,9 @@ public class Users implements /** * Get list of all connected users - * Get list of all users that are friends and have library access with the provided Plex authentication token + * + *

Get list of all users that are friends and have library access with the provided Plex authentication token + * * @return The call builder */ public GetUsersRequestBuilder getUsers() { @@ -55,7 +58,9 @@ public class Users implements /** * Get list of all connected users - * Get list of all users that are friends and have library access with the provided Plex authentication token + * + *

Get list of all users that are friends and have library access with the provided Plex authentication token + * * @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 @@ -67,7 +72,9 @@ public class Users implements /** * Get list of all connected users - * Get list of all users that are friends and have library access with the provided Plex authentication token + * + *

Get list of all users that are friends and have library access with the provided Plex authentication token + * * @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 @@ -76,9 +83,11 @@ public class Users implements public GetUsersResponse getUsers( GetUsersRequest request, Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_USERS_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_USERS_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( _baseUrl, @@ -95,6 +104,7 @@ public class Users implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-users", Optional.of(List.of()), _hookSecuritySource), @@ -106,6 +116,7 @@ public class Users implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-users", Optional.of(List.of()), _hookSecuritySource), @@ -115,6 +126,7 @@ public class Users implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-users", Optional.of(List.of()), _hookSecuritySource), @@ -124,6 +136,7 @@ public class Users implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-users", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Video.java b/src/main/java/dev/plexapi/sdk/Video.java index 20718340..7f6311b2 100644 --- a/src/main/java/dev/plexapi/sdk/Video.java +++ b/src/main/java/dev/plexapi/sdk/Video.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -29,11 +28,12 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform operations with Plex Media Server Videos - * */ public class Video implements MethodCallGetTimeline, @@ -48,7 +48,9 @@ public class Video implements /** * Get the timeline for a media item - * Get the timeline for a media item + * + *

Get the timeline for a media item + * * @return The call builder */ public GetTimelineRequestBuilder getTimeline() { @@ -57,7 +59,9 @@ public class Video implements /** * Get the timeline for a media item - * Get the timeline for a media item + * + *

Get the timeline for a media item + * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails @@ -88,6 +92,7 @@ public class Video implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "getTimeline", Optional.of(List.of()), _hookSecuritySource), @@ -99,6 +104,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTimeline", Optional.of(List.of()), _hookSecuritySource), @@ -108,6 +114,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "getTimeline", Optional.of(List.of()), _hookSecuritySource), @@ -117,6 +124,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "getTimeline", Optional.of(List.of()), _hookSecuritySource), @@ -199,7 +207,9 @@ public class Video implements /** * Start Universal Transcode - * Begin a Universal Transcode Session + * + *

Begin a Universal Transcode Session + * * @return The call builder */ public StartUniversalTranscodeRequestBuilder startUniversalTranscode() { @@ -208,7 +218,9 @@ public class Video implements /** * Start Universal Transcode - * Begin a Universal Transcode Session + * + *

Begin a Universal Transcode Session + * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails @@ -239,6 +251,7 @@ public class Video implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "startUniversalTranscode", Optional.of(List.of()), _hookSecuritySource), @@ -250,6 +263,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startUniversalTranscode", Optional.of(List.of()), _hookSecuritySource), @@ -259,6 +273,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "startUniversalTranscode", Optional.of(List.of()), _hookSecuritySource), @@ -268,6 +283,7 @@ public class Video implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "startUniversalTranscode", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/Watchlist.java b/src/main/java/dev/plexapi/sdk/Watchlist.java index 915a105c..6aafe50d 100644 --- a/src/main/java/dev/plexapi/sdk/Watchlist.java +++ b/src/main/java/dev/plexapi/sdk/Watchlist.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk; import com.fasterxml.jackson.core.type.TypeReference; @@ -26,11 +25,12 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.HashMap; import java.util.List; -import java.util.Optional; +import java.util.Optional; + + /** * API Calls that perform operations with Plex Media Server Watchlists - * */ public class Watchlist implements MethodCallGetWatchList { @@ -54,7 +54,9 @@ public class Watchlist implements /** * Get User Watchlist - * Get User Watchlist + * + *

Get User Watchlist + * * @return The call builder */ public GetWatchListRequestBuilder getWatchList() { @@ -63,7 +65,9 @@ public class Watchlist implements /** * Get User Watchlist - * Get User Watchlist + * + *

Get User Watchlist + * * @param request The request object containing all of the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails @@ -75,7 +79,9 @@ public class Watchlist implements /** * Get User Watchlist - * Get User Watchlist + * + *

Get User Watchlist + * * @param request The request object containing all of the parameters for the API call. * @param serverURL Overrides the server URL. * @return The response from the API call @@ -84,9 +90,11 @@ public class Watchlist implements public GetWatchListResponse getWatchList( GetWatchListRequest request, Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap()); + final String _baseUrl; if (serverURL.isPresent() && !serverURL.get().isBlank()) { _baseUrl = serverURL.get(); + } else { + _baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap()); } String _url = Utils.generateURL( GetWatchListRequest.class, @@ -113,6 +121,7 @@ public class Watchlist implements sdkConfiguration.hooks() .beforeRequest( new BeforeRequestContextImpl( + _baseUrl, "get-watch-list", Optional.of(List.of()), _hookSecuritySource), @@ -124,6 +133,7 @@ public class Watchlist implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-watch-list", Optional.of(List.of()), _hookSecuritySource), @@ -133,6 +143,7 @@ public class Watchlist implements _httpRes = sdkConfiguration.hooks() .afterSuccess( new AfterSuccessContextImpl( + _baseUrl, "get-watch-list", Optional.of(List.of()), _hookSecuritySource), @@ -142,6 +153,7 @@ public class Watchlist implements _httpRes = sdkConfiguration.hooks() .afterError( new AfterErrorContextImpl( + _baseUrl, "get-watch-list", Optional.of(List.of()), _hookSecuritySource), diff --git a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsBadRequest.java index 1dc56903..a48774cd 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * AddPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * AddPlaylistContentsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class AddPlaylistContentsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public AddPlaylistContentsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { return false; } AddPlaylistContentsBadRequest other = (AddPlaylistContentsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(AddPlaylistContentsBadRequest.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 } @@ -138,7 +145,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public AddPlaylistContentsBadRequest build() { return new AddPlaylistContentsBadRequest( errors, @@ -170,3 +177,4 @@ public class AddPlaylistContentsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java index 997395c3..a9651d67 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class AddPlaylistContentsErrors { public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class AddPlaylistContentsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class AddPlaylistContentsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class AddPlaylistContentsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsPlaylistsErrors.java index e1807676..89bb3246 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class AddPlaylistContentsPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class AddPlaylistContentsPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class AddPlaylistContentsPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class AddPlaylistContentsPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsUnauthorized.java index 396b4964..beb51fee 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AddPlaylistContentsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * AddPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * AddPlaylistContentsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class AddPlaylistContentsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public AddPlaylistContentsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { return false; } AddPlaylistContentsUnauthorized other = (AddPlaylistContentsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(AddPlaylistContentsUnauthorized.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 } @@ -138,7 +145,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public AddPlaylistContentsUnauthorized build() { return new AddPlaylistContentsUnauthorized( errors, @@ -170,3 +177,4 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesBadRequest.java index 99e6145a..2ecf84c7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * ApplyUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * ApplyUpdatesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class ApplyUpdatesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class ApplyUpdatesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class ApplyUpdatesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public ApplyUpdatesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public ApplyUpdatesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class ApplyUpdatesBadRequest extends RuntimeException { return false; } ApplyUpdatesBadRequest other = (ApplyUpdatesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(ApplyUpdatesBadRequest.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 } @@ -138,7 +145,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public ApplyUpdatesBadRequest build() { return new ApplyUpdatesBadRequest( errors, @@ -170,3 +177,4 @@ public class ApplyUpdatesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java index 107764fa..cd5f004b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class ApplyUpdatesErrors { public final static Builder builder() { return new Builder(); - } + } public ApplyUpdatesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class ApplyUpdatesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class ApplyUpdatesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class ApplyUpdatesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUnauthorized.java index e9cf33df..0047b40f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * ApplyUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * ApplyUpdatesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class ApplyUpdatesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public ApplyUpdatesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public ApplyUpdatesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { return false; } ApplyUpdatesUnauthorized other = (ApplyUpdatesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(ApplyUpdatesUnauthorized.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 } @@ -138,7 +145,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public ApplyUpdatesUnauthorized build() { return new ApplyUpdatesUnauthorized( errors, @@ -170,3 +177,4 @@ public class ApplyUpdatesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUpdaterErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUpdaterErrors.java index 6315ff1c..15c32b40 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUpdaterErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ApplyUpdatesUpdaterErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class ApplyUpdatesUpdaterErrors { public final static Builder builder() { return new Builder(); - } + } public ApplyUpdatesUpdaterErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class ApplyUpdatesUpdaterErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class ApplyUpdatesUpdaterErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class ApplyUpdatesUpdaterErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java b/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java index 84331fdb..6b817e50 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/AuthException.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.errors; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesActivitiesErrors.java index cda8f841..e8ff8a73 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesActivitiesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CancelServerActivitiesActivitiesErrors { public final static Builder builder() { return new Builder(); - } + } public CancelServerActivitiesActivitiesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CancelServerActivitiesActivitiesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CancelServerActivitiesActivitiesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CancelServerActivitiesActivitiesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesBadRequest.java index abf17206..f5f5f0f1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CancelServerActivitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * CancelServerActivitiesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class CancelServerActivitiesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CancelServerActivitiesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CancelServerActivitiesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { return false; } CancelServerActivitiesBadRequest other = (CancelServerActivitiesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CancelServerActivitiesBadRequest.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 } @@ -138,7 +145,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CancelServerActivitiesBadRequest build() { return new CancelServerActivitiesBadRequest( errors, @@ -170,3 +177,4 @@ public class CancelServerActivitiesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java index 8092b574..21f4520d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CancelServerActivitiesErrors { public final static Builder builder() { return new Builder(); - } + } public CancelServerActivitiesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CancelServerActivitiesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CancelServerActivitiesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CancelServerActivitiesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesUnauthorized.java index 34d696c9..b4f41e55 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CancelServerActivitiesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CancelServerActivitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * CancelServerActivitiesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class CancelServerActivitiesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CancelServerActivitiesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CancelServerActivitiesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { return false; } CancelServerActivitiesUnauthorized other = (CancelServerActivitiesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CancelServerActivitiesUnauthorized.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 } @@ -138,7 +145,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CancelServerActivitiesUnauthorized build() { return new CancelServerActivitiesUnauthorized( errors, @@ -170,3 +177,4 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesBadRequest.java index d9ae244c..669deb00 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CheckForUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * CheckForUpdatesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class CheckForUpdatesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class CheckForUpdatesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CheckForUpdatesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CheckForUpdatesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CheckForUpdatesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CheckForUpdatesBadRequest extends RuntimeException { return false; } CheckForUpdatesBadRequest other = (CheckForUpdatesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CheckForUpdatesBadRequest.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 } @@ -138,7 +145,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CheckForUpdatesBadRequest build() { return new CheckForUpdatesBadRequest( errors, @@ -170,3 +177,4 @@ public class CheckForUpdatesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java index f838840d..ea6803a1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CheckForUpdatesErrors { public final static Builder builder() { return new Builder(); - } + } public CheckForUpdatesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CheckForUpdatesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CheckForUpdatesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CheckForUpdatesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUnauthorized.java index de651838..13be8a90 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CheckForUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * CheckForUpdatesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class CheckForUpdatesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CheckForUpdatesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CheckForUpdatesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { return false; } CheckForUpdatesUnauthorized other = (CheckForUpdatesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CheckForUpdatesUnauthorized.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 } @@ -138,7 +145,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CheckForUpdatesUnauthorized build() { return new CheckForUpdatesUnauthorized( errors, @@ -170,3 +177,4 @@ public class CheckForUpdatesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUpdaterErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUpdaterErrors.java index ff0cdf6c..00d87206 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUpdaterErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CheckForUpdatesUpdaterErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CheckForUpdatesUpdaterErrors { public final static Builder builder() { return new Builder(); - } + } public CheckForUpdatesUpdaterErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CheckForUpdatesUpdaterErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CheckForUpdatesUpdaterErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CheckForUpdatesUpdaterErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsBadRequest.java index a3fff3fb..b7892e4a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * ClearPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * ClearPlaylistContentsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class ClearPlaylistContentsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public ClearPlaylistContentsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public ClearPlaylistContentsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { return false; } ClearPlaylistContentsBadRequest other = (ClearPlaylistContentsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(ClearPlaylistContentsBadRequest.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 } @@ -138,7 +145,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public ClearPlaylistContentsBadRequest build() { return new ClearPlaylistContentsBadRequest( errors, @@ -170,3 +177,4 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java index 3317b683..4f46bc65 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class ClearPlaylistContentsErrors { public final static Builder builder() { return new Builder(); - } + } public ClearPlaylistContentsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class ClearPlaylistContentsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class ClearPlaylistContentsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class ClearPlaylistContentsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsPlaylistsErrors.java index c3b1d0c9..a636502c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class ClearPlaylistContentsPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public ClearPlaylistContentsPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class ClearPlaylistContentsPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class ClearPlaylistContentsPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class ClearPlaylistContentsPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsUnauthorized.java index 82e422e4..e149ad12 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/ClearPlaylistContentsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * ClearPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * ClearPlaylistContentsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class ClearPlaylistContentsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public ClearPlaylistContentsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public ClearPlaylistContentsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { return false; } ClearPlaylistContentsUnauthorized other = (ClearPlaylistContentsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(ClearPlaylistContentsUnauthorized.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 } @@ -138,7 +145,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public ClearPlaylistContentsUnauthorized build() { return new ClearPlaylistContentsUnauthorized( errors, @@ -170,3 +177,4 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistBadRequest.java index 280db86d..9b596642 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CreatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * CreatePlaylistBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class CreatePlaylistBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class CreatePlaylistBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CreatePlaylistBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CreatePlaylistBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CreatePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CreatePlaylistBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CreatePlaylistBadRequest extends RuntimeException { return false; } CreatePlaylistBadRequest other = (CreatePlaylistBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CreatePlaylistBadRequest.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 } @@ -138,7 +145,7 @@ public class CreatePlaylistBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CreatePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CreatePlaylistBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CreatePlaylistBadRequest build() { return new CreatePlaylistBadRequest( errors, @@ -170,3 +177,4 @@ public class CreatePlaylistBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java index b8bcb1e2..eaa22b94 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CreatePlaylistErrors { public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CreatePlaylistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CreatePlaylistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CreatePlaylistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistPlaylistsErrors.java index f8e4fe32..3ad6eac3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class CreatePlaylistPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class CreatePlaylistPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class CreatePlaylistPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class CreatePlaylistPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistUnauthorized.java index 28a6a573..c2993131 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/CreatePlaylistUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * CreatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * CreatePlaylistUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class CreatePlaylistUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class CreatePlaylistUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class CreatePlaylistUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public CreatePlaylistUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class CreatePlaylistUnauthorized extends RuntimeException { return false; } CreatePlaylistUnauthorized other = (CreatePlaylistUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(CreatePlaylistUnauthorized.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 } @@ -138,7 +145,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public CreatePlaylistUnauthorized build() { return new CreatePlaylistUnauthorized( errors, @@ -170,3 +177,4 @@ public class CreatePlaylistUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryBadRequest.java index d65a9eaa..9ba0112d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * DeleteLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * DeleteLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class DeleteLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class DeleteLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class DeleteLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public DeleteLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public DeleteLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class DeleteLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class DeleteLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class DeleteLibraryBadRequest extends RuntimeException { return false; } DeleteLibraryBadRequest other = (DeleteLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(DeleteLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class DeleteLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class DeleteLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class DeleteLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public DeleteLibraryBadRequest build() { return new DeleteLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class DeleteLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java index f4ec907a..fdaf6a74 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class DeleteLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public DeleteLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class DeleteLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class DeleteLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class DeleteLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryLibraryErrors.java index 5b854938..1ed3d348 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class DeleteLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public DeleteLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class DeleteLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class DeleteLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class DeleteLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryUnauthorized.java index 9b6d635f..d38f106b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeleteLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * DeleteLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * DeleteLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class DeleteLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class DeleteLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class DeleteLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public DeleteLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public DeleteLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class DeleteLibraryUnauthorized extends RuntimeException { return false; } DeleteLibraryUnauthorized other = (DeleteLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(DeleteLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public DeleteLibraryUnauthorized build() { return new DeleteLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class DeleteLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistBadRequest.java index c9aa2d7f..474d8bab 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * DeletePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * DeletePlaylistBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class DeletePlaylistBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class DeletePlaylistBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class DeletePlaylistBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public DeletePlaylistBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public DeletePlaylistBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class DeletePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class DeletePlaylistBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class DeletePlaylistBadRequest extends RuntimeException { return false; } DeletePlaylistBadRequest other = (DeletePlaylistBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(DeletePlaylistBadRequest.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 } @@ -138,7 +145,7 @@ public class DeletePlaylistBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class DeletePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class DeletePlaylistBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public DeletePlaylistBadRequest build() { return new DeletePlaylistBadRequest( errors, @@ -170,3 +177,4 @@ public class DeletePlaylistBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java index be26713e..afe945e4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class DeletePlaylistErrors { public final static Builder builder() { return new Builder(); - } + } public DeletePlaylistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class DeletePlaylistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class DeletePlaylistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class DeletePlaylistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistPlaylistsErrors.java index 894c7d1f..b96ff87a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class DeletePlaylistPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public DeletePlaylistPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class DeletePlaylistPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class DeletePlaylistPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class DeletePlaylistPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistUnauthorized.java index f76d0d0e..4d099624 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/DeletePlaylistUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * DeletePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * DeletePlaylistUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class DeletePlaylistUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class DeletePlaylistUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class DeletePlaylistUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public DeletePlaylistUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public DeletePlaylistUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class DeletePlaylistUnauthorized extends RuntimeException { return false; } DeletePlaylistUnauthorized other = (DeletePlaylistUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(DeletePlaylistUnauthorized.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 } @@ -138,7 +145,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public DeletePlaylistUnauthorized build() { return new DeletePlaylistUnauthorized( errors, @@ -170,3 +177,4 @@ public class DeletePlaylistUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailBadRequest.java index e177bd70..17d05982 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * EnablePaperTrailBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * EnablePaperTrailBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class EnablePaperTrailBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class EnablePaperTrailBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class EnablePaperTrailBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public EnablePaperTrailBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public EnablePaperTrailBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class EnablePaperTrailBadRequest extends RuntimeException { return false; } EnablePaperTrailBadRequest other = (EnablePaperTrailBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(EnablePaperTrailBadRequest.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 } @@ -138,7 +145,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public EnablePaperTrailBadRequest build() { return new EnablePaperTrailBadRequest( errors, @@ -170,3 +177,4 @@ public class EnablePaperTrailBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java index 28796e87..a1e1ccad 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class EnablePaperTrailErrors { public final static Builder builder() { return new Builder(); - } + } public EnablePaperTrailErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class EnablePaperTrailErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class EnablePaperTrailErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class EnablePaperTrailErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailLogErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailLogErrors.java index 9fa82022..63281e87 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailLogErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailLogErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class EnablePaperTrailLogErrors { public final static Builder builder() { return new Builder(); - } + } public EnablePaperTrailLogErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class EnablePaperTrailLogErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class EnablePaperTrailLogErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class EnablePaperTrailLogErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailUnauthorized.java index 745304c8..188c37b7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/EnablePaperTrailUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * EnablePaperTrailUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * EnablePaperTrailUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class EnablePaperTrailUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public EnablePaperTrailUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public EnablePaperTrailUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { return false; } EnablePaperTrailUnauthorized other = (EnablePaperTrailUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(EnablePaperTrailUnauthorized.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 } @@ -138,7 +145,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public EnablePaperTrailUnauthorized build() { return new EnablePaperTrailUnauthorized( errors, @@ -170,3 +177,4 @@ public class EnablePaperTrailUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/Errors.java b/src/main/java/dev/plexapi/sdk/models/errors/Errors.java index 0e6c07cd..8a4c72fe 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/Errors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/Errors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class Errors { public final static Builder builder() { return new Builder(); - } + } public Errors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class Errors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class Errors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class Errors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryBadRequest.java index 5d94489e..1e896859 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetActorsLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetActorsLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetActorsLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetActorsLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetActorsLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetActorsLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetActorsLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetActorsLibraryBadRequest extends RuntimeException { return false; } GetActorsLibraryBadRequest other = (GetActorsLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetActorsLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetActorsLibraryBadRequest build() { return new GetActorsLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetActorsLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryErrors.java index 8951cd6d..3eb3d965 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetActorsLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetActorsLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetActorsLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetActorsLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetActorsLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryLibraryErrors.java index 38e7aeff..698435cb 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetActorsLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetActorsLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetActorsLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetActorsLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetActorsLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryUnauthorized.java index c9542b18..2fee4ad9 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetActorsLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetActorsLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetActorsLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetActorsLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetActorsLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetActorsLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { return false; } GetActorsLibraryUnauthorized other = (GetActorsLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetActorsLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetActorsLibraryUnauthorized build() { return new GetActorsLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetActorsLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesBadRequest.java index cd12a04e..8f430556 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAllLibrariesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetAllLibrariesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetAllLibrariesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAllLibrariesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAllLibrariesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAllLibrariesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAllLibrariesBadRequest extends RuntimeException { return false; } GetAllLibrariesBadRequest other = (GetAllLibrariesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAllLibrariesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAllLibrariesBadRequest build() { return new GetAllLibrariesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetAllLibrariesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java index dfdff32f..bf6caad6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAllLibrariesErrors { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAllLibrariesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAllLibrariesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAllLibrariesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesLibraryErrors.java index d0b8cbaf..3a6b4f31 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAllLibrariesLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAllLibrariesLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAllLibrariesLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAllLibrariesLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesUnauthorized.java index 7252b9a3..25ce2bf8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllLibrariesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAllLibrariesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetAllLibrariesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetAllLibrariesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAllLibrariesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { return false; } GetAllLibrariesUnauthorized other = (GetAllLibrariesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAllLibrariesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAllLibrariesUnauthorized build() { return new GetAllLibrariesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetAllLibrariesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryBadRequest.java index e88ef6d5..101fb369 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAllMediaLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetAllMediaLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetAllMediaLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAllMediaLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { return false; } GetAllMediaLibraryBadRequest other = (GetAllMediaLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAllMediaLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAllMediaLibraryBadRequest build() { return new GetAllMediaLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryErrors.java index 3f235b85..a7ddb6ad 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAllMediaLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAllMediaLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAllMediaLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAllMediaLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryLibraryErrors.java index 5a85415a..b416677d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAllMediaLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAllMediaLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAllMediaLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAllMediaLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryUnauthorized.java index b5019c76..c8dd2f6c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAllMediaLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAllMediaLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetAllMediaLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetAllMediaLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAllMediaLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { return false; } GetAllMediaLibraryUnauthorized other = (GetAllMediaLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAllMediaLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAllMediaLibraryUnauthorized build() { return new GetAllMediaLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsBadRequest.java index d1834d26..5fe1ecde 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAvailableClientsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetAvailableClientsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetAvailableClientsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAvailableClientsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAvailableClientsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAvailableClientsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAvailableClientsBadRequest extends RuntimeException { return false; } GetAvailableClientsBadRequest other = (GetAvailableClientsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAvailableClientsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAvailableClientsBadRequest build() { return new GetAvailableClientsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetAvailableClientsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java index 9f312d0c..13b8e8d8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAvailableClientsErrors { public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAvailableClientsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAvailableClientsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAvailableClientsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsServerErrors.java index 68702e3b..c0de8906 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAvailableClientsServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetAvailableClientsServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetAvailableClientsServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetAvailableClientsServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsUnauthorized.java index 77a1980e..04af94b8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetAvailableClientsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetAvailableClientsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetAvailableClientsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetAvailableClientsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetAvailableClientsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { return false; } GetAvailableClientsUnauthorized other = (GetAvailableClientsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetAvailableClientsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetAvailableClientsUnauthorized build() { return new GetAvailableClientsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetAvailableClientsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsBadRequest.java index 7e9a196a..eb33c792 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetBandwidthStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetBandwidthStatisticsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetBandwidthStatisticsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetBandwidthStatisticsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { return false; } GetBandwidthStatisticsBadRequest other = (GetBandwidthStatisticsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetBandwidthStatisticsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetBandwidthStatisticsBadRequest build() { return new GetBandwidthStatisticsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java index 8cb95891..10c50bf8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetBandwidthStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetBandwidthStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetBandwidthStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetBandwidthStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsStatisticsErrors.java index d6e4fa30..1d7d94a2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetBandwidthStatisticsStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetBandwidthStatisticsStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetBandwidthStatisticsStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetBandwidthStatisticsStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsUnauthorized.java index 55561a38..62704ecf 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBandwidthStatisticsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetBandwidthStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetBandwidthStatisticsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetBandwidthStatisticsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetBandwidthStatisticsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { return false; } GetBandwidthStatisticsUnauthorized other = (GetBandwidthStatisticsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetBandwidthStatisticsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetBandwidthStatisticsUnauthorized build() { return new GetBandwidthStatisticsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageBadRequest.java index 243561b9..f22ae009 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetBannerImageBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetBannerImageBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetBannerImageBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetBannerImageBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetBannerImageBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetBannerImageBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetBannerImageBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetBannerImageBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetBannerImageBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetBannerImageBadRequest extends RuntimeException { return false; } GetBannerImageBadRequest other = (GetBannerImageBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetBannerImageBadRequest.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 } @@ -138,7 +145,7 @@ public class GetBannerImageBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetBannerImageBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetBannerImageBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetBannerImageBadRequest build() { return new GetBannerImageBadRequest( errors, @@ -170,3 +177,4 @@ public class GetBannerImageBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java index f78984a3..476d3b3d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetBannerImageErrors { public final static Builder builder() { return new Builder(); - } + } public GetBannerImageErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetBannerImageErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetBannerImageErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetBannerImageErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageMediaErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageMediaErrors.java index 7c6ae1be..9f4ca25e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageMediaErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageMediaErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetBannerImageMediaErrors { public final static Builder builder() { return new Builder(); - } + } public GetBannerImageMediaErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetBannerImageMediaErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetBannerImageMediaErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetBannerImageMediaErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageUnauthorized.java index 77bcfe25..8a0c760f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetBannerImageUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetBannerImageUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetBannerImageUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetBannerImageUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetBannerImageUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetBannerImageUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetBannerImageUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetBannerImageUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetBannerImageUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetBannerImageUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetBannerImageUnauthorized extends RuntimeException { return false; } GetBannerImageUnauthorized other = (GetBannerImageUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetBannerImageUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetBannerImageUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetBannerImageUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetBannerImageUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetBannerImageUnauthorized build() { return new GetBannerImageUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetBannerImageUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksBadRequest.java index df8fabaf..c9e333de 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetButlerTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetButlerTasksBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetButlerTasksBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetButlerTasksBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetButlerTasksBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetButlerTasksBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetButlerTasksBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetButlerTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetButlerTasksBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetButlerTasksBadRequest extends RuntimeException { return false; } GetButlerTasksBadRequest other = (GetButlerTasksBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetButlerTasksBadRequest.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 } @@ -138,7 +145,7 @@ public class GetButlerTasksBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetButlerTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetButlerTasksBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetButlerTasksBadRequest build() { return new GetButlerTasksBadRequest( errors, @@ -170,3 +177,4 @@ public class GetButlerTasksBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksButlerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksButlerErrors.java index 25762058..f54d5a66 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksButlerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksButlerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetButlerTasksButlerErrors { public final static Builder builder() { return new Builder(); - } + } public GetButlerTasksButlerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetButlerTasksButlerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetButlerTasksButlerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetButlerTasksButlerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java index 0d10080e..7441fe98 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetButlerTasksErrors { public final static Builder builder() { return new Builder(); - } + } public GetButlerTasksErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetButlerTasksErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetButlerTasksErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetButlerTasksErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksUnauthorized.java index 285904d2..7bce7a41 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetButlerTasksUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetButlerTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetButlerTasksUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetButlerTasksUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetButlerTasksUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetButlerTasksUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetButlerTasksUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetButlerTasksUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetButlerTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetButlerTasksUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetButlerTasksUnauthorized extends RuntimeException { return false; } GetButlerTasksUnauthorized other = (GetButlerTasksUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetButlerTasksUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetButlerTasksUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetButlerTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetButlerTasksUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetButlerTasksUnauthorized build() { return new GetButlerTasksUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetButlerTasksUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataBadRequest.java index aa8fb859..abf69e18 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetCompanionsDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetCompanionsDataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetCompanionsDataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetCompanionsDataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetCompanionsDataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetCompanionsDataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetCompanionsDataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetCompanionsDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetCompanionsDataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetCompanionsDataBadRequest extends RuntimeException { return false; } GetCompanionsDataBadRequest other = (GetCompanionsDataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetCompanionsDataBadRequest.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 } @@ -138,7 +145,7 @@ public class GetCompanionsDataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetCompanionsDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetCompanionsDataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetCompanionsDataBadRequest build() { return new GetCompanionsDataBadRequest( errors, @@ -170,3 +177,4 @@ public class GetCompanionsDataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java index eaccf07d..3f80242e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetCompanionsDataErrors { public final static Builder builder() { return new Builder(); - } + } public GetCompanionsDataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetCompanionsDataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetCompanionsDataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetCompanionsDataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataPlexErrors.java index 1d5f93e9..6142d326 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetCompanionsDataPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetCompanionsDataPlexErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetCompanionsDataPlexErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetCompanionsDataPlexErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetCompanionsDataPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataUnauthorized.java index 37844aad..34710dfe 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCompanionsDataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetCompanionsDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetCompanionsDataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetCompanionsDataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetCompanionsDataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetCompanionsDataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { return false; } GetCompanionsDataUnauthorized other = (GetCompanionsDataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetCompanionsDataUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetCompanionsDataUnauthorized build() { return new GetCompanionsDataUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetCompanionsDataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryBadRequest.java index b9defb3a..588c77ae 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetCountriesLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetCountriesLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetCountriesLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetCountriesLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { return false; } GetCountriesLibraryBadRequest other = (GetCountriesLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetCountriesLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetCountriesLibraryBadRequest build() { return new GetCountriesLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetCountriesLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryErrors.java index 92d24760..14e3b507 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetCountriesLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetCountriesLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetCountriesLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetCountriesLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryLibraryErrors.java index 4b27a933..6e736610 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetCountriesLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetCountriesLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetCountriesLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetCountriesLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryUnauthorized.java index cb3ab2da..c151ddc7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetCountriesLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetCountriesLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetCountriesLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetCountriesLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetCountriesLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { return false; } GetCountriesLibraryUnauthorized other = (GetCountriesLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetCountriesLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetCountriesLibraryUnauthorized build() { return new GetCountriesLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetCountriesLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesBadRequest.java index b6349310..43268554 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetDevicesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetDevicesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetDevicesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetDevicesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetDevicesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetDevicesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetDevicesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetDevicesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetDevicesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetDevicesBadRequest extends RuntimeException { return false; } GetDevicesBadRequest other = (GetDevicesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetDevicesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetDevicesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetDevicesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetDevicesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetDevicesBadRequest build() { return new GetDevicesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetDevicesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java index 69ac3f39..3e561a14 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetDevicesErrors { public final static Builder builder() { return new Builder(); - } + } public GetDevicesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetDevicesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetDevicesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetDevicesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesServerErrors.java index 3bf6377a..7390a949 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetDevicesServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetDevicesServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetDevicesServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetDevicesServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetDevicesServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesUnauthorized.java index e6bf42c5..5f789180 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetDevicesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetDevicesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetDevicesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetDevicesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetDevicesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetDevicesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetDevicesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetDevicesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetDevicesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetDevicesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetDevicesUnauthorized extends RuntimeException { return false; } GetDevicesUnauthorized other = (GetDevicesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetDevicesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetDevicesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetDevicesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetDevicesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetDevicesUnauthorized build() { return new GetDevicesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetDevicesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashBadRequest.java index c6406f92..4c150b4b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetFileHashBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetFileHashBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetFileHashBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetFileHashBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetFileHashBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetFileHashBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetFileHashBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetFileHashBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetFileHashBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetFileHashBadRequest extends RuntimeException { return false; } GetFileHashBadRequest other = (GetFileHashBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetFileHashBadRequest.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 } @@ -138,7 +145,7 @@ public class GetFileHashBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetFileHashBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetFileHashBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetFileHashBadRequest build() { return new GetFileHashBadRequest( errors, @@ -170,3 +177,4 @@ public class GetFileHashBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java index 6de8d264..47787a08 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetFileHashErrors { public final static Builder builder() { return new Builder(); - } + } public GetFileHashErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetFileHashErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetFileHashErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetFileHashErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashLibraryErrors.java index df67dbc7..317a384c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetFileHashLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetFileHashLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetFileHashLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetFileHashLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetFileHashLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashUnauthorized.java index 648de43b..23cd42d4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetFileHashUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetFileHashUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetFileHashUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetFileHashUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetFileHashUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetFileHashUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetFileHashUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetFileHashUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetFileHashUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetFileHashUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetFileHashUnauthorized extends RuntimeException { return false; } GetFileHashUnauthorized other = (GetFileHashUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetFileHashUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetFileHashUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetFileHashUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetFileHashUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetFileHashUnauthorized build() { return new GetFileHashUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetFileHashUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryBadRequest.java index 13dff69d..1e33e5f8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGenresLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetGenresLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetGenresLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGenresLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGenresLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGenresLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGenresLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGenresLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGenresLibraryBadRequest extends RuntimeException { return false; } GetGenresLibraryBadRequest other = (GetGenresLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGenresLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetGenresLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGenresLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGenresLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGenresLibraryBadRequest build() { return new GetGenresLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetGenresLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryErrors.java index fc7b06ed..604c35eb 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGenresLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGenresLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGenresLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGenresLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryLibraryErrors.java index 372236f1..b1e032a9 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGenresLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGenresLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGenresLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGenresLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryUnauthorized.java index 825ded6b..acbb52f6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGenresLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGenresLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetGenresLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetGenresLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGenresLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { return false; } GetGenresLibraryUnauthorized other = (GetGenresLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGenresLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGenresLibraryUnauthorized build() { return new GetGenresLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetGenresLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataBadRequest.java index b17365df..c2e9f5a5 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGeoDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetGeoDataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetGeoDataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGeoDataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGeoDataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGeoDataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGeoDataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGeoDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGeoDataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGeoDataBadRequest extends RuntimeException { return false; } GetGeoDataBadRequest other = (GetGeoDataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGeoDataBadRequest.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 } @@ -138,7 +145,7 @@ public class GetGeoDataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGeoDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGeoDataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGeoDataBadRequest build() { return new GetGeoDataBadRequest( errors, @@ -170,3 +177,4 @@ public class GetGeoDataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java index 2f8fc344..6058e401 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGeoDataErrors { public final static Builder builder() { return new Builder(); - } + } public GetGeoDataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGeoDataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGeoDataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGeoDataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataPlexErrors.java index 8d5762da..9458cf5a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGeoDataPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetGeoDataPlexErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGeoDataPlexErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGeoDataPlexErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGeoDataPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataUnauthorized.java index ed2e3fa5..d0a5d69e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGeoDataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGeoDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetGeoDataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetGeoDataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGeoDataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGeoDataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGeoDataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGeoDataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGeoDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGeoDataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGeoDataUnauthorized extends RuntimeException { return false; } GetGeoDataUnauthorized other = (GetGeoDataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGeoDataUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetGeoDataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGeoDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGeoDataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGeoDataUnauthorized build() { return new GetGeoDataUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetGeoDataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsBadRequest.java index d45ff525..f55f9b46 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGlobalHubsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetGlobalHubsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetGlobalHubsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGlobalHubsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGlobalHubsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGlobalHubsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGlobalHubsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGlobalHubsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGlobalHubsBadRequest extends RuntimeException { return false; } GetGlobalHubsBadRequest other = (GetGlobalHubsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGlobalHubsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetGlobalHubsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGlobalHubsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGlobalHubsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGlobalHubsBadRequest build() { return new GetGlobalHubsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetGlobalHubsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java index e2706924..b4adce97 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGlobalHubsErrors { public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGlobalHubsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGlobalHubsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGlobalHubsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsHubsErrors.java index 5119b94b..969a6ed1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsHubsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGlobalHubsHubsErrors { public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsHubsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetGlobalHubsHubsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetGlobalHubsHubsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetGlobalHubsHubsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsUnauthorized.java index 39c0e1d1..bf21ff52 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetGlobalHubsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetGlobalHubsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetGlobalHubsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetGlobalHubsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetGlobalHubsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { return false; } GetGlobalHubsUnauthorized other = (GetGlobalHubsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetGlobalHubsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetGlobalHubsUnauthorized build() { return new GetGlobalHubsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetGlobalHubsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataBadRequest.java index 50a10275..17283cd9 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetHomeDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetHomeDataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetHomeDataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetHomeDataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetHomeDataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetHomeDataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetHomeDataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetHomeDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetHomeDataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetHomeDataBadRequest extends RuntimeException { return false; } GetHomeDataBadRequest other = (GetHomeDataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetHomeDataBadRequest.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 } @@ -138,7 +145,7 @@ public class GetHomeDataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetHomeDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetHomeDataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetHomeDataBadRequest build() { return new GetHomeDataBadRequest( errors, @@ -170,3 +177,4 @@ public class GetHomeDataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java index 0785c5db..6aec492b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetHomeDataErrors { public final static Builder builder() { return new Builder(); - } + } public GetHomeDataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetHomeDataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetHomeDataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetHomeDataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataPlexErrors.java index dd107860..6fd6c933 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetHomeDataPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetHomeDataPlexErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetHomeDataPlexErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetHomeDataPlexErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetHomeDataPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataUnauthorized.java index 6af163f4..f55d01db 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetHomeDataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetHomeDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetHomeDataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetHomeDataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetHomeDataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetHomeDataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetHomeDataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetHomeDataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetHomeDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetHomeDataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetHomeDataUnauthorized extends RuntimeException { return false; } GetHomeDataUnauthorized other = (GetHomeDataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetHomeDataUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetHomeDataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetHomeDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetHomeDataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetHomeDataUnauthorized build() { return new GetHomeDataUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetHomeDataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsBadRequest.java index 95262716..6796b1b8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryDetailsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetLibraryDetailsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetLibraryDetailsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryDetailsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { return false; } GetLibraryDetailsBadRequest other = (GetLibraryDetailsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryDetailsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryDetailsBadRequest build() { return new GetLibraryDetailsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetLibraryDetailsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java index 02742832..ae468e8c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryDetailsErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryDetailsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryDetailsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryDetailsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsLibraryErrors.java index d9159ea9..e8024969 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryDetailsLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryDetailsLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryDetailsLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryDetailsLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsUnauthorized.java index 1c0551e3..a27bd747 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryDetailsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryDetailsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetLibraryDetailsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetLibraryDetailsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryDetailsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { return false; } GetLibraryDetailsUnauthorized other = (GetLibraryDetailsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryDetailsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryDetailsUnauthorized build() { return new GetLibraryDetailsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetLibraryDetailsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsBadRequest.java index 6d39c562..d3dcbe43 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryHubsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetLibraryHubsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetLibraryHubsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryHubsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryHubsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryHubsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryHubsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryHubsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryHubsBadRequest extends RuntimeException { return false; } GetLibraryHubsBadRequest other = (GetLibraryHubsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryHubsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetLibraryHubsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryHubsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryHubsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryHubsBadRequest build() { return new GetLibraryHubsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetLibraryHubsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java index f55f6cde..fe1231c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryHubsErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryHubsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryHubsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryHubsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsHubsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsHubsErrors.java index aa74b316..eeffc85a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsHubsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsHubsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryHubsHubsErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsHubsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryHubsHubsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryHubsHubsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryHubsHubsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsUnauthorized.java index 0e52822b..98e556d3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryHubsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryHubsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetLibraryHubsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetLibraryHubsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryHubsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { return false; } GetLibraryHubsUnauthorized other = (GetLibraryHubsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryHubsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryHubsUnauthorized build() { return new GetLibraryHubsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetLibraryHubsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsBadRequest.java index 2d9d9033..674753fe 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryItemsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetLibraryItemsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetLibraryItemsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryItemsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryItemsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryItemsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryItemsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryItemsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryItemsBadRequest extends RuntimeException { return false; } GetLibraryItemsBadRequest other = (GetLibraryItemsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryItemsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetLibraryItemsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryItemsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryItemsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryItemsBadRequest build() { return new GetLibraryItemsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetLibraryItemsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java index 8731e034..01bef94a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryItemsErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryItemsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryItemsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryItemsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsLibraryErrors.java index a419c16d..5774f7d7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryItemsLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetLibraryItemsLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetLibraryItemsLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetLibraryItemsLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsUnauthorized.java index 0842553a..b30c3410 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetLibraryItemsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetLibraryItemsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetLibraryItemsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetLibraryItemsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetLibraryItemsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { return false; } GetLibraryItemsUnauthorized other = (GetLibraryItemsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetLibraryItemsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetLibraryItemsUnauthorized build() { return new GetLibraryItemsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetLibraryItemsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataBadRequest.java index d88c7baf..f2c71e9d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMediaMetaDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetMediaMetaDataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetMediaMetaDataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMediaMetaDataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMediaMetaDataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { return false; } GetMediaMetaDataBadRequest other = (GetMediaMetaDataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMediaMetaDataBadRequest.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 } @@ -138,7 +145,7 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMediaMetaDataBadRequest build() { return new GetMediaMetaDataBadRequest( errors, @@ -170,3 +177,4 @@ public class GetMediaMetaDataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataErrors.java index 24579031..5820be86 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMediaMetaDataErrors { public final static Builder builder() { return new Builder(); - } + } public GetMediaMetaDataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMediaMetaDataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMediaMetaDataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMediaMetaDataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataLibraryErrors.java index 6f16fa56..df92d909 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMediaMetaDataLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetMediaMetaDataLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMediaMetaDataLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMediaMetaDataLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMediaMetaDataLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataUnauthorized.java index 4f6aee9f..305b452c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaMetaDataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMediaMetaDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetMediaMetaDataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetMediaMetaDataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMediaMetaDataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMediaMetaDataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { return false; } GetMediaMetaDataUnauthorized other = (GetMediaMetaDataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMediaMetaDataUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMediaMetaDataUnauthorized build() { return new GetMediaMetaDataUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetMediaMetaDataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersBadRequest.java index 2e908a72..08c8055a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMediaProvidersBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetMediaProvidersBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetMediaProvidersBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMediaProvidersBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMediaProvidersBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMediaProvidersBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMediaProvidersBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMediaProvidersBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMediaProvidersBadRequest extends RuntimeException { return false; } GetMediaProvidersBadRequest other = (GetMediaProvidersBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMediaProvidersBadRequest.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 } @@ -138,7 +145,7 @@ public class GetMediaProvidersBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMediaProvidersBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMediaProvidersBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMediaProvidersBadRequest build() { return new GetMediaProvidersBadRequest( errors, @@ -170,3 +177,4 @@ public class GetMediaProvidersBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java index fb63e1e6..030e5221 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMediaProvidersErrors { public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMediaProvidersErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMediaProvidersErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMediaProvidersErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersServerErrors.java index 4eeee656..43b19e45 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMediaProvidersServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMediaProvidersServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMediaProvidersServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMediaProvidersServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersUnauthorized.java index 5ad38c86..b84ea734 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMediaProvidersUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMediaProvidersUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetMediaProvidersUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetMediaProvidersUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMediaProvidersUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { return false; } GetMediaProvidersUnauthorized other = (GetMediaProvidersUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMediaProvidersUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMediaProvidersUnauthorized build() { return new GetMediaProvidersUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetMediaProvidersUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenBadRequest.java index 1a6d0e3f..eb196d76 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMetadataChildrenBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetMetadataChildrenBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetMetadataChildrenBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMetadataChildrenBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { return false; } GetMetadataChildrenBadRequest other = (GetMetadataChildrenBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMetadataChildrenBadRequest.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 } @@ -138,7 +145,7 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMetadataChildrenBadRequest build() { return new GetMetadataChildrenBadRequest( errors, @@ -170,3 +177,4 @@ public class GetMetadataChildrenBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java index b522796c..99b0982d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMetadataChildrenErrors { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMetadataChildrenErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMetadataChildrenErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMetadataChildrenErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenLibraryErrors.java index a84a328f..59913188 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMetadataChildrenLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMetadataChildrenLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMetadataChildrenLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMetadataChildrenLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenUnauthorized.java index 4554a0e0..6510e2b2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMetadataChildrenUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMetadataChildrenUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetMetadataChildrenUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetMetadataChildrenUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMetadataChildrenUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { return false; } GetMetadataChildrenUnauthorized other = (GetMetadataChildrenUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMetadataChildrenUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMetadataChildrenUnauthorized build() { return new GetMetadataChildrenUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetMetadataChildrenUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountBadRequest.java index 0c71ed04..fd8753bc 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMyPlexAccountBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetMyPlexAccountBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetMyPlexAccountBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMyPlexAccountBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMyPlexAccountBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { return false; } GetMyPlexAccountBadRequest other = (GetMyPlexAccountBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMyPlexAccountBadRequest.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 } @@ -138,7 +145,7 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMyPlexAccountBadRequest build() { return new GetMyPlexAccountBadRequest( errors, @@ -170,3 +177,4 @@ public class GetMyPlexAccountBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java index 068411ff..eba277aa 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMyPlexAccountErrors { public final static Builder builder() { return new Builder(); - } + } public GetMyPlexAccountErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMyPlexAccountErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMyPlexAccountErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMyPlexAccountErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountServerErrors.java index 84be3ecf..ad7f5bba 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetMyPlexAccountServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetMyPlexAccountServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetMyPlexAccountServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetMyPlexAccountServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetMyPlexAccountServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountUnauthorized.java index 67c8557b..b04eb1b2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetMyPlexAccountUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetMyPlexAccountUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetMyPlexAccountUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetMyPlexAccountUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetMyPlexAccountUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetMyPlexAccountUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { return false; } GetMyPlexAccountUnauthorized other = (GetMyPlexAccountUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetMyPlexAccountUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetMyPlexAccountUnauthorized build() { return new GetMyPlexAccountUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetMyPlexAccountUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPinBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPinBadRequest.java index cc22408f..3077bc5f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPinBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPinBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPinBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetPinBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetPinBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPinBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPinBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPinBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPinBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPinBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPinBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPinBadRequest extends RuntimeException { return false; } GetPinBadRequest other = (GetPinBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPinBadRequest.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 } @@ -138,7 +145,7 @@ public class GetPinBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPinBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPinBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPinBadRequest build() { return new GetPinBadRequest( errors, @@ -170,3 +177,4 @@ public class GetPinBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java index 8f0c3331..b2b2ace7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPinErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPinErrors { public final static Builder builder() { return new Builder(); - } + } public GetPinErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPinErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPinErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPinErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistBadRequest.java index 689a997c..7103686f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetPlaylistBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetPlaylistBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistBadRequest extends RuntimeException { return false; } GetPlaylistBadRequest other = (GetPlaylistBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistBadRequest.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 } @@ -138,7 +145,7 @@ public class GetPlaylistBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistBadRequest build() { return new GetPlaylistBadRequest( errors, @@ -170,3 +177,4 @@ public class GetPlaylistBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsBadRequest.java index 35473e29..84e62b11 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetPlaylistContentsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetPlaylistContentsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistContentsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { return false; } GetPlaylistContentsBadRequest other = (GetPlaylistContentsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistContentsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistContentsBadRequest build() { return new GetPlaylistContentsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetPlaylistContentsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java index 20769593..7efff5e3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistContentsErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistContentsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistContentsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistContentsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsPlaylistsErrors.java index 3cfacc98..ee256071 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistContentsPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistContentsPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistContentsPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistContentsPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsUnauthorized.java index 7fc8e10c..af65a98e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistContentsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetPlaylistContentsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetPlaylistContentsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistContentsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { return false; } GetPlaylistContentsUnauthorized other = (GetPlaylistContentsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistContentsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistContentsUnauthorized build() { return new GetPlaylistContentsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetPlaylistContentsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java index 32738ae5..20d11144 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistPlaylistsErrors.java index e038e5f5..1336ccc1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistUnauthorized.java index 5f7ece83..77d790a0 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetPlaylistUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetPlaylistUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistUnauthorized extends RuntimeException { return false; } GetPlaylistUnauthorized other = (GetPlaylistUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetPlaylistUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistUnauthorized build() { return new GetPlaylistUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetPlaylistUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsBadRequest.java index cad70004..e05969d2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetPlaylistsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetPlaylistsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistsBadRequest extends RuntimeException { return false; } GetPlaylistsBadRequest other = (GetPlaylistsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetPlaylistsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistsBadRequest build() { return new GetPlaylistsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetPlaylistsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java index 1280d151..07aaae5a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsPlaylistsErrors.java index e71ba43e..23b0031c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetPlaylistsPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetPlaylistsPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetPlaylistsPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetPlaylistsPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsUnauthorized.java index 7100258d..bfbc5545 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetPlaylistsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetPlaylistsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetPlaylistsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetPlaylistsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetPlaylistsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetPlaylistsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetPlaylistsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetPlaylistsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetPlaylistsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetPlaylistsUnauthorized extends RuntimeException { return false; } GetPlaylistsUnauthorized other = (GetPlaylistsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetPlaylistsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetPlaylistsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetPlaylistsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetPlaylistsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetPlaylistsUnauthorized build() { return new GetPlaylistsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetPlaylistsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryBadRequest.java index 10a9cdac..fd549f7b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetRecentlyAddedLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetRecentlyAddedLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetRecentlyAddedLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { return false; } GetRecentlyAddedLibraryBadRequest other = (GetRecentlyAddedLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetRecentlyAddedLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetRecentlyAddedLibraryBadRequest build() { return new GetRecentlyAddedLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetRecentlyAddedLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryErrors.java index 01ee4fd3..d8fb3dd3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetRecentlyAddedLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetRecentlyAddedLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetRecentlyAddedLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetRecentlyAddedLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryLibraryErrors.java index d8cf6f4c..6987a113 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetRecentlyAddedLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetRecentlyAddedLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetRecentlyAddedLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetRecentlyAddedLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryUnauthorized.java index 8f9abd05..b9afb685 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRecentlyAddedLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetRecentlyAddedLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetRecentlyAddedLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetRecentlyAddedLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { return false; } GetRecentlyAddedLibraryUnauthorized other = (GetRecentlyAddedLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetRecentlyAddedLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetRecentlyAddedLibraryUnauthorized build() { return new GetRecentlyAddedLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetRecentlyAddedLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataBadRequest.java index 83cbf16c..b1513948 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetRefreshLibraryMetadataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetRefreshLibraryMetadataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetRefreshLibraryMetadataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetRefreshLibraryMetadataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { return false; } GetRefreshLibraryMetadataBadRequest other = (GetRefreshLibraryMetadataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetRefreshLibraryMetadataBadRequest.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 } @@ -138,7 +145,7 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetRefreshLibraryMetadataBadRequest build() { return new GetRefreshLibraryMetadataBadRequest( errors, @@ -170,3 +177,4 @@ public class GetRefreshLibraryMetadataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java index 32fcf906..cc1b8f92 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetRefreshLibraryMetadataErrors { public final static Builder builder() { return new Builder(); - } + } public GetRefreshLibraryMetadataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetRefreshLibraryMetadataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetRefreshLibraryMetadataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetRefreshLibraryMetadataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataLibraryErrors.java index 69b90008..07130d66 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetRefreshLibraryMetadataLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetRefreshLibraryMetadataLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetRefreshLibraryMetadataLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetRefreshLibraryMetadataLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetRefreshLibraryMetadataLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataUnauthorized.java index db1936e0..559876ff 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetRefreshLibraryMetadataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetRefreshLibraryMetadataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetRefreshLibraryMetadataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetRefreshLibraryMetadataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetRefreshLibraryMetadataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { return false; } GetRefreshLibraryMetadataUnauthorized other = (GetRefreshLibraryMetadataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetRefreshLibraryMetadataUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetRefreshLibraryMetadataUnauthorized build() { return new GetRefreshLibraryMetadataUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetRefreshLibraryMetadataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoBadRequest.java index 5baf01f8..f0fbbbca 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetResizedPhotoBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetResizedPhotoBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetResizedPhotoBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetResizedPhotoBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetResizedPhotoBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetResizedPhotoBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetResizedPhotoBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetResizedPhotoBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetResizedPhotoBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetResizedPhotoBadRequest extends RuntimeException { return false; } GetResizedPhotoBadRequest other = (GetResizedPhotoBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetResizedPhotoBadRequest.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 } @@ -138,7 +145,7 @@ public class GetResizedPhotoBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetResizedPhotoBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetResizedPhotoBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetResizedPhotoBadRequest build() { return new GetResizedPhotoBadRequest( errors, @@ -170,3 +177,4 @@ public class GetResizedPhotoBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java index cb3a4a9e..fe685a91 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetResizedPhotoErrors { public final static Builder builder() { return new Builder(); - } + } public GetResizedPhotoErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetResizedPhotoErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetResizedPhotoErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetResizedPhotoErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoServerErrors.java index 270b6665..41c7a169 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetResizedPhotoServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetResizedPhotoServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetResizedPhotoServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetResizedPhotoServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetResizedPhotoServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoUnauthorized.java index 9c9f7417..c8f780c9 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResizedPhotoUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetResizedPhotoUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetResizedPhotoUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetResizedPhotoUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetResizedPhotoUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetResizedPhotoUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { return false; } GetResizedPhotoUnauthorized other = (GetResizedPhotoUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetResizedPhotoUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetResizedPhotoUnauthorized build() { return new GetResizedPhotoUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetResizedPhotoUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsBadRequest.java index 82a3d3cb..4c6fd2a1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetResourcesStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetResourcesStatisticsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetResourcesStatisticsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetResourcesStatisticsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { return false; } GetResourcesStatisticsBadRequest other = (GetResourcesStatisticsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetResourcesStatisticsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetResourcesStatisticsBadRequest build() { return new GetResourcesStatisticsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetResourcesStatisticsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java index 143f30ba..0aad0e79 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetResourcesStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetResourcesStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetResourcesStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetResourcesStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsStatisticsErrors.java index acb5e21e..58c16aee 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetResourcesStatisticsStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetResourcesStatisticsStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetResourcesStatisticsStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetResourcesStatisticsStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsUnauthorized.java index 0737f1cf..b9f8abef 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetResourcesStatisticsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetResourcesStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetResourcesStatisticsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetResourcesStatisticsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetResourcesStatisticsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { return false; } GetResourcesStatisticsUnauthorized other = (GetResourcesStatisticsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetResourcesStatisticsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetResourcesStatisticsUnauthorized build() { return new GetResourcesStatisticsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetResourcesStatisticsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesBadRequest.java index aa7c9c32..638f5689 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchAllLibrariesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSearchAllLibrariesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSearchAllLibrariesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchAllLibrariesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { return false; } GetSearchAllLibrariesBadRequest other = (GetSearchAllLibrariesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchAllLibrariesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchAllLibrariesBadRequest build() { return new GetSearchAllLibrariesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSearchAllLibrariesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesErrors.java index c8d5ba03..615b5650 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchAllLibrariesErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchAllLibrariesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchAllLibrariesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchAllLibrariesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesLibraryErrors.java index c198ca46..b408a079 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchAllLibrariesLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchAllLibrariesLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchAllLibrariesLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchAllLibrariesLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesUnauthorized.java index 1d95058a..4fbff7f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchAllLibrariesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchAllLibrariesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSearchAllLibrariesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSearchAllLibrariesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchAllLibrariesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { return false; } GetSearchAllLibrariesUnauthorized other = (GetSearchAllLibrariesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchAllLibrariesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchAllLibrariesUnauthorized build() { return new GetSearchAllLibrariesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSearchAllLibrariesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryBadRequest.java index b900e36c..ee3b0325 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSearchLibraryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSearchLibraryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchLibraryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchLibraryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchLibraryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchLibraryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchLibraryBadRequest extends RuntimeException { return false; } GetSearchLibraryBadRequest other = (GetSearchLibraryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchLibraryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSearchLibraryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchLibraryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchLibraryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchLibraryBadRequest build() { return new GetSearchLibraryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSearchLibraryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java index 4010dc08..941a6bd1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryLibraryErrors.java index afc54f5b..018c2ae6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchLibraryLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchLibraryLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchLibraryLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchLibraryLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryUnauthorized.java index 8a4144ba..bb581770 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchLibraryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSearchLibraryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSearchLibraryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchLibraryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { return false; } GetSearchLibraryUnauthorized other = (GetSearchLibraryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchLibraryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchLibraryUnauthorized build() { return new GetSearchLibraryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSearchLibraryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsBadRequest.java index c8120074..3a3d04f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchResultsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSearchResultsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSearchResultsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchResultsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchResultsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchResultsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchResultsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchResultsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchResultsBadRequest extends RuntimeException { return false; } GetSearchResultsBadRequest other = (GetSearchResultsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchResultsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSearchResultsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchResultsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchResultsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchResultsBadRequest build() { return new GetSearchResultsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSearchResultsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java index 0c55c373..4b2f57b7 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchResultsErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchResultsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchResultsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchResultsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsSearchErrors.java index 7984fa36..ca9da163 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsSearchErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchResultsSearchErrors { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsSearchErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSearchResultsSearchErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSearchResultsSearchErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSearchResultsSearchErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsUnauthorized.java index b5f16c83..48662e9b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSearchResultsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSearchResultsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSearchResultsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSearchResultsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSearchResultsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSearchResultsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSearchResultsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSearchResultsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSearchResultsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSearchResultsUnauthorized extends RuntimeException { return false; } GetSearchResultsUnauthorized other = (GetSearchResultsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSearchResultsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSearchResultsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSearchResultsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSearchResultsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSearchResultsUnauthorized build() { return new GetSearchResultsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSearchResultsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesActivitiesErrors.java index 5a97ddaa..34f41ced 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesActivitiesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerActivitiesActivitiesErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesActivitiesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerActivitiesActivitiesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerActivitiesActivitiesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerActivitiesActivitiesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesBadRequest.java index 2f872719..bb881a7a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerActivitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetServerActivitiesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetServerActivitiesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerActivitiesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerActivitiesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerActivitiesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerActivitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerActivitiesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerActivitiesBadRequest extends RuntimeException { return false; } GetServerActivitiesBadRequest other = (GetServerActivitiesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerActivitiesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetServerActivitiesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerActivitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerActivitiesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerActivitiesBadRequest build() { return new GetServerActivitiesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetServerActivitiesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java index d1cfbc28..97068e23 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerActivitiesErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerActivitiesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerActivitiesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerActivitiesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesUnauthorized.java index 80f7c063..a9e09eb6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerActivitiesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerActivitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetServerActivitiesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetServerActivitiesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerActivitiesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { return false; } GetServerActivitiesUnauthorized other = (GetServerActivitiesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerActivitiesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerActivitiesUnauthorized build() { return new GetServerActivitiesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetServerActivitiesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesBadRequest.java index 3a24d095..002bb291 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerCapabilitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetServerCapabilitiesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetServerCapabilitiesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerCapabilitiesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerCapabilitiesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { return false; } GetServerCapabilitiesBadRequest other = (GetServerCapabilitiesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerCapabilitiesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerCapabilitiesBadRequest build() { return new GetServerCapabilitiesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetServerCapabilitiesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesErrors.java index 10fa0de8..7bcdea6f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerCapabilitiesErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerCapabilitiesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerCapabilitiesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerCapabilitiesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerCapabilitiesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesUnauthorized.java index bd33999e..d1c64f60 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerCapabilitiesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerCapabilitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetServerCapabilitiesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetServerCapabilitiesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerCapabilitiesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerCapabilitiesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { return false; } GetServerCapabilitiesUnauthorized other = (GetServerCapabilitiesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerCapabilitiesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerCapabilitiesUnauthorized build() { return new GetServerCapabilitiesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetServerCapabilitiesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityRequestTimeout.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityRequestTimeout.java index 3849db11..22a1fa3a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityRequestTimeout.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerIdentityRequestTimeout.java @@ -1,10 +1,10 @@ /* * 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; @@ -12,13 +12,17 @@ import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; import java.lang.Integer; import java.lang.Override; +import java.lang.RuntimeException; import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; import java.util.Objects; import java.util.Optional; + /** - * GetServerIdentityRequestTimeout - Request Timeout + * GetServerIdentityRequestTimeout + * + *

Request Timeout */ @SuppressWarnings("serial") public class GetServerIdentityRequestTimeout extends RuntimeException { @@ -56,32 +60,41 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this(Optional.empty(), Optional.empty(), Optional.empty()); } - public Optional code(){ + @JsonIgnore + public Optional code() { return code; } - public Optional message(){ + @JsonIgnore + public Optional message() { return message; } + @JsonIgnore + @Override + public String getMessage() { + return Utils.valueOrNull(message); + } + /** * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerIdentityRequestTimeout withCode(int code) { Utils.checkNotNull(code, "code"); this.code = Optional.ofNullable(code); return this; } - + public GetServerIdentityRequestTimeout withCode(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; @@ -93,7 +106,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.message = Optional.ofNullable(message); return this; } - + public GetServerIdentityRequestTimeout withMessage(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; @@ -108,7 +121,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -118,6 +131,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,20 +141,20 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { return false; } GetServerIdentityRequestTimeout other = (GetServerIdentityRequestTimeout) o; - return + 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( + return Objects.hash( code, message, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerIdentityRequestTimeout.class, @@ -148,15 +162,15 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { "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 } @@ -166,7 +180,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.code = Optional.ofNullable(code); return this; } - + public Builder code(Optional code) { Utils.checkNotNull(code, "code"); this.code = code; @@ -178,7 +192,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.message = Optional.ofNullable(message); return this; } - + public Builder message(Optional message) { Utils.checkNotNull(message, "message"); this.message = message; @@ -193,7 +207,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -202,7 +216,7 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerIdentityRequestTimeout build() { return new GetServerIdentityRequestTimeout( code, @@ -211,3 +225,4 @@ public class GetServerIdentityRequestTimeout extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListBadRequest.java index 76f59bec..79731abf 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerListBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetServerListBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetServerListBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerListBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerListBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerListBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerListBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerListBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerListBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerListBadRequest extends RuntimeException { return false; } GetServerListBadRequest other = (GetServerListBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerListBadRequest.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 } @@ -138,7 +145,7 @@ public class GetServerListBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerListBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerListBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerListBadRequest build() { return new GetServerListBadRequest( errors, @@ -170,3 +177,4 @@ public class GetServerListBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java index e489fa61..89928561 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerListErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerListErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerListErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerListErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerListErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListServerErrors.java index a0748330..c686b867 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerListServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerListServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerListServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerListServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerListServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListUnauthorized.java index aa61ed13..53d14afb 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerListUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerListUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerListUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetServerListUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetServerListUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerListUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerListUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerListUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerListUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerListUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerListUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerListUnauthorized extends RuntimeException { return false; } GetServerListUnauthorized other = (GetServerListUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerListUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetServerListUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerListUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerListUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerListUnauthorized build() { return new GetServerListUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetServerListUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesBadRequest.java index 333992b9..6ce3da68 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerPreferencesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetServerPreferencesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetServerPreferencesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerPreferencesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerPreferencesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerPreferencesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerPreferencesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerPreferencesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerPreferencesBadRequest extends RuntimeException { return false; } GetServerPreferencesBadRequest other = (GetServerPreferencesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerPreferencesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetServerPreferencesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerPreferencesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerPreferencesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerPreferencesBadRequest build() { return new GetServerPreferencesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetServerPreferencesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java index 9c8c9458..7b8dc5b9 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerPreferencesErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerPreferencesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerPreferencesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerPreferencesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesServerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesServerErrors.java index b211db08..9a8cf8d2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesServerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesServerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerPreferencesServerErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesServerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerPreferencesServerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerPreferencesServerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerPreferencesServerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesUnauthorized.java index 06858038..1588dfbd 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerPreferencesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerPreferencesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetServerPreferencesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetServerPreferencesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerPreferencesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { return false; } GetServerPreferencesUnauthorized other = (GetServerPreferencesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerPreferencesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerPreferencesUnauthorized build() { return new GetServerPreferencesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetServerPreferencesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesBadRequest.java index 6f8838d3..7624b2c0 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerResourcesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetServerResourcesBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetServerResourcesBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerResourcesBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerResourcesBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerResourcesBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerResourcesBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerResourcesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerResourcesBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerResourcesBadRequest extends RuntimeException { return false; } GetServerResourcesBadRequest other = (GetServerResourcesBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerResourcesBadRequest.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 } @@ -138,7 +145,7 @@ public class GetServerResourcesBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerResourcesBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerResourcesBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerResourcesBadRequest build() { return new GetServerResourcesBadRequest( errors, @@ -170,3 +177,4 @@ public class GetServerResourcesBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java index 0c7d7e81..85c77266 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerResourcesErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerResourcesErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerResourcesErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerResourcesErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerResourcesErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesPlexErrors.java index a64515fd..3f8a0ccb 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetServerResourcesPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetServerResourcesPlexErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetServerResourcesPlexErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetServerResourcesPlexErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetServerResourcesPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesUnauthorized.java index 4a7cdef1..42271693 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetServerResourcesUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetServerResourcesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetServerResourcesUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetServerResourcesUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetServerResourcesUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetServerResourcesUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetServerResourcesUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetServerResourcesUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetServerResourcesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetServerResourcesUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetServerResourcesUnauthorized extends RuntimeException { return false; } GetServerResourcesUnauthorized other = (GetServerResourcesUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetServerResourcesUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetServerResourcesUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetServerResourcesUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetServerResourcesUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetServerResourcesUnauthorized build() { return new GetServerResourcesUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetServerResourcesUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryBadRequest.java index c382c0d3..bd521b48 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSessionHistoryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSessionHistoryBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSessionHistoryBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSessionHistoryBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSessionHistoryBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSessionHistoryBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSessionHistoryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSessionHistoryBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSessionHistoryBadRequest extends RuntimeException { return false; } GetSessionHistoryBadRequest other = (GetSessionHistoryBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSessionHistoryBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSessionHistoryBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSessionHistoryBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSessionHistoryBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSessionHistoryBadRequest build() { return new GetSessionHistoryBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSessionHistoryBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java index 8566b015..4dfeab1a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSessionHistoryErrors { public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSessionHistoryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSessionHistoryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSessionHistoryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistorySessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistorySessionsErrors.java index 15ea60e9..219bdbfe 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistorySessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistorySessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSessionHistorySessionsErrors { public final static Builder builder() { return new Builder(); - } + } public GetSessionHistorySessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSessionHistorySessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSessionHistorySessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSessionHistorySessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryUnauthorized.java index 63243112..cf71d445 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionHistoryUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSessionHistoryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSessionHistoryUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSessionHistoryUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSessionHistoryUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { return false; } GetSessionHistoryUnauthorized other = (GetSessionHistoryUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSessionHistoryUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSessionHistoryUnauthorized build() { return new GetSessionHistoryUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSessionHistoryUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsBadRequest.java index d45732af..2f5b6c56 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSessionsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSessionsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSessionsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSessionsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSessionsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSessionsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSessionsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSessionsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSessionsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSessionsBadRequest extends RuntimeException { return false; } GetSessionsBadRequest other = (GetSessionsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSessionsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSessionsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSessionsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSessionsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSessionsBadRequest build() { return new GetSessionsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSessionsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java index 3aded383..d8f52039 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSessionsErrors { public final static Builder builder() { return new Builder(); - } + } public GetSessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsSessionsErrors.java index a1b5693f..1e26ab46 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsSessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSessionsSessionsErrors { public final static Builder builder() { return new Builder(); - } + } public GetSessionsSessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSessionsSessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSessionsSessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSessionsSessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsUnauthorized.java index be374a74..f04a3ce0 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSessionsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSessionsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSessionsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSessionsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSessionsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSessionsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSessionsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSessionsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSessionsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSessionsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSessionsUnauthorized extends RuntimeException { return false; } GetSessionsUnauthorized other = (GetSessionsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSessionsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSessionsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSessionsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSessionsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSessionsUnauthorized build() { return new GetSessionsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSessionsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationAuthenticationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationAuthenticationErrors.java index 5b9019bb..88577381 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationAuthenticationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationAuthenticationErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSourceConnectionInformationAuthenticationErrors { public final static Builder builder() { return new Builder(); - } + } public GetSourceConnectionInformationAuthenticationErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSourceConnectionInformationAuthenticationErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSourceConnectionInformationAuthenticationErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSourceConnectionInformationAuthenticationErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationBadRequest.java index 2667abb1..644d5468 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSourceConnectionInformationBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetSourceConnectionInformationBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetSourceConnectionInformationBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSourceConnectionInformationBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSourceConnectionInformationBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { return false; } GetSourceConnectionInformationBadRequest other = (GetSourceConnectionInformationBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSourceConnectionInformationBadRequest.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 } @@ -138,7 +145,7 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetSourceConnectionInformationBadRequest build() { return new GetSourceConnectionInformationBadRequest( errors, @@ -170,3 +177,4 @@ public class GetSourceConnectionInformationBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java index 3671b252..f1885353 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSourceConnectionInformationErrors { public final static Builder builder() { return new Builder(); - } + } public GetSourceConnectionInformationErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetSourceConnectionInformationErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetSourceConnectionInformationErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetSourceConnectionInformationErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationUnauthorized.java index a62638db..81cc8e79 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetSourceConnectionInformationUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetSourceConnectionInformationUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetSourceConnectionInformationUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetSourceConnectionInformationUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetSourceConnectionInformationUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetSourceConnectionInformationUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException return false; } GetSourceConnectionInformationUnauthorized other = (GetSourceConnectionInformationUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetSourceConnectionInformationUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException this.rawResponse = rawResponse; return this; } - + public GetSourceConnectionInformationUnauthorized build() { return new GetSourceConnectionInformationUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetSourceConnectionInformationUnauthorized extends RuntimeException } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsBadRequest.java index 2fd63b3e..1c233cec 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetStatisticsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetStatisticsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetStatisticsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetStatisticsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetStatisticsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetStatisticsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetStatisticsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetStatisticsBadRequest extends RuntimeException { return false; } GetStatisticsBadRequest other = (GetStatisticsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetStatisticsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetStatisticsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetStatisticsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetStatisticsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetStatisticsBadRequest build() { return new GetStatisticsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetStatisticsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java index 8efeef32..918b7080 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsStatisticsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsStatisticsErrors.java index a198e3c3..22a49fd6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsStatisticsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsStatisticsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetStatisticsStatisticsErrors { public final static Builder builder() { return new Builder(); - } + } public GetStatisticsStatisticsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetStatisticsStatisticsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetStatisticsStatisticsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetStatisticsStatisticsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsUnauthorized.java index c5d7dd6b..7c488e28 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetStatisticsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetStatisticsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetStatisticsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetStatisticsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetStatisticsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetStatisticsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetStatisticsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetStatisticsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetStatisticsUnauthorized extends RuntimeException { return false; } GetStatisticsUnauthorized other = (GetStatisticsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetStatisticsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetStatisticsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetStatisticsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetStatisticsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetStatisticsUnauthorized build() { return new GetStatisticsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetStatisticsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageBadRequest.java index 85f45fc8..ec1d9148 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetThumbImageBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetThumbImageBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetThumbImageBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetThumbImageBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetThumbImageBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetThumbImageBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetThumbImageBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetThumbImageBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetThumbImageBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetThumbImageBadRequest extends RuntimeException { return false; } GetThumbImageBadRequest other = (GetThumbImageBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetThumbImageBadRequest.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 } @@ -138,7 +145,7 @@ public class GetThumbImageBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetThumbImageBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetThumbImageBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetThumbImageBadRequest build() { return new GetThumbImageBadRequest( errors, @@ -170,3 +177,4 @@ public class GetThumbImageBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java index 3950e970..559c002c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetThumbImageErrors { public final static Builder builder() { return new Builder(); - } + } public GetThumbImageErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetThumbImageErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetThumbImageErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetThumbImageErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageMediaErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageMediaErrors.java index 9da385e8..667a3a28 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageMediaErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageMediaErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetThumbImageMediaErrors { public final static Builder builder() { return new Builder(); - } + } public GetThumbImageMediaErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetThumbImageMediaErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetThumbImageMediaErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetThumbImageMediaErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageUnauthorized.java index 3bdd49c9..c8b3d647 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetThumbImageUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetThumbImageUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetThumbImageUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetThumbImageUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetThumbImageUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetThumbImageUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetThumbImageUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetThumbImageUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetThumbImageUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetThumbImageUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetThumbImageUnauthorized extends RuntimeException { return false; } GetThumbImageUnauthorized other = (GetThumbImageUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetThumbImageUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetThumbImageUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetThumbImageUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetThumbImageUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetThumbImageUnauthorized build() { return new GetThumbImageUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetThumbImageUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineBadRequest.java index ca22575e..086c9687 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTimelineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTimelineBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTimelineBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTimelineBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTimelineBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTimelineBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTimelineBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTimelineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTimelineBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTimelineBadRequest extends RuntimeException { return false; } GetTimelineBadRequest other = (GetTimelineBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTimelineBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTimelineBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTimelineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTimelineBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTimelineBadRequest build() { return new GetTimelineBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTimelineBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java index 7e0ec264..e73244b3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTimelineErrors { public final static Builder builder() { return new Builder(); - } + } public GetTimelineErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTimelineErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTimelineErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTimelineErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineUnauthorized.java index b80671b9..974c074d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTimelineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetTimelineUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetTimelineUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTimelineUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTimelineUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTimelineUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTimelineUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTimelineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTimelineUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTimelineUnauthorized extends RuntimeException { return false; } GetTimelineUnauthorized other = (GetTimelineUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTimelineUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetTimelineUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTimelineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTimelineUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTimelineUnauthorized build() { return new GetTimelineUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetTimelineUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineVideoErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineVideoErrors.java index 53520fd4..77917f57 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineVideoErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTimelineVideoErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTimelineVideoErrors { public final static Builder builder() { return new Builder(); - } + } public GetTimelineVideoErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTimelineVideoErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTimelineVideoErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTimelineVideoErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdBadRequest.java index 9ee5a56b..79f6bd07 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTokenByPinIdBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTokenByPinIdBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTokenByPinIdBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTokenByPinIdBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTokenByPinIdBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { return false; } GetTokenByPinIdBadRequest other = (GetTokenByPinIdBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTokenByPinIdBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTokenByPinIdBadRequest build() { return new GetTokenByPinIdBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTokenByPinIdBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java index 27c211e9..e5d64940 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTokenByPinIdErrors { public final static Builder builder() { return new Builder(); - } + } public GetTokenByPinIdErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTokenByPinIdErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTokenByPinIdErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTokenByPinIdErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java index a5f63a0a..cc12054c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -52,7 +51,7 @@ public class GetTokenByPinIdPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetTokenByPinIdPlexErrors withCode(long code) { Utils.checkNotNull(code, "code"); @@ -77,6 +76,7 @@ public class GetTokenByPinIdPlexErrors { this.message = message; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetTokenByPinIdPlexErrors { private Optional code = Optional.empty(); - private Optional message = Optional.empty(); + private Optional message = Optional.empty(); private Builder() { // force use of static builder() method @@ -147,4 +147,3 @@ public class GetTokenByPinIdPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java index e2e53254..bf6d202b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenByPinIdResponseBody.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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 - Not Found or Expired + * GetTokenByPinIdResponseBody + * + *

Not Found or Expired */ @SuppressWarnings("serial") public class GetTokenByPinIdResponseBody extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + 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; @@ -85,7 +91,7 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { return false; } GetTokenByPinIdResponseBody other = (GetTokenByPinIdResponseBody) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return 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 } @@ -138,7 +145,7 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTokenByPinIdResponseBody build() { return new GetTokenByPinIdResponseBody( errors, @@ -170,3 +177,4 @@ public class GetTokenByPinIdResponseBody extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsAuthenticationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsAuthenticationErrors.java index 9473579b..da00d2c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsAuthenticationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsAuthenticationErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTokenDetailsAuthenticationErrors { public final static Builder builder() { return new Builder(); - } + } public GetTokenDetailsAuthenticationErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTokenDetailsAuthenticationErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTokenDetailsAuthenticationErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTokenDetailsAuthenticationErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsBadRequest.java index a339f845..407d4495 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTokenDetailsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTokenDetailsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTokenDetailsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTokenDetailsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTokenDetailsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTokenDetailsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTokenDetailsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTokenDetailsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTokenDetailsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTokenDetailsBadRequest extends RuntimeException { return false; } GetTokenDetailsBadRequest other = (GetTokenDetailsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTokenDetailsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTokenDetailsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTokenDetailsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTokenDetailsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTokenDetailsBadRequest build() { return new GetTokenDetailsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTokenDetailsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsErrors.java index 19868c3f..56b5c440 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTokenDetailsErrors { public final static Builder builder() { return new Builder(); - } + } public GetTokenDetailsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTokenDetailsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTokenDetailsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTokenDetailsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsUnauthorized.java index 129c59dd..e2b471c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTokenDetailsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTokenDetailsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetTokenDetailsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetTokenDetailsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTokenDetailsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTokenDetailsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { return false; } GetTokenDetailsUnauthorized other = (GetTokenDetailsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTokenDetailsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTokenDetailsUnauthorized build() { return new GetTokenDetailsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetTokenDetailsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentBadRequest.java index 60372ea0..be58eb2a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTopWatchedContentBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTopWatchedContentBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTopWatchedContentBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTopWatchedContentBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { return false; } GetTopWatchedContentBadRequest other = (GetTopWatchedContentBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTopWatchedContentBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTopWatchedContentBadRequest build() { return new GetTopWatchedContentBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTopWatchedContentBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java index 40b55acf..1519f049 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTopWatchedContentErrors { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTopWatchedContentErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTopWatchedContentErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTopWatchedContentErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentLibraryErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentLibraryErrors.java index a419a3ad..c86e4f30 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentLibraryErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentLibraryErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTopWatchedContentLibraryErrors { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentLibraryErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTopWatchedContentLibraryErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTopWatchedContentLibraryErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTopWatchedContentLibraryErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentUnauthorized.java index 6438e47a..3fbf7da3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTopWatchedContentUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTopWatchedContentUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetTopWatchedContentUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetTopWatchedContentUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTopWatchedContentUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { return false; } GetTopWatchedContentUnauthorized other = (GetTopWatchedContentUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTopWatchedContentUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTopWatchedContentUnauthorized build() { return new GetTopWatchedContentUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetTopWatchedContentUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsBadRequest.java index b5b753e7..ed5b7e10 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTranscodeSessionsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTranscodeSessionsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTranscodeSessionsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTranscodeSessionsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { return false; } GetTranscodeSessionsBadRequest other = (GetTranscodeSessionsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTranscodeSessionsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTranscodeSessionsBadRequest build() { return new GetTranscodeSessionsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTranscodeSessionsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java index a95aeee8..d86be46f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTranscodeSessionsErrors { public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTranscodeSessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTranscodeSessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTranscodeSessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsSessionsErrors.java index 035f7cfb..d5a7e53d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsSessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTranscodeSessionsSessionsErrors { public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsSessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTranscodeSessionsSessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTranscodeSessionsSessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTranscodeSessionsSessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsUnauthorized.java index 142af541..ec4dde73 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTranscodeSessionsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTranscodeSessionsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetTranscodeSessionsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetTranscodeSessionsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTranscodeSessionsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { return false; } GetTranscodeSessionsUnauthorized other = (GetTranscodeSessionsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTranscodeSessionsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTranscodeSessionsUnauthorized build() { return new GetTranscodeSessionsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetTranscodeSessionsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenAuthenticationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenAuthenticationErrors.java index 543425c6..526f1adf 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenAuthenticationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenAuthenticationErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTransientTokenAuthenticationErrors { public final static Builder builder() { return new Builder(); - } + } public GetTransientTokenAuthenticationErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTransientTokenAuthenticationErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTransientTokenAuthenticationErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTransientTokenAuthenticationErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenBadRequest.java index 3da0acb1..3bc9ff6d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTransientTokenBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetTransientTokenBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetTransientTokenBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTransientTokenBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTransientTokenBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTransientTokenBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTransientTokenBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTransientTokenBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTransientTokenBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTransientTokenBadRequest extends RuntimeException { return false; } GetTransientTokenBadRequest other = (GetTransientTokenBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTransientTokenBadRequest.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 } @@ -138,7 +145,7 @@ public class GetTransientTokenBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTransientTokenBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTransientTokenBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTransientTokenBadRequest build() { return new GetTransientTokenBadRequest( errors, @@ -170,3 +177,4 @@ public class GetTransientTokenBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java index 105e6614..6804a0da 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTransientTokenErrors { public final static Builder builder() { return new Builder(); - } + } public GetTransientTokenErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetTransientTokenErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTransientTokenErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTransientTokenErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenUnauthorized.java index 93367222..880343c2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetTransientTokenUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetTransientTokenUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetTransientTokenUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetTransientTokenUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetTransientTokenUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetTransientTokenUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetTransientTokenUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetTransientTokenUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetTransientTokenUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetTransientTokenUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetTransientTokenUnauthorized extends RuntimeException { return false; } GetTransientTokenUnauthorized other = (GetTransientTokenUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetTransientTokenUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetTransientTokenUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetTransientTokenUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetTransientTokenUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetTransientTokenUnauthorized build() { return new GetTransientTokenUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetTransientTokenUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusBadRequest.java index de31dc93..e3951565 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUpdateStatusBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetUpdateStatusBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetUpdateStatusBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUpdateStatusBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUpdateStatusBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUpdateStatusBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUpdateStatusBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUpdateStatusBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUpdateStatusBadRequest extends RuntimeException { return false; } GetUpdateStatusBadRequest other = (GetUpdateStatusBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUpdateStatusBadRequest.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 } @@ -138,7 +145,7 @@ public class GetUpdateStatusBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUpdateStatusBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUpdateStatusBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUpdateStatusBadRequest build() { return new GetUpdateStatusBadRequest( errors, @@ -170,3 +177,4 @@ public class GetUpdateStatusBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java index 29c57d83..842e03e5 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUpdateStatusErrors { public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUpdateStatusErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUpdateStatusErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUpdateStatusErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUnauthorized.java index 7bb701d8..3d555a22 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUpdateStatusUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetUpdateStatusUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetUpdateStatusUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUpdateStatusUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { return false; } GetUpdateStatusUnauthorized other = (GetUpdateStatusUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUpdateStatusUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUpdateStatusUnauthorized build() { return new GetUpdateStatusUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetUpdateStatusUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUpdaterErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUpdaterErrors.java index 72caf07c..4d5c6f31 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUpdaterErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUpdateStatusUpdaterErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUpdateStatusUpdaterErrors { public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusUpdaterErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUpdateStatusUpdaterErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUpdateStatusUpdaterErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUpdateStatusUpdaterErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsBadRequest.java index 50d13cd4..5c0073eb 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUserFriendsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetUserFriendsBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetUserFriendsBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUserFriendsBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUserFriendsBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUserFriendsBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUserFriendsBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUserFriendsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUserFriendsBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUserFriendsBadRequest extends RuntimeException { return false; } GetUserFriendsBadRequest other = (GetUserFriendsBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUserFriendsBadRequest.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 } @@ -138,7 +145,7 @@ public class GetUserFriendsBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUserFriendsBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUserFriendsBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUserFriendsBadRequest build() { return new GetUserFriendsBadRequest( errors, @@ -170,3 +177,4 @@ public class GetUserFriendsBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java index d3b922f1..2b1069b3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUserFriendsErrors { public final static Builder builder() { return new Builder(); - } + } public GetUserFriendsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUserFriendsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUserFriendsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUserFriendsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsPlexErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsPlexErrors.java index 64401813..ae8dd3de 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsPlexErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsPlexErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUserFriendsPlexErrors { public final static Builder builder() { return new Builder(); - } + } public GetUserFriendsPlexErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUserFriendsPlexErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUserFriendsPlexErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUserFriendsPlexErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsUnauthorized.java index d1ff2940..afec13c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUserFriendsUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUserFriendsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetUserFriendsUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetUserFriendsUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUserFriendsUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUserFriendsUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUserFriendsUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUserFriendsUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUserFriendsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUserFriendsUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUserFriendsUnauthorized extends RuntimeException { return false; } GetUserFriendsUnauthorized other = (GetUserFriendsUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUserFriendsUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetUserFriendsUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUserFriendsUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUserFriendsUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUserFriendsUnauthorized build() { return new GetUserFriendsUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetUserFriendsUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersBadRequest.java index 505909b2..22f9ea18 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUsersBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetUsersBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetUsersBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUsersBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUsersBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUsersBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUsersBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUsersBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUsersBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUsersBadRequest extends RuntimeException { return false; } GetUsersBadRequest other = (GetUsersBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUsersBadRequest.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 } @@ -138,7 +145,7 @@ public class GetUsersBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUsersBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUsersBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUsersBadRequest build() { return new GetUsersBadRequest( errors, @@ -170,3 +177,4 @@ public class GetUsersBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersErrors.java index d4429416..3cc0c2c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUsersErrors { public final static Builder builder() { return new Builder(); - } + } public GetUsersErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUsersErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUsersErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUsersErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUnauthorized.java index 7d97349e..00b80a2b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetUsersUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetUsersUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetUsersUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetUsersUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetUsersUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetUsersUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetUsersUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetUsersUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetUsersUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetUsersUnauthorized extends RuntimeException { return false; } GetUsersUnauthorized other = (GetUsersUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetUsersUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetUsersUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetUsersUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetUsersUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetUsersUnauthorized build() { return new GetUsersUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetUsersUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUsersErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUsersErrors.java index 28a314c2..2fe32316 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUsersErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetUsersUsersErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetUsersUsersErrors { public final static Builder builder() { return new Builder(); - } + } public GetUsersUsersErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetUsersUsersErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetUsersUsersErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetUsersUsersErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListBadRequest.java index fc18ecd6..a573972b 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetWatchListBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * GetWatchListBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class GetWatchListBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class GetWatchListBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetWatchListBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetWatchListBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetWatchListBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetWatchListBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetWatchListBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetWatchListBadRequest extends RuntimeException { return false; } GetWatchListBadRequest other = (GetWatchListBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetWatchListBadRequest.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 } @@ -138,7 +145,7 @@ public class GetWatchListBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetWatchListBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetWatchListBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetWatchListBadRequest build() { return new GetWatchListBadRequest( errors, @@ -170,3 +177,4 @@ public class GetWatchListBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java index 20b6f937..df8be00e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetWatchListErrors { public final static Builder builder() { return new Builder(); - } + } public GetWatchListErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetWatchListErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetWatchListErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetWatchListErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListUnauthorized.java index 244e740a..74c65882 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * GetWatchListUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * GetWatchListUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class GetWatchListUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class GetWatchListUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class GetWatchListUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public GetWatchListUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public GetWatchListUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class GetWatchListUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class GetWatchListUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class GetWatchListUnauthorized extends RuntimeException { return false; } GetWatchListUnauthorized other = (GetWatchListUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(GetWatchListUnauthorized.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 } @@ -138,7 +145,7 @@ public class GetWatchListUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class GetWatchListUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class GetWatchListUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public GetWatchListUnauthorized build() { return new GetWatchListUnauthorized( errors, @@ -170,3 +177,4 @@ public class GetWatchListUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListWatchlistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListWatchlistErrors.java index e3eec454..b5c39d41 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListWatchlistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/GetWatchListWatchlistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetWatchListWatchlistErrors { public final static Builder builder() { return new Builder(); - } + } public GetWatchListWatchlistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class GetWatchListWatchlistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetWatchListWatchlistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetWatchListWatchlistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogLineBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/LogLineBadRequest.java index 566543bd..43cf7f68 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogLineBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * LogLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * LogLineBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class LogLineBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class LogLineBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class LogLineBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public LogLineBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public LogLineBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class LogLineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class LogLineBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class LogLineBadRequest extends RuntimeException { return false; } LogLineBadRequest other = (LogLineBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(LogLineBadRequest.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 } @@ -138,7 +145,7 @@ public class LogLineBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class LogLineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class LogLineBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public LogLineBadRequest build() { return new LogLineBadRequest( errors, @@ -170,3 +177,4 @@ public class LogLineBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java index d71e6d93..43a7d17c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class LogLineErrors { public final static Builder builder() { return new Builder(); - } + } public LogLineErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class LogLineErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class LogLineErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class LogLineErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogLineLogErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/LogLineLogErrors.java index 8c4ad1ba..4210d5f2 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogLineLogErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineLogErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class LogLineLogErrors { public final static Builder builder() { return new Builder(); - } + } public LogLineLogErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class LogLineLogErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class LogLineLogErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class LogLineLogErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogLineUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/LogLineUnauthorized.java index 0f41e10a..dc22a528 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogLineUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogLineUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * LogLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * LogLineUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class LogLineUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class LogLineUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class LogLineUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public LogLineUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public LogLineUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class LogLineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class LogLineUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class LogLineUnauthorized extends RuntimeException { return false; } LogLineUnauthorized other = (LogLineUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(LogLineUnauthorized.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 } @@ -138,7 +145,7 @@ public class LogLineUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class LogLineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class LogLineUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public LogLineUnauthorized build() { return new LogLineUnauthorized( errors, @@ -170,3 +177,4 @@ public class LogLineUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineBadRequest.java index fe2ff1ab..882d50f8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * LogMultiLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * LogMultiLineBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class LogMultiLineBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class LogMultiLineBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class LogMultiLineBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public LogMultiLineBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public LogMultiLineBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class LogMultiLineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class LogMultiLineBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class LogMultiLineBadRequest extends RuntimeException { return false; } LogMultiLineBadRequest other = (LogMultiLineBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(LogMultiLineBadRequest.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 } @@ -138,7 +145,7 @@ public class LogMultiLineBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class LogMultiLineBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class LogMultiLineBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public LogMultiLineBadRequest build() { return new LogMultiLineBadRequest( errors, @@ -170,3 +177,4 @@ public class LogMultiLineBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java index de992d1c..5e98023e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class LogMultiLineErrors { public final static Builder builder() { return new Builder(); - } + } public LogMultiLineErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class LogMultiLineErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class LogMultiLineErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class LogMultiLineErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineLogErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineLogErrors.java index a37be6c6..c4ecb391 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineLogErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineLogErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class LogMultiLineLogErrors { public final static Builder builder() { return new Builder(); - } + } public LogMultiLineLogErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class LogMultiLineLogErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class LogMultiLineLogErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class LogMultiLineLogErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineUnauthorized.java index b4a19570..62ec940a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/LogMultiLineUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * LogMultiLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * LogMultiLineUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class LogMultiLineUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class LogMultiLineUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class LogMultiLineUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public LogMultiLineUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public LogMultiLineUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class LogMultiLineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class LogMultiLineUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class LogMultiLineUnauthorized extends RuntimeException { return false; } LogMultiLineUnauthorized other = (LogMultiLineUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(LogMultiLineUnauthorized.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 } @@ -138,7 +145,7 @@ public class LogMultiLineUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class LogMultiLineUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class LogMultiLineUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public LogMultiLineUnauthorized build() { return new LogMultiLineUnauthorized( errors, @@ -170,3 +177,4 @@ public class LogMultiLineUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedBadRequest.java index 2d8223ba..d1c2e654 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * MarkPlayedBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * MarkPlayedBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class MarkPlayedBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class MarkPlayedBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class MarkPlayedBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public MarkPlayedBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public MarkPlayedBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class MarkPlayedBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class MarkPlayedBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class MarkPlayedBadRequest extends RuntimeException { return false; } MarkPlayedBadRequest other = (MarkPlayedBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(MarkPlayedBadRequest.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 } @@ -138,7 +145,7 @@ public class MarkPlayedBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class MarkPlayedBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class MarkPlayedBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public MarkPlayedBadRequest build() { return new MarkPlayedBadRequest( errors, @@ -170,3 +177,4 @@ public class MarkPlayedBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java index 3fd10681..9e02985d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class MarkPlayedErrors { public final static Builder builder() { return new Builder(); - } + } public MarkPlayedErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class MarkPlayedErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class MarkPlayedErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class MarkPlayedErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedMediaErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedMediaErrors.java index 1e00cc29..40f5183d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedMediaErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedMediaErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class MarkPlayedMediaErrors { public final static Builder builder() { return new Builder(); - } + } public MarkPlayedMediaErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class MarkPlayedMediaErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class MarkPlayedMediaErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class MarkPlayedMediaErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedUnauthorized.java index de4cf696..51e4826d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkPlayedUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * MarkPlayedUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * MarkPlayedUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class MarkPlayedUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class MarkPlayedUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class MarkPlayedUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public MarkPlayedUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public MarkPlayedUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class MarkPlayedUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class MarkPlayedUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class MarkPlayedUnauthorized extends RuntimeException { return false; } MarkPlayedUnauthorized other = (MarkPlayedUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(MarkPlayedUnauthorized.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 } @@ -138,7 +145,7 @@ public class MarkPlayedUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class MarkPlayedUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class MarkPlayedUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public MarkPlayedUnauthorized build() { return new MarkPlayedUnauthorized( errors, @@ -170,3 +177,4 @@ public class MarkPlayedUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedBadRequest.java index 3a761f69..38f9aab0 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * MarkUnplayedBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * MarkUnplayedBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class MarkUnplayedBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class MarkUnplayedBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class MarkUnplayedBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public MarkUnplayedBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public MarkUnplayedBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class MarkUnplayedBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class MarkUnplayedBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class MarkUnplayedBadRequest extends RuntimeException { return false; } MarkUnplayedBadRequest other = (MarkUnplayedBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(MarkUnplayedBadRequest.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 } @@ -138,7 +145,7 @@ public class MarkUnplayedBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class MarkUnplayedBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class MarkUnplayedBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public MarkUnplayedBadRequest build() { return new MarkUnplayedBadRequest( errors, @@ -170,3 +177,4 @@ public class MarkUnplayedBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java index 4e37aade..82ebfbbd 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class MarkUnplayedErrors { public final static Builder builder() { return new Builder(); - } + } public MarkUnplayedErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class MarkUnplayedErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class MarkUnplayedErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class MarkUnplayedErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedMediaErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedMediaErrors.java index 4ed91ac2..c968ccc4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedMediaErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedMediaErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class MarkUnplayedMediaErrors { public final static Builder builder() { return new Builder(); - } + } public MarkUnplayedMediaErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class MarkUnplayedMediaErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class MarkUnplayedMediaErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class MarkUnplayedMediaErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedUnauthorized.java index 6568df60..6e7bf28f 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/MarkUnplayedUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * MarkUnplayedUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * MarkUnplayedUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class MarkUnplayedUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class MarkUnplayedUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class MarkUnplayedUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public MarkUnplayedUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public MarkUnplayedUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class MarkUnplayedUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class MarkUnplayedUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class MarkUnplayedUnauthorized extends RuntimeException { return false; } MarkUnplayedUnauthorized other = (MarkUnplayedUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(MarkUnplayedUnauthorized.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 } @@ -138,7 +145,7 @@ public class MarkUnplayedUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class MarkUnplayedUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class MarkUnplayedUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public MarkUnplayedUnauthorized build() { return new MarkUnplayedUnauthorized( errors, @@ -170,3 +177,4 @@ public class MarkUnplayedUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchBadRequest.java index 33b2efc2..8962fc60 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PerformSearchBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * PerformSearchBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class PerformSearchBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class PerformSearchBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PerformSearchBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PerformSearchBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PerformSearchBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PerformSearchBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PerformSearchBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PerformSearchBadRequest extends RuntimeException { return false; } PerformSearchBadRequest other = (PerformSearchBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PerformSearchBadRequest.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 } @@ -138,7 +145,7 @@ public class PerformSearchBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PerformSearchBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PerformSearchBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PerformSearchBadRequest build() { return new PerformSearchBadRequest( errors, @@ -170,3 +177,4 @@ public class PerformSearchBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java index 382f1031..cb232fac 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PerformSearchErrors { public final static Builder builder() { return new Builder(); - } + } public PerformSearchErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PerformSearchErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PerformSearchErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PerformSearchErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchSearchErrors.java index b4a7c160..2096b4f3 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchSearchErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PerformSearchSearchErrors { public final static Builder builder() { return new Builder(); - } + } public PerformSearchSearchErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PerformSearchSearchErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PerformSearchSearchErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PerformSearchSearchErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchUnauthorized.java index 3979d2bb..9ec7d5c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformSearchUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PerformSearchUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * PerformSearchUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class PerformSearchUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class PerformSearchUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PerformSearchUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PerformSearchUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PerformSearchUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PerformSearchUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PerformSearchUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PerformSearchUnauthorized extends RuntimeException { return false; } PerformSearchUnauthorized other = (PerformSearchUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PerformSearchUnauthorized.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 } @@ -138,7 +145,7 @@ public class PerformSearchUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PerformSearchUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PerformSearchUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PerformSearchUnauthorized build() { return new PerformSearchUnauthorized( errors, @@ -170,3 +177,4 @@ public class PerformSearchUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchBadRequest.java index f372636a..fbe28db5 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PerformVoiceSearchBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * PerformVoiceSearchBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class PerformVoiceSearchBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PerformVoiceSearchBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PerformVoiceSearchBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { return false; } PerformVoiceSearchBadRequest other = (PerformVoiceSearchBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PerformVoiceSearchBadRequest.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 } @@ -138,7 +145,7 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PerformVoiceSearchBadRequest build() { return new PerformVoiceSearchBadRequest( errors, @@ -170,3 +177,4 @@ public class PerformVoiceSearchBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java index 4e7785a8..0e77b39a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PerformVoiceSearchErrors { public final static Builder builder() { return new Builder(); - } + } public PerformVoiceSearchErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PerformVoiceSearchErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PerformVoiceSearchErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PerformVoiceSearchErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchSearchErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchSearchErrors.java index da2a6cef..cc22e403 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchSearchErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchSearchErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PerformVoiceSearchSearchErrors { public final static Builder builder() { return new Builder(); - } + } public PerformVoiceSearchSearchErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PerformVoiceSearchSearchErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PerformVoiceSearchSearchErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PerformVoiceSearchSearchErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchUnauthorized.java index 2ec584ef..34dfab48 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PerformVoiceSearchUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PerformVoiceSearchUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * PerformVoiceSearchUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class PerformVoiceSearchUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PerformVoiceSearchUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PerformVoiceSearchUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { return false; } PerformVoiceSearchUnauthorized other = (PerformVoiceSearchUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PerformVoiceSearchUnauthorized.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 } @@ -138,7 +145,7 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PerformVoiceSearchUnauthorized build() { return new PerformVoiceSearchUnauthorized( errors, @@ -170,3 +177,4 @@ public class PerformVoiceSearchUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataAuthenticationErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataAuthenticationErrors.java index 22689739..14ce306a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataAuthenticationErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataAuthenticationErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PostUsersSignInDataAuthenticationErrors { public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataAuthenticationErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PostUsersSignInDataAuthenticationErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PostUsersSignInDataAuthenticationErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PostUsersSignInDataAuthenticationErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataBadRequest.java index a8c7245d..ae05abe0 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PostUsersSignInDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * PostUsersSignInDataBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class PostUsersSignInDataBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PostUsersSignInDataBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { return false; } PostUsersSignInDataBadRequest other = (PostUsersSignInDataBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PostUsersSignInDataBadRequest.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 } @@ -138,7 +145,7 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PostUsersSignInDataBadRequest build() { return new PostUsersSignInDataBadRequest( errors, @@ -170,3 +177,4 @@ public class PostUsersSignInDataBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java index df683284..acd88d3d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class PostUsersSignInDataErrors { public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class PostUsersSignInDataErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class PostUsersSignInDataErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class PostUsersSignInDataErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataUnauthorized.java index bc5a735e..94fe741c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/PostUsersSignInDataUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * PostUsersSignInDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * PostUsersSignInDataUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class PostUsersSignInDataUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public PostUsersSignInDataUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { return false; } PostUsersSignInDataUnauthorized other = (PostUsersSignInDataUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(PostUsersSignInDataUnauthorized.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 } @@ -138,7 +145,7 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public PostUsersSignInDataUnauthorized build() { return new PostUsersSignInDataUnauthorized( errors, @@ -170,3 +177,4 @@ public class PostUsersSignInDataUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java b/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java index 99a67c43..30d3c996 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/SDKError.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.errors; import java.net.http.HttpResponse; diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksBadRequest.java index f79c1e83..aeb88aaa 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartAllTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StartAllTasksBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StartAllTasksBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StartAllTasksBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartAllTasksBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartAllTasksBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartAllTasksBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartAllTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartAllTasksBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartAllTasksBadRequest extends RuntimeException { return false; } StartAllTasksBadRequest other = (StartAllTasksBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartAllTasksBadRequest.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 } @@ -138,7 +145,7 @@ public class StartAllTasksBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartAllTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartAllTasksBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartAllTasksBadRequest build() { return new StartAllTasksBadRequest( errors, @@ -170,3 +177,4 @@ public class StartAllTasksBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksButlerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksButlerErrors.java index cfbeee5f..95155955 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksButlerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksButlerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartAllTasksButlerErrors { public final static Builder builder() { return new Builder(); - } + } public StartAllTasksButlerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartAllTasksButlerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartAllTasksButlerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartAllTasksButlerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java index 32cd3dc2..da07f0ba 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartAllTasksErrors { public final static Builder builder() { return new Builder(); - } + } public StartAllTasksErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartAllTasksErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartAllTasksErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartAllTasksErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksUnauthorized.java index 9ec570b1..43dac03c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartAllTasksUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartAllTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StartAllTasksUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StartAllTasksUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StartAllTasksUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartAllTasksUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartAllTasksUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartAllTasksUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartAllTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartAllTasksUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartAllTasksUnauthorized extends RuntimeException { return false; } StartAllTasksUnauthorized other = (StartAllTasksUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartAllTasksUnauthorized.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 } @@ -138,7 +145,7 @@ public class StartAllTasksUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartAllTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartAllTasksUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartAllTasksUnauthorized build() { return new StartAllTasksUnauthorized( errors, @@ -170,3 +177,4 @@ public class StartAllTasksUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskBadRequest.java index 661796cc..b8c591d4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartTaskBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StartTaskBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StartTaskBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StartTaskBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartTaskBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartTaskBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartTaskBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartTaskBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartTaskBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartTaskBadRequest extends RuntimeException { return false; } StartTaskBadRequest other = (StartTaskBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartTaskBadRequest.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 } @@ -138,7 +145,7 @@ public class StartTaskBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartTaskBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartTaskBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartTaskBadRequest build() { return new StartTaskBadRequest( errors, @@ -170,3 +177,4 @@ public class StartTaskBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskButlerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskButlerErrors.java index 42fadf1c..df2da11d 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskButlerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskButlerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartTaskButlerErrors { public final static Builder builder() { return new Builder(); - } + } public StartTaskButlerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartTaskButlerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartTaskButlerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartTaskButlerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java index 4047b2d2..763e7dae 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartTaskErrors { public final static Builder builder() { return new Builder(); - } + } public StartTaskErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartTaskErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartTaskErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartTaskErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskUnauthorized.java index e35cad24..736beff4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartTaskUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartTaskUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartTaskUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StartTaskUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StartTaskUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StartTaskUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartTaskUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartTaskUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartTaskUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartTaskUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartTaskUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartTaskUnauthorized extends RuntimeException { return false; } StartTaskUnauthorized other = (StartTaskUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartTaskUnauthorized.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 } @@ -138,7 +145,7 @@ public class StartTaskUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartTaskUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartTaskUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartTaskUnauthorized build() { return new StartTaskUnauthorized( errors, @@ -170,3 +177,4 @@ public class StartTaskUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeBadRequest.java index e60f1594..1c510774 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartUniversalTranscodeBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StartUniversalTranscodeBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StartUniversalTranscodeBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartUniversalTranscodeBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartUniversalTranscodeBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { return false; } StartUniversalTranscodeBadRequest other = (StartUniversalTranscodeBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartUniversalTranscodeBadRequest.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 } @@ -138,7 +145,7 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartUniversalTranscodeBadRequest build() { return new StartUniversalTranscodeBadRequest( errors, @@ -170,3 +177,4 @@ public class StartUniversalTranscodeBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java index 0ef04058..62b506fa 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartUniversalTranscodeErrors { public final static Builder builder() { return new Builder(); - } + } public StartUniversalTranscodeErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartUniversalTranscodeErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartUniversalTranscodeErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartUniversalTranscodeErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeUnauthorized.java index bd0cc714..1ec9f003 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StartUniversalTranscodeUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StartUniversalTranscodeUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StartUniversalTranscodeUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StartUniversalTranscodeUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StartUniversalTranscodeUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { return false; } StartUniversalTranscodeUnauthorized other = (StartUniversalTranscodeUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StartUniversalTranscodeUnauthorized.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 } @@ -138,7 +145,7 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StartUniversalTranscodeUnauthorized build() { return new StartUniversalTranscodeUnauthorized( errors, @@ -170,3 +177,4 @@ public class StartUniversalTranscodeUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeVideoErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeVideoErrors.java index 85c138e5..e43ca94c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeVideoErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StartUniversalTranscodeVideoErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StartUniversalTranscodeVideoErrors { public final static Builder builder() { return new Builder(); - } + } public StartUniversalTranscodeVideoErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StartUniversalTranscodeVideoErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StartUniversalTranscodeVideoErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StartUniversalTranscodeVideoErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksBadRequest.java index 10444988..0299018a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopAllTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StopAllTasksBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StopAllTasksBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StopAllTasksBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopAllTasksBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopAllTasksBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopAllTasksBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopAllTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopAllTasksBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopAllTasksBadRequest extends RuntimeException { return false; } StopAllTasksBadRequest other = (StopAllTasksBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopAllTasksBadRequest.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 } @@ -138,7 +145,7 @@ public class StopAllTasksBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopAllTasksBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopAllTasksBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopAllTasksBadRequest build() { return new StopAllTasksBadRequest( errors, @@ -170,3 +177,4 @@ public class StopAllTasksBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksButlerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksButlerErrors.java index 53d1cd89..7125477e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksButlerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksButlerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopAllTasksButlerErrors { public final static Builder builder() { return new Builder(); - } + } public StopAllTasksButlerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopAllTasksButlerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopAllTasksButlerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopAllTasksButlerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java index 42f650d2..79922cae 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopAllTasksErrors { public final static Builder builder() { return new Builder(); - } + } public StopAllTasksErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopAllTasksErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopAllTasksErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopAllTasksErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksUnauthorized.java index 05688059..cffe7559 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopAllTasksUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopAllTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StopAllTasksUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StopAllTasksUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StopAllTasksUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopAllTasksUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopAllTasksUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopAllTasksUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopAllTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopAllTasksUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopAllTasksUnauthorized extends RuntimeException { return false; } StopAllTasksUnauthorized other = (StopAllTasksUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopAllTasksUnauthorized.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 } @@ -138,7 +145,7 @@ public class StopAllTasksUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopAllTasksUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopAllTasksUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopAllTasksUnauthorized build() { return new StopAllTasksUnauthorized( errors, @@ -170,3 +177,4 @@ public class StopAllTasksUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskBadRequest.java index b2d9306d..b96135da 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopTaskBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StopTaskBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StopTaskBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StopTaskBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopTaskBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopTaskBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopTaskBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopTaskBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopTaskBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopTaskBadRequest extends RuntimeException { return false; } StopTaskBadRequest other = (StopTaskBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopTaskBadRequest.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 } @@ -138,7 +145,7 @@ public class StopTaskBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopTaskBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopTaskBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopTaskBadRequest build() { return new StopTaskBadRequest( errors, @@ -170,3 +177,4 @@ public class StopTaskBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskButlerErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskButlerErrors.java index 8f51a9ad..5ac8ddfa 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskButlerErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskButlerErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopTaskButlerErrors { public final static Builder builder() { return new Builder(); - } + } public StopTaskButlerErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopTaskButlerErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopTaskButlerErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopTaskButlerErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java index aeccc4f4..ebaf5fc1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopTaskErrors { public final static Builder builder() { return new Builder(); - } + } public StopTaskErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopTaskErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopTaskErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopTaskErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskUnauthorized.java index b384c990..181f165e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTaskUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTaskUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopTaskUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StopTaskUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StopTaskUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StopTaskUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopTaskUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopTaskUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopTaskUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopTaskUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopTaskUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopTaskUnauthorized extends RuntimeException { return false; } StopTaskUnauthorized other = (StopTaskUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopTaskUnauthorized.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 } @@ -138,7 +145,7 @@ public class StopTaskUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopTaskUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopTaskUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopTaskUnauthorized build() { return new StopTaskUnauthorized( errors, @@ -170,3 +177,4 @@ public class StopTaskUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionBadRequest.java index 5fa2d700..c02bd999 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopTranscodeSessionBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * StopTranscodeSessionBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class StopTranscodeSessionBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopTranscodeSessionBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopTranscodeSessionBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { return false; } StopTranscodeSessionBadRequest other = (StopTranscodeSessionBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopTranscodeSessionBadRequest.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 } @@ -138,7 +145,7 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopTranscodeSessionBadRequest build() { return new StopTranscodeSessionBadRequest( errors, @@ -170,3 +177,4 @@ public class StopTranscodeSessionBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java index 7bb9cec0..158a1e40 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopTranscodeSessionErrors { public final static Builder builder() { return new Builder(); - } + } public StopTranscodeSessionErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopTranscodeSessionErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopTranscodeSessionErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopTranscodeSessionErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionSessionsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionSessionsErrors.java index cd6b6d2d..909ce3ff 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionSessionsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionSessionsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class StopTranscodeSessionSessionsErrors { public final static Builder builder() { return new Builder(); - } + } public StopTranscodeSessionSessionsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class StopTranscodeSessionSessionsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class StopTranscodeSessionSessionsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class StopTranscodeSessionSessionsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionUnauthorized.java index 542673d4..3183c17c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/StopTranscodeSessionUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * StopTranscodeSessionUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * StopTranscodeSessionUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class StopTranscodeSessionUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public StopTranscodeSessionUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public StopTranscodeSessionUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { return false; } StopTranscodeSessionUnauthorized other = (StopTranscodeSessionUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(StopTranscodeSessionUnauthorized.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 } @@ -138,7 +145,7 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public StopTranscodeSessionUnauthorized build() { return new StopTranscodeSessionUnauthorized( errors, @@ -170,3 +177,4 @@ public class StopTranscodeSessionUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressBadRequest.java index ab507c96..847bd53c 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UpdatePlayProgressBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * UpdatePlayProgressBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class UpdatePlayProgressBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UpdatePlayProgressBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UpdatePlayProgressBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { return false; } UpdatePlayProgressBadRequest other = (UpdatePlayProgressBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UpdatePlayProgressBadRequest.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 } @@ -138,7 +145,7 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UpdatePlayProgressBadRequest build() { return new UpdatePlayProgressBadRequest( errors, @@ -170,3 +177,4 @@ public class UpdatePlayProgressBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java index 813d5413..7adad3c4 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UpdatePlayProgressErrors { public final static Builder builder() { return new Builder(); - } + } public UpdatePlayProgressErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UpdatePlayProgressErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UpdatePlayProgressErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UpdatePlayProgressErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressMediaErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressMediaErrors.java index f9e4405c..228919a8 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressMediaErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressMediaErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UpdatePlayProgressMediaErrors { public final static Builder builder() { return new Builder(); - } + } public UpdatePlayProgressMediaErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UpdatePlayProgressMediaErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UpdatePlayProgressMediaErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UpdatePlayProgressMediaErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressUnauthorized.java index 65419900..8246017a 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlayProgressUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UpdatePlayProgressUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * UpdatePlayProgressUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class UpdatePlayProgressUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UpdatePlayProgressUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UpdatePlayProgressUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { return false; } UpdatePlayProgressUnauthorized other = (UpdatePlayProgressUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UpdatePlayProgressUnauthorized.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 } @@ -138,7 +145,7 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UpdatePlayProgressUnauthorized build() { return new UpdatePlayProgressUnauthorized( errors, @@ -170,3 +177,4 @@ public class UpdatePlayProgressUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistBadRequest.java index db1d62f2..45d222fc 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UpdatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * UpdatePlaylistBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class UpdatePlaylistBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class UpdatePlaylistBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UpdatePlaylistBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UpdatePlaylistBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UpdatePlaylistBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UpdatePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UpdatePlaylistBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UpdatePlaylistBadRequest extends RuntimeException { return false; } UpdatePlaylistBadRequest other = (UpdatePlaylistBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UpdatePlaylistBadRequest.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 } @@ -138,7 +145,7 @@ public class UpdatePlaylistBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UpdatePlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UpdatePlaylistBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UpdatePlaylistBadRequest build() { return new UpdatePlaylistBadRequest( errors, @@ -170,3 +177,4 @@ public class UpdatePlaylistBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java index 2fc3d69f..6aaa6668 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UpdatePlaylistErrors { public final static Builder builder() { return new Builder(); - } + } public UpdatePlaylistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UpdatePlaylistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UpdatePlaylistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UpdatePlaylistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistPlaylistsErrors.java index 7f897b58..4b239806 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UpdatePlaylistPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public UpdatePlaylistPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UpdatePlaylistPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UpdatePlaylistPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UpdatePlaylistPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistUnauthorized.java index e873035f..e43501ac 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UpdatePlaylistUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UpdatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * UpdatePlaylistUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class UpdatePlaylistUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UpdatePlaylistUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UpdatePlaylistUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { return false; } UpdatePlaylistUnauthorized other = (UpdatePlaylistUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UpdatePlaylistUnauthorized.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 } @@ -138,7 +145,7 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UpdatePlaylistUnauthorized build() { return new UpdatePlaylistUnauthorized( errors, @@ -170,3 +177,4 @@ public class UpdatePlaylistUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistBadRequest.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistBadRequest.java index f004e4c9..e367d988 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistBadRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistBadRequest.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UploadPlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. + * UploadPlaylistBadRequest + * + *

Bad Request - A parameter was not specified, or was specified incorrectly. */ @SuppressWarnings("serial") public class UploadPlaylistBadRequest extends RuntimeException { @@ -49,7 +53,8 @@ public class UploadPlaylistBadRequest extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UploadPlaylistBadRequest extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UploadPlaylistBadRequest withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UploadPlaylistBadRequest withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UploadPlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UploadPlaylistBadRequest extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UploadPlaylistBadRequest extends RuntimeException { return false; } UploadPlaylistBadRequest other = (UploadPlaylistBadRequest) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UploadPlaylistBadRequest.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 } @@ -138,7 +145,7 @@ public class UploadPlaylistBadRequest extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UploadPlaylistBadRequest extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UploadPlaylistBadRequest extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UploadPlaylistBadRequest build() { return new UploadPlaylistBadRequest( errors, @@ -170,3 +177,4 @@ public class UploadPlaylistBadRequest extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java index 9f9becd9..c78902c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UploadPlaylistErrors { public final static Builder builder() { return new Builder(); - } + } public UploadPlaylistErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UploadPlaylistErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UploadPlaylistErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UploadPlaylistErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistPlaylistsErrors.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistPlaylistsErrors.java index f7d02680..880d054e 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistPlaylistsErrors.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistPlaylistsErrors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UploadPlaylistPlaylistsErrors { public final static Builder builder() { return new Builder(); - } + } public UploadPlaylistPlaylistsErrors withCode(int code) { Utils.checkNotNull(code, "code"); @@ -101,6 +100,7 @@ public class UploadPlaylistPlaylistsErrors { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class UploadPlaylistPlaylistsErrors { private Optional message = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class UploadPlaylistPlaylistsErrors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistUnauthorized.java b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistUnauthorized.java index 99602e57..bc1e3d95 100644 --- a/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistUnauthorized.java +++ b/src/main/java/dev/plexapi/sdk/models/errors/UploadPlaylistUnauthorized.java @@ -1,24 +1,28 @@ /* * 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.io.InputStream; import java.lang.Override; +import java.lang.RuntimeException; 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; + /** - * UploadPlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + * UploadPlaylistUnauthorized + * + *

Unauthorized - Returned if the X-Plex-Token is missing from the header or query. */ @SuppressWarnings("serial") public class UploadPlaylistUnauthorized extends RuntimeException { @@ -49,7 +53,8 @@ public class UploadPlaylistUnauthorized extends RuntimeException { } @SuppressWarnings("unchecked") - public Optional> errors(){ + @JsonIgnore + public Optional> errors() { return (Optional>) errors; } @@ -57,20 +62,21 @@ public class UploadPlaylistUnauthorized extends RuntimeException { * Raw HTTP response; suitable for custom response parsing */ @SuppressWarnings("unchecked") - public Optional> rawResponse(){ + @JsonIgnore + public Optional> rawResponse() { return (Optional>) rawResponse; } - + public final static Builder builder() { return new Builder(); - } + } public UploadPlaylistUnauthorized withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - + public UploadPlaylistUnauthorized withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -85,7 +91,7 @@ public class UploadPlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -95,6 +101,7 @@ public class UploadPlaylistUnauthorized extends RuntimeException { return this; } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,31 +111,31 @@ public class UploadPlaylistUnauthorized extends RuntimeException { return false; } UploadPlaylistUnauthorized other = (UploadPlaylistUnauthorized) o; - return + return Objects.deepEquals(this.errors, other.errors) && Objects.deepEquals(this.rawResponse, other.rawResponse); } - + @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( errors, rawResponse); } - + @Override public String toString() { return Utils.toString(UploadPlaylistUnauthorized.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 } @@ -138,7 +145,7 @@ public class UploadPlaylistUnauthorized extends RuntimeException { this.errors = Optional.ofNullable(errors); return this; } - + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; @@ -153,7 +160,7 @@ public class UploadPlaylistUnauthorized extends RuntimeException { this.rawResponse = Optional.ofNullable(rawResponse); return this; } - + /** * Raw HTTP response; suitable for custom response parsing */ @@ -162,7 +169,7 @@ public class UploadPlaylistUnauthorized extends RuntimeException { this.rawResponse = rawResponse; return this; } - + public UploadPlaylistUnauthorized build() { return new UploadPlaylistUnauthorized( errors, @@ -170,3 +177,4 @@ public class UploadPlaylistUnauthorized extends RuntimeException { } } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Account.java b/src/main/java/dev/plexapi/sdk/models/operations/Account.java index 1f619333..8c06e241 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Account.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Account.java @@ -1,9 +1,8 @@ /* * 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; @@ -125,7 +124,7 @@ public class Account { public final static Builder builder() { return new Builder(); - } + } public Account withId(int id) { Utils.checkNotNull(id, "id"); @@ -222,6 +221,7 @@ public class Account { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -285,7 +285,7 @@ public class Account { private Optional subtitleMode = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -400,4 +400,3 @@ public class Account { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Action.java b/src/main/java/dev/plexapi/sdk/models/operations/Action.java index 0504205b..5da2ecda 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Action.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Action.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class Action { public final static Builder builder() { return new Builder(); - } + } public Action withId(String id) { Utils.checkNotNull(id, "id"); @@ -55,6 +54,7 @@ public class Action { this.key = key; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class Action { private String id; - private String key; + private String key; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class Action { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ActiveDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/ActiveDirection.java index 726588c8..c7caa97c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ActiveDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ActiveDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * ActiveDirection - The direction of the sort. Can be either `asc` or `desc`. + * ActiveDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum ActiveDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum ActiveDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Activity.java b/src/main/java/dev/plexapi/sdk/models/operations/Activity.java index 02dd5752..ca9b58fc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Activity.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Activity.java @@ -1,9 +1,8 @@ /* * 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; @@ -127,7 +126,7 @@ public class Activity { public final static Builder builder() { return new Builder(); - } + } public Activity withUuid(String uuid) { Utils.checkNotNull(uuid, "uuid"); @@ -224,6 +223,7 @@ public class Activity { this.context = context; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -287,7 +287,7 @@ public class Activity { private Optional progress = Optional.empty(); - private Optional context = Optional.empty(); + private Optional context = Optional.empty(); private Builder() { // force use of static builder() method @@ -402,4 +402,3 @@ public class Activity { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java index 9a262b63..9281a6a6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -79,7 +78,7 @@ public class AddPlaylistContentsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -128,6 +127,7 @@ public class AddPlaylistContentsMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -171,7 +171,7 @@ public class AddPlaylistContentsMediaContainer { private Optional leafCountRequested = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -234,4 +234,3 @@ public class AddPlaylistContentsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java index 168aed9d..2b28db06 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -185,7 +184,7 @@ public class AddPlaylistContentsMetadata { public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -342,6 +341,7 @@ public class AddPlaylistContentsMetadata { this.updatedAt = updatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -430,7 +430,7 @@ public class AddPlaylistContentsMetadata { private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -610,4 +610,3 @@ public class AddPlaylistContentsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java index ef0d73c7..c5f3b643 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -79,7 +78,7 @@ public class AddPlaylistContentsRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -116,6 +115,7 @@ public class AddPlaylistContentsRequest { this.playQueueID = playQueueID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -154,7 +154,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 @@ -204,4 +204,3 @@ public class AddPlaylistContentsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java index 1758781b..8a6636b7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java index 757c9151..b0ed7a5b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class AddPlaylistContentsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class AddPlaylistContentsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class AddPlaylistContentsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class AddPlaylistContentsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java index bdb55c29..3c1f3632 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AddPlaylistContentsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * AddPlaylistContentsResponseBody - Playlist Updated - */ +/** + * AddPlaylistContentsResponseBody + * + *

Playlist Updated + */ public class AddPlaylistContentsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class AddPlaylistContentsResponseBody { public final static Builder builder() { return new Builder(); - } + } public AddPlaylistContentsResponseBody withMediaContainer(AddPlaylistContentsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class AddPlaylistContentsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class AddPlaylistContentsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class AddPlaylistContentsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllLibraries.java b/src/main/java/dev/plexapi/sdk/models/operations/AllLibraries.java index 4cada0ca..94008238 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllLibraries.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllLibraries.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllLibraries - Indicates if the user has access to all libraries. + * AllLibraries + * + *

Indicates if the user has access to all libraries. */ public enum AllLibraries { Disable(0), @@ -34,3 +36,4 @@ public enum AllLibraries { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllowCameraUpload.java b/src/main/java/dev/plexapi/sdk/models/operations/AllowCameraUpload.java index 8803656a..0dae86eb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllowCameraUpload.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllowCameraUpload.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllowCameraUpload - Indicates if the user is allowed to upload from a camera. + * AllowCameraUpload + * + *

Indicates if the user is allowed to upload from a camera. */ public enum AllowCameraUpload { Disable(0), @@ -34,3 +36,4 @@ public enum AllowCameraUpload { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllowChannels.java b/src/main/java/dev/plexapi/sdk/models/operations/AllowChannels.java index f3d126ac..e0f3b4b4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllowChannels.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllowChannels.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllowChannels - Indicates if the user has access to channels. + * AllowChannels + * + *

Indicates if the user has access to channels. */ public enum AllowChannels { Disable(0), @@ -34,3 +36,4 @@ public enum AllowChannels { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllowSubtitleAdmin.java b/src/main/java/dev/plexapi/sdk/models/operations/AllowSubtitleAdmin.java index 55f6e291..a682ea86 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllowSubtitleAdmin.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllowSubtitleAdmin.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllowSubtitleAdmin - Indicates if the user can manage subtitles. + * AllowSubtitleAdmin + * + *

Indicates if the user can manage subtitles. */ public enum AllowSubtitleAdmin { Disable(0), @@ -34,3 +36,4 @@ public enum AllowSubtitleAdmin { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllowSync.java b/src/main/java/dev/plexapi/sdk/models/operations/AllowSync.java index 67ef6676..5c54c98d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllowSync.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllowSync.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllowSync - Indicates if the user is allowed to sync media. + * AllowSync + * + *

Indicates if the user is allowed to sync media. */ public enum AllowSync { Disable(0), @@ -34,3 +36,4 @@ public enum AllowSync { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AllowTuners.java b/src/main/java/dev/plexapi/sdk/models/operations/AllowTuners.java index 3b325180..3baf3948 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AllowTuners.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AllowTuners.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AllowTuners - Indicates if the user is allowed to use tuners. + * AllowTuners + * + *

Indicates if the user is allowed to use tuners. */ public enum AllowTuners { Disable(0), @@ -34,3 +36,4 @@ public enum AllowTuners { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java index d5b9b6ae..786496dc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -62,7 +61,7 @@ public class ApplyUpdatesRequest { public final static Builder builder() { return new Builder(); - } + } /** * Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install @@ -99,6 +98,7 @@ public class ApplyUpdatesRequest { this.skip = skip; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class ApplyUpdatesRequest { private Optional tonight = Optional.empty(); - private Optional skip = Optional.empty(); + private Optional skip = Optional.empty(); private Builder() { // force use of static builder() method @@ -181,4 +181,3 @@ public class ApplyUpdatesRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java index afa2efd7..56a054a3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.util.Optional; public class ApplyUpdatesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java index 263901a7..8d11b2bf 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ApplyUpdatesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class ApplyUpdatesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class ApplyUpdatesResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class ApplyUpdatesResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class ApplyUpdatesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java b/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java index b05b4d4b..3f3ebffe 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/AutoSelectSubtitle.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + * AutoSelectSubtitle + * + *

The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) */ public enum AutoSelectSubtitle { Disable(0), @@ -34,3 +36,4 @@ public enum AutoSelectSubtitle { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Billing.java b/src/main/java/dev/plexapi/sdk/models/operations/Billing.java index c98500f1..a5a08b37 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Billing.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Billing.java @@ -1,9 +1,8 @@ /* * 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; @@ -52,7 +51,7 @@ public class Billing { public final static Builder builder() { return new Builder(); - } + } public Billing withInternalPaymentMethod(InternalPaymentMethod internalPaymentMethod) { Utils.checkNotNull(internalPaymentMethod, "internalPaymentMethod"); @@ -71,6 +70,7 @@ public class Billing { this.paymentMethodId = paymentMethodId; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -104,7 +104,7 @@ public class Billing { private InternalPaymentMethod internalPaymentMethod; - private Optional paymentMethodId = Optional.empty(); + private Optional paymentMethodId = Optional.empty(); private Builder() { // force use of static builder() method @@ -135,4 +135,3 @@ public class Billing { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java index 3231dcb4..d06548c5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTask.java @@ -1,9 +1,8 @@ /* * 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; @@ -101,7 +100,7 @@ public class ButlerTask { public final static Builder builder() { return new Builder(); - } + } public ButlerTask withName(String name) { Utils.checkNotNull(name, "name"); @@ -174,6 +173,7 @@ public class ButlerTask { this.description = description; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -227,7 +227,7 @@ public class ButlerTask { private Optional title = Optional.empty(); - private Optional description = Optional.empty(); + private Optional description = Optional.empty(); private Builder() { // force use of static builder() method @@ -316,4 +316,3 @@ public class ButlerTask { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java index 7faf91ff..9f05e3dd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ButlerTasks.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class ButlerTasks { public final static Builder builder() { return new Builder(); - } + } public ButlerTasks withButlerTask(List butlerTask) { Utils.checkNotNull(butlerTask, "butlerTask"); @@ -55,6 +54,7 @@ public class ButlerTasks { this.butlerTask = butlerTask; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -83,7 +83,7 @@ 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 @@ -107,4 +107,3 @@ public class ButlerTasks { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java index 1c9d1052..c64b289d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class CancelServerActivitiesRequest { public final static Builder builder() { return new Builder(); - } + } /** * The UUID of the activity to cancel. @@ -47,6 +46,7 @@ public class CancelServerActivitiesRequest { this.activityUUID = activityUUID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class CancelServerActivitiesRequest { public final static class Builder { - private String activityUUID; + private String activityUUID; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class CancelServerActivitiesRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java index c1297b2a..d9e92e26 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class CancelServerActivitiesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java index 89e7f4d8..e0252f0e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CancelServerActivitiesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class CancelServerActivitiesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class CancelServerActivitiesResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class CancelServerActivitiesResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class CancelServerActivitiesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java index d43f29a5..9bf27014 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -44,7 +43,7 @@ public class CheckForUpdatesRequest { public final static Builder builder() { return new Builder(); - } + } /** * Indicate that you want to start download any updates found. @@ -63,6 +62,7 @@ public class CheckForUpdatesRequest { this.download = download; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -91,7 +91,7 @@ public class CheckForUpdatesRequest { public final static class Builder { - private Optional download = Optional.empty(); + private Optional download = Optional.empty(); private Builder() { // force use of static builder() method @@ -121,4 +121,3 @@ public class CheckForUpdatesRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java index b0a8f421..b5e9713e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.util.Optional; public class CheckForUpdatesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java index 4488ce57..5ec69765 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CheckForUpdatesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class CheckForUpdatesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class CheckForUpdatesResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class CheckForUpdatesResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class CheckForUpdatesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java index 72062608..8d564d31 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -38,7 +37,7 @@ public class ClearPlaylistContentsRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -48,6 +47,7 @@ public class ClearPlaylistContentsRequest { this.playlistID = playlistID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -76,7 +76,7 @@ public class ClearPlaylistContentsRequest { public final static class Builder { - private Double playlistID; + private Double playlistID; private Builder() { // force use of static builder() method @@ -97,4 +97,3 @@ public class ClearPlaylistContentsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java index 242779f5..2a0bd1c0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class ClearPlaylistContentsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java index 0067352b..375ea1cd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ClearPlaylistContentsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class ClearPlaylistContentsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class ClearPlaylistContentsResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class ClearPlaylistContentsResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class ClearPlaylistContentsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Collection.java b/src/main/java/dev/plexapi/sdk/models/operations/Collection.java index 92778e2c..4b36fb19 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Collection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Collection.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class Collection { public final static Builder builder() { return new Builder(); - } + } /** * The user-made collection this media item belongs to @@ -47,6 +46,7 @@ public class Collection { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class Collection { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class Collection { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Connections.java b/src/main/java/dev/plexapi/sdk/models/operations/Connections.java index 18725751..9d9cf317 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Connections.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Connections.java @@ -1,9 +1,8 @@ /* * 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; @@ -141,7 +140,7 @@ public class Connections { public final static Builder builder() { return new Builder(); - } + } /** * The protocol used for the connection (http, https, etc) @@ -205,6 +204,7 @@ public class Connections { this.iPv6 = iPv6; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -263,7 +263,7 @@ public class Connections { private Boolean relay; - private Boolean iPv6; + private Boolean iPv6; private Builder() { // force use of static builder() method @@ -344,4 +344,3 @@ public class Connections { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Context.java b/src/main/java/dev/plexapi/sdk/models/operations/Context.java index 55e7cbd1..27a0e63f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Context.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Context.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class Context { public final static Builder builder() { return new Builder(); - } + } public Context withLibrarySectionID(String librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); @@ -52,6 +51,7 @@ public class Context { this.librarySectionID = librarySectionID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class Context { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Country.java b/src/main/java/dev/plexapi/sdk/models/operations/Country.java index dd011d48..ed94d87b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Country.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Country.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * Country - The filter query string for country media items. - */ +/** + * Country + * + *

The filter query string for country media items. + */ public class Country { @JsonProperty("id") @@ -73,7 +74,7 @@ public class Country { public final static Builder builder() { return new Builder(); - } + } public Country withId(long id) { Utils.checkNotNull(id, "id"); @@ -101,6 +102,7 @@ public class Country { this.filter = filter; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +141,7 @@ public class Country { private String tag; - private Optional filter = Optional.empty(); + private Optional filter = Optional.empty(); private Builder() { // force use of static builder() method @@ -180,4 +182,3 @@ public class Country { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java index 19532ff3..f3701633 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class CreatePlaylistMediaContainer { public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class CreatePlaylistMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class CreatePlaylistMediaContainer { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class CreatePlaylistMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java index 26e4aad4..c973bd39 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -221,7 +220,7 @@ public class CreatePlaylistMetadata { public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -414,6 +413,7 @@ public class CreatePlaylistMetadata { this.duration = duration; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -517,7 +517,7 @@ public class CreatePlaylistMetadata { private Optional composite = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); private Builder() { // force use of static builder() method @@ -736,4 +736,3 @@ public class CreatePlaylistMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java index a212b5d6..909e915c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistQueryParamType.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * CreatePlaylistQueryParamType - type of playlist to create + * CreatePlaylistQueryParamType + * + *

type of playlist to create */ public enum CreatePlaylistQueryParamType { AUDIO("audio"), @@ -36,3 +38,4 @@ public enum CreatePlaylistQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java index 7f24f3c8..91e50ee0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -115,7 +114,7 @@ public class CreatePlaylistRequest { public final static Builder builder() { return new Builder(); - } + } /** * name of the playlist @@ -170,6 +169,7 @@ public class CreatePlaylistRequest { this.playQueueID = playQueueID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -218,7 +218,7 @@ public class CreatePlaylistRequest { private String uri; - private Optional playQueueID = Optional.empty(); + private Optional playQueueID = Optional.empty(); private Builder() { // force use of static builder() method @@ -288,4 +288,3 @@ public class CreatePlaylistRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java index 187b5ae7..85f2e077 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class CreatePlaylistRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java index 11b1fe18..85a0dda8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class CreatePlaylistResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class CreatePlaylistResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class CreatePlaylistResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class CreatePlaylistResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java index d3b27e4e..04969a9a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/CreatePlaylistResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * CreatePlaylistResponseBody - returns all playlists - */ +/** + * CreatePlaylistResponseBody + * + *

returns all playlists + */ public class CreatePlaylistResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class CreatePlaylistResponseBody { public final static Builder builder() { return new Builder(); - } + } public CreatePlaylistResponseBody withMediaContainer(CreatePlaylistMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class CreatePlaylistResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class CreatePlaylistResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class CreatePlaylistResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DefaultDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/DefaultDirection.java index 7761d02c..c489609c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DefaultDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DefaultDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * DefaultDirection - The direction of the sort. Can be either `asc` or `desc`. + * DefaultDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum DefaultDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum DefaultDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java index c1d6aee0..ea490263 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleAccessibility.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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 show non-SDH subtitles) + * 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 show non-SDH subtitles) */ public enum DefaultSubtitleAccessibility { Disable(0), @@ -34,3 +36,4 @@ public enum DefaultSubtitleAccessibility { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java index 784fe074..0b58076a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DefaultSubtitleForced.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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) + * 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 { Disable(0), @@ -34,3 +36,4 @@ public enum DefaultSubtitleForced { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java index b25c0c47..cc85e8c9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ 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; @@ -33,7 +31,6 @@ public class DeleteLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -42,18 +39,18 @@ public class DeleteLibraryRequest { 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) { @@ -82,7 +79,7 @@ public class DeleteLibraryRequest { public final static class Builder { - private Integer sectionKey; + private Integer sectionKey; private Builder() { // force use of static builder() method @@ -91,7 +88,6 @@ public class DeleteLibraryRequest { /** * 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"); @@ -105,4 +101,3 @@ public class DeleteLibraryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java index 3b59bfdc..cb5f3050 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; public class DeleteLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java index 4f8996d5..13f9a608 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeleteLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class DeleteLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class DeleteLibraryResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class DeleteLibraryResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class DeleteLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java index 3b1f39f6..220236e6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -38,7 +37,7 @@ public class DeletePlaylistRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -48,6 +47,7 @@ public class DeletePlaylistRequest { this.playlistID = playlistID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -76,7 +76,7 @@ public class DeletePlaylistRequest { public final static class Builder { - private Double playlistID; + private Double playlistID; private Builder() { // force use of static builder() method @@ -97,4 +97,3 @@ public class DeletePlaylistRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java index 1e109c4f..4e3878a2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class DeletePlaylistRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java index 5e679ee5..1a6d65da 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/DeletePlaylistResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class DeletePlaylistResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class DeletePlaylistResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class DeletePlaylistResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class DeletePlaylistResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Device.java b/src/main/java/dev/plexapi/sdk/models/operations/Device.java index 91ddbb58..74953a48 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Device.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Device.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class Device { public final static Builder builder() { return new Builder(); - } + } public Device withId(double id) { Utils.checkNotNull(id, "id"); @@ -149,6 +148,7 @@ public class Device { this.createdAt = createdAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -197,7 +197,7 @@ public class Device { private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,4 +273,3 @@ public class Device { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Director.java b/src/main/java/dev/plexapi/sdk/models/operations/Director.java index 7a6aa16d..68023e64 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Director.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Director.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class Director { public final static Builder builder() { return new Builder(); - } + } /** * The role of Director @@ -47,6 +46,7 @@ public class Director { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class Director { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class Director { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Directory.java b/src/main/java/dev/plexapi/sdk/models/operations/Directory.java index ac9b3ce4..e8348079 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Directory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Directory.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class Directory { public final static Builder builder() { return new Builder(); - } + } public Directory withCount(double count) { Utils.checkNotNull(count, "count"); @@ -101,6 +100,7 @@ public class Directory { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class Directory { private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class Directory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Download.java b/src/main/java/dev/plexapi/sdk/models/operations/Download.java index 5d55de83..3f75382a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Download.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Download.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Download - Indicate that you want to start download any updates found. + * Download + * + *

Indicate that you want to start download any updates found. */ public enum Download { ZERO(0L), @@ -34,3 +36,4 @@ public enum Download { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/EnableCreditsMarkerGeneration.java b/src/main/java/dev/plexapi/sdk/models/operations/EnableCreditsMarkerGeneration.java index b6c71da7..6c359454 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/EnableCreditsMarkerGeneration.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/EnableCreditsMarkerGeneration.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). + * EnableCreditsMarkerGeneration + * + *

Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). */ public enum EnableCreditsMarkerGeneration { LibraryDefault("-1"), @@ -35,3 +37,4 @@ public enum EnableCreditsMarkerGeneration { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java index c6e1fdc4..6c67fd52 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class EnablePaperTrailRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java index c7d86da1..b27bbaa3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/EnablePaperTrailResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class EnablePaperTrailResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class EnablePaperTrailResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class EnablePaperTrailResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class EnablePaperTrailResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/EpisodeSort.java b/src/main/java/dev/plexapi/sdk/models/operations/EpisodeSort.java index 62de2d18..2750a027 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/EpisodeSort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/EpisodeSort.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). + * EpisodeSort + * + *

Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). */ public enum EpisodeSort { LibraryDefault("-1"), @@ -36,3 +38,4 @@ public enum EpisodeSort { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Feature.java b/src/main/java/dev/plexapi/sdk/models/operations/Feature.java index 1d0d419e..7649b66c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Feature.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Feature.java @@ -1,9 +1,8 @@ /* * 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; @@ -115,7 +114,7 @@ public class Feature { public final static Builder builder() { return new Builder(); - } + } public Feature withKey(String key) { Utils.checkNotNull(key, "key"); @@ -194,6 +193,7 @@ public class Feature { this.action = action; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -252,7 +252,7 @@ public class Feature { private Optional> directory = Optional.empty(); - private Optional> action = Optional.empty(); + private Optional> action = Optional.empty(); private Builder() { // force use of static builder() method @@ -348,4 +348,3 @@ public class Feature { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Field.java b/src/main/java/dev/plexapi/sdk/models/operations/Field.java index 96a9220b..fbe170b1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Field.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Field.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class Field { public final static Builder builder() { return new Builder(); - } + } public Field withKey(String key) { Utils.checkNotNull(key, "key"); @@ -106,6 +105,7 @@ public class Field { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -149,7 +149,7 @@ public class Field { private String type; - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -194,4 +194,3 @@ public class Field { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java index 85924489..107351af 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/FieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class FieldType { public final static Builder builder() { return new Builder(); - } + } public FieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -56,6 +55,7 @@ public class FieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class FieldType { private String type; - private List operator; + private List operator; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class FieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Filter.java b/src/main/java/dev/plexapi/sdk/models/operations/Filter.java index ba90bcd6..542457ba 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Filter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Filter.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Filter - Filter + * Filter + * + *

Filter */ public enum Filter { ALL("all"), @@ -36,3 +38,4 @@ public enum Filter { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/FlattenSeasons.java b/src/main/java/dev/plexapi/sdk/models/operations/FlattenSeasons.java index a7ac03f9..bef98759 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/FlattenSeasons.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/FlattenSeasons.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). + * FlattenSeasons + * + *

Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). */ public enum FlattenSeasons { LibraryDefault("-1"), @@ -36,3 +38,4 @@ public enum FlattenSeasons { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Force.java b/src/main/java/dev/plexapi/sdk/models/operations/Force.java index 6ec03f92..bd23fc30 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Force.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Force.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Force - Force the refresh even if the library is already being refreshed. + * Force + * + *

Force the refresh even if the library is already being refreshed. */ public enum Force { ZERO(0L), @@ -34,3 +36,4 @@ public enum Force { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Friend.java b/src/main/java/dev/plexapi/sdk/models/operations/Friend.java index 7aed70ed..aafd295f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Friend.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Friend.java @@ -1,9 +1,8 @@ /* * 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; @@ -236,7 +235,7 @@ public class Friend { public final static Builder builder() { return new Builder(); - } + } /** * The account email address @@ -357,6 +356,7 @@ public class Friend { this.uuid = uuid; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -440,7 +440,7 @@ public class Friend { private String username; - private String uuid; + private String uuid; private Builder() { // force use of static builder() method @@ -569,7 +569,8 @@ public class Friend { public Friend build() { if (restricted == null) { restricted = _SINGLETON_VALUE_Restricted.value(); - } return new Friend( + } + return new Friend( email, friendlyName, home, @@ -591,4 +592,3 @@ public class Friend { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Genre.java b/src/main/java/dev/plexapi/sdk/models/operations/Genre.java index c63ffee8..0379c2f6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Genre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Genre.java @@ -1,9 +1,8 @@ /* * 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; @@ -12,10 +11,12 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * Genre - The filter query string for similar items. - */ +/** + * Genre + * + *

The filter query string for similar items. + */ public class Genre { @JsonProperty("id") @@ -26,7 +27,6 @@ public class Genre { /** * The genre name of this media-item - * */ @JsonProperty("tag") private String tag; @@ -56,7 +56,6 @@ public class Genre { /** * The genre name of this media-item - * */ @JsonIgnore public String tag() { @@ -65,7 +64,7 @@ public class Genre { public final static Builder builder() { return new Builder(); - } + } public Genre withId(long id) { Utils.checkNotNull(id, "id"); @@ -81,13 +80,13 @@ public class Genre { /** * The genre name of this media-item - * */ public Genre withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -126,7 +125,7 @@ public class Genre { private String filter; - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -146,7 +145,6 @@ public class Genre { /** * The genre name of this media-item - * */ public Builder tag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -162,4 +160,3 @@ public class Genre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java b/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java index 44279d53..50302a4c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GeoData.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * GeoData - Geo location data - */ +/** + * GeoData + * + *

Geo location data + */ public class GeoData { /** @@ -231,7 +232,7 @@ public class GeoData { public final static Builder builder() { return new Builder(); - } + } /** * The ISO 3166-1 alpha-2 code of the country. @@ -358,6 +359,7 @@ public class GeoData { this.coordinates = coordinates; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -436,7 +438,7 @@ public class GeoData { private String subdivisions; - private String coordinates; + private String coordinates; private Builder() { // force use of static builder() method @@ -577,7 +579,8 @@ public class GeoData { } if (inPrivacyRestrictedRegion == null) { inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); - } return new GeoData( + } + return new GeoData( code, continentCode, country, @@ -610,4 +613,3 @@ public class GeoData { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryDirectory.java index ff5a3423..d3af09ac 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetActorsLibraryDirectory { public final static Builder builder() { return new Builder(); - } + } /** * A fast lookup key for the actor relative url. @@ -125,6 +124,7 @@ public class GetActorsLibraryDirectory { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -168,7 +168,7 @@ public class GetActorsLibraryDirectory { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -219,4 +219,3 @@ public class GetActorsLibraryDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryMediaContainer.java index 41ca60a8..961de22e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -267,7 +266,7 @@ public class GetActorsLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -394,6 +393,7 @@ public class GetActorsLibraryMediaContainer { this.directory = directory; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -482,7 +482,7 @@ public class GetActorsLibraryMediaContainer { private String viewMode; - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -632,4 +632,3 @@ public class GetActorsLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryQueryParamType.java index 895164ac..14bf645d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetActorsLibraryQueryParamType - The type of media to retrieve or filter by. + * GetActorsLibraryQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetActorsLibraryQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetActorsLibraryQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequest.java index 13d4c1a5..a4ffeeb0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ public class GetActorsLibraryRequest { /** * 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; @@ -30,7 +28,6 @@ public class GetActorsLibraryRequest { * 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 GetActorsLibraryQueryParamType type; @@ -48,7 +45,6 @@ public class GetActorsLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -62,7 +58,6 @@ public class GetActorsLibraryRequest { * 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 GetActorsLibraryQueryParamType type() { @@ -71,12 +66,11 @@ public class GetActorsLibraryRequest { 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 GetActorsLibraryRequest withSectionKey(int sectionKey) { Utils.checkNotNull(sectionKey, "sectionKey"); @@ -91,13 +85,13 @@ public class GetActorsLibraryRequest { * 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 GetActorsLibraryRequest withType(GetActorsLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -131,7 +125,7 @@ public class GetActorsLibraryRequest { private Integer sectionKey; - private GetActorsLibraryQueryParamType type; + private GetActorsLibraryQueryParamType type; private Builder() { // force use of static builder() method @@ -140,7 +134,6 @@ public class GetActorsLibraryRequest { /** * 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"); @@ -155,7 +148,6 @@ public class GetActorsLibraryRequest { * 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(GetActorsLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -170,4 +162,3 @@ public class GetActorsLibraryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequestBuilder.java index 2faf19dc..fa7c9a00 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; public class GetActorsLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponse.java index 72e805c3..0172fff5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetActorsLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetActorsLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetActorsLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetActorsLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponseBody.java index 2ba8c5f7..537c9b7e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetActorsLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetActorsLibraryResponseBody - Successful response containing media container data. - */ +/** + * GetActorsLibraryResponseBody + * + *

Successful response containing media container data. + */ public class GetActorsLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetActorsLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetActorsLibraryResponseBody withMediaContainer(GetActorsLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetActorsLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetActorsLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetActorsLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java index 5ee7e4a3..5a4be715 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -279,7 +278,7 @@ public class GetAllLibrariesDirectory { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesDirectory withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); @@ -418,6 +417,7 @@ public class GetAllLibrariesDirectory { this.location = location; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -546,7 +546,7 @@ public class GetAllLibrariesDirectory { private Integer hidden; - private List location; + private List location; private Builder() { // force use of static builder() method @@ -716,4 +716,3 @@ public class GetAllLibrariesDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesLocation.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesLocation.java index 128b64a8..8dca6423 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesLocation.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesLocation.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class GetAllLibrariesLocation { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesLocation withId(int id) { Utils.checkNotNull(id, "id"); @@ -56,6 +55,7 @@ public class GetAllLibrariesLocation { this.path = path; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class GetAllLibrariesLocation { private Integer id; - private String path; + private String path; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class GetAllLibrariesLocation { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java index 9b9acbce..0d2ec107 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -67,7 +66,7 @@ public class GetAllLibrariesMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -92,6 +91,7 @@ public class GetAllLibrariesMediaContainer { this.directory = directory; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -135,7 +135,7 @@ public class GetAllLibrariesMediaContainer { private String title1; - private List directory; + private List directory; private Builder() { // force use of static builder() method @@ -174,4 +174,3 @@ public class GetAllLibrariesMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java index d2760b32..90ba55b0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetAllLibrariesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java index fb70216e..be0ae31c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetAllLibrariesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetAllLibrariesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetAllLibrariesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetAllLibrariesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java index 6e4fe2b0..130273e1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllLibrariesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -11,10 +10,12 @@ import dev.plexapi.sdk.utils.Utils; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * GetAllLibrariesResponseBody - The libraries available on the Server - */ +/** + * GetAllLibrariesResponseBody + * + *

The libraries available on the Server + */ public class GetAllLibrariesResponseBody { @JsonProperty("MediaContainer") @@ -34,13 +35,14 @@ public class GetAllLibrariesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetAllLibrariesResponseBody withMediaContainer(GetAllLibrariesMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -69,7 +71,7 @@ public class GetAllLibrariesResponseBody { public final static class Builder { - private GetAllLibrariesMediaContainer mediaContainer; + private GetAllLibrariesMediaContainer mediaContainer; private Builder() { // force use of static builder() method @@ -87,4 +89,3 @@ public class GetAllLibrariesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryActiveDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryActiveDirection.java index 7e53039b..bcdccb3d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryActiveDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryActiveDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetAllMediaLibraryActiveDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetAllMediaLibraryActiveDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetAllMediaLibraryActiveDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCollection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCollection.java index 1eb60f56..35a3f125 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCollection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCollection.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetAllMediaLibraryCollection { public final static Builder builder() { return new Builder(); - } + } /** * The user-made collection this media item belongs to @@ -47,6 +46,7 @@ public class GetAllMediaLibraryCollection { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetAllMediaLibraryCollection { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetAllMediaLibraryCollection { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCountry.java index da95444d..b94fbdfa 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetAllMediaLibraryCountry { public final static Builder builder() { return new Builder(); - } + } /** * The country of origin of this media item @@ -47,6 +46,7 @@ public class GetAllMediaLibraryCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetAllMediaLibraryCountry { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetAllMediaLibraryCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDefaultDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDefaultDirection.java index 463237dc..e46211b4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDefaultDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDefaultDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetAllMediaLibraryDefaultDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetAllMediaLibraryDefaultDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetAllMediaLibraryDefaultDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDirector.java index 5a3ca68e..a0bdf1bc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetAllMediaLibraryDirector { public final static Builder builder() { return new Builder(); - } + } /** * The role of Director @@ -47,6 +46,7 @@ public class GetAllMediaLibraryDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetAllMediaLibraryDirector { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetAllMediaLibraryDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryField.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryField.java index dcd3dda3..b97c3aa1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryField.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryField.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetAllMediaLibraryField { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryField withKey(String key) { Utils.checkNotNull(key, "key"); @@ -106,6 +105,7 @@ public class GetAllMediaLibraryField { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -149,7 +149,7 @@ public class GetAllMediaLibraryField { private String type; - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -194,4 +194,3 @@ public class GetAllMediaLibraryField { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFieldType.java index 2e69aa19..383b5efd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class GetAllMediaLibraryFieldType { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryFieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -56,6 +55,7 @@ public class GetAllMediaLibraryFieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class GetAllMediaLibraryFieldType { private String type; - private List operator; + private List operator; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class GetAllMediaLibraryFieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFilter.java index 515c85c7..ac9f4793 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetAllMediaLibraryFilter { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -143,6 +142,7 @@ public class GetAllMediaLibraryFilter { this.advanced = advanced; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -196,7 +196,7 @@ public class GetAllMediaLibraryFilter { private String type; - private Optional advanced = Optional.empty(); + private Optional advanced = Optional.empty(); private Builder() { // force use of static builder() method @@ -255,4 +255,3 @@ public class GetAllMediaLibraryFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGenre.java index 98128996..b9b8fe2c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -16,7 +15,6 @@ public class GetAllMediaLibraryGenre { /** * The genre name of this media-item - * */ @JsonProperty("tag") private String tag; @@ -30,7 +28,6 @@ public class GetAllMediaLibraryGenre { /** * The genre name of this media-item - * */ @JsonIgnore public String tag() { @@ -39,17 +36,17 @@ public class GetAllMediaLibraryGenre { public final static Builder builder() { return new Builder(); - } + } /** * The genre name of this media-item - * */ public GetAllMediaLibraryGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -78,7 +75,7 @@ public class GetAllMediaLibraryGenre { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -86,7 +83,6 @@ public class GetAllMediaLibraryGenre { /** * The genre name of this media-item - * */ public Builder tag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -100,4 +96,3 @@ public class GetAllMediaLibraryGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGuids.java index 5b8361fe..b51c3a06 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryGuids.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,7 +18,6 @@ public class GetAllMediaLibraryGuids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") @@ -38,7 +36,6 @@ public class GetAllMediaLibraryGuids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ @JsonIgnore public Optional id() { @@ -47,11 +44,10 @@ public class GetAllMediaLibraryGuids { public final static Builder builder() { return new Builder(); - } + } /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public GetAllMediaLibraryGuids withId(String id) { Utils.checkNotNull(id, "id"); @@ -61,13 +57,13 @@ public class GetAllMediaLibraryGuids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public GetAllMediaLibraryGuids withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -96,7 +92,7 @@ public class GetAllMediaLibraryGuids { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,7 +100,6 @@ public class GetAllMediaLibraryGuids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -114,7 +109,6 @@ public class GetAllMediaLibraryGuids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -128,4 +122,3 @@ public class GetAllMediaLibraryGuids { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryHasThumbnail.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryHasThumbnail.java index 4da266d9..bff27bd4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryHasThumbnail.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryHasThumbnail.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryHasThumbnail - Indicates if the part has a thumbnail. + * GetAllMediaLibraryHasThumbnail + * + *

Indicates if the part has a thumbnail. */ public enum GetAllMediaLibraryHasThumbnail { False("0"), @@ -35,3 +37,4 @@ public enum GetAllMediaLibraryHasThumbnail { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryImage.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryImage.java index ca11b283..64440095 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryImage.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryImage.java @@ -1,9 +1,8 @@ /* * 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; @@ -53,7 +52,7 @@ public class GetAllMediaLibraryImage { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryImage withAlt(String alt) { Utils.checkNotNull(alt, "alt"); @@ -72,6 +71,7 @@ public class GetAllMediaLibraryImage { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetAllMediaLibraryImage { private GetAllMediaLibraryLibraryResponseType type; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -142,4 +142,3 @@ public class GetAllMediaLibraryImage { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryOptimizedForStreaming.java index adf63f4b..9e77b2a0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryOptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * GetAllMediaLibraryLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * GetAllMediaLibraryLibraryOptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = GetAllMediaLibraryLibraryOptimizedForStreaming._Deserializer.class) public class GetAllMediaLibraryLibraryOptimizedForStreaming { @@ -97,3 +98,4 @@ public class GetAllMediaLibraryLibraryOptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryResponseType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryResponseType.java index 4c6a4b7b..ae7fb8a2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryResponseType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryResponseType.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetAllMediaLibraryLibraryResponseType { COVER_POSTER("coverPoster"), BACKGROUND("background"), @@ -34,3 +34,4 @@ public enum GetAllMediaLibraryLibraryResponseType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryType.java index b8feadd1..0309d7c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryLibraryType.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryLibraryType - The type of media content + * GetAllMediaLibraryLibraryType * + *

The type of media content */ public enum GetAllMediaLibraryLibraryType { Movie("movie"), @@ -40,3 +41,4 @@ public enum GetAllMediaLibraryLibraryType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMedia.java index 3da96527..9ba9bd7e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -105,7 +104,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") @@ -311,7 +309,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonIgnore public Optional videoFrameRate() { @@ -367,7 +364,7 @@ public class GetAllMediaLibraryMedia { public final static Builder builder() { return new Builder(); - } + } /** * Unique media identifier. @@ -572,7 +569,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public GetAllMediaLibraryMedia withVideoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -582,7 +578,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public GetAllMediaLibraryMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -691,6 +686,7 @@ public class GetAllMediaLibraryMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -809,7 +805,7 @@ public class GetAllMediaLibraryMedia { private Optional has64bitOffsets = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -1018,7 +1014,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1028,7 +1023,6 @@ public class GetAllMediaLibraryMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1162,4 +1156,3 @@ public class GetAllMediaLibraryMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMediaContainer.java index 4f7ce2e4..0a9fc077 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -127,7 +126,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Meta") @@ -359,7 +357,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -378,7 +375,7 @@ public class GetAllMediaLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -544,7 +541,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetAllMediaLibraryMediaContainer withMeta(GetAllMediaLibraryMeta meta) { Utils.checkNotNull(meta, "meta"); @@ -554,7 +550,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetAllMediaLibraryMediaContainer withMeta(Optional meta) { Utils.checkNotNull(meta, "meta"); @@ -579,6 +574,7 @@ public class GetAllMediaLibraryMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -697,7 +693,7 @@ public class GetAllMediaLibraryMediaContainer { private Optional meta = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -867,7 +863,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(GetAllMediaLibraryMeta meta) { Utils.checkNotNull(meta, "meta"); @@ -877,7 +872,6 @@ public class GetAllMediaLibraryMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(Optional meta) { Utils.checkNotNull(meta, "meta"); @@ -927,4 +921,3 @@ public class GetAllMediaLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMeta.java index fbfe190e..4d98ce4d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMeta.java @@ -1,9 +1,8 @@ /* * 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; @@ -16,11 +15,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetAllMediaLibraryMeta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * - */ +/** + * GetAllMediaLibraryMeta + * + *

The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + */ public class GetAllMediaLibraryMeta { @JsonInclude(Include.NON_ABSENT) @@ -59,7 +59,7 @@ public class GetAllMediaLibraryMeta { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryMeta withType(List type) { Utils.checkNotNull(type, "type"); @@ -84,6 +84,7 @@ public class GetAllMediaLibraryMeta { this.fieldType = fieldType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -117,7 +118,7 @@ public class GetAllMediaLibraryMeta { private Optional> type = Optional.empty(); - private Optional> fieldType = Optional.empty(); + private Optional> fieldType = Optional.empty(); private Builder() { // force use of static builder() method @@ -154,4 +155,3 @@ public class GetAllMediaLibraryMeta { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMetadata.java index 8f222d89..0d22374e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -21,11 +20,12 @@ import java.time.LocalDate; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetAllMediaLibraryMetadata - Unknown - * - */ +/** + * GetAllMediaLibraryMetadata + * + *

Unknown + */ public class GetAllMediaLibraryMetadata { /** @@ -1128,7 +1128,7 @@ public class GetAllMediaLibraryMetadata { public final static Builder builder() { return new Builder(); - } + } /** * The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API. @@ -2035,6 +2035,7 @@ public class GetAllMediaLibraryMetadata { this.collection = collection; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -2378,7 +2379,7 @@ public class GetAllMediaLibraryMetadata { private Optional> guids = Optional.empty(); - private Optional> collection = Optional.empty(); + private Optional> collection = Optional.empty(); private Builder() { // force use of static builder() method @@ -3359,4 +3360,3 @@ public class GetAllMediaLibraryMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOperator.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOperator.java index 10781211..121f7170 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOperator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOperator.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class GetAllMediaLibraryOperator { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryOperator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -55,6 +54,7 @@ public class GetAllMediaLibraryOperator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class GetAllMediaLibraryOperator { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class GetAllMediaLibraryOperator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming.java index 18bea1ab..8322960d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * GetAllMediaLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * GetAllMediaLibraryOptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = GetAllMediaLibraryOptimizedForStreaming._Deserializer.class) public class GetAllMediaLibraryOptimizedForStreaming { @@ -97,3 +98,4 @@ public class GetAllMediaLibraryOptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming1.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming1.java index 7496eff9..262948d5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming1.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryOptimizedForStreaming1.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetAllMediaLibraryOptimizedForStreaming1 { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum GetAllMediaLibraryOptimizedForStreaming1 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryPart.java index 2f22b667..59e74ecb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -301,7 +300,7 @@ public class GetAllMediaLibraryPart { public final static Builder builder() { return new Builder(); - } + } /** * Indicates if the part is accessible. @@ -530,6 +529,7 @@ public class GetAllMediaLibraryPart { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -633,7 +633,7 @@ public class GetAllMediaLibraryPart { private Optional hasThumbnail; - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -870,7 +870,8 @@ public class GetAllMediaLibraryPart { public GetAllMediaLibraryPart build() { if (hasThumbnail == null) { hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value(); - } return new GetAllMediaLibraryPart( + } + return new GetAllMediaLibraryPart( accessible, exists, id, @@ -896,4 +897,3 @@ public class GetAllMediaLibraryPart { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamIncludeMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamIncludeMeta.java index 25734297..68ee0b8a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamIncludeMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamIncludeMeta.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryQueryParamIncludeMeta - Adds the Meta object to the response + * GetAllMediaLibraryQueryParamIncludeMeta * + *

Adds the Meta object to the response */ public enum GetAllMediaLibraryQueryParamIncludeMeta { Disable(0), @@ -35,3 +36,4 @@ public enum GetAllMediaLibraryQueryParamIncludeMeta { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamType.java index dc41e332..7df8a84c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetAllMediaLibraryQueryParamType - The type of media to retrieve or filter by. + * GetAllMediaLibraryQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetAllMediaLibraryQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetAllMediaLibraryQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequest.java index 2347ad87..cf085ed3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -22,7 +21,6 @@ public class GetAllMediaLibraryRequest { /** * 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; @@ -34,21 +32,18 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryQueryParamType type; /** * Adds the Meta object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta") private Optional includeMeta; /** * Adds the Guid object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") private Optional includeGuids; @@ -66,7 +61,6 @@ public class GetAllMediaLibraryRequest { * 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; @@ -75,7 +69,6 @@ public class GetAllMediaLibraryRequest { * 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; @@ -120,7 +113,6 @@ public class GetAllMediaLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -134,7 +126,6 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryQueryParamType type() { @@ -143,7 +134,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Meta object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -153,7 +143,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Guid object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -183,7 +172,6 @@ public class GetAllMediaLibraryRequest { * 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() { @@ -194,7 +182,6 @@ public class GetAllMediaLibraryRequest { * 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() { @@ -203,12 +190,11 @@ public class GetAllMediaLibraryRequest { 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 GetAllMediaLibraryRequest withSectionKey(int sectionKey) { Utils.checkNotNull(sectionKey, "sectionKey"); @@ -223,7 +209,6 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryRequest withType(GetAllMediaLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -233,7 +218,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Meta object to the response - * */ public GetAllMediaLibraryRequest withIncludeMeta(GetAllMediaLibraryQueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -243,7 +227,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Meta object to the response - * */ public GetAllMediaLibraryRequest withIncludeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -253,7 +236,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Guid object to the response - * */ public GetAllMediaLibraryRequest withIncludeGuids(QueryParamIncludeGuids includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -263,7 +245,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Guid object to the response - * */ public GetAllMediaLibraryRequest withIncludeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -311,7 +292,6 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryRequest withXPlexContainerStart(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -323,7 +303,6 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryRequest withXPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -335,7 +314,6 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryRequest withXPlexContainerSize(int xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -347,13 +325,13 @@ public class GetAllMediaLibraryRequest { * 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 GetAllMediaLibraryRequest withXPlexContainerSize(Optional xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); this.xPlexContainerSize = xPlexContainerSize; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -422,7 +400,7 @@ public class GetAllMediaLibraryRequest { private Optional xPlexContainerStart; - private Optional xPlexContainerSize; + private Optional xPlexContainerSize; private Builder() { // force use of static builder() method @@ -431,7 +409,6 @@ public class GetAllMediaLibraryRequest { /** * 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"); @@ -446,7 +423,6 @@ public class GetAllMediaLibraryRequest { * 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(GetAllMediaLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -456,7 +432,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(GetAllMediaLibraryQueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -466,7 +441,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -476,7 +450,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Guid object to the response - * */ public Builder includeGuids(QueryParamIncludeGuids includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -486,7 +459,6 @@ public class GetAllMediaLibraryRequest { /** * Adds the Guid object to the response - * */ public Builder includeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -534,7 +506,6 @@ public class GetAllMediaLibraryRequest { * 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"); @@ -546,7 +517,6 @@ public class GetAllMediaLibraryRequest { * 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"); @@ -558,7 +528,6 @@ public class GetAllMediaLibraryRequest { * 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"); @@ -570,7 +539,6 @@ public class GetAllMediaLibraryRequest { * 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"); @@ -599,7 +567,8 @@ public class GetAllMediaLibraryRequest { } if (xPlexContainerSize == null) { xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); - } return new GetAllMediaLibraryRequest( + } + return new GetAllMediaLibraryRequest( sectionKey, type, includeMeta, @@ -654,4 +623,3 @@ public class GetAllMediaLibraryRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequestBuilder.java index c21c541c..a83e1b1d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetAllMediaLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponse.java index ba6b18e2..9587b7b2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetAllMediaLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetAllMediaLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetAllMediaLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetAllMediaLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponseBody.java index 485a79c4..4dd059a4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetAllMediaLibraryResponseBody - Successful response containing media container data. - */ +/** + * GetAllMediaLibraryResponseBody + * + *

Successful response containing media container data. + */ public class GetAllMediaLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetAllMediaLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryResponseBody withMediaContainer(GetAllMediaLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetAllMediaLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetAllMediaLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetAllMediaLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRole.java index bb8e7b79..1a2c22c5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetAllMediaLibraryRole { public final static Builder builder() { return new Builder(); - } + } /** * The display tag for the actor (typically the actor's name). @@ -47,6 +46,7 @@ public class GetAllMediaLibraryRole { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetAllMediaLibraryRole { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetAllMediaLibraryRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibrarySort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibrarySort.java index a72be037..6d87011a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibrarySort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibrarySort.java @@ -1,9 +1,8 @@ /* * 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; @@ -31,7 +30,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeDirection") @@ -39,7 +37,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") @@ -105,7 +102,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +111,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -145,7 +140,7 @@ public class GetAllMediaLibrarySort { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibrarySort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -173,7 +168,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetAllMediaLibrarySort withActiveDirection(GetAllMediaLibraryActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -183,7 +177,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetAllMediaLibrarySort withActiveDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -193,7 +186,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetAllMediaLibrarySort withDefaultDirection(GetAllMediaLibraryDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -203,7 +195,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetAllMediaLibrarySort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -246,6 +237,7 @@ public class GetAllMediaLibrarySort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -309,7 +301,7 @@ public class GetAllMediaLibrarySort { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -341,7 +333,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(GetAllMediaLibraryActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -351,7 +342,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -361,7 +351,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(GetAllMediaLibraryDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -371,7 +360,6 @@ public class GetAllMediaLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -421,7 +409,8 @@ public class GetAllMediaLibrarySort { } if (defaultDirection == null) { defaultDirection = _SINGLETON_VALUE_DefaultDirection.value(); - } return new GetAllMediaLibrarySort( + } + return new GetAllMediaLibrarySort( default_, active, activeDirection, @@ -445,4 +434,3 @@ public class GetAllMediaLibrarySort { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryStream.java index 692904bc..1fcf4fa1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryStream.java @@ -1,9 +1,8 @@ /* * 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; @@ -883,7 +882,7 @@ public class GetAllMediaLibraryStream { public final static Builder builder() { return new Builder(); - } + } /** * Unique stream identifier. @@ -1682,6 +1681,7 @@ public class GetAllMediaLibraryStream { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1950,7 +1950,7 @@ public class GetAllMediaLibraryStream { private Optional dub = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -2808,4 +2808,3 @@ public class GetAllMediaLibraryStream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryType.java index 916cb6f9..0c9ac7d6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryType.java @@ -1,9 +1,8 @@ /* * 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; @@ -129,7 +128,7 @@ public class GetAllMediaLibraryType { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -202,6 +201,7 @@ public class GetAllMediaLibraryType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -265,7 +265,7 @@ public class GetAllMediaLibraryType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -356,4 +356,3 @@ public class GetAllMediaLibraryType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryUltraBlurColors.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryUltraBlurColors.java index 2a566e49..ec5d0d63 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryUltraBlurColors.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryUltraBlurColors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetAllMediaLibraryUltraBlurColors { public final static Builder builder() { return new Builder(); - } + } public GetAllMediaLibraryUltraBlurColors withTopLeft(String topLeft) { Utils.checkNotNull(topLeft, "topLeft"); @@ -89,6 +88,7 @@ public class GetAllMediaLibraryUltraBlurColors { this.bottomLeft = bottomLeft; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetAllMediaLibraryUltraBlurColors { private String bottomRight; - private String bottomLeft; + private String bottomLeft; private Builder() { // force use of static builder() method @@ -171,4 +171,3 @@ public class GetAllMediaLibraryUltraBlurColors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryWriter.java index 4436c61f..fc20af2d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAllMediaLibraryWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetAllMediaLibraryWriter { public final static Builder builder() { return new Builder(); - } + } /** * The role of Writer @@ -47,6 +46,7 @@ public class GetAllMediaLibraryWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetAllMediaLibraryWriter { public final static class Builder { - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetAllMediaLibraryWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java index f8673848..8c31d982 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetAvailableClientsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetAvailableClientsMediaContainer { this.server = server; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetAvailableClientsMediaContainer { private Optional size = Optional.empty(); - private Optional> server = Optional.empty(); + private Optional> server = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetAvailableClientsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java index 3198ed08..b31f31a9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetAvailableClientsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java index 0e11298c..073d4ddd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetAvailableClientsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetAvailableClientsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetAvailableClientsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetAvailableClientsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java index 2a066195..1cb5ae18 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetAvailableClientsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetAvailableClientsResponseBody - Available Clients - */ +/** + * GetAvailableClientsResponseBody + * + *

Available Clients + */ public class GetAvailableClientsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetAvailableClientsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetAvailableClientsResponseBody withMediaContainer(GetAvailableClientsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetAvailableClientsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetAvailableClientsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetAvailableClientsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java index c7f715da..8279d899 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsAccount.java @@ -1,9 +1,8 @@ /* * 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; @@ -125,7 +124,7 @@ public class GetBandwidthStatisticsAccount { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsAccount withId(int id) { Utils.checkNotNull(id, "id"); @@ -222,6 +221,7 @@ public class GetBandwidthStatisticsAccount { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -285,7 +285,7 @@ public class GetBandwidthStatisticsAccount { private Optional subtitleMode = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -400,4 +400,3 @@ public class GetBandwidthStatisticsAccount { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java index cd641f05..947562f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsDevice.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetBandwidthStatisticsDevice { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsDevice withId(int id) { Utils.checkNotNull(id, "id"); @@ -149,6 +148,7 @@ public class GetBandwidthStatisticsDevice { this.createdAt = createdAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -197,7 +197,7 @@ public class GetBandwidthStatisticsDevice { private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,4 +273,3 @@ public class GetBandwidthStatisticsDevice { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java index 44aaf427..7076c4f7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -81,7 +80,7 @@ public class GetBandwidthStatisticsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -130,6 +129,7 @@ public class GetBandwidthStatisticsMediaContainer { this.statisticsBandwidth = statisticsBandwidth; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -173,7 +173,7 @@ public class GetBandwidthStatisticsMediaContainer { private Optional> account = Optional.empty(); - private Optional> statisticsBandwidth = Optional.empty(); + private Optional> statisticsBandwidth = Optional.empty(); private Builder() { // force use of static builder() method @@ -236,4 +236,3 @@ public class GetBandwidthStatisticsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java index 395fc72d..126dbb35 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,7 +18,6 @@ public class GetBandwidthStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timespan") private Optional timespan; @@ -38,7 +36,6 @@ public class GetBandwidthStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @JsonIgnore public Optional timespan() { @@ -47,12 +44,11 @@ public class GetBandwidthStatisticsRequest { public final static Builder builder() { return new Builder(); - } + } /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetBandwidthStatisticsRequest withTimespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -63,13 +59,13 @@ public class GetBandwidthStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetBandwidthStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -98,7 +94,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 @@ -107,7 +103,6 @@ public class GetBandwidthStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -118,7 +113,6 @@ public class GetBandwidthStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -132,4 +126,3 @@ public class GetBandwidthStatisticsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java index 46adc70d..1ddd1ee4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Long; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java index 9f6d6eb4..4946885f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetBandwidthStatisticsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetBandwidthStatisticsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetBandwidthStatisticsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetBandwidthStatisticsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java index 33d97047..7e7a215a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBandwidthStatisticsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetBandwidthStatisticsResponseBody - Bandwidth Statistics - */ +/** + * GetBandwidthStatisticsResponseBody + * + *

Bandwidth Statistics + */ public class GetBandwidthStatisticsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetBandwidthStatisticsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetBandwidthStatisticsResponseBody withMediaContainer(GetBandwidthStatisticsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetBandwidthStatisticsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetBandwidthStatisticsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetBandwidthStatisticsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java index 2ff6451e..77919cfd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -99,7 +98,7 @@ public class GetBannerImageRequest { public final static Builder builder() { return new Builder(); - } + } /** * the id of the library item to return the children of. @@ -142,6 +141,7 @@ public class GetBannerImageRequest { this.xPlexToken = xPlexToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -195,7 +195,7 @@ public class GetBannerImageRequest { private Long upscale; - private String xPlexToken; + private String xPlexToken; private Builder() { // force use of static builder() method @@ -254,4 +254,3 @@ public class GetBannerImageRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java index 7cd6b8f6..f69f7c90 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetBannerImageRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java index 2ead7774..918c97c9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetBannerImageResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -110,7 +109,7 @@ public class GetBannerImageResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -162,6 +161,7 @@ public class GetBannerImageResponse implements Response { this.headers = headers; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -210,7 +210,7 @@ public class GetBannerImageResponse implements Response { private Optional responseStream = Optional.empty(); - private Map> headers; + private Map> headers; private Builder() { // force use of static builder() method @@ -277,4 +277,3 @@ public class GetBannerImageResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java index 5e683331..f0229bf1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetButlerTasksRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java index cea9c560..61c7c3c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetButlerTasksResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetButlerTasksResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetButlerTasksResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetButlerTasksResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java index 959987dc..b1a2990e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetButlerTasksResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetButlerTasksResponseBody - All butler tasks - */ +/** + * GetButlerTasksResponseBody + * + *

All butler tasks + */ public class GetButlerTasksResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetButlerTasksResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetButlerTasksResponseBody withButlerTasks(ButlerTasks butlerTasks) { Utils.checkNotNull(butlerTasks, "butlerTasks"); @@ -57,6 +58,7 @@ public class GetButlerTasksResponseBody { this.butlerTasks = butlerTasks; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetButlerTasksResponseBody { public final static class Builder { - private Optional butlerTasks = Optional.empty(); + private Optional butlerTasks = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetButlerTasksResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java index cdbb8870..8fb2b133 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java index 5a17c050..f98413d5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCompanionsDataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -98,7 +97,7 @@ public class GetCompanionsDataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -144,6 +143,7 @@ public class GetCompanionsDataResponse implements Response { this.responseBodies = responseBodies; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -187,7 +187,7 @@ public class GetCompanionsDataResponse implements Response { private HttpResponse rawResponse; - private Optional> responseBodies = Optional.empty(); + private Optional> responseBodies = Optional.empty(); private Builder() { // force use of static builder() method @@ -247,4 +247,3 @@ public class GetCompanionsDataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryDirectory.java index ea9688a5..b60bfab1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -53,7 +52,7 @@ public class GetCountriesLibraryDirectory { public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryDirectory withFastKey(String fastKey) { Utils.checkNotNull(fastKey, "fastKey"); @@ -72,6 +71,7 @@ public class GetCountriesLibraryDirectory { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetCountriesLibraryDirectory { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -142,4 +142,3 @@ public class GetCountriesLibraryDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryMediaContainer.java index b604e999..7b1493a4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -261,7 +260,7 @@ public class GetCountriesLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -382,6 +381,7 @@ public class GetCountriesLibraryMediaContainer { this.directory = directory; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -470,7 +470,7 @@ public class GetCountriesLibraryMediaContainer { private String viewGroup; - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -614,4 +614,3 @@ public class GetCountriesLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryQueryParamType.java index 805e65e5..6f0e7ca5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetCountriesLibraryQueryParamType - The type of media to retrieve or filter by. + * GetCountriesLibraryQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetCountriesLibraryQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetCountriesLibraryQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequest.java index 396a25d5..a2e3d1e8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ public class GetCountriesLibraryRequest { /** * 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; @@ -30,7 +28,6 @@ public class GetCountriesLibraryRequest { * 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 GetCountriesLibraryQueryParamType type; @@ -48,7 +45,6 @@ public class GetCountriesLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -62,7 +58,6 @@ public class GetCountriesLibraryRequest { * 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 GetCountriesLibraryQueryParamType type() { @@ -71,12 +66,11 @@ public class GetCountriesLibraryRequest { 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 GetCountriesLibraryRequest withSectionKey(int sectionKey) { Utils.checkNotNull(sectionKey, "sectionKey"); @@ -91,13 +85,13 @@ public class GetCountriesLibraryRequest { * 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 GetCountriesLibraryRequest withType(GetCountriesLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -131,7 +125,7 @@ public class GetCountriesLibraryRequest { private Integer sectionKey; - private GetCountriesLibraryQueryParamType type; + private GetCountriesLibraryQueryParamType type; private Builder() { // force use of static builder() method @@ -140,7 +134,6 @@ public class GetCountriesLibraryRequest { /** * 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"); @@ -155,7 +148,6 @@ public class GetCountriesLibraryRequest { * 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(GetCountriesLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -170,4 +162,3 @@ public class GetCountriesLibraryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequestBuilder.java index 4b95cac4..b800ad28 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; public class GetCountriesLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponse.java index 9c6d8904..6e72295b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetCountriesLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetCountriesLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetCountriesLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetCountriesLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponseBody.java index 789ccc61..76d2b990 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetCountriesLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetCountriesLibraryResponseBody - Successful response containing media container data. - */ +/** + * GetCountriesLibraryResponseBody + * + *

Successful response containing media container data. + */ public class GetCountriesLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetCountriesLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetCountriesLibraryResponseBody withMediaContainer(GetCountriesLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetCountriesLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetCountriesLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetCountriesLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java index 8669ee6c..17215638 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -67,7 +66,7 @@ public class GetDevicesMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetDevicesMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -104,6 +103,7 @@ public class GetDevicesMediaContainer { this.device = device; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -142,7 +142,7 @@ public class GetDevicesMediaContainer { private Optional identifier = Optional.empty(); - private Optional> device = Optional.empty(); + private Optional> device = Optional.empty(); private Builder() { // force use of static builder() method @@ -192,4 +192,3 @@ public class GetDevicesMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java index a7a6546b..5012a7e3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetDevicesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java index 0a628e15..4fd640bd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetDevicesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetDevicesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetDevicesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetDevicesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java index 96e817ef..be673c4e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetDevicesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetDevicesResponseBody - Devices - */ +/** + * GetDevicesResponseBody + * + *

Devices + */ public class GetDevicesResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetDevicesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetDevicesResponseBody withMediaContainer(GetDevicesMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetDevicesResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetDevicesResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetDevicesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java index 8460f048..b29bee60 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -61,7 +60,7 @@ public class GetFileHashRequest { public final static Builder builder() { return new Builder(); - } + } /** * This is the path to the local file, must be prefixed by `file://` @@ -89,6 +88,7 @@ public class GetFileHashRequest { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -122,7 +122,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 @@ -162,4 +162,3 @@ public class GetFileHashRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java index ad431d38..d22d3ced 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java index a70cb789..cab68076 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetFileHashResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetFileHashResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetFileHashResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetFileHashResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetFileHashResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryDirectory.java index 4be5fe15..65f1f5a2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetGenresLibraryDirectory { public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryDirectory withFastKey(String fastKey) { Utils.checkNotNull(fastKey, "fastKey"); @@ -89,6 +88,7 @@ public class GetGenresLibraryDirectory { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetGenresLibraryDirectory { private String title; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -171,4 +171,3 @@ public class GetGenresLibraryDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryMediaContainer.java index c581f15b..fa846194 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -261,7 +260,7 @@ public class GetGenresLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -382,6 +381,7 @@ public class GetGenresLibraryMediaContainer { this.directory = directory; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -470,7 +470,7 @@ public class GetGenresLibraryMediaContainer { private String viewGroup; - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -614,4 +614,3 @@ public class GetGenresLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryQueryParamType.java index 8752ebc3..9a0ba8ff 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetGenresLibraryQueryParamType - The type of media to retrieve or filter by. + * GetGenresLibraryQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetGenresLibraryQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetGenresLibraryQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequest.java index 2d6e8ea5..218806c2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ public class GetGenresLibraryRequest { /** * 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; @@ -30,7 +28,6 @@ public class GetGenresLibraryRequest { * 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 GetGenresLibraryQueryParamType type; @@ -48,7 +45,6 @@ public class GetGenresLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -62,7 +58,6 @@ public class GetGenresLibraryRequest { * 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 GetGenresLibraryQueryParamType type() { @@ -71,12 +66,11 @@ public class GetGenresLibraryRequest { 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 GetGenresLibraryRequest withSectionKey(int sectionKey) { Utils.checkNotNull(sectionKey, "sectionKey"); @@ -91,13 +85,13 @@ public class GetGenresLibraryRequest { * 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 GetGenresLibraryRequest withType(GetGenresLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -131,7 +125,7 @@ public class GetGenresLibraryRequest { private Integer sectionKey; - private GetGenresLibraryQueryParamType type; + private GetGenresLibraryQueryParamType type; private Builder() { // force use of static builder() method @@ -140,7 +134,6 @@ public class GetGenresLibraryRequest { /** * 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"); @@ -155,7 +148,6 @@ public class GetGenresLibraryRequest { * 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(GetGenresLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -170,4 +162,3 @@ public class GetGenresLibraryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequestBuilder.java index e6797b9f..eb1509d3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; public class GetGenresLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponse.java index 9c40c113..ac552426 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetGenresLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetGenresLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetGenresLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetGenresLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponseBody.java index 514dee50..1cd7478b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGenresLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetGenresLibraryResponseBody - Successful response containing media container data. - */ +/** + * GetGenresLibraryResponseBody + * + *

Successful response containing media container data. + */ public class GetGenresLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetGenresLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetGenresLibraryResponseBody withMediaContainer(GetGenresLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetGenresLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetGenresLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetGenresLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java index 0d0dc83d..06349218 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataGeoData.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * GetGeoDataGeoData - Geo location data - */ +/** + * GetGeoDataGeoData + * + *

Geo location data + */ public class GetGeoDataGeoData { /** @@ -231,7 +232,7 @@ public class GetGeoDataGeoData { public final static Builder builder() { return new Builder(); - } + } /** * The ISO 3166-1 alpha-2 code of the country. @@ -358,6 +359,7 @@ public class GetGeoDataGeoData { this.coordinates = coordinates; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -436,7 +438,7 @@ public class GetGeoDataGeoData { private String subdivisions; - private String coordinates; + private String coordinates; private Builder() { // force use of static builder() method @@ -577,7 +579,8 @@ public class GetGeoDataGeoData { } if (inPrivacyRestrictedRegion == null) { inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); - } return new GetGeoDataGeoData( + } + return new GetGeoDataGeoData( code, continentCode, country, @@ -610,4 +613,3 @@ public class GetGeoDataGeoData { 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 index d37c1bed..4bb62bf3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java index b6d4f0db..bc73c12b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGeoDataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetGeoDataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetGeoDataResponse implements Response { this.geoData = geoData; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetGeoDataResponse implements Response { private HttpResponse rawResponse; - private Optional geoData = Optional.empty(); + private Optional geoData = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetGeoDataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java index 8e70aa28..c33df250 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -80,7 +79,7 @@ public class GetGlobalHubsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -129,6 +128,7 @@ public class GetGlobalHubsMediaContainer { this.hub = hub; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -172,7 +172,7 @@ public class GetGlobalHubsMediaContainer { private Optional identifier = Optional.empty(); - private Optional> hub = Optional.empty(); + private Optional> hub = Optional.empty(); private Builder() { // force use of static builder() method @@ -235,4 +235,3 @@ public class GetGlobalHubsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java index 27431cb3..8a6a88ad 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -233,7 +232,7 @@ public class GetGlobalHubsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -438,6 +437,7 @@ public class GetGlobalHubsMetadata { this.updatedAt = updatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -546,7 +546,7 @@ public class GetGlobalHubsMetadata { private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -778,4 +778,3 @@ public class GetGlobalHubsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java index 16e29c6d..4e3e840c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -62,7 +61,7 @@ public class GetGlobalHubsRequest { public final static Builder builder() { return new Builder(); - } + } /** * The number of items to return with each hub. @@ -99,6 +98,7 @@ public class GetGlobalHubsRequest { this.onlyTransient = onlyTransient; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetGlobalHubsRequest { private Optional count = Optional.empty(); - private Optional onlyTransient = Optional.empty(); + private Optional onlyTransient = Optional.empty(); private Builder() { // force use of static builder() method @@ -181,4 +181,3 @@ public class GetGlobalHubsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java index 35b22bb3..7007ed26 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.util.Optional; public class GetGlobalHubsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java index 2be0538e..2bd13db6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetGlobalHubsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetGlobalHubsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetGlobalHubsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetGlobalHubsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java index 0298ba67..6719780a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetGlobalHubsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetGlobalHubsResponseBody - returns global hubs - */ +/** + * GetGlobalHubsResponseBody + * + *

returns global hubs + */ public class GetGlobalHubsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetGlobalHubsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetGlobalHubsResponseBody withMediaContainer(GetGlobalHubsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetGlobalHubsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetGlobalHubsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetGlobalHubsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java index 016d51c0..e0c9b07a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetHomeDataRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java index 68f9c6bd..fca97d2f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetHomeDataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetHomeDataResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetHomeDataResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetHomeDataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java index f7367ff2..88a12149 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetHomeDataResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -16,10 +15,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * GetHomeDataResponseBody - Home Data - */ +/** + * GetHomeDataResponseBody + * + *

Home Data + */ public class GetHomeDataResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -104,7 +105,7 @@ public class GetHomeDataResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetHomeDataResponseBody withId(double id) { Utils.checkNotNull(id, "id"); @@ -177,6 +178,7 @@ public class GetHomeDataResponseBody { this.subscription = subscription; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -230,7 +232,7 @@ public class GetHomeDataResponseBody { private Optional guestEnabled = Optional.empty(); - private Optional subscription = Optional.empty(); + private Optional subscription = Optional.empty(); private Builder() { // force use of static builder() method @@ -319,4 +321,3 @@ public class GetHomeDataResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java index 43a43a68..23196ada 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetLibraryDetailsDirectory { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsDirectory withKey(String key) { Utils.checkNotNull(key, "key"); @@ -149,6 +148,7 @@ public class GetLibraryDetailsDirectory { this.search = search; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -197,7 +197,7 @@ public class GetLibraryDetailsDirectory { private Optional prompt = Optional.empty(); - private Optional search = Optional.empty(); + private Optional search = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,4 +273,3 @@ public class GetLibraryDetailsDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsField.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsField.java index 246549b3..6ae35fd4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsField.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsField.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetLibraryDetailsField { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsField withKey(String key) { Utils.checkNotNull(key, "key"); @@ -124,6 +123,7 @@ public class GetLibraryDetailsField { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -167,7 +167,7 @@ public class GetLibraryDetailsField { private Optional type = Optional.empty(); - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -230,4 +230,3 @@ public class GetLibraryDetailsField { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFieldType.java index 9a48afaa..fc350cb3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -54,7 +53,7 @@ public class GetLibraryDetailsFieldType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsFieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -79,6 +78,7 @@ public class GetLibraryDetailsFieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -112,7 +112,7 @@ public class GetLibraryDetailsFieldType { private Optional type = Optional.empty(); - private Optional> operator = Optional.empty(); + private Optional> operator = Optional.empty(); private Builder() { // force use of static builder() method @@ -149,4 +149,3 @@ public class GetLibraryDetailsFieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java index 4a12199d..baf01354 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -87,7 +86,7 @@ public class GetLibraryDetailsFilter { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -148,6 +147,7 @@ public class GetLibraryDetailsFilter { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -196,7 +196,7 @@ public class GetLibraryDetailsFilter { private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -272,4 +272,3 @@ public class GetLibraryDetailsFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java index 7e4be7a6..83c07f79 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -214,7 +213,7 @@ public class GetLibraryDetailsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -395,6 +394,7 @@ public class GetLibraryDetailsMediaContainer { this.fieldType = fieldType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -493,7 +493,7 @@ public class GetLibraryDetailsMediaContainer { private Optional> type = Optional.empty(); - private Optional> fieldType = Optional.empty(); + private Optional> fieldType = Optional.empty(); private Builder() { // force use of static builder() method @@ -699,4 +699,3 @@ public class GetLibraryDetailsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsOperator.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsOperator.java index 54905b06..a8bf87ff 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsOperator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsOperator.java @@ -1,9 +1,8 @@ /* * 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; @@ -51,7 +50,7 @@ public class GetLibraryDetailsOperator { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsOperator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -76,6 +75,7 @@ public class GetLibraryDetailsOperator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -109,7 +109,7 @@ public class GetLibraryDetailsOperator { private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -146,4 +146,3 @@ public class GetLibraryDetailsOperator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java index 63eaf400..03c659f4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -22,7 +21,6 @@ public class GetLibraryDetailsRequest { /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeDetails") private Optional includeDetails; @@ -30,7 +28,6 @@ public class GetLibraryDetailsRequest { /** * 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; @@ -53,7 +50,6 @@ public class GetLibraryDetailsRequest { /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -64,7 +60,6 @@ public class GetLibraryDetailsRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -73,12 +68,11 @@ public class GetLibraryDetailsRequest { public final static Builder builder() { return new Builder(); - } + } /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ public GetLibraryDetailsRequest withIncludeDetails(IncludeDetails includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); @@ -89,7 +83,6 @@ public class GetLibraryDetailsRequest { /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ public GetLibraryDetailsRequest withIncludeDetails(Optional includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); @@ -100,13 +93,13 @@ public class GetLibraryDetailsRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ public GetLibraryDetailsRequest withSectionKey(int sectionKey) { Utils.checkNotNull(sectionKey, "sectionKey"); this.sectionKey = sectionKey; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -140,7 +133,7 @@ public class GetLibraryDetailsRequest { private Optional includeDetails; - private Integer sectionKey; + private Integer sectionKey; private Builder() { // force use of static builder() method @@ -149,7 +142,6 @@ public class GetLibraryDetailsRequest { /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ public Builder includeDetails(IncludeDetails includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); @@ -160,7 +152,6 @@ public class GetLibraryDetailsRequest { /** * Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * */ public Builder includeDetails(Optional includeDetails) { Utils.checkNotNull(includeDetails, "includeDetails"); @@ -171,7 +162,6 @@ public class GetLibraryDetailsRequest { /** * 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"); @@ -182,7 +172,8 @@ public class GetLibraryDetailsRequest { public GetLibraryDetailsRequest build() { if (includeDetails == null) { includeDetails = _SINGLETON_VALUE_IncludeDetails.value(); - } return new GetLibraryDetailsRequest( + } + return new GetLibraryDetailsRequest( includeDetails, sectionKey); } @@ -194,4 +185,3 @@ public class GetLibraryDetailsRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java index afd39499..9c5b31d4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsRequestBuilder.java @@ -1,12 +1,12 @@ /* * 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.Exception; import java.lang.Integer; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java index b7e672b5..417ee666 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetLibraryDetailsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetLibraryDetailsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetLibraryDetailsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetLibraryDetailsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java index 95cc9b99..73647909 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetLibraryDetailsResponseBody - The details of the library - */ +/** + * GetLibraryDetailsResponseBody + * + *

The details of the library + */ public class GetLibraryDetailsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetLibraryDetailsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsResponseBody withMediaContainer(GetLibraryDetailsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetLibraryDetailsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetLibraryDetailsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetLibraryDetailsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsSort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsSort.java index d158327d..9c065260 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsSort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsSort.java @@ -1,9 +1,8 @@ /* * 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; @@ -99,7 +98,7 @@ public class GetLibraryDetailsSort { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsSort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -172,6 +171,7 @@ public class GetLibraryDetailsSort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -225,7 +225,7 @@ public class GetLibraryDetailsSort { private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -314,4 +314,3 @@ public class GetLibraryDetailsSort { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java index eabc0b3f..f7028ea4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryDetailsType.java @@ -1,9 +1,8 @@ /* * 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; @@ -117,7 +116,7 @@ public class GetLibraryDetailsType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryDetailsType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -202,6 +201,7 @@ public class GetLibraryDetailsType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -260,7 +260,7 @@ public class GetLibraryDetailsType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -362,4 +362,3 @@ public class GetLibraryDetailsType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java index f0df1bed..c44ab25a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryHubsCountry { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryHubsCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryHubsCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java index b7264274..0ac2ea74 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryHubsDirector { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryHubsDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryHubsDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java index d1b776e4..564a0899 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryHubsGenre { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryHubsGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryHubsGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java index 763efdba..397caddb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsHub.java @@ -1,9 +1,8 @@ /* * 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; @@ -176,7 +175,7 @@ public class GetLibraryHubsHub { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsHub withKey(String key) { Utils.checkNotNull(key, "key"); @@ -321,6 +320,7 @@ public class GetLibraryHubsHub { this.random = random; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -404,7 +404,7 @@ public class GetLibraryHubsHub { private Optional promoted = Optional.empty(); - private Optional random = Optional.empty(); + private Optional random = Optional.empty(); private Builder() { // force use of static builder() method @@ -571,4 +571,3 @@ public class GetLibraryHubsHub { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java index 7ba766a3..0ccad794 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -237,7 +236,7 @@ public class GetLibraryHubsMedia { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsMedia withId(int id) { Utils.checkNotNull(id, "id"); @@ -442,6 +441,7 @@ public class GetLibraryHubsMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -550,7 +550,7 @@ public class GetLibraryHubsMedia { private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -782,4 +782,3 @@ public class GetLibraryHubsMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java index a72c6b8d..9244a05f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -116,7 +115,7 @@ public class GetLibraryHubsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -201,6 +200,7 @@ public class GetLibraryHubsMediaContainer { this.hub = hub; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -259,7 +259,7 @@ public class GetLibraryHubsMediaContainer { private Optional librarySectionUUID = Optional.empty(); - private Optional> hub = Optional.empty(); + private Optional> hub = Optional.empty(); private Builder() { // force use of static builder() method @@ -361,4 +361,3 @@ public class GetLibraryHubsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java index 162d7823..9279e016 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -446,7 +445,7 @@ public class GetLibraryHubsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -855,6 +854,7 @@ public class GetLibraryHubsMetadata { this.chapterSource = chapterSource; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1048,7 +1048,7 @@ public class GetLibraryHubsMetadata { private Optional skipCount = Optional.empty(); - private Optional chapterSource = Optional.empty(); + private Optional chapterSource = Optional.empty(); private Builder() { // force use of static builder() method @@ -1501,4 +1501,3 @@ public class GetLibraryHubsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java index 12c0d3af..0f7fb7c0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -149,7 +148,7 @@ public class GetLibraryHubsPart { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsPart withId(int id) { Utils.checkNotNull(id, "id"); @@ -270,6 +269,7 @@ public class GetLibraryHubsPart { this.videoProfile = videoProfile; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -343,7 +343,7 @@ public class GetLibraryHubsPart { private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -484,4 +484,3 @@ public class GetLibraryHubsPart { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java index 2bff10b0..005c456d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -80,7 +79,7 @@ public class GetLibraryHubsRequest { public final static Builder builder() { return new Builder(); - } + } /** * the Id of the library to query @@ -126,6 +125,7 @@ public class GetLibraryHubsRequest { this.onlyTransient = onlyTransient; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -164,7 +164,7 @@ public class GetLibraryHubsRequest { private Optional count = Optional.empty(); - private Optional onlyTransient = Optional.empty(); + private Optional onlyTransient = Optional.empty(); private Builder() { // force use of static builder() method @@ -223,4 +223,3 @@ public class GetLibraryHubsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java index 09e90e4e..6907f04c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.util.Optional; public class GetLibraryHubsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java index 3ddbd017..1b13b510 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetLibraryHubsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetLibraryHubsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetLibraryHubsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetLibraryHubsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java index ce1512ee..e8fc6467 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetLibraryHubsResponseBody - The hubs specific to the library - */ +/** + * GetLibraryHubsResponseBody + * + *

The hubs specific to the library + */ public class GetLibraryHubsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetLibraryHubsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsResponseBody withMediaContainer(GetLibraryHubsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetLibraryHubsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetLibraryHubsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetLibraryHubsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java index f6cdc917..f4d14192 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryHubsRole { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsRole withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryHubsRole { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryHubsRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java index 8727c6a3..6c40ce53 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryHubsWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryHubsWriter { public final static Builder builder() { return new Builder(); - } + } public GetLibraryHubsWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryHubsWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryHubsWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsActiveDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsActiveDirection.java index 8212137a..0fd4f19c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsActiveDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsActiveDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetLibraryItemsActiveDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetLibraryItemsActiveDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetLibraryItemsActiveDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCollection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCollection.java index 20f2495e..7eaab8f1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCollection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCollection.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsCollection { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsCollection withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryItemsCollection { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetLibraryItemsCollection { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetLibraryItemsCollection { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java index 8dc6c088..bb4e31d0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsCountry { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryItemsCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryItemsCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDefaultDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDefaultDirection.java index a8412a5f..24d9fe51 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDefaultDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDefaultDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsDefaultDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetLibraryItemsDefaultDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetLibraryItemsDefaultDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetLibraryItemsDefaultDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java index 931c0a33..0fe5567c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsDirector { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryItemsDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryItemsDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsField.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsField.java index 65b0fc89..b62fb838 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsField.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsField.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetLibraryItemsField { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsField withKey(String key) { Utils.checkNotNull(key, "key"); @@ -106,6 +105,7 @@ public class GetLibraryItemsField { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -149,7 +149,7 @@ public class GetLibraryItemsField { private String type; - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -194,4 +194,3 @@ public class GetLibraryItemsField { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFieldType.java index 21dee2da..6194670b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class GetLibraryItemsFieldType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsFieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -56,6 +55,7 @@ public class GetLibraryItemsFieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class GetLibraryItemsFieldType { private String type; - private List operator; + private List operator; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class GetLibraryItemsFieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFilter.java index 6b4ce296..1f1377e6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetLibraryItemsFilter { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -143,6 +142,7 @@ public class GetLibraryItemsFilter { this.advanced = advanced; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -196,7 +196,7 @@ public class GetLibraryItemsFilter { private String type; - private Optional advanced = Optional.empty(); + private Optional advanced = Optional.empty(); private Builder() { // force use of static builder() method @@ -255,4 +255,3 @@ public class GetLibraryItemsFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java index 84291284..15c7ecee 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsGenre { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryItemsGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryItemsGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsHasThumbnail.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsHasThumbnail.java index a738564a..0c632694 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsHasThumbnail.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsHasThumbnail.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetLibraryItemsHasThumbnail { False("0"), True("1"); @@ -32,3 +32,4 @@ public enum GetLibraryItemsHasThumbnail { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsImage.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsImage.java index 9e77d80c..945426f6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsImage.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsImage.java @@ -1,9 +1,8 @@ /* * 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; @@ -53,7 +52,7 @@ public class GetLibraryItemsImage { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsImage withAlt(String alt) { Utils.checkNotNull(alt, "alt"); @@ -72,6 +71,7 @@ public class GetLibraryItemsImage { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetLibraryItemsImage { private GetLibraryItemsLibraryResponse200Type type; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -142,4 +142,3 @@ public class GetLibraryItemsImage { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryActiveDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryActiveDirection.java index 5df37dfa..67a49890 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryActiveDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryActiveDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetLibraryItemsLibraryActiveDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetLibraryItemsLibraryActiveDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetLibraryItemsLibraryActiveDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryDefaultDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryDefaultDirection.java index ae8fe5d3..98e448cf 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryDefaultDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryDefaultDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetLibraryItemsLibraryDefaultDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetLibraryItemsLibraryDefaultDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetLibraryItemsLibraryDefaultDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryField.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryField.java index fd9f4916..fae5069c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryField.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryField.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetLibraryItemsLibraryField { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryField withKey(String key) { Utils.checkNotNull(key, "key"); @@ -106,6 +105,7 @@ public class GetLibraryItemsLibraryField { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -149,7 +149,7 @@ public class GetLibraryItemsLibraryField { private String type; - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -194,4 +194,3 @@ public class GetLibraryItemsLibraryField { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFieldType.java index e47bc994..b8c0b9ae 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class GetLibraryItemsLibraryFieldType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryFieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -56,6 +55,7 @@ public class GetLibraryItemsLibraryFieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class GetLibraryItemsLibraryFieldType { private String type; - private List operator; + private List operator; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class GetLibraryItemsLibraryFieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFilter.java index dffaffc9..934dfb11 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetLibraryItemsLibraryFilter { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -106,6 +105,7 @@ public class GetLibraryItemsLibraryFilter { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -154,7 +154,7 @@ public class GetLibraryItemsLibraryFilter { private String title; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -200,4 +200,3 @@ public class GetLibraryItemsLibraryFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryOperator.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryOperator.java index f01ee4c7..ed9f9438 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryOperator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryOperator.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class GetLibraryItemsLibraryOperator { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryOperator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -55,6 +54,7 @@ public class GetLibraryItemsLibraryOperator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class GetLibraryItemsLibraryOperator { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class GetLibraryItemsLibraryOperator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponse200Type.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponse200Type.java index 5be04d62..e9f34383 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponse200Type.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponse200Type.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetLibraryItemsLibraryResponse200Type { COVER_POSTER("coverPoster"), BACKGROUND("background"), @@ -34,3 +34,4 @@ public enum GetLibraryItemsLibraryResponse200Type { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponseType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponseType.java index 6cefdb2d..848b048b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponseType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryResponseType.java @@ -1,9 +1,8 @@ /* * 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; @@ -117,7 +116,7 @@ public class GetLibraryItemsLibraryResponseType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibraryResponseType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -178,6 +177,7 @@ public class GetLibraryItemsLibraryResponseType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -236,7 +236,7 @@ public class GetLibraryItemsLibraryResponseType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -314,4 +314,3 @@ public class GetLibraryItemsLibraryResponseType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibrarySort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibrarySort.java index 3cb9ae13..00a50e28 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibrarySort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibrarySort.java @@ -1,9 +1,8 @@ /* * 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; @@ -31,7 +30,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeDirection") @@ -39,7 +37,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") @@ -105,7 +102,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +111,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -145,7 +140,7 @@ public class GetLibraryItemsLibrarySort { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLibrarySort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -173,7 +168,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsLibrarySort withActiveDirection(GetLibraryItemsLibraryActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -183,7 +177,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsLibrarySort withActiveDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -193,7 +186,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsLibrarySort withDefaultDirection(GetLibraryItemsLibraryDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -203,7 +195,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsLibrarySort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -246,6 +237,7 @@ public class GetLibraryItemsLibrarySort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -309,7 +301,7 @@ public class GetLibraryItemsLibrarySort { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -341,7 +333,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(GetLibraryItemsLibraryActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -351,7 +342,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -361,7 +351,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(GetLibraryItemsLibraryDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -371,7 +360,6 @@ public class GetLibraryItemsLibrarySort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -421,7 +409,8 @@ public class GetLibraryItemsLibrarySort { } if (defaultDirection == null) { defaultDirection = _SINGLETON_VALUE_DefaultDirection.value(); - } return new GetLibraryItemsLibrarySort( + } + return new GetLibraryItemsLibrarySort( default_, active, activeDirection, @@ -445,4 +434,3 @@ public class GetLibraryItemsLibrarySort { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryType.java index 698da232..aad13d0f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLibraryType.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsLibraryType - The type of media content + * GetLibraryItemsLibraryType * + *

The type of media content */ public enum GetLibraryItemsLibraryType { Movie("movie"), @@ -40,3 +41,4 @@ public enum GetLibraryItemsLibraryType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLocation.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLocation.java index cce34809..670843de 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLocation.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsLocation.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsLocation { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsLocation withPath(String path) { Utils.checkNotNull(path, "path"); @@ -52,6 +51,7 @@ public class GetLibraryItemsLocation { this.path = path; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetLibraryItemsLocation { public final static class Builder { - private Optional path = Optional.empty(); + private Optional path = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetLibraryItemsLocation { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java index 0b1f2cbc..7bad4712 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -251,7 +250,7 @@ public class GetLibraryItemsMedia { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsMedia withId(int id) { Utils.checkNotNull(id, "id"); @@ -450,6 +449,7 @@ public class GetLibraryItemsMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -563,7 +563,7 @@ public class GetLibraryItemsMedia { private Optional has64bitOffsets = Optional.empty(); - private List part; + private List part; private Builder() { // force use of static builder() method @@ -770,7 +770,8 @@ public class GetLibraryItemsMedia { public GetLibraryItemsMedia build() { if (optimizedForStreaming == null) { optimizedForStreaming = _SINGLETON_VALUE_OptimizedForStreaming.value(); - } return new GetLibraryItemsMedia( + } + return new GetLibraryItemsMedia( id, duration, bitrate, @@ -798,4 +799,3 @@ public class GetLibraryItemsMedia { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java index cf32e934..b2a9f15c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,11 +18,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetLibraryItemsMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * - */ +/** + * GetLibraryItemsMediaContainer + * + *

The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + */ public class GetLibraryItemsMediaContainer { @JsonInclude(Include.NON_ABSENT) @@ -100,7 +100,6 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Meta") @@ -314,7 +313,6 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -324,7 +322,7 @@ public class GetLibraryItemsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsMediaContainer withType(List type) { Utils.checkNotNull(type, "type"); @@ -496,7 +494,6 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetLibraryItemsMediaContainer withMeta(GetLibraryItemsMeta meta) { Utils.checkNotNull(meta, "meta"); @@ -506,13 +503,13 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetLibraryItemsMediaContainer withMeta(Optional meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -651,7 +648,7 @@ public class GetLibraryItemsMediaContainer { private Optional> metadata = Optional.empty(); - private Optional meta = Optional.empty(); + private Optional meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -827,7 +824,6 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(GetLibraryItemsMeta meta) { Utils.checkNotNull(meta, "meta"); @@ -837,7 +833,6 @@ public class GetLibraryItemsMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(Optional meta) { Utils.checkNotNull(meta, "meta"); @@ -873,4 +868,3 @@ public class GetLibraryItemsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMeta.java index 68bc8177..b2101118 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMeta.java @@ -1,9 +1,8 @@ /* * 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; @@ -16,11 +15,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetLibraryItemsMeta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * - */ +/** + * GetLibraryItemsMeta + * + *

The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + */ public class GetLibraryItemsMeta { @JsonInclude(Include.NON_ABSENT) @@ -59,7 +59,7 @@ public class GetLibraryItemsMeta { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsMeta withType(List type) { Utils.checkNotNull(type, "type"); @@ -84,6 +84,7 @@ public class GetLibraryItemsMeta { this.fieldType = fieldType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -117,7 +118,7 @@ public class GetLibraryItemsMeta { private Optional> type = Optional.empty(); - private Optional> fieldType = Optional.empty(); + private Optional> fieldType = Optional.empty(); private Builder() { // force use of static builder() method @@ -154,4 +155,3 @@ public class GetLibraryItemsMeta { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java index 077ba168..09d3c019 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -27,7 +26,6 @@ public class GetLibraryItemsMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ @JsonProperty("ratingKey") private String ratingKey; @@ -60,7 +58,6 @@ public class GetLibraryItemsMetadata { /** * The type of media content - * */ @JsonProperty("type") private GetLibraryItemsLibraryType type; @@ -127,7 +124,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("showOrdering") @@ -220,7 +216,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") @@ -256,7 +251,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Guid") @@ -328,7 +322,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") @@ -612,7 +605,6 @@ public class GetLibraryItemsMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ @JsonIgnore public String ratingKey() { @@ -656,7 +648,6 @@ public class GetLibraryItemsMetadata { /** * The type of media content - * */ @JsonIgnore public GetLibraryItemsLibraryType type() { @@ -742,7 +733,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -858,7 +848,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -910,7 +899,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -1003,7 +991,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ @JsonIgnore public Optional parentRatingKey() { @@ -1052,12 +1039,11 @@ public class GetLibraryItemsMetadata { public final static Builder builder() { return new Builder(); - } + } /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ public GetLibraryItemsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -1139,7 +1125,6 @@ public class GetLibraryItemsMetadata { /** * The type of media content - * */ public GetLibraryItemsMetadata withType(GetLibraryItemsLibraryType type) { Utils.checkNotNull(type, "type"); @@ -1304,7 +1289,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public GetLibraryItemsMetadata withShowOrdering(ShowOrdering showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -1319,7 +1303,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public GetLibraryItemsMetadata withShowOrdering(Optional showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -1572,7 +1555,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public GetLibraryItemsMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); @@ -1582,7 +1564,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public GetLibraryItemsMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); @@ -1676,7 +1657,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public GetLibraryItemsMetadata withMediaGuid(List mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -1686,7 +1666,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public GetLibraryItemsMetadata withMediaGuid(Optional> mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -1888,7 +1867,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ public GetLibraryItemsMetadata withParentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -1898,7 +1876,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ public GetLibraryItemsMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -2001,6 +1978,7 @@ public class GetLibraryItemsMetadata { this.parentTheme = parentTheme; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -2404,7 +2382,7 @@ public class GetLibraryItemsMetadata { private Optional parentThumb = Optional.empty(); - private Optional parentTheme = Optional.empty(); + private Optional parentTheme = Optional.empty(); private Builder() { // force use of static builder() method @@ -2413,7 +2391,6 @@ public class GetLibraryItemsMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ public Builder ratingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -2495,7 +2472,6 @@ public class GetLibraryItemsMetadata { /** * The type of media content - * */ public Builder type(GetLibraryItemsLibraryType type) { Utils.checkNotNull(type, "type"); @@ -2660,7 +2636,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public Builder showOrdering(ShowOrdering showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -2675,7 +2650,6 @@ public class GetLibraryItemsMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public Builder showOrdering(Optional showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -2928,7 +2902,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public Builder media(List media) { Utils.checkNotNull(media, "media"); @@ -2938,7 +2911,6 @@ public class GetLibraryItemsMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); @@ -3032,7 +3004,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public Builder mediaGuid(List mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -3042,7 +3013,6 @@ public class GetLibraryItemsMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public Builder mediaGuid(Optional> mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -3244,7 +3214,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ public Builder parentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -3254,7 +3223,6 @@ public class GetLibraryItemsMetadata { /** * The rating key of the parent item. - * */ public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -3439,4 +3407,3 @@ public class GetLibraryItemsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOperator.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOperator.java index f1fba297..b01d058c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOperator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOperator.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class GetLibraryItemsOperator { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsOperator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -55,6 +54,7 @@ public class GetLibraryItemsOperator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class GetLibraryItemsOperator { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class GetLibraryItemsOperator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOptimizedForStreaming.java index f0b21042..5e0a804d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsOptimizedForStreaming.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetLibraryItemsOptimizedForStreaming { Disable(0), Enable(1); @@ -31,3 +31,4 @@ public enum GetLibraryItemsOptimizedForStreaming { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java index 9ece7fed..64fe154e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,6 @@ public class GetLibraryItemsPart { /** * The container format of the media file. - * */ @JsonProperty("container") private String container; @@ -154,7 +152,6 @@ public class GetLibraryItemsPart { /** * The container format of the media file. - * */ @JsonIgnore public String container() { @@ -200,7 +197,7 @@ public class GetLibraryItemsPart { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsPart withId(int id) { Utils.checkNotNull(id, "id"); @@ -240,7 +237,6 @@ public class GetLibraryItemsPart { /** * The container format of the media file. - * */ public GetLibraryItemsPart withContainer(String container) { Utils.checkNotNull(container, "container"); @@ -331,6 +327,7 @@ public class GetLibraryItemsPart { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -419,7 +416,7 @@ public class GetLibraryItemsPart { private Optional hasThumbnail; - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -463,7 +460,6 @@ public class GetLibraryItemsPart { /** * The container format of the media file. - * */ public Builder container(String container) { Utils.checkNotNull(container, "container"); @@ -558,7 +554,8 @@ public class GetLibraryItemsPart { public GetLibraryItemsPart build() { if (hasThumbnail == null) { hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value(); - } return new GetLibraryItemsPart( + } + return new GetLibraryItemsPart( id, key, duration, @@ -581,4 +578,3 @@ public class GetLibraryItemsPart { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamIncludeMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamIncludeMeta.java index 9f47db86..32dacb25 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamIncludeMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamIncludeMeta.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response + * GetLibraryItemsQueryParamIncludeMeta * + *

Adds the Meta object to the response */ public enum GetLibraryItemsQueryParamIncludeMeta { Disable(0), @@ -35,3 +36,4 @@ public enum GetLibraryItemsQueryParamIncludeMeta { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamType.java index a92114ed..9d9b18c5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetLibraryItemsQueryParamType - The type of media to retrieve or filter by. + * GetLibraryItemsQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetLibraryItemsQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetLibraryItemsQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java index 090c005b..28a9071b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -27,7 +26,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") private Optional includeGuids; @@ -39,7 +37,6 @@ public class GetLibraryItemsRequest { * 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 GetLibraryItemsQueryParamType type; @@ -47,14 +44,12 @@ 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; /** * Adds the Meta object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta") private Optional includeMeta; @@ -63,7 +58,6 @@ public class GetLibraryItemsRequest { * 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; @@ -72,7 +66,6 @@ public class GetLibraryItemsRequest { * 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; @@ -119,7 +112,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -134,7 +126,6 @@ public class GetLibraryItemsRequest { * 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 GetLibraryItemsQueryParamType type() { @@ -144,7 +135,6 @@ public class GetLibraryItemsRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -153,7 +143,6 @@ public class GetLibraryItemsRequest { /** * Adds the Meta object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -165,7 +154,6 @@ public class GetLibraryItemsRequest { * 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() { @@ -176,7 +164,6 @@ public class GetLibraryItemsRequest { * 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() { @@ -185,7 +172,7 @@ public class GetLibraryItemsRequest { public final static Builder builder() { return new Builder(); - } + } /** * A key representing a specific tag within the section. @@ -198,7 +185,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ public GetLibraryItemsRequest withIncludeGuids(IncludeGuids includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -208,7 +194,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ public GetLibraryItemsRequest withIncludeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -223,7 +208,6 @@ public class GetLibraryItemsRequest { * 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(GetLibraryItemsQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -234,7 +218,6 @@ public class GetLibraryItemsRequest { /** * 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"); @@ -244,7 +227,6 @@ public class GetLibraryItemsRequest { /** * Adds the Meta object to the response - * */ public GetLibraryItemsRequest withIncludeMeta(GetLibraryItemsQueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -254,7 +236,6 @@ public class GetLibraryItemsRequest { /** * Adds the Meta object to the response - * */ public GetLibraryItemsRequest withIncludeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -266,7 +247,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -278,7 +258,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -290,7 +269,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -302,13 +280,13 @@ public class GetLibraryItemsRequest { * 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) { @@ -367,7 +345,7 @@ public class GetLibraryItemsRequest { private Optional xPlexContainerStart; - private Optional xPlexContainerSize; + private Optional xPlexContainerSize; private Builder() { // force use of static builder() method @@ -384,7 +362,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ public Builder includeGuids(IncludeGuids includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -394,7 +371,6 @@ public class GetLibraryItemsRequest { /** * Adds the Guids object to the response - * */ public Builder includeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -409,7 +385,6 @@ public class GetLibraryItemsRequest { * 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(GetLibraryItemsQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -420,7 +395,6 @@ public class GetLibraryItemsRequest { /** * 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"); @@ -430,7 +404,6 @@ public class GetLibraryItemsRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(GetLibraryItemsQueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -440,7 +413,6 @@ public class GetLibraryItemsRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -452,7 +424,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -464,7 +435,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -476,7 +446,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -488,7 +457,6 @@ public class GetLibraryItemsRequest { * 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"); @@ -508,7 +476,8 @@ public class GetLibraryItemsRequest { } if (xPlexContainerSize == null) { xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); - } return new GetLibraryItemsRequest( + } + return new GetLibraryItemsRequest( tag, includeGuids, type, @@ -543,4 +512,3 @@ public class GetLibraryItemsRequest { 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 index e10e71d7..193ab642 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetLibraryItemsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java index bf93da1e..c131a686 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetLibraryItemsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetLibraryItemsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetLibraryItemsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetLibraryItemsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java index a2e75b0e..4b0c6a29 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetLibraryItemsResponseBody - The contents of the library by section and tag - */ +/** + * GetLibraryItemsResponseBody + * + *

The contents of the library by section and tag + */ public class GetLibraryItemsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetLibraryItemsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsResponseBody withMediaContainer(GetLibraryItemsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetLibraryItemsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetLibraryItemsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetLibraryItemsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java index d9e6e845..5ac431fd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetLibraryItemsRole { public final static Builder builder() { return new Builder(); - } + } /** * The ID of the tag or actor. @@ -245,6 +244,7 @@ public class GetLibraryItemsRole { this.role = role; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -298,7 +298,7 @@ public class GetLibraryItemsRole { private Optional tagKey = Optional.empty(); - private Optional role = Optional.empty(); + private Optional role = Optional.empty(); private Builder() { // force use of static builder() method @@ -423,4 +423,3 @@ public class GetLibraryItemsRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsSort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsSort.java index 107ab3a1..284aef36 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsSort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsSort.java @@ -1,9 +1,8 @@ /* * 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; @@ -31,7 +30,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeDirection") @@ -39,7 +37,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") @@ -105,7 +102,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +111,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -145,7 +140,7 @@ public class GetLibraryItemsSort { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsSort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -173,7 +168,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsSort withActiveDirection(GetLibraryItemsActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -183,7 +177,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsSort withActiveDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -193,7 +186,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsSort withDefaultDirection(GetLibraryItemsDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -203,7 +195,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetLibraryItemsSort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -246,6 +237,7 @@ public class GetLibraryItemsSort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -309,7 +301,7 @@ public class GetLibraryItemsSort { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -341,7 +333,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(GetLibraryItemsActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -351,7 +342,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -361,7 +351,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(GetLibraryItemsDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -371,7 +360,6 @@ public class GetLibraryItemsSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -421,7 +409,8 @@ public class GetLibraryItemsSort { } if (defaultDirection == null) { defaultDirection = _SINGLETON_VALUE_DefaultDirection.value(); - } return new GetLibraryItemsSort( + } + return new GetLibraryItemsSort( default_, active, activeDirection, @@ -445,4 +434,3 @@ public class GetLibraryItemsSort { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsStream.java index 60e3e691..30cf46f0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsStream.java @@ -1,9 +1,8 @@ /* * 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; @@ -690,7 +689,7 @@ public class GetLibraryItemsStream { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsStream withId(long id) { Utils.checkNotNull(id, "id"); @@ -1318,6 +1317,7 @@ public class GetLibraryItemsStream { this.canAutoSync = canAutoSync; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1531,7 +1531,7 @@ public class GetLibraryItemsStream { private Optional title = Optional.empty(); - private Optional canAutoSync = Optional.empty(); + private Optional canAutoSync = Optional.empty(); private Builder() { // force use of static builder() method @@ -2207,4 +2207,3 @@ public class GetLibraryItemsStream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsType.java index bb282bac..c20fd06a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsType.java @@ -1,9 +1,8 @@ /* * 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; @@ -129,7 +128,7 @@ public class GetLibraryItemsType { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -202,6 +201,7 @@ public class GetLibraryItemsType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -265,7 +265,7 @@ public class GetLibraryItemsType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -356,4 +356,3 @@ public class GetLibraryItemsType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsUltraBlurColors.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsUltraBlurColors.java index 97968b9e..44d8556c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsUltraBlurColors.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsUltraBlurColors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetLibraryItemsUltraBlurColors { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsUltraBlurColors withTopLeft(String topLeft) { Utils.checkNotNull(topLeft, "topLeft"); @@ -89,6 +88,7 @@ public class GetLibraryItemsUltraBlurColors { this.bottomLeft = bottomLeft; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetLibraryItemsUltraBlurColors { private String bottomRight; - private String bottomLeft; + private String bottomLeft; private Builder() { // force use of static builder() method @@ -171,4 +171,3 @@ public class GetLibraryItemsUltraBlurColors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java index 681b27e1..cad56832 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetLibraryItemsWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetLibraryItemsWriter { public final static Builder builder() { return new Builder(); - } + } public GetLibraryItemsWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetLibraryItemsWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetLibraryItemsWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataCountry.java index 7441d2dc..c719a256 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class GetMediaMetaDataCountry { public final static Builder builder() { return new Builder(); - } + } /** * The unique country identifier. @@ -100,6 +99,7 @@ public class GetMediaMetaDataCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class GetMediaMetaDataCountry { private String filter; - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class GetMediaMetaDataCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataDirector.java index 6d121308..2877e5db 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetMediaMetaDataDirector { public final static Builder builder() { return new Builder(); - } + } /** * The unique role identifier. @@ -209,6 +208,7 @@ public class GetMediaMetaDataDirector { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -262,7 +262,7 @@ public class GetMediaMetaDataDirector { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -351,4 +351,3 @@ public class GetMediaMetaDataDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGenre.java index 1c1af1ec..44552f9d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class GetMediaMetaDataGenre { public final static Builder builder() { return new Builder(); - } + } /** * The unique genre identifier. @@ -100,6 +99,7 @@ public class GetMediaMetaDataGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class GetMediaMetaDataGenre { private String filter; - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class GetMediaMetaDataGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGuids.java index 46ddec20..a6aa62eb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataGuids.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetMediaMetaDataGuids { public final static Builder builder() { return new Builder(); - } + } /** * The GUID value. @@ -47,6 +46,7 @@ public class GetMediaMetaDataGuids { this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetMediaMetaDataGuids { public final static class Builder { - private String id; + private String id; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetMediaMetaDataGuids { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataHasThumbnail.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataHasThumbnail.java index 555de4ff..bfb7e644 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataHasThumbnail.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataHasThumbnail.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetMediaMetaDataHasThumbnail - Indicates if the part has a thumbnail. + * GetMediaMetaDataHasThumbnail + * + *

Indicates if the part has a thumbnail. */ public enum GetMediaMetaDataHasThumbnail { False("0"), @@ -35,3 +37,4 @@ public enum GetMediaMetaDataHasThumbnail { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataImage.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataImage.java index 0d7ec024..b5c223db 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataImage.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataImage.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetMediaMetaDataImage { public final static Builder builder() { return new Builder(); - } + } /** * Alternate text for the image. @@ -99,6 +98,7 @@ public class GetMediaMetaDataImage { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetMediaMetaDataImage { private String type; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetMediaMetaDataImage { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLibraryOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLibraryOptimizedForStreaming.java index d0d5b815..19a6e7e3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLibraryOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLibraryOptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * GetMediaMetaDataLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * GetMediaMetaDataLibraryOptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = GetMediaMetaDataLibraryOptimizedForStreaming._Deserializer.class) public class GetMediaMetaDataLibraryOptimizedForStreaming { @@ -97,3 +98,4 @@ public class GetMediaMetaDataLibraryOptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLocation.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLocation.java index 0e18a2e2..64f8c577 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLocation.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataLocation.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetMediaMetaDataLocation { public final static Builder builder() { return new Builder(); - } + } /** * The file path for the location. @@ -47,6 +46,7 @@ public class GetMediaMetaDataLocation { this.path = path; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetMediaMetaDataLocation { public final static class Builder { - private String path; + private String path; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetMediaMetaDataLocation { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMedia.java index 21c97046..9567a956 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -105,7 +104,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") @@ -311,7 +309,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonIgnore public Optional videoFrameRate() { @@ -367,7 +364,7 @@ public class GetMediaMetaDataMedia { public final static Builder builder() { return new Builder(); - } + } /** * Unique media identifier. @@ -572,7 +569,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public GetMediaMetaDataMedia withVideoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -582,7 +578,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public GetMediaMetaDataMedia withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -691,6 +686,7 @@ public class GetMediaMetaDataMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -809,7 +805,7 @@ public class GetMediaMetaDataMedia { private Optional has64bitOffsets = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -1018,7 +1014,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1028,7 +1023,6 @@ public class GetMediaMetaDataMedia { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1162,4 +1156,3 @@ public class GetMediaMetaDataMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMediaContainer.java index f01b7095..9167e256 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -193,7 +192,7 @@ public class GetMediaMetaDataMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -284,6 +283,7 @@ public class GetMediaMetaDataMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -352,7 +352,7 @@ public class GetMediaMetaDataMediaContainer { private Long mediaTagVersion; - private List metadata; + private List metadata; private Builder() { // force use of static builder() method @@ -462,4 +462,3 @@ public class GetMediaMetaDataMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMetadata.java index ab815827..cc076d54 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -1106,7 +1105,7 @@ public class GetMediaMetaDataMetadata { public final static Builder builder() { return new Builder(); - } + } /** * The rating key of the metadata item. @@ -2025,6 +2024,7 @@ public class GetMediaMetaDataMetadata { this.location = location; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -2353,7 +2353,7 @@ public class GetMediaMetaDataMetadata { private Optional> similar = Optional.empty(); - private Optional> location = Optional.empty(); + private Optional> location = Optional.empty(); private Builder() { // force use of static builder() method @@ -3343,4 +3343,3 @@ public class GetMediaMetaDataMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming.java index 296f1bce..1f0b6c4c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * GetMediaMetaDataOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * GetMediaMetaDataOptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = GetMediaMetaDataOptimizedForStreaming._Deserializer.class) public class GetMediaMetaDataOptimizedForStreaming { @@ -97,3 +98,4 @@ public class GetMediaMetaDataOptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming1.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming1.java index ac6424b2..1fe6fd71 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming1.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreaming1.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetMediaMetaDataOptimizedForStreaming1 { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum GetMediaMetaDataOptimizedForStreaming1 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreamingLibrary1.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreamingLibrary1.java index 50ab8a75..23c6832a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreamingLibrary1.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataOptimizedForStreamingLibrary1.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetMediaMetaDataOptimizedForStreamingLibrary1 { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum GetMediaMetaDataOptimizedForStreamingLibrary1 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataPart.java index d8ea133e..5cab9de1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -301,7 +300,7 @@ public class GetMediaMetaDataPart { public final static Builder builder() { return new Builder(); - } + } /** * Indicates if the part is accessible. @@ -530,6 +529,7 @@ public class GetMediaMetaDataPart { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -633,7 +633,7 @@ public class GetMediaMetaDataPart { private Optional hasThumbnail; - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -870,7 +870,8 @@ public class GetMediaMetaDataPart { public GetMediaMetaDataPart build() { if (hasThumbnail == null) { hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value(); - } return new GetMediaMetaDataPart( + } + return new GetMediaMetaDataPart( accessible, exists, id, @@ -896,4 +897,3 @@ public class GetMediaMetaDataPart { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataProducer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataProducer.java index 4ab32043..9df9f60d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataProducer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataProducer.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetMediaMetaDataProducer { public final static Builder builder() { return new Builder(); - } + } /** * The unique role identifier. @@ -209,6 +208,7 @@ public class GetMediaMetaDataProducer { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -262,7 +262,7 @@ public class GetMediaMetaDataProducer { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -351,4 +351,3 @@ public class GetMediaMetaDataProducer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequest.java index 084a2b87..eac20d87 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -266,7 +265,7 @@ public class GetMediaMetaDataRequest { public final static Builder builder() { return new Builder(); - } + } /** * the id of the library item to return the children of. @@ -510,6 +509,7 @@ public class GetMediaMetaDataRequest { this.asyncRefreshLocalMediaAgent = asyncRefreshLocalMediaAgent; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -603,7 +603,7 @@ public class GetMediaMetaDataRequest { private Optional asyncRefreshAnalysis = Optional.empty(); - private Optional asyncRefreshLocalMediaAgent = Optional.empty(); + private Optional asyncRefreshLocalMediaAgent = Optional.empty(); private Builder() { // force use of static builder() method @@ -871,4 +871,3 @@ public class GetMediaMetaDataRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequestBuilder.java index c235505a..1720b200 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetMediaMetaDataRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponse.java index 3de5d3aa..0468216c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetMediaMetaDataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetMediaMetaDataResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetMediaMetaDataResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetMediaMetaDataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponseBody.java index f31ad819..1ce1b104 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetMediaMetaDataResponseBody - The metadata of the library item. - */ +/** + * GetMediaMetaDataResponseBody + * + *

The metadata of the library item. + */ public class GetMediaMetaDataResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetMediaMetaDataResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetMediaMetaDataResponseBody withMediaContainer(GetMediaMetaDataMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetMediaMetaDataResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetMediaMetaDataResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetMediaMetaDataResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRole.java index e4da6b5b..c1704e6f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetMediaMetaDataRole { public final static Builder builder() { return new Builder(); - } + } /** * The unique role identifier. @@ -209,6 +208,7 @@ public class GetMediaMetaDataRole { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -262,7 +262,7 @@ public class GetMediaMetaDataRole { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -351,4 +351,3 @@ public class GetMediaMetaDataRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataSimilar.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataSimilar.java index 31604f4d..d6cef2da 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataSimilar.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataSimilar.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class GetMediaMetaDataSimilar { public final static Builder builder() { return new Builder(); - } + } /** * The unique similar item identifier. @@ -100,6 +99,7 @@ public class GetMediaMetaDataSimilar { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class GetMediaMetaDataSimilar { private String filter; - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class GetMediaMetaDataSimilar { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataStream.java index 7a604453..a8cf8427 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataStream.java @@ -1,9 +1,8 @@ /* * 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; @@ -883,7 +882,7 @@ public class GetMediaMetaDataStream { public final static Builder builder() { return new Builder(); - } + } /** * Unique stream identifier. @@ -1682,6 +1681,7 @@ public class GetMediaMetaDataStream { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1950,7 +1950,7 @@ public class GetMediaMetaDataStream { private Optional dub = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -2808,4 +2808,3 @@ public class GetMediaMetaDataStream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataUltraBlurColors.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataUltraBlurColors.java index 1a6c7960..fcdba08c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataUltraBlurColors.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataUltraBlurColors.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetMediaMetaDataUltraBlurColors { public final static Builder builder() { return new Builder(); - } + } /** * The top-left color value. @@ -125,6 +124,7 @@ public class GetMediaMetaDataUltraBlurColors { this.bottomLeft = bottomLeft; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -168,7 +168,7 @@ public class GetMediaMetaDataUltraBlurColors { private String bottomRight; - private String bottomLeft; + private String bottomLeft; private Builder() { // force use of static builder() method @@ -219,4 +219,3 @@ public class GetMediaMetaDataUltraBlurColors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataWriter.java index ab74d96e..b0b56ecf 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaMetaDataWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetMediaMetaDataWriter { public final static Builder builder() { return new Builder(); - } + } /** * The unique role identifier. @@ -209,6 +208,7 @@ public class GetMediaMetaDataWriter { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -262,7 +262,7 @@ public class GetMediaMetaDataWriter { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -351,4 +351,3 @@ public class GetMediaMetaDataWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java index 78e4d544..812f341b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -200,7 +199,7 @@ public class GetMediaProvidersDirectory { public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersDirectory withHubKey(String hubKey) { Utils.checkNotNull(hubKey, "hubKey"); @@ -369,6 +368,7 @@ public class GetMediaProvidersDirectory { this.pivot = pivot; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -462,7 +462,7 @@ public class GetMediaProvidersDirectory { private Optional scannedAt = Optional.empty(); - private Optional> pivot = Optional.empty(); + private Optional> pivot = Optional.empty(); private Builder() { // force use of static builder() method @@ -655,4 +655,3 @@ public class GetMediaProvidersDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java index e0c31c87..c7cbdefb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -560,7 +559,7 @@ public class GetMediaProvidersMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersMediaContainer withSize(long size) { Utils.checkNotNull(size, "size"); @@ -1089,6 +1088,7 @@ public class GetMediaProvidersMediaContainer { this.mediaProvider = mediaProvider; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1332,7 +1332,7 @@ public class GetMediaProvidersMediaContainer { private Optional voiceSearch = Optional.empty(); - private Optional> mediaProvider = Optional.empty(); + private Optional> mediaProvider = Optional.empty(); private Builder() { // force use of static builder() method @@ -1915,4 +1915,3 @@ public class GetMediaProvidersMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java index e7fb4ff2..177ab567 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetMediaProvidersRequest { public final static Builder builder() { return new Builder(); - } + } /** * An authentication token, obtained from plex.tv @@ -47,6 +46,7 @@ public class GetMediaProvidersRequest { this.xPlexToken = xPlexToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetMediaProvidersRequest { public final static class Builder { - private String xPlexToken; + private String xPlexToken; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetMediaProvidersRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java index 15d64b60..c5732ef5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class GetMediaProvidersRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java index c45e9ed6..c1117515 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetMediaProvidersResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetMediaProvidersResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetMediaProvidersResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetMediaProvidersResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java index 2826b255..d81399ae 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMediaProvidersResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetMediaProvidersResponseBody - Media providers and their features - */ +/** + * GetMediaProvidersResponseBody + * + *

Media providers and their features + */ public class GetMediaProvidersResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetMediaProvidersResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetMediaProvidersResponseBody withMediaContainer(GetMediaProvidersMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetMediaProvidersResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetMediaProvidersResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetMediaProvidersResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java index 5a0ed277..d7859a5b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenDirectory.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetMetadataChildrenDirectory { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenDirectory withLeafCount(int leafCount) { Utils.checkNotNull(leafCount, "leafCount"); @@ -149,6 +148,7 @@ public class GetMetadataChildrenDirectory { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -197,7 +197,7 @@ public class GetMetadataChildrenDirectory { private Optional key = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,4 +273,3 @@ public class GetMetadataChildrenDirectory { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java index 14777382..55387f87 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -309,7 +308,7 @@ public class GetMetadataChildrenMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -586,6 +585,7 @@ public class GetMetadataChildrenMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -724,7 +724,7 @@ public class GetMetadataChildrenMediaContainer { private Optional> directory = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -1034,4 +1034,3 @@ public class GetMetadataChildrenMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java index 146fcea1..9f49bf01 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -352,7 +351,7 @@ public class GetMetadataChildrenMetadata { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -677,6 +676,7 @@ public class GetMetadataChildrenMetadata { this.lastRatedAt = lastRatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -835,7 +835,7 @@ public class GetMetadataChildrenMetadata { private Optional skipCount = Optional.empty(); - private Optional lastRatedAt = Optional.empty(); + private Optional lastRatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -1197,4 +1197,3 @@ public class GetMetadataChildrenMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java index d9934ac3..64ca8f26 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -24,7 +23,6 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeElements") private Optional includeElements; @@ -54,7 +52,6 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ @JsonIgnore public Optional includeElements() { @@ -63,7 +60,7 @@ public class GetMetadataChildrenRequest { public final static Builder builder() { return new Builder(); - } + } /** * the id of the library item to return the children of. @@ -76,7 +73,6 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ public GetMetadataChildrenRequest withIncludeElements(String includeElements) { Utils.checkNotNull(includeElements, "includeElements"); @@ -86,13 +82,13 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ public GetMetadataChildrenRequest withIncludeElements(Optional includeElements) { Utils.checkNotNull(includeElements, "includeElements"); this.includeElements = includeElements; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -126,7 +122,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 @@ -143,7 +139,6 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ public Builder includeElements(String includeElements) { Utils.checkNotNull(includeElements, "includeElements"); @@ -153,7 +148,6 @@ public class GetMetadataChildrenRequest { /** * Adds additional elements to the response. Supported types are (Stream) - * */ public Builder includeElements(Optional includeElements) { Utils.checkNotNull(includeElements, "includeElements"); @@ -168,4 +162,3 @@ public class GetMetadataChildrenRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java index 1404d80b..685fa920 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java index 884bddf1..14f7178f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetMetadataChildrenResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetMetadataChildrenResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetMetadataChildrenResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetMetadataChildrenResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java index ced76b8a..997d5c52 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMetadataChildrenResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetMetadataChildrenResponseBody - The children of the library item. - */ +/** + * GetMetadataChildrenResponseBody + * + *

The children of the library item. + */ public class GetMetadataChildrenResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetMetadataChildrenResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetMetadataChildrenResponseBody withMediaContainer(GetMetadataChildrenMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetMetadataChildrenResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetMetadataChildrenResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetMetadataChildrenResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java index a8a465c5..06344b2e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetMyPlexAccountRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java index 3c40b803..dcd3d761 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetMyPlexAccountResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetMyPlexAccountResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetMyPlexAccountResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetMyPlexAccountResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java index bd694e44..f37f1e42 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetMyPlexAccountResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetMyPlexAccountResponseBody - MyPlex Account - */ +/** + * GetMyPlexAccountResponseBody + * + *

MyPlex Account + */ public class GetMyPlexAccountResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetMyPlexAccountResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetMyPlexAccountResponseBody withMyPlex(MyPlex myPlex) { Utils.checkNotNull(myPlex, "myPlex"); @@ -57,6 +58,7 @@ public class GetMyPlexAccountResponseBody { this.myPlex = myPlex; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetMyPlexAccountResponseBody { public final static class Builder { - private Optional myPlex = Optional.empty(); + private Optional myPlex = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetMyPlexAccountResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java index fe23fc42..d3d9fe7f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinAuthPinContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -22,10 +21,12 @@ 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 - */ +/** + * GetPinAuthPinContainer + * + *

Requests a new pin id used in the authentication flow + */ public class GetPinAuthPinContainer { @JsonProperty("id") @@ -201,7 +202,7 @@ public class GetPinAuthPinContainer { public final static Builder builder() { return new Builder(); - } + } public GetPinAuthPinContainer withId(long id) { Utils.checkNotNull(id, "id"); @@ -310,6 +311,7 @@ public class GetPinAuthPinContainer { this.newRegistration = newRegistration; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -393,7 +395,7 @@ public class GetPinAuthPinContainer { private JsonNullable authToken = JsonNullable.undefined(); - private JsonNullable newRegistration = JsonNullable.undefined(); + private JsonNullable newRegistration = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -513,7 +515,8 @@ public class GetPinAuthPinContainer { } if (expiresIn == null) { expiresIn = _SINGLETON_VALUE_ExpiresIn.value(); - } return new GetPinAuthPinContainer( + } + return new GetPinAuthPinContainer( id, code, product, @@ -541,4 +544,3 @@ public class GetPinAuthPinContainer { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java index 0f0c28c1..ef12cedb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -22,7 +21,6 @@ public class GetPinRequest { * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=strong") private Optional strong; @@ -88,7 +86,6 @@ public class GetPinRequest { * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ @JsonIgnore public Optional strong() { @@ -137,13 +134,12 @@ public class GetPinRequest { public final static Builder builder() { return new Builder(); - } + } /** * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ public GetPinRequest withStrong(boolean strong) { Utils.checkNotNull(strong, "strong"); @@ -155,7 +151,6 @@ public class GetPinRequest { * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ public GetPinRequest withStrong(Optional strong) { Utils.checkNotNull(strong, "strong"); @@ -243,6 +238,7 @@ public class GetPinRequest { this.platform = platform; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -296,7 +292,7 @@ public class GetPinRequest { private Optional clientVersion = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); private Builder() { // force use of static builder() method @@ -306,7 +302,6 @@ public class GetPinRequest { * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ public Builder strong(boolean strong) { Utils.checkNotNull(strong, "strong"); @@ -318,7 +313,6 @@ public class GetPinRequest { * Determines the kind of code returned by the API call * Strong codes are used for Pin authentication flows * Non-Strong codes are used for `Plex.tv/link` - * */ public Builder strong(Optional strong) { Utils.checkNotNull(strong, "strong"); @@ -410,7 +404,8 @@ public class GetPinRequest { public GetPinRequest build() { if (strong == null) { strong = _SINGLETON_VALUE_Strong.value(); - } return new GetPinRequest( + } + return new GetPinRequest( strong, clientID, clientName, @@ -426,4 +421,3 @@ public class GetPinRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java index d7a9516b..29458ab6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java index e1b32306..100effe0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPinResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetPinResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetPinResponse implements Response { this.authPinContainer = authPinContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetPinResponse implements Response { private HttpResponse rawResponse; - private Optional authPinContainer = Optional.empty(); + private Optional authPinContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetPinResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java index c3700bf9..fa17ba18 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetPlaylistContentsCountry { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetPlaylistContentsCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetPlaylistContentsCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java index 5f3d838a..97de03d5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetPlaylistContentsDirector { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetPlaylistContentsDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetPlaylistContentsDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java index 184a9d20..771df81a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetPlaylistContentsGenre { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetPlaylistContentsGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetPlaylistContentsGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java index 4b475f79..abebe366 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -237,7 +236,7 @@ public class GetPlaylistContentsMedia { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsMedia withId(int id) { Utils.checkNotNull(id, "id"); @@ -442,6 +441,7 @@ public class GetPlaylistContentsMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -550,7 +550,7 @@ public class GetPlaylistContentsMedia { private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -782,4 +782,3 @@ public class GetPlaylistContentsMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java index 81e3c3a8..a6479751 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -140,7 +139,7 @@ public class GetPlaylistContentsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -249,6 +248,7 @@ public class GetPlaylistContentsMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -317,7 +317,7 @@ public class GetPlaylistContentsMediaContainer { private Optional title = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -445,4 +445,3 @@ public class GetPlaylistContentsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java index e0484a12..133493f4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -422,7 +421,7 @@ public class GetPlaylistContentsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -807,6 +806,7 @@ public class GetPlaylistContentsMetadata { this.role = role; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -990,7 +990,7 @@ public class GetPlaylistContentsMetadata { private Optional> writer = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1417,4 +1417,3 @@ public class GetPlaylistContentsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java index 0d40762f..9e4c7d1b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -149,7 +148,7 @@ public class GetPlaylistContentsPart { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsPart withId(int id) { Utils.checkNotNull(id, "id"); @@ -270,6 +269,7 @@ public class GetPlaylistContentsPart { this.videoProfile = videoProfile; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -343,7 +343,7 @@ public class GetPlaylistContentsPart { private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -484,4 +484,3 @@ public class GetPlaylistContentsPart { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java index f23f8e47..e6a09667 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetPlaylistContentsQueryParamType - The type of media to retrieve or filter by. + * GetPlaylistContentsQueryParamType + * + *

The type of media to retrieve or filter by. * 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 { Movie(1L), @@ -45,3 +46,4 @@ public enum GetPlaylistContentsQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java index 711933c5..85d23361 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -28,7 +27,6 @@ public class GetPlaylistContentsRequest { * 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 GetPlaylistContentsQueryParamType type; @@ -58,7 +56,6 @@ public class GetPlaylistContentsRequest { * 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 GetPlaylistContentsQueryParamType type() { @@ -67,7 +64,7 @@ public class GetPlaylistContentsRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -85,13 +82,13 @@ public class GetPlaylistContentsRequest { * 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(GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -125,7 +122,7 @@ public class GetPlaylistContentsRequest { private Double playlistID; - private GetPlaylistContentsQueryParamType type; + private GetPlaylistContentsQueryParamType type; private Builder() { // force use of static builder() method @@ -147,7 +144,6 @@ public class GetPlaylistContentsRequest { * 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(GetPlaylistContentsQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -162,4 +158,3 @@ public class GetPlaylistContentsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java index 37cf4497..60a2f6cd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class GetPlaylistContentsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java index b1b9a655..0f7517bc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetPlaylistContentsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetPlaylistContentsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetPlaylistContentsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetPlaylistContentsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java index 58bf70df..c3429ab8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetPlaylistContentsResponseBody - The playlist contents - */ +/** + * GetPlaylistContentsResponseBody + * + *

The playlist contents + */ public class GetPlaylistContentsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetPlaylistContentsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsResponseBody withMediaContainer(GetPlaylistContentsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetPlaylistContentsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetPlaylistContentsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetPlaylistContentsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java index 362e75ab..a4bdbec0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetPlaylistContentsRole { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsRole withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetPlaylistContentsRole { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetPlaylistContentsRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java index 7867ee06..bec4656b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistContentsWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetPlaylistContentsWriter { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistContentsWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetPlaylistContentsWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetPlaylistContentsWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java index a7e8d6c8..da8faa77 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetPlaylistMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetPlaylistMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetPlaylistMediaContainer { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetPlaylistMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java index c8f5aef2..fdb94e3b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -209,7 +208,7 @@ public class GetPlaylistMetadata { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistMetadata withContent(String content) { Utils.checkNotNull(content, "content"); @@ -390,6 +389,7 @@ public class GetPlaylistMetadata { this.updatedAt = updatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -488,7 +488,7 @@ public class GetPlaylistMetadata { private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -694,4 +694,3 @@ public class GetPlaylistMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java index a8e61ee9..1be8de04 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -38,7 +37,7 @@ public class GetPlaylistRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -48,6 +47,7 @@ public class GetPlaylistRequest { this.playlistID = playlistID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -76,7 +76,7 @@ public class GetPlaylistRequest { public final static class Builder { - private Double playlistID; + private Double playlistID; private Builder() { // force use of static builder() method @@ -97,4 +97,3 @@ public class GetPlaylistRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java index 4fdbd0ee..e9773895 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class GetPlaylistRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java index fc07577c..2bda7632 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetPlaylistResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetPlaylistResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetPlaylistResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetPlaylistResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java index d889c23b..5e115739 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetPlaylistResponseBody - The playlist - */ +/** + * GetPlaylistResponseBody + * + *

The playlist + */ public class GetPlaylistResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetPlaylistResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistResponseBody withMediaContainer(GetPlaylistMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetPlaylistResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetPlaylistResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetPlaylistResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java index acd1ecb7..ce0ed103 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetPlaylistsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetPlaylistsMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetPlaylistsMediaContainer { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetPlaylistsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java index 72f386c0..d52f4e29 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -221,7 +220,7 @@ public class GetPlaylistsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -414,6 +413,7 @@ public class GetPlaylistsMetadata { this.updatedAt = updatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -517,7 +517,7 @@ public class GetPlaylistsMetadata { private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -736,4 +736,3 @@ public class GetPlaylistsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java index dd9965da..3a2fe0ae 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -62,7 +61,7 @@ public class GetPlaylistsRequest { public final static Builder builder() { return new Builder(); - } + } /** * limit to a type of playlist. @@ -99,6 +98,7 @@ public class GetPlaylistsRequest { this.smart = smart; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetPlaylistsRequest { private Optional playlistType = Optional.empty(); - private Optional smart = Optional.empty(); + private Optional smart = Optional.empty(); private Builder() { // force use of static builder() method @@ -181,4 +181,3 @@ public class GetPlaylistsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java index c4ae92e4..c7e64356 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.util.Optional; public class GetPlaylistsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java index b1fb201b..5aaf3754 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetPlaylistsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetPlaylistsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetPlaylistsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetPlaylistsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java index 6aaaa0a3..14554090 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetPlaylistsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetPlaylistsResponseBody - returns all playlists - */ +/** + * GetPlaylistsResponseBody + * + *

returns all playlists + */ public class GetPlaylistsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetPlaylistsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetPlaylistsResponseBody withMediaContainer(GetPlaylistsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetPlaylistsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetPlaylistsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetPlaylistsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedActiveDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedActiveDirection.java index 9fc802f7..68bcb45b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedActiveDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedActiveDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetRecentlyAddedActiveDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetRecentlyAddedActiveDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetRecentlyAddedActiveDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedDefaultDirection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedDefaultDirection.java index 52f372cd..81bc75e8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedDefaultDirection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedDefaultDirection.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetRecentlyAddedDefaultDirection - The direction of the sort. Can be either `asc` or `desc`. + * GetRecentlyAddedDefaultDirection * + *

The direction of the sort. Can be either `asc` or `desc`. */ public enum GetRecentlyAddedDefaultDirection { Ascending("asc"), @@ -36,3 +37,4 @@ public enum GetRecentlyAddedDefaultDirection { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedField.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedField.java index 1e2730a1..cc82986d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedField.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedField.java @@ -1,9 +1,8 @@ /* * 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; @@ -75,7 +74,7 @@ public class GetRecentlyAddedField { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedField withKey(String key) { Utils.checkNotNull(key, "key"); @@ -106,6 +105,7 @@ public class GetRecentlyAddedField { this.subType = subType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -149,7 +149,7 @@ public class GetRecentlyAddedField { private String type; - private Optional subType = Optional.empty(); + private Optional subType = Optional.empty(); private Builder() { // force use of static builder() method @@ -194,4 +194,3 @@ public class GetRecentlyAddedField { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFieldType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFieldType.java index 6f7ec66d..1990a084 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFieldType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFieldType.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class GetRecentlyAddedFieldType { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedFieldType withType(String type) { Utils.checkNotNull(type, "type"); @@ -56,6 +55,7 @@ public class GetRecentlyAddedFieldType { this.operator = operator; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class GetRecentlyAddedFieldType { private String type; - private List operator; + private List operator; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class GetRecentlyAddedFieldType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFilter.java index 5c86098b..afe6022f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetRecentlyAddedFilter { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -143,6 +142,7 @@ public class GetRecentlyAddedFilter { this.advanced = advanced; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -196,7 +196,7 @@ public class GetRecentlyAddedFilter { private String type; - private Optional advanced = Optional.empty(); + private Optional advanced = Optional.empty(); private Builder() { // force use of static builder() method @@ -255,4 +255,3 @@ public class GetRecentlyAddedFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsResponseType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsResponseType.java index a5d61159..0307a65b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsResponseType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsResponseType.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetRecentlyAddedHubsResponseType { COVER_POSTER("coverPoster"), BACKGROUND("background"), @@ -34,3 +34,4 @@ public enum GetRecentlyAddedHubsResponseType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsType.java index a688d5e7..dfeda47a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedHubsType.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetRecentlyAddedHubsType - The type of media content + * GetRecentlyAddedHubsType * + *

The type of media content */ public enum GetRecentlyAddedHubsType { Movie("movie"), @@ -40,3 +41,4 @@ public enum GetRecentlyAddedHubsType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedImage.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedImage.java index 5e60f574..4bb081bb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedImage.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedImage.java @@ -1,9 +1,8 @@ /* * 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; @@ -53,7 +52,7 @@ public class GetRecentlyAddedImage { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedImage withAlt(String alt) { Utils.checkNotNull(alt, "alt"); @@ -72,6 +71,7 @@ public class GetRecentlyAddedImage { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetRecentlyAddedImage { private GetRecentlyAddedHubsResponseType type; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -142,4 +142,3 @@ public class GetRecentlyAddedImage { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryCountry.java index e4fb9bfc..b0813527 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetRecentlyAddedLibraryCountry { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetRecentlyAddedLibraryCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetRecentlyAddedLibraryCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetRecentlyAddedLibraryCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryDirector.java index 3e901b57..6fab3195 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetRecentlyAddedLibraryDirector { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetRecentlyAddedLibraryDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetRecentlyAddedLibraryDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetRecentlyAddedLibraryDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryFilter.java index cc7d73b8..71d9f08b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryFilter.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetRecentlyAddedLibraryFilter { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryFilter withFilter(String filter) { Utils.checkNotNull(filter, "filter"); @@ -143,6 +142,7 @@ public class GetRecentlyAddedLibraryFilter { this.advanced = advanced; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -196,7 +196,7 @@ public class GetRecentlyAddedLibraryFilter { private String type; - private Optional advanced = Optional.empty(); + private Optional advanced = Optional.empty(); private Builder() { // force use of static builder() method @@ -255,4 +255,3 @@ public class GetRecentlyAddedLibraryFilter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryGenre.java index 8a327e88..8a0b832b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetRecentlyAddedLibraryGenre { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetRecentlyAddedLibraryGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetRecentlyAddedLibraryGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetRecentlyAddedLibraryGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMedia.java index c880de8e..34105970 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -224,7 +223,7 @@ public class GetRecentlyAddedLibraryMedia { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryMedia withId(double id) { Utils.checkNotNull(id, "id"); @@ -417,6 +416,7 @@ public class GetRecentlyAddedLibraryMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -520,7 +520,7 @@ public class GetRecentlyAddedLibraryMedia { private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -739,4 +739,3 @@ public class GetRecentlyAddedLibraryMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMediaContainer.java index 048595c6..c057f2cf 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,11 +17,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetRecentlyAddedLibraryMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * - */ +/** + * GetRecentlyAddedLibraryMediaContainer + * + *

The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + */ public class GetRecentlyAddedLibraryMediaContainer { @JsonInclude(Include.NON_ABSENT) @@ -146,7 +146,7 @@ public class GetRecentlyAddedLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryMediaContainer withType(List type) { Utils.checkNotNull(type, "type"); @@ -255,6 +255,7 @@ public class GetRecentlyAddedLibraryMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -323,7 +324,7 @@ public class GetRecentlyAddedLibraryMediaContainer { private Optional mixedParents = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -451,4 +452,3 @@ public class GetRecentlyAddedLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMetadata.java index 19c19a3c..d212ed24 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -422,7 +421,7 @@ public class GetRecentlyAddedLibraryMetadata { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryMetadata withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); @@ -807,6 +806,7 @@ public class GetRecentlyAddedLibraryMetadata { this.role = role; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -990,7 +990,7 @@ public class GetRecentlyAddedLibraryMetadata { private Optional> country = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1417,4 +1417,3 @@ public class GetRecentlyAddedLibraryMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryPart.java index b33939d6..8a1602dc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -149,7 +148,7 @@ public class GetRecentlyAddedLibraryPart { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryPart withId(double id) { Utils.checkNotNull(id, "id"); @@ -270,6 +269,7 @@ public class GetRecentlyAddedLibraryPart { this.videoProfile = videoProfile; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -343,7 +343,7 @@ public class GetRecentlyAddedLibraryPart { private Optional optimizedForStreaming = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -484,4 +484,3 @@ public class GetRecentlyAddedLibraryPart { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequest.java index a1c0fc9c..bcd46fc4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -40,14 +39,12 @@ public class GetRecentlyAddedLibraryRequest { * 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; /** * Adds the Meta object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta") private Optional includeMeta; @@ -56,7 +53,6 @@ public class GetRecentlyAddedLibraryRequest { * 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; @@ -65,7 +61,6 @@ public class GetRecentlyAddedLibraryRequest { * 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; @@ -126,7 +121,6 @@ public class GetRecentlyAddedLibraryRequest { * 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() { @@ -135,7 +129,6 @@ public class GetRecentlyAddedLibraryRequest { /** * Adds the Meta object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -147,7 +140,6 @@ public class GetRecentlyAddedLibraryRequest { * 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() { @@ -158,7 +150,6 @@ public class GetRecentlyAddedLibraryRequest { * 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() { @@ -167,7 +158,7 @@ public class GetRecentlyAddedLibraryRequest { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryRequest withContentDirectoryID(long contentDirectoryID) { Utils.checkNotNull(contentDirectoryID, "contentDirectoryID"); @@ -218,7 +209,6 @@ public class GetRecentlyAddedLibraryRequest { * 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 GetRecentlyAddedLibraryRequest withType(QueryParamType type) { Utils.checkNotNull(type, "type"); @@ -228,7 +218,6 @@ public class GetRecentlyAddedLibraryRequest { /** * Adds the Meta object to the response - * */ public GetRecentlyAddedLibraryRequest withIncludeMeta(QueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -238,7 +227,6 @@ public class GetRecentlyAddedLibraryRequest { /** * Adds the Meta object to the response - * */ public GetRecentlyAddedLibraryRequest withIncludeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -250,7 +238,6 @@ public class GetRecentlyAddedLibraryRequest { * 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 GetRecentlyAddedLibraryRequest withXPlexContainerStart(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -262,7 +249,6 @@ public class GetRecentlyAddedLibraryRequest { * 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 GetRecentlyAddedLibraryRequest withXPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -274,7 +260,6 @@ public class GetRecentlyAddedLibraryRequest { * 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 GetRecentlyAddedLibraryRequest withXPlexContainerSize(int xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -286,13 +271,13 @@ public class GetRecentlyAddedLibraryRequest { * 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 GetRecentlyAddedLibraryRequest withXPlexContainerSize(Optional xPlexContainerSize) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); this.xPlexContainerSize = xPlexContainerSize; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -351,7 +336,7 @@ public class GetRecentlyAddedLibraryRequest { private Optional xPlexContainerStart; - private Optional xPlexContainerSize; + private Optional xPlexContainerSize; private Builder() { // force use of static builder() method @@ -406,7 +391,6 @@ public class GetRecentlyAddedLibraryRequest { * 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"); @@ -416,7 +400,6 @@ public class GetRecentlyAddedLibraryRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(QueryParamIncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -426,7 +409,6 @@ public class GetRecentlyAddedLibraryRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -438,7 +420,6 @@ public class GetRecentlyAddedLibraryRequest { * 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"); @@ -450,7 +431,6 @@ public class GetRecentlyAddedLibraryRequest { * 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"); @@ -462,7 +442,6 @@ public class GetRecentlyAddedLibraryRequest { * 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"); @@ -474,7 +453,6 @@ public class GetRecentlyAddedLibraryRequest { * 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"); @@ -491,7 +469,8 @@ public class GetRecentlyAddedLibraryRequest { } if (xPlexContainerSize == null) { xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); - } return new GetRecentlyAddedLibraryRequest( + } + return new GetRecentlyAddedLibraryRequest( contentDirectoryID, pinnedContentDirectoryID, sectionID, @@ -520,4 +499,3 @@ public class GetRecentlyAddedLibraryRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequestBuilder.java index 7c05a5ca..a7a1c2da 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetRecentlyAddedLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponse.java index de7f1bef..7366b02a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetRecentlyAddedLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetRecentlyAddedLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetRecentlyAddedLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetRecentlyAddedLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponseBody.java index faf68321..8fcadd46 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetRecentlyAddedLibraryResponseBody - The recently added content - */ +/** + * GetRecentlyAddedLibraryResponseBody + * + *

The recently added content + */ public class GetRecentlyAddedLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetRecentlyAddedLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryResponseBody withMediaContainer(GetRecentlyAddedLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetRecentlyAddedLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetRecentlyAddedLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetRecentlyAddedLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRole.java index d316cc6c..5c5d0397 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetRecentlyAddedLibraryRole { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryRole withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetRecentlyAddedLibraryRole { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetRecentlyAddedLibraryRole { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetRecentlyAddedLibraryRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryType.java index 7a92256b..05942c55 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryType.java @@ -1,9 +1,8 @@ /* * 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; @@ -129,7 +128,7 @@ public class GetRecentlyAddedLibraryType { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -202,6 +201,7 @@ public class GetRecentlyAddedLibraryType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -265,7 +265,7 @@ public class GetRecentlyAddedLibraryType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -356,4 +356,3 @@ public class GetRecentlyAddedLibraryType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryWriter.java index 8bd62644..8bcf983c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedLibraryWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetRecentlyAddedLibraryWriter { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedLibraryWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetRecentlyAddedLibraryWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetRecentlyAddedLibraryWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetRecentlyAddedLibraryWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java index c2ebc05c..ca37310b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -54,7 +53,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Meta") @@ -143,7 +141,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -162,7 +159,7 @@ public class GetRecentlyAddedMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * Number of media items returned in this response. @@ -211,7 +208,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetRecentlyAddedMediaContainer withMeta(Meta meta) { Utils.checkNotNull(meta, "meta"); @@ -221,7 +217,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public GetRecentlyAddedMediaContainer withMeta(Optional meta) { Utils.checkNotNull(meta, "meta"); @@ -246,6 +241,7 @@ public class GetRecentlyAddedMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -304,7 +300,7 @@ public class GetRecentlyAddedMediaContainer { private Optional meta = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -357,7 +353,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(Meta meta) { Utils.checkNotNull(meta, "meta"); @@ -367,7 +362,6 @@ public class GetRecentlyAddedMediaContainer { /** * The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * */ public Builder meta(Optional meta) { Utils.checkNotNull(meta, "meta"); @@ -405,4 +399,3 @@ public class GetRecentlyAddedMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java index dd71d067..b07636f3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -21,11 +20,12 @@ import java.time.LocalDate; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetRecentlyAddedMetadata - Unknown - * - */ +/** + * GetRecentlyAddedMetadata + * + *

Unknown + */ public class GetRecentlyAddedMetadata { @JsonProperty("addedAt") @@ -1306,7 +1306,7 @@ public class GetRecentlyAddedMetadata { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedMetadata withAddedAt(long addedAt) { Utils.checkNotNull(addedAt, "addedAt"); @@ -2342,6 +2342,7 @@ public class GetRecentlyAddedMetadata { this.collection = collection; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -2740,7 +2741,7 @@ public class GetRecentlyAddedMetadata { private Optional> guids = Optional.empty(); - private Optional> collection = Optional.empty(); + private Optional> collection = Optional.empty(); private Builder() { // force use of static builder() method @@ -3861,4 +3862,3 @@ public class GetRecentlyAddedMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOperator.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOperator.java index c5c825a4..1019ff74 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOperator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOperator.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class GetRecentlyAddedOperator { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedOperator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -55,6 +54,7 @@ public class GetRecentlyAddedOperator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class GetRecentlyAddedOperator { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class GetRecentlyAddedOperator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming.java index fad969bd..70e00c28 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * GetRecentlyAddedOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * GetRecentlyAddedOptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = GetRecentlyAddedOptimizedForStreaming._Deserializer.class) public class GetRecentlyAddedOptimizedForStreaming { @@ -97,3 +98,4 @@ public class GetRecentlyAddedOptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming1.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming1.java index ebd3200d..f7e38767 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming1.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedOptimizedForStreaming1.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetRecentlyAddedOptimizedForStreaming1 { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum GetRecentlyAddedOptimizedForStreaming1 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java index 951d47d4..0e7baa50 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -45,14 +44,12 @@ public class GetRecentlyAddedRequest { * 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; /** * Adds the Meta object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta") private Optional includeMeta; @@ -61,7 +58,6 @@ 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; @@ -70,7 +66,6 @@ public class GetRecentlyAddedRequest { * 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; @@ -137,7 +132,6 @@ public class GetRecentlyAddedRequest { * 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() { @@ -146,7 +140,6 @@ public class GetRecentlyAddedRequest { /** * Adds the Meta object to the response - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -158,7 +151,6 @@ 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 - * */ @JsonIgnore public Optional xPlexContainerStart() { @@ -169,7 +161,6 @@ public class GetRecentlyAddedRequest { * 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() { @@ -178,7 +169,7 @@ public class GetRecentlyAddedRequest { public final static Builder builder() { return new Builder(); - } + } /** * The content directory ID. @@ -232,7 +223,6 @@ public class GetRecentlyAddedRequest { * 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 GetRecentlyAddedRequest withType(Type type) { Utils.checkNotNull(type, "type"); @@ -242,7 +232,6 @@ public class GetRecentlyAddedRequest { /** * Adds the Meta object to the response - * */ public GetRecentlyAddedRequest withIncludeMeta(IncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -252,7 +241,6 @@ public class GetRecentlyAddedRequest { /** * Adds the Meta object to the response - * */ public GetRecentlyAddedRequest withIncludeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -264,7 +252,6 @@ 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 - * */ public GetRecentlyAddedRequest withXPlexContainerStart(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -276,7 +263,6 @@ 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 - * */ public GetRecentlyAddedRequest withXPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -288,7 +274,6 @@ public class GetRecentlyAddedRequest { * 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"); @@ -300,13 +285,13 @@ public class GetRecentlyAddedRequest { * 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) { @@ -365,7 +350,7 @@ public class GetRecentlyAddedRequest { private Optional xPlexContainerStart; - private Optional xPlexContainerSize; + private Optional xPlexContainerSize; private Builder() { // force use of static builder() method @@ -423,7 +408,6 @@ public class GetRecentlyAddedRequest { * 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"); @@ -433,7 +417,6 @@ public class GetRecentlyAddedRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(IncludeMeta includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -443,7 +426,6 @@ public class GetRecentlyAddedRequest { /** * Adds the Meta object to the response - * */ public Builder includeMeta(Optional includeMeta) { Utils.checkNotNull(includeMeta, "includeMeta"); @@ -455,7 +437,6 @@ 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 - * */ public Builder xPlexContainerStart(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -467,7 +448,6 @@ 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 - * */ public Builder xPlexContainerStart(Optional xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -479,7 +459,6 @@ public class GetRecentlyAddedRequest { * 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"); @@ -491,7 +470,6 @@ public class GetRecentlyAddedRequest { * 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"); @@ -508,7 +486,8 @@ public class GetRecentlyAddedRequest { } if (xPlexContainerSize == null) { xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); - } return new GetRecentlyAddedRequest( + } + return new GetRecentlyAddedRequest( contentDirectoryID, pinnedContentDirectoryID, sectionID, @@ -537,4 +516,3 @@ public class GetRecentlyAddedRequest { 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 index e7b3cadd..2597e1f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetRecentlyAddedRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java index 92ea5814..411d1d0b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetRecentlyAddedResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetRecentlyAddedResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetRecentlyAddedResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetRecentlyAddedResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java index 32c1eec5..0e173a71 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetRecentlyAddedResponseBody - A successful response with recently added content. - */ +/** + * GetRecentlyAddedResponseBody + * + *

A successful response with recently added content. + */ public class GetRecentlyAddedResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetRecentlyAddedResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedResponseBody withMediaContainer(GetRecentlyAddedMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetRecentlyAddedResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetRecentlyAddedResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetRecentlyAddedResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedSort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedSort.java index 7c6b9dd4..ddc281fa 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedSort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedSort.java @@ -1,9 +1,8 @@ /* * 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; @@ -31,7 +30,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeDirection") @@ -39,7 +37,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") @@ -105,7 +102,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +111,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -145,7 +140,7 @@ public class GetRecentlyAddedSort { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedSort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -173,7 +168,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetRecentlyAddedSort withActiveDirection(GetRecentlyAddedActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -183,7 +177,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetRecentlyAddedSort withActiveDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -193,7 +186,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetRecentlyAddedSort withDefaultDirection(GetRecentlyAddedDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -203,7 +195,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public GetRecentlyAddedSort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -246,6 +237,7 @@ public class GetRecentlyAddedSort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -309,7 +301,7 @@ public class GetRecentlyAddedSort { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -341,7 +333,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(GetRecentlyAddedActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -351,7 +342,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -361,7 +351,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(GetRecentlyAddedDefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -371,7 +360,6 @@ public class GetRecentlyAddedSort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -421,7 +409,8 @@ public class GetRecentlyAddedSort { } if (defaultDirection == null) { defaultDirection = _SINGLETON_VALUE_DefaultDirection.value(); - } return new GetRecentlyAddedSort( + } + return new GetRecentlyAddedSort( default_, active, activeDirection, @@ -445,4 +434,3 @@ public class GetRecentlyAddedSort { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedType.java index b0a2f6d9..b3996cc7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRecentlyAddedType.java @@ -1,9 +1,8 @@ /* * 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; @@ -129,7 +128,7 @@ public class GetRecentlyAddedType { public final static Builder builder() { return new Builder(); - } + } public GetRecentlyAddedType withKey(String key) { Utils.checkNotNull(key, "key"); @@ -202,6 +201,7 @@ public class GetRecentlyAddedType { this.field = field; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -265,7 +265,7 @@ public class GetRecentlyAddedType { private Optional> sort = Optional.empty(); - private Optional> field = Optional.empty(); + private Optional> field = Optional.empty(); private Builder() { // force use of static builder() method @@ -356,4 +356,3 @@ public class GetRecentlyAddedType { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java index eb43b396..71618eb1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -26,7 +25,6 @@ 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; @@ -58,7 +56,6 @@ public class GetRefreshLibraryMetadataRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -67,7 +64,7 @@ public class GetRefreshLibraryMetadataRequest { public final static Builder builder() { return new Builder(); - } + } /** * Force the refresh even if the library is already being refreshed. @@ -90,13 +87,13 @@ public class GetRefreshLibraryMetadataRequest { /** * 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; } + @Override public boolean equals(java.lang.Object o) { @@ -130,7 +127,7 @@ public class GetRefreshLibraryMetadataRequest { private Optional force = Optional.empty(); - private Integer sectionKey; + private Integer sectionKey; private Builder() { // force use of static builder() method @@ -157,7 +154,6 @@ public class GetRefreshLibraryMetadataRequest { /** * 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"); @@ -172,4 +168,3 @@ public class GetRefreshLibraryMetadataRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java index 9a59dbfd..7673993a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java index 08c389cd..2fa4f37f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetRefreshLibraryMetadataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetRefreshLibraryMetadataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetRefreshLibraryMetadataResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetRefreshLibraryMetadataResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetRefreshLibraryMetadataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java index 57d28e9a..88a7a4c0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -143,7 +142,7 @@ public class GetResizedPhotoRequest { public final static Builder builder() { return new Builder(); - } + } /** * The width for the resized photo @@ -207,6 +206,7 @@ public class GetResizedPhotoRequest { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -265,7 +265,7 @@ public class GetResizedPhotoRequest { private Upscale upscale; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -337,7 +337,8 @@ public class GetResizedPhotoRequest { public GetResizedPhotoRequest build() { if (opacity == null) { opacity = _SINGLETON_VALUE_Opacity.value(); - } return new GetResizedPhotoRequest( + } + return new GetResizedPhotoRequest( width, height, opacity, @@ -354,4 +355,3 @@ public class GetResizedPhotoRequest { new TypeReference() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java index bc5b65f0..0e46b97b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetResizedPhotoRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java index c2da309a..9ac709fd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResizedPhotoResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetResizedPhotoResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetResizedPhotoResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetResizedPhotoResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetResizedPhotoResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java index 089f276d..f3e64980 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetResourcesStatisticsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetResourcesStatisticsMediaContainer { this.statisticsResources = statisticsResources; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetResourcesStatisticsMediaContainer { private Optional size = Optional.empty(); - private Optional> statisticsResources = Optional.empty(); + private Optional> statisticsResources = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetResourcesStatisticsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java index 3c213482..316f880d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,7 +18,6 @@ public class GetResourcesStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timespan") private Optional timespan; @@ -38,7 +36,6 @@ public class GetResourcesStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @JsonIgnore public Optional timespan() { @@ -47,12 +44,11 @@ public class GetResourcesStatisticsRequest { public final static Builder builder() { return new Builder(); - } + } /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetResourcesStatisticsRequest withTimespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -63,13 +59,13 @@ public class GetResourcesStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetResourcesStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -98,7 +94,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 @@ -107,7 +103,6 @@ public class GetResourcesStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -118,7 +113,6 @@ public class GetResourcesStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -132,4 +126,3 @@ public class GetResourcesStatisticsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java index 60bcfd7f..91381431 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Long; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java index af766aac..0b2d3954 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetResourcesStatisticsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetResourcesStatisticsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetResourcesStatisticsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetResourcesStatisticsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java index 5b43852e..5ba2a978 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetResourcesStatisticsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetResourcesStatisticsResponseBody - Resource Statistics - */ +/** + * GetResourcesStatisticsResponseBody + * + *

Resource Statistics + */ public class GetResourcesStatisticsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetResourcesStatisticsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetResourcesStatisticsResponseBody withMediaContainer(GetResourcesStatisticsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetResourcesStatisticsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetResourcesStatisticsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetResourcesStatisticsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCollection.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCollection.java index e9ca5796..10ba6748 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCollection.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCollection.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesCollection { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesCollection withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesCollection { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesCollection { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesCollection { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCountry.java index f47c1977..ede34d17 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesCountry { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesCountry { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesDirector.java index 22c7d8da..729e735f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesDirector { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesDirector { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEnableCreditsMarkerGeneration.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEnableCreditsMarkerGeneration.java index 69e587a8..674af54d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEnableCreditsMarkerGeneration.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEnableCreditsMarkerGeneration.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). + * GetSearchAllLibrariesEnableCreditsMarkerGeneration + * + *

Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). */ public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration { LibraryDefault("-1"), @@ -35,3 +37,4 @@ public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEpisodeSort.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEpisodeSort.java index 3108ef3f..7959b3cb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEpisodeSort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesEpisodeSort.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). + * GetSearchAllLibrariesEpisodeSort + * + *

Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). */ public enum GetSearchAllLibrariesEpisodeSort { LibraryDefault("-1"), @@ -36,3 +38,4 @@ public enum GetSearchAllLibrariesEpisodeSort { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesFlattenSeasons.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesFlattenSeasons.java index 12ac5b2d..0ca5935a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesFlattenSeasons.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesFlattenSeasons.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). + * GetSearchAllLibrariesFlattenSeasons + * + *

Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). */ public enum GetSearchAllLibrariesFlattenSeasons { LibraryDefault("-1"), @@ -36,3 +38,4 @@ public enum GetSearchAllLibrariesFlattenSeasons { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesGenre.java index a86e532e..67d2075b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesGenre { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesGenre { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesHasThumbnail.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesHasThumbnail.java index f983aaf5..f7ccbd73 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesHasThumbnail.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesHasThumbnail.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetSearchAllLibrariesHasThumbnail { False("0"), True("1"); @@ -32,3 +32,4 @@ public enum GetSearchAllLibrariesHasThumbnail { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesImage.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesImage.java index b3ca7167..a3f71db5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesImage.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesImage.java @@ -1,9 +1,8 @@ /* * 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; @@ -53,7 +52,7 @@ public class GetSearchAllLibrariesImage { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesImage withAlt(String alt) { Utils.checkNotNull(alt, "alt"); @@ -72,6 +71,7 @@ public class GetSearchAllLibrariesImage { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -110,7 +110,7 @@ public class GetSearchAllLibrariesImage { private GetSearchAllLibrariesLibraryType type; - private String url; + private String url; private Builder() { // force use of static builder() method @@ -142,4 +142,3 @@ public class GetSearchAllLibrariesImage { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLibraryType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLibraryType.java index fddde648..ee49a5b9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLibraryType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLibraryType.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetSearchAllLibrariesLibraryType { COVER_POSTER("coverPoster"), BACKGROUND("background"), @@ -34,3 +34,4 @@ public enum GetSearchAllLibrariesLibraryType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLocation.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLocation.java index bbfe0755..7158d5cf 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLocation.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesLocation.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesLocation { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesLocation withPath(String path) { Utils.checkNotNull(path, "path"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesLocation { this.path = path; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesLocation { public final static class Builder { - private Optional path = Optional.empty(); + private Optional path = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesLocation { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMedia.java index 94747460..065a5bf7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -251,7 +250,7 @@ public class GetSearchAllLibrariesMedia { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesMedia withId(int id) { Utils.checkNotNull(id, "id"); @@ -450,6 +449,7 @@ public class GetSearchAllLibrariesMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -563,7 +563,7 @@ public class GetSearchAllLibrariesMedia { private Optional has64bitOffsets = Optional.empty(); - private List part; + private List part; private Builder() { // force use of static builder() method @@ -770,7 +770,8 @@ public class GetSearchAllLibrariesMedia { public GetSearchAllLibrariesMedia build() { if (optimizedForStreaming == null) { optimizedForStreaming = _SINGLETON_VALUE_OptimizedForStreaming.value(); - } return new GetSearchAllLibrariesMedia( + } + return new GetSearchAllLibrariesMedia( id, duration, bitrate, @@ -798,4 +799,3 @@ public class GetSearchAllLibrariesMedia { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaContainer.java index 7e220626..456dbe02 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -44,7 +43,7 @@ public class GetSearchAllLibrariesMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -57,6 +56,7 @@ public class GetSearchAllLibrariesMediaContainer { this.searchResult = searchResult; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -90,7 +90,7 @@ public class GetSearchAllLibrariesMediaContainer { private Double size; - private List searchResult; + private List searchResult; private Builder() { // force use of static builder() method @@ -115,4 +115,3 @@ public class GetSearchAllLibrariesMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaGuid.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaGuid.java index 951ee8e5..654d8546 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaGuid.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMediaGuid.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,7 +16,6 @@ public class GetSearchAllLibrariesMediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ @JsonProperty("id") private String id; @@ -32,7 +30,6 @@ public class GetSearchAllLibrariesMediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ @JsonIgnore public String id() { @@ -41,18 +38,18 @@ public class GetSearchAllLibrariesMediaGuid { public final static Builder builder() { return new Builder(); - } + } /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ public GetSearchAllLibrariesMediaGuid withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -81,7 +78,7 @@ public class GetSearchAllLibrariesMediaGuid { public final static class Builder { - private String id; + private String id; private Builder() { // force use of static builder() method @@ -90,7 +87,6 @@ public class GetSearchAllLibrariesMediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -104,4 +100,3 @@ public class GetSearchAllLibrariesMediaGuid { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetaDataRating.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetaDataRating.java index 6599533e..f3d37e74 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetaDataRating.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetaDataRating.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class GetSearchAllLibrariesMetaDataRating { public final static Builder builder() { return new Builder(); - } + } /** * A URI or path to the rating image. @@ -100,6 +99,7 @@ public class GetSearchAllLibrariesMetaDataRating { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class GetSearchAllLibrariesMetaDataRating { private Float value; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class GetSearchAllLibrariesMetaDataRating { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetadata.java index ca435e70..04618401 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -27,7 +26,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ @JsonProperty("ratingKey") private String ratingKey; @@ -60,7 +58,6 @@ public class GetSearchAllLibrariesMetadata { /** * The type of media content - * */ @JsonProperty("type") private GetSearchAllLibrariesType type; @@ -127,7 +124,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("showOrdering") @@ -220,7 +216,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Media") @@ -256,7 +251,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("Guid") @@ -328,7 +322,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentRatingKey") @@ -612,7 +605,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ @JsonIgnore public String ratingKey() { @@ -656,7 +648,6 @@ public class GetSearchAllLibrariesMetadata { /** * The type of media content - * */ @JsonIgnore public GetSearchAllLibrariesType type() { @@ -742,7 +733,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -858,7 +848,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -910,7 +899,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -1003,7 +991,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ @JsonIgnore public Optional parentRatingKey() { @@ -1052,12 +1039,11 @@ public class GetSearchAllLibrariesMetadata { public final static Builder builder() { return new Builder(); - } + } /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ public GetSearchAllLibrariesMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -1139,7 +1125,6 @@ public class GetSearchAllLibrariesMetadata { /** * The type of media content - * */ public GetSearchAllLibrariesMetadata withType(GetSearchAllLibrariesType type) { Utils.checkNotNull(type, "type"); @@ -1304,7 +1289,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -1319,7 +1303,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public GetSearchAllLibrariesMetadata withShowOrdering(Optional showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -1572,7 +1555,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public GetSearchAllLibrariesMetadata withMedia(List media) { Utils.checkNotNull(media, "media"); @@ -1582,7 +1564,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public GetSearchAllLibrariesMetadata withMedia(Optional> media) { Utils.checkNotNull(media, "media"); @@ -1676,7 +1657,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public GetSearchAllLibrariesMetadata withMediaGuid(List mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -1686,7 +1666,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public GetSearchAllLibrariesMetadata withMediaGuid(Optional> mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -1888,7 +1867,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ public GetSearchAllLibrariesMetadata withParentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -1898,7 +1876,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ public GetSearchAllLibrariesMetadata withParentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -2001,6 +1978,7 @@ public class GetSearchAllLibrariesMetadata { this.parentTheme = parentTheme; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -2404,7 +2382,7 @@ public class GetSearchAllLibrariesMetadata { private Optional parentThumb = Optional.empty(); - private Optional parentTheme = Optional.empty(); + private Optional parentTheme = Optional.empty(); private Builder() { // force use of static builder() method @@ -2413,7 +2391,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key (Media ID) of this media item. * Note: This is always an integer, but is represented as a string in the API. - * */ public Builder ratingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -2495,7 +2472,6 @@ public class GetSearchAllLibrariesMetadata { /** * The type of media content - * */ public Builder type(GetSearchAllLibrariesType type) { Utils.checkNotNull(type, "type"); @@ -2660,7 +2636,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -2675,7 +2650,6 @@ public class GetSearchAllLibrariesMetadata { * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public Builder showOrdering(Optional showOrdering) { Utils.checkNotNull(showOrdering, "showOrdering"); @@ -2928,7 +2902,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public Builder media(List media) { Utils.checkNotNull(media, "media"); @@ -2938,7 +2911,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Media object is only included when type query is `4` or higher. - * */ public Builder media(Optional> media) { Utils.checkNotNull(media, "media"); @@ -3032,7 +3004,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public Builder mediaGuid(List mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -3042,7 +3013,6 @@ public class GetSearchAllLibrariesMetadata { /** * The Guid object is only included in the response if the `includeGuids` parameter is set to `1`. - * */ public Builder mediaGuid(Optional> mediaGuid) { Utils.checkNotNull(mediaGuid, "mediaGuid"); @@ -3244,7 +3214,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ public Builder parentRatingKey(String parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -3254,7 +3223,6 @@ public class GetSearchAllLibrariesMetadata { /** * The rating key of the parent item. - * */ public Builder parentRatingKey(Optional parentRatingKey) { Utils.checkNotNull(parentRatingKey, "parentRatingKey"); @@ -3439,4 +3407,3 @@ public class GetSearchAllLibrariesMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesOptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesOptimizedForStreaming.java index 06a55b0d..e7ecb736 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesOptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesOptimizedForStreaming.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum GetSearchAllLibrariesOptimizedForStreaming { Disable(0), Enable(1); @@ -31,3 +31,4 @@ public enum GetSearchAllLibrariesOptimizedForStreaming { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesPart.java index 1d0bb7a6..948557e6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,6 @@ public class GetSearchAllLibrariesPart { /** * The container format of the media file. - * */ @JsonProperty("container") private String container; @@ -154,7 +152,6 @@ public class GetSearchAllLibrariesPart { /** * The container format of the media file. - * */ @JsonIgnore public String container() { @@ -200,7 +197,7 @@ public class GetSearchAllLibrariesPart { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesPart withId(int id) { Utils.checkNotNull(id, "id"); @@ -240,7 +237,6 @@ public class GetSearchAllLibrariesPart { /** * The container format of the media file. - * */ public GetSearchAllLibrariesPart withContainer(String container) { Utils.checkNotNull(container, "container"); @@ -331,6 +327,7 @@ public class GetSearchAllLibrariesPart { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -419,7 +416,7 @@ public class GetSearchAllLibrariesPart { private Optional hasThumbnail; - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -463,7 +460,6 @@ public class GetSearchAllLibrariesPart { /** * The container format of the media file. - * */ public Builder container(String container) { Utils.checkNotNull(container, "container"); @@ -558,7 +554,8 @@ public class GetSearchAllLibrariesPart { public GetSearchAllLibrariesPart build() { if (hasThumbnail == null) { hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value(); - } return new GetSearchAllLibrariesPart( + } + return new GetSearchAllLibrariesPart( id, key, duration, @@ -581,4 +578,3 @@ public class GetSearchAllLibrariesPart { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeCollections.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeCollections.java index 37646353..87cb1e13 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeCollections.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeCollections.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesQueryParamIncludeCollections - Whether to include collections in the search results. + * GetSearchAllLibrariesQueryParamIncludeCollections + * + *

Whether to include collections in the search results. */ public enum GetSearchAllLibrariesQueryParamIncludeCollections { Disable(0), @@ -34,3 +36,4 @@ public enum GetSearchAllLibrariesQueryParamIncludeCollections { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeExternalMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeExternalMedia.java index 6f0af2f3..28260b50 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeExternalMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesQueryParamIncludeExternalMedia.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesQueryParamIncludeExternalMedia - Whether to include external media in the search results. + * GetSearchAllLibrariesQueryParamIncludeExternalMedia + * + *

Whether to include external media in the search results. */ public enum GetSearchAllLibrariesQueryParamIncludeExternalMedia { Disable(0), @@ -34,3 +36,4 @@ public enum GetSearchAllLibrariesQueryParamIncludeExternalMedia { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequest.java index 8cad1b24..b556c75c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -40,7 +39,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=false,name=searchTypes") private Optional> searchTypes; @@ -111,7 +109,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -139,7 +136,7 @@ public class GetSearchAllLibrariesRequest { public final static Builder builder() { return new Builder(); - } + } /** * The search query term. @@ -179,7 +176,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ public GetSearchAllLibrariesRequest withSearchTypes(List searchTypes) { Utils.checkNotNull(searchTypes, "searchTypes"); @@ -189,7 +185,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ public GetSearchAllLibrariesRequest withSearchTypes(Optional> searchTypes) { Utils.checkNotNull(searchTypes, "searchTypes"); @@ -232,6 +227,7 @@ public class GetSearchAllLibrariesRequest { this.includeExternalMedia = includeExternalMedia; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -285,7 +281,7 @@ public class GetSearchAllLibrariesRequest { private Optional includeCollections; - private Optional includeExternalMedia; + private Optional includeExternalMedia; private Builder() { // force use of static builder() method @@ -329,7 +325,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ public Builder searchTypes(List searchTypes) { Utils.checkNotNull(searchTypes, "searchTypes"); @@ -339,7 +334,6 @@ public class GetSearchAllLibrariesRequest { /** * A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv. - * */ public Builder searchTypes(Optional> searchTypes) { Utils.checkNotNull(searchTypes, "searchTypes"); @@ -389,7 +383,8 @@ public class GetSearchAllLibrariesRequest { } if (includeExternalMedia == null) { includeExternalMedia = _SINGLETON_VALUE_IncludeExternalMedia.value(); - } return new GetSearchAllLibrariesRequest( + } + return new GetSearchAllLibrariesRequest( query, clientID, limit, @@ -411,4 +406,3 @@ public class GetSearchAllLibrariesRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequestBuilder.java index aa22fcdb..c898b10f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetSearchAllLibrariesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponse.java index 8b926739..bbd07b27 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetSearchAllLibrariesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetSearchAllLibrariesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetSearchAllLibrariesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetSearchAllLibrariesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponseBody.java index ca63d8e1..4ddabfde 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -11,10 +10,12 @@ import dev.plexapi.sdk.utils.Utils; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * GetSearchAllLibrariesResponseBody - The libraries available on the Server - */ +/** + * GetSearchAllLibrariesResponseBody + * + *

The libraries available on the Server + */ public class GetSearchAllLibrariesResponseBody { @JsonProperty("MediaContainer") @@ -34,13 +35,14 @@ public class GetSearchAllLibrariesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesResponseBody withMediaContainer(GetSearchAllLibrariesMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -69,7 +71,7 @@ public class GetSearchAllLibrariesResponseBody { public final static class Builder { - private GetSearchAllLibrariesMediaContainer mediaContainer; + private GetSearchAllLibrariesMediaContainer mediaContainer; private Builder() { // force use of static builder() method @@ -87,4 +89,3 @@ public class GetSearchAllLibrariesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRole.java index 35681f75..8748c8e4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class GetSearchAllLibrariesRole { public final static Builder builder() { return new Builder(); - } + } /** * The ID of the tag or actor. @@ -245,6 +244,7 @@ public class GetSearchAllLibrariesRole { this.role = role; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -298,7 +298,7 @@ public class GetSearchAllLibrariesRole { private Optional tagKey = Optional.empty(); - private Optional role = Optional.empty(); + private Optional role = Optional.empty(); private Builder() { // force use of static builder() method @@ -423,4 +423,3 @@ public class GetSearchAllLibrariesRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesShowOrdering.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesShowOrdering.java index 3281017e..0c5cacf2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesShowOrdering.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesShowOrdering.java @@ -1,21 +1,22 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show. + * GetSearchAllLibrariesShowOrdering + * + *

Setting that indicates the episode ordering for the show. * None = Library default, * tmdbAiring = The Movie Database (Aired), * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public enum GetSearchAllLibrariesShowOrdering { None("None"), @@ -44,3 +45,4 @@ public enum GetSearchAllLibrariesShowOrdering { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesStream.java index f5a6050e..a36928b6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesStream.java @@ -1,9 +1,8 @@ /* * 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; @@ -690,7 +689,7 @@ public class GetSearchAllLibrariesStream { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesStream withId(long id) { Utils.checkNotNull(id, "id"); @@ -1318,6 +1317,7 @@ public class GetSearchAllLibrariesStream { this.canAutoSync = canAutoSync; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1531,7 +1531,7 @@ public class GetSearchAllLibrariesStream { private Optional title = Optional.empty(); - private Optional canAutoSync = Optional.empty(); + private Optional canAutoSync = Optional.empty(); private Builder() { // force use of static builder() method @@ -2207,4 +2207,3 @@ public class GetSearchAllLibrariesStream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesType.java index 717f3770..0d5ad581 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesType.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetSearchAllLibrariesType - The type of media content + * GetSearchAllLibrariesType * + *

The type of media content */ public enum GetSearchAllLibrariesType { Movie("movie"), @@ -40,3 +41,4 @@ public enum GetSearchAllLibrariesType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesUltraBlurColors.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesUltraBlurColors.java index d3fb4e34..6acc29be 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesUltraBlurColors.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesUltraBlurColors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetSearchAllLibrariesUltraBlurColors { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesUltraBlurColors withTopLeft(String topLeft) { Utils.checkNotNull(topLeft, "topLeft"); @@ -89,6 +88,7 @@ public class GetSearchAllLibrariesUltraBlurColors { this.bottomLeft = bottomLeft; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class GetSearchAllLibrariesUltraBlurColors { private String bottomRight; - private String bottomLeft; + private String bottomLeft; private Builder() { // force use of static builder() method @@ -171,4 +171,3 @@ public class GetSearchAllLibrariesUltraBlurColors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesWriter.java index 0ec9d7b2..a0d53308 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchAllLibrariesWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchAllLibrariesWriter { public final static Builder builder() { return new Builder(); - } + } public GetSearchAllLibrariesWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchAllLibrariesWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,7 @@ public class GetSearchAllLibrariesWriter { public final static class Builder { - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -104,4 +104,3 @@ public class GetSearchAllLibrariesWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java index 611ee3fe..1f3de99f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -188,7 +187,7 @@ public class GetSearchLibraryMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -345,6 +344,7 @@ public class GetSearchLibraryMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -433,7 +433,7 @@ public class GetSearchLibraryMediaContainer { private Optional viewMode = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -613,4 +613,3 @@ public class GetSearchLibraryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java index b71966ea..eec294f7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -268,7 +267,7 @@ public class GetSearchLibraryMetadata { public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -509,6 +508,7 @@ public class GetSearchLibraryMetadata { this.updatedAt = updatedAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -632,7 +632,7 @@ public class GetSearchLibraryMetadata { private Optional addedAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -903,4 +903,3 @@ public class GetSearchLibraryMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryQueryParamType.java index acbcb6d4..287e4ef0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetSearchLibraryQueryParamType - The type of media to retrieve or filter by. + * GetSearchLibraryQueryParamType + * + *

The type of media to retrieve or filter by. * 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 GetSearchLibraryQueryParamType { Movie(1L), @@ -45,3 +46,4 @@ public enum GetSearchLibraryQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java index 41e3fd1a..6a609ca8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ 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; @@ -30,7 +28,6 @@ public class GetSearchLibraryRequest { * 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 GetSearchLibraryQueryParamType type; @@ -48,7 +45,6 @@ public class GetSearchLibraryRequest { /** * The unique key of the Plex library. * Note: This is unique in the context of the Plex server. - * */ @JsonIgnore public int sectionKey() { @@ -62,7 +58,6 @@ public class GetSearchLibraryRequest { * 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 GetSearchLibraryQueryParamType type() { @@ -71,12 +66,11 @@ public class GetSearchLibraryRequest { 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"); @@ -91,13 +85,13 @@ public class GetSearchLibraryRequest { * 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(GetSearchLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -131,7 +125,7 @@ public class GetSearchLibraryRequest { private Integer sectionKey; - private GetSearchLibraryQueryParamType type; + private GetSearchLibraryQueryParamType type; private Builder() { // force use of static builder() method @@ -140,7 +134,6 @@ public class GetSearchLibraryRequest { /** * 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"); @@ -155,7 +148,6 @@ public class GetSearchLibraryRequest { * 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(GetSearchLibraryQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -170,4 +162,3 @@ public class GetSearchLibraryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java index ed52545f..f3acea03 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Integer; public class GetSearchLibraryRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java index d052941d..7aa9298c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetSearchLibraryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetSearchLibraryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetSearchLibraryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetSearchLibraryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java index 5c988344..13d0bf4c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchLibraryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ 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 - */ +/** + * GetSearchLibraryResponseBody + * + *

The contents of the library by section and type + */ public class GetSearchLibraryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetSearchLibraryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetSearchLibraryResponseBody withMediaContainer(GetSearchLibraryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetSearchLibraryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetSearchLibraryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetSearchLibraryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java index 55b7e4b8..23daa3e4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchResultsCountry { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsCountry withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchResultsCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetSearchResultsCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java index 9be40682..29633b4d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsDirector.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchResultsDirector { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsDirector withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchResultsDirector { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetSearchResultsDirector { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java index 4ee15e67..91ac6093 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchResultsGenre { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsGenre withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchResultsGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetSearchResultsGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java index ed595532..705fdef9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -211,7 +210,7 @@ public class GetSearchResultsMedia { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsMedia withId(double id) { Utils.checkNotNull(id, "id"); @@ -392,6 +391,7 @@ public class GetSearchResultsMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -490,7 +490,7 @@ public class GetSearchResultsMedia { private Optional videoProfile = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -696,4 +696,3 @@ public class GetSearchResultsMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java index a6afbbf4..b50edf17 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -104,7 +103,7 @@ public class GetSearchResultsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -177,6 +176,7 @@ public class GetSearchResultsMediaContainer { this.provider = provider; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -230,7 +230,7 @@ public class GetSearchResultsMediaContainer { private Optional> metadata = Optional.empty(); - private Optional> provider = Optional.empty(); + private Optional> provider = Optional.empty(); private Builder() { // force use of static builder() method @@ -319,4 +319,3 @@ public class GetSearchResultsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java index 28cade11..009531a4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -446,7 +445,7 @@ public class GetSearchResultsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsMetadata withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); @@ -855,6 +854,7 @@ public class GetSearchResultsMetadata { this.role = role; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1048,7 +1048,7 @@ public class GetSearchResultsMetadata { private Optional> country = Optional.empty(); - private Optional> role = Optional.empty(); + private Optional> role = Optional.empty(); private Builder() { // force use of static builder() method @@ -1501,4 +1501,3 @@ public class GetSearchResultsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java index 47943605..6454eff8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -124,7 +123,7 @@ public class GetSearchResultsPart { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsPart withId(double id) { Utils.checkNotNull(id, "id"); @@ -221,6 +220,7 @@ public class GetSearchResultsPart { this.videoProfile = videoProfile; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -284,7 +284,7 @@ public class GetSearchResultsPart { private Optional container = Optional.empty(); - private Optional videoProfile = Optional.empty(); + private Optional videoProfile = Optional.empty(); private Builder() { // force use of static builder() method @@ -399,4 +399,3 @@ public class GetSearchResultsPart { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java index b87135b8..e0d5d75c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetSearchResultsRequest { public final static Builder builder() { return new Builder(); - } + } /** * The search query string to use @@ -47,6 +46,7 @@ public class GetSearchResultsRequest { this.query = query; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetSearchResultsRequest { public final static class Builder { - private String query; + private String query; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetSearchResultsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java index 873bddf6..93870f08 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class GetSearchResultsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java index ae1f22e1..0836f584 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetSearchResultsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetSearchResultsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetSearchResultsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetSearchResultsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java index 0d0f4cb1..daf6dd69 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetSearchResultsResponseBody - Search Results - */ +/** + * GetSearchResultsResponseBody + * + *

Search Results + */ public class GetSearchResultsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetSearchResultsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsResponseBody withMediaContainer(GetSearchResultsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetSearchResultsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetSearchResultsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetSearchResultsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java index 5b89aa23..02e1e3e9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchResultsRole { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsRole withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchResultsRole { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetSearchResultsRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java index b19d136a..88fdd0de 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSearchResultsWriter.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetSearchResultsWriter { public final static Builder builder() { return new Builder(); - } + } public GetSearchResultsWriter withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -52,6 +51,7 @@ public class GetSearchResultsWriter { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetSearchResultsWriter { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java index 1b08cb2a..5594456a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetServerActivitiesMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetServerActivitiesMediaContainer { this.activity = activity; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetServerActivitiesMediaContainer { private Optional size = Optional.empty(); - private Optional> activity = Optional.empty(); + private Optional> activity = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetServerActivitiesMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java index b8d6bd4d..1af360a4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetServerActivitiesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java index ec8fe075..9401974c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetServerActivitiesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetServerActivitiesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetServerActivitiesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetServerActivitiesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java index a2a7e67b..58309439 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerActivitiesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetServerActivitiesResponseBody - The Server Activities - */ +/** + * GetServerActivitiesResponseBody + * + *

The Server Activities + */ public class GetServerActivitiesResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetServerActivitiesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetServerActivitiesResponseBody withMediaContainer(GetServerActivitiesMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetServerActivitiesResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetServerActivitiesResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetServerActivitiesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java index 05ef6d64..b5252f23 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetServerCapabilitiesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java index d75c6b81..1e6c9725 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetServerCapabilitiesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetServerCapabilitiesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetServerCapabilitiesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetServerCapabilitiesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java index 69597488..890ad99d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerCapabilitiesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetServerCapabilitiesResponseBody - The Server Capabilities - */ +/** + * GetServerCapabilitiesResponseBody + * + *

The Server Capabilities + */ public class GetServerCapabilitiesResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetServerCapabilitiesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetServerCapabilitiesResponseBody withMediaContainer(MediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetServerCapabilitiesResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetServerCapabilitiesResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetServerCapabilitiesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java index cd2868e1..7f255207 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -77,7 +76,7 @@ public class GetServerIdentityMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetServerIdentityMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -126,6 +125,7 @@ public class GetServerIdentityMediaContainer { this.version = version; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -169,7 +169,7 @@ public class GetServerIdentityMediaContainer { private Optional machineIdentifier = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); private Builder() { // force use of static builder() method @@ -232,4 +232,3 @@ public class GetServerIdentityMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java index cdc402de..2dddd662 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetServerIdentityRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java index 6c3b0f1c..fe36908a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetServerIdentityResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetServerIdentityResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetServerIdentityResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetServerIdentityResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java index 3d92fc92..32ed09ac 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerIdentityResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetServerIdentityResponseBody - The Server Identity information - */ +/** + * GetServerIdentityResponseBody + * + *

The Server Identity information + */ public class GetServerIdentityResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetServerIdentityResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetServerIdentityResponseBody withMediaContainer(GetServerIdentityMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetServerIdentityResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetServerIdentityResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetServerIdentityResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java index 67517428..c9fc921a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetServerListMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetServerListMediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetServerListMediaContainer { this.server = server; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetServerListMediaContainer { private Optional size = Optional.empty(); - private Optional> server = Optional.empty(); + private Optional> server = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetServerListMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java index 9f6f4f6f..f43bc7eb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetServerListRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java index b79383e8..4ae377c6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetServerListResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetServerListResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetServerListResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetServerListResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java index 569aedd3..54888852 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetServerListResponseBody - List of Servers - */ +/** + * GetServerListResponseBody + * + *

List of Servers + */ public class GetServerListResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetServerListResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetServerListResponseBody withMediaContainer(GetServerListMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetServerListResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetServerListResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetServerListResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java index 02f3290b..e6dc5cac 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerListServer.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetServerListServer { public final static Builder builder() { return new Builder(); - } + } public GetServerListServer withName(String name) { Utils.checkNotNull(name, "name"); @@ -173,6 +172,7 @@ public class GetServerListServer { this.version = version; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -226,7 +226,7 @@ public class GetServerListServer { private Optional machineIdentifier = Optional.empty(); - private Optional version = Optional.empty(); + private Optional version = Optional.empty(); private Builder() { // force use of static builder() method @@ -315,4 +315,3 @@ public class GetServerListServer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java index 5828eae5..586ae9a9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetServerPreferencesMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetServerPreferencesMediaContainer { this.setting = setting; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetServerPreferencesMediaContainer { private Optional size = Optional.empty(); - private Optional> setting = Optional.empty(); + private Optional> setting = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetServerPreferencesMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java index 0671e581..75a2929a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetServerPreferencesRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java index cc7db182..6ff0348c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetServerPreferencesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetServerPreferencesResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetServerPreferencesResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetServerPreferencesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java index fc870ff3..ff1c913a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerPreferencesResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetServerPreferencesResponseBody - Server Preferences - */ +/** + * GetServerPreferencesResponseBody + * + *

Server Preferences + */ public class GetServerPreferencesResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetServerPreferencesResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetServerPreferencesResponseBody withMediaContainer(GetServerPreferencesMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetServerPreferencesResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetServerPreferencesResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetServerPreferencesResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java index ff6ed1b7..32359c7a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -27,7 +26,6 @@ public class GetServerResourcesRequest { /** * 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; @@ -77,7 +75,6 @@ public class GetServerResourcesRequest { /** * Include Relay addresses in the results * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -104,7 +101,7 @@ public class GetServerResourcesRequest { public final static Builder builder() { return new Builder(); - } + } /** * Include Https entries in the results @@ -127,7 +124,6 @@ public class GetServerResourcesRequest { /** * 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"); @@ -138,7 +134,6 @@ public class GetServerResourcesRequest { /** * 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"); @@ -172,6 +167,7 @@ public class GetServerResourcesRequest { this.clientID = clientID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -215,7 +211,7 @@ public class GetServerResourcesRequest { private Optional includeIPv6; - private String clientID; + private String clientID; private Builder() { // force use of static builder() method @@ -242,7 +238,6 @@ public class GetServerResourcesRequest { /** * 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"); @@ -253,7 +248,6 @@ public class GetServerResourcesRequest { /** * 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"); @@ -297,7 +291,8 @@ public class GetServerResourcesRequest { } if (includeIPv6 == null) { includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value(); - } return new GetServerResourcesRequest( + } + return new GetServerResourcesRequest( includeHttps, includeRelay, includeIPv6, @@ -323,4 +318,3 @@ public class GetServerResourcesRequest { 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 index 7f133696..032967e8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesRequestBuilder.java @@ -1,12 +1,12 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java index 98cfc636..443c61b7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetServerResourcesResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -98,7 +97,7 @@ public class GetServerResourcesResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -144,6 +143,7 @@ public class GetServerResourcesResponse implements Response { this.plexDevices = plexDevices; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -187,7 +187,7 @@ public class GetServerResourcesResponse implements Response { private HttpResponse rawResponse; - private Optional> plexDevices = Optional.empty(); + private Optional> plexDevices = Optional.empty(); private Builder() { // force use of static builder() method @@ -247,4 +247,3 @@ public class GetServerResourcesResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java index 184d010c..1626e59f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetSessionHistoryMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetSessionHistoryMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetSessionHistoryMediaContainer { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetSessionHistoryMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java index ad72cce3..64563e64 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -257,7 +256,7 @@ public class GetSessionHistoryMetadata { public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryMetadata withHistoryKey(String historyKey) { Utils.checkNotNull(historyKey, "historyKey"); @@ -486,6 +485,7 @@ public class GetSessionHistoryMetadata { this.deviceID = deviceID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -604,7 +604,7 @@ public class GetSessionHistoryMetadata { private Optional accountID = Optional.empty(); - private Optional deviceID = Optional.empty(); + private Optional deviceID = Optional.empty(); private Builder() { // force use of static builder() method @@ -862,4 +862,3 @@ public class GetSessionHistoryMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java index 9186bcec..ee252362 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,14 +18,12 @@ public class GetSessionHistoryRequest { /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") private Optional sort; /** * Filter results by those that are related to a specific users id - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=accountId") private Optional accountId; @@ -34,14 +31,12 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") private Optional filter; /** * Filters the results based on the id of a valid library section - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=librarySectionID") private Optional librarySectionID; @@ -68,7 +63,6 @@ public class GetSessionHistoryRequest { /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ @JsonIgnore public Optional sort() { @@ -77,7 +71,6 @@ public class GetSessionHistoryRequest { /** * Filter results by those that are related to a specific users id - * */ @JsonIgnore public Optional accountId() { @@ -87,7 +80,6 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -97,7 +89,6 @@ public class GetSessionHistoryRequest { /** * Filters the results based on the id of a valid library section - * */ @JsonIgnore public Optional librarySectionID() { @@ -106,11 +97,10 @@ public class GetSessionHistoryRequest { public final static Builder builder() { return new Builder(); - } + } /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ public GetSessionHistoryRequest withSort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -120,7 +110,6 @@ public class GetSessionHistoryRequest { /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ public GetSessionHistoryRequest withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -130,7 +119,6 @@ public class GetSessionHistoryRequest { /** * Filter results by those that are related to a specific users id - * */ public GetSessionHistoryRequest withAccountId(long accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -140,7 +128,6 @@ public class GetSessionHistoryRequest { /** * Filter results by those that are related to a specific users id - * */ public GetSessionHistoryRequest withAccountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -151,7 +138,6 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ public GetSessionHistoryRequest withFilter(QueryParamFilter filter) { Utils.checkNotNull(filter, "filter"); @@ -162,7 +148,6 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ public GetSessionHistoryRequest withFilter(Optional filter) { Utils.checkNotNull(filter, "filter"); @@ -172,7 +157,6 @@ public class GetSessionHistoryRequest { /** * Filters the results based on the id of a valid library section - * */ public GetSessionHistoryRequest withLibrarySectionID(long librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); @@ -182,13 +166,13 @@ public class GetSessionHistoryRequest { /** * Filters the results based on the id of a valid library section - * */ public GetSessionHistoryRequest withLibrarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); this.librarySectionID = librarySectionID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -232,7 +216,7 @@ public class GetSessionHistoryRequest { private Optional filter = Optional.empty(); - private Optional librarySectionID = Optional.empty(); + private Optional librarySectionID = Optional.empty(); private Builder() { // force use of static builder() method @@ -240,7 +224,6 @@ public class GetSessionHistoryRequest { /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ public Builder sort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -250,7 +233,6 @@ public class GetSessionHistoryRequest { /** * Sorts the results by the specified field followed by the direction (asc, desc) - * */ public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -260,7 +242,6 @@ public class GetSessionHistoryRequest { /** * Filter results by those that are related to a specific users id - * */ public Builder accountId(long accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -270,7 +251,6 @@ public class GetSessionHistoryRequest { /** * Filter results by those that are related to a specific users id - * */ public Builder accountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -281,7 +261,6 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ public Builder filter(QueryParamFilter filter) { Utils.checkNotNull(filter, "filter"); @@ -292,7 +271,6 @@ public class GetSessionHistoryRequest { /** * Filters content by field and direction/equality * (Unknown if viewedAt is the only supported column) - * */ public Builder filter(Optional filter) { Utils.checkNotNull(filter, "filter"); @@ -302,7 +280,6 @@ public class GetSessionHistoryRequest { /** * Filters the results based on the id of a valid library section - * */ public Builder librarySectionID(long librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); @@ -312,7 +289,6 @@ public class GetSessionHistoryRequest { /** * Filters the results based on the id of a valid library section - * */ public Builder librarySectionID(Optional librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); @@ -329,4 +305,3 @@ public class GetSessionHistoryRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java index e21a82ba..3bb622d1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Long; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java index de95308c..3f6b65f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetSessionHistoryResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetSessionHistoryResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetSessionHistoryResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetSessionHistoryResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java index 2e2e692d..067fbd82 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionHistoryResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetSessionHistoryResponseBody - List of Plex Sessions - */ +/** + * GetSessionHistoryResponseBody + * + *

List of Plex Sessions + */ public class GetSessionHistoryResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetSessionHistoryResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetSessionHistoryResponseBody withMediaContainer(GetSessionHistoryMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetSessionHistoryResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetSessionHistoryResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetSessionHistoryResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java index b332d67a..45d10943 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -128,7 +127,7 @@ public class GetSessionsMedia { public final static Builder builder() { return new Builder(); - } + } public GetSessionsMedia withAudioChannels(int audioChannels) { Utils.checkNotNull(audioChannels, "audioChannels"); @@ -225,6 +224,7 @@ public class GetSessionsMedia { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -288,7 +288,7 @@ public class GetSessionsMedia { private Optional selected = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -403,4 +403,3 @@ public class GetSessionsMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java index 836e47ca..3c0d8a03 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetSessionsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetSessionsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetSessionsMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetSessionsMediaContainer { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetSessionsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java index 8ad94f5f..b8188a30 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -496,7 +495,7 @@ public class GetSessionsMetadata { public final static Builder builder() { return new Builder(); - } + } public GetSessionsMetadata withAddedAt(int addedAt) { Utils.checkNotNull(addedAt, "addedAt"); @@ -959,6 +958,7 @@ public class GetSessionsMetadata { this.session = session; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1172,7 +1172,7 @@ public class GetSessionsMetadata { private Optional player = Optional.empty(); - private Optional session = Optional.empty(); + private Optional session = Optional.empty(); private Builder() { // force use of static builder() method @@ -1683,4 +1683,3 @@ public class GetSessionsMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java index 7ccc934f..30bd023c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsPart.java @@ -1,9 +1,8 @@ /* * 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; @@ -152,7 +151,7 @@ public class GetSessionsPart { public final static Builder builder() { return new Builder(); - } + } public GetSessionsPart withContainer(String container) { Utils.checkNotNull(container, "container"); @@ -273,6 +272,7 @@ public class GetSessionsPart { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -346,7 +346,7 @@ public class GetSessionsPart { private Optional selected = Optional.empty(); - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -487,4 +487,3 @@ public class GetSessionsPart { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java index 92090850..1a068143 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetSessionsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java index 5910cd96..566ee8f5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetSessionsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetSessionsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetSessionsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetSessionsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java index 83abfbe0..c4de1d33 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetSessionsResponseBody - List of Active Plex Sessions - */ +/** + * GetSessionsResponseBody + * + *

List of Active Plex Sessions + */ public class GetSessionsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetSessionsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetSessionsResponseBody withMediaContainer(GetSessionsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetSessionsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetSessionsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetSessionsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java index e6acaca5..3f955af7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsStream.java @@ -1,9 +1,8 @@ /* * 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; @@ -269,7 +268,7 @@ public class GetSessionsStream { public final static Builder builder() { return new Builder(); - } + } public GetSessionsStream withAlbumGain(String albumGain) { Utils.checkNotNull(albumGain, "albumGain"); @@ -510,6 +509,7 @@ public class GetSessionsStream { this.location = location; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -633,7 +633,7 @@ public class GetSessionsStream { private Optional streamType = Optional.empty(); - private Optional location = Optional.empty(); + private Optional location = Optional.empty(); private Builder() { // force use of static builder() method @@ -904,4 +904,3 @@ public class GetSessionsStream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java index c371ed4d..91c08247 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSessionsUser.java @@ -1,9 +1,8 @@ /* * 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; @@ -63,7 +62,7 @@ public class GetSessionsUser { public final static Builder builder() { return new Builder(); - } + } public GetSessionsUser withId(String id) { Utils.checkNotNull(id, "id"); @@ -100,6 +99,7 @@ public class GetSessionsUser { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class GetSessionsUser { private Optional thumb = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -188,4 +188,3 @@ public class GetSessionsUser { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java index aa34ad0d..572c639a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class GetSourceConnectionInformationRequest { public final static Builder builder() { return new Builder(); - } + } /** * The source identifier with an included prefix. @@ -47,6 +46,7 @@ public class GetSourceConnectionInformationRequest { this.source = source; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class GetSourceConnectionInformationRequest { public final static class Builder { - private String source; + private String source; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class GetSourceConnectionInformationRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java index 048c52ea..68ce545f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class GetSourceConnectionInformationRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java index 525503c4..ec54a59a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSourceConnectionInformationResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetSourceConnectionInformationResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetSourceConnectionInformationResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetSourceConnectionInformationResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetSourceConnectionInformationResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java index 9fa7d5ea..560c6a11 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsDevice.java @@ -1,9 +1,8 @@ /* * 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; @@ -88,7 +87,7 @@ public class GetStatisticsDevice { public final static Builder builder() { return new Builder(); - } + } public GetStatisticsDevice withId(int id) { Utils.checkNotNull(id, "id"); @@ -149,6 +148,7 @@ public class GetStatisticsDevice { this.createdAt = createdAt; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -197,7 +197,7 @@ public class GetStatisticsDevice { private Optional clientIdentifier = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,4 +273,3 @@ public class GetStatisticsDevice { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java index 9cb09ec4..2bcfa24c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -81,7 +80,7 @@ public class GetStatisticsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetStatisticsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -130,6 +129,7 @@ public class GetStatisticsMediaContainer { this.statisticsMedia = statisticsMedia; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -173,7 +173,7 @@ public class GetStatisticsMediaContainer { private Optional> account = Optional.empty(); - private Optional> statisticsMedia = Optional.empty(); + private Optional> statisticsMedia = Optional.empty(); private Builder() { // force use of static builder() method @@ -236,4 +236,3 @@ public class GetStatisticsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java index 1d5da14a..0fe264e3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,7 +18,6 @@ public class GetStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timespan") private Optional timespan; @@ -38,7 +36,6 @@ public class GetStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ @JsonIgnore public Optional timespan() { @@ -47,12 +44,11 @@ public class GetStatisticsRequest { public final static Builder builder() { return new Builder(); - } + } /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetStatisticsRequest withTimespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -63,13 +59,13 @@ public class GetStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public GetStatisticsRequest withTimespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); this.timespan = timespan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -98,7 +94,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 @@ -107,7 +103,6 @@ public class GetStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -118,7 +113,6 @@ public class GetStatisticsRequest { /** * The timespan to retrieve statistics for * the exact meaning of this parameter is not known - * */ public Builder timespan(Optional timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -132,4 +126,3 @@ public class GetStatisticsRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java index febdc0d9..7296aa61 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Long; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java index 8a5f150f..3774fb9a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetStatisticsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetStatisticsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetStatisticsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetStatisticsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java index e96f4dbc..b2bb4d23 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetStatisticsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetStatisticsResponseBody - Media Statistics - */ +/** + * GetStatisticsResponseBody + * + *

Media Statistics + */ public class GetStatisticsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetStatisticsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetStatisticsResponseBody withMediaContainer(GetStatisticsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetStatisticsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetStatisticsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetStatisticsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java index 469c8d18..d0df7761 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -99,7 +98,7 @@ public class GetThumbImageRequest { public final static Builder builder() { return new Builder(); - } + } /** * the id of the library item to return the children of. @@ -142,6 +141,7 @@ public class GetThumbImageRequest { this.xPlexToken = xPlexToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -195,7 +195,7 @@ public class GetThumbImageRequest { private Long upscale; - private String xPlexToken; + private String xPlexToken; private Builder() { // force use of static builder() method @@ -254,4 +254,3 @@ public class GetThumbImageRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java index a6144eb5..7d8437c8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetThumbImageRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java index aa1db54f..91bd82e7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetThumbImageResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -110,7 +109,7 @@ public class GetThumbImageResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -162,6 +161,7 @@ public class GetThumbImageResponse implements Response { this.headers = headers; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -210,7 +210,7 @@ public class GetThumbImageResponse implements Response { private Optional responseStream = Optional.empty(); - private Map> headers; + private Map> headers; private Builder() { // force use of static builder() method @@ -277,4 +277,3 @@ public class GetThumbImageResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java index ebf68803..aec264e5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -191,7 +190,7 @@ public class GetTimelineRequest { public final static Builder builder() { return new Builder(); - } + } /** * The rating key of the media item @@ -282,6 +281,7 @@ public class GetTimelineRequest { this.row = row; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -355,7 +355,7 @@ public class GetTimelineRequest { private Double playBackTime; - private Double row; + private Double row; private Builder() { // force use of static builder() method @@ -466,4 +466,3 @@ public class GetTimelineRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java index 64339916..b7d94cfb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetTimelineRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java index 126f64cf..48311003 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTimelineResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetTimelineResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetTimelineResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetTimelineResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetTimelineResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java index 4e604e38..62bff1c3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdAuthPinContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -22,10 +21,12 @@ 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 - */ +/** + * GetTokenByPinIdAuthPinContainer + * + *

The Pin with a non-null authToken when it has been verified by the user + */ public class GetTokenByPinIdAuthPinContainer { @JsonProperty("id") @@ -201,7 +202,7 @@ public class GetTokenByPinIdAuthPinContainer { public final static Builder builder() { return new Builder(); - } + } public GetTokenByPinIdAuthPinContainer withId(long id) { Utils.checkNotNull(id, "id"); @@ -310,6 +311,7 @@ public class GetTokenByPinIdAuthPinContainer { this.newRegistration = newRegistration; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -393,7 +395,7 @@ public class GetTokenByPinIdAuthPinContainer { private JsonNullable authToken = JsonNullable.undefined(); - private JsonNullable newRegistration = JsonNullable.undefined(); + private JsonNullable newRegistration = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -513,7 +515,8 @@ public class GetTokenByPinIdAuthPinContainer { } if (expiresIn == null) { expiresIn = _SINGLETON_VALUE_ExpiresIn.value(); - } return new GetTokenByPinIdAuthPinContainer( + } + return new GetTokenByPinIdAuthPinContainer( id, code, product, @@ -541,4 +544,3 @@ public class GetTokenByPinIdAuthPinContainer { 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 index 990192d9..d0fa8900 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdGeoData.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * GetTokenByPinIdGeoData - Geo location data - */ +/** + * GetTokenByPinIdGeoData + * + *

Geo location data + */ public class GetTokenByPinIdGeoData { /** @@ -231,7 +232,7 @@ public class GetTokenByPinIdGeoData { public final static Builder builder() { return new Builder(); - } + } /** * The ISO 3166-1 alpha-2 code of the country. @@ -358,6 +359,7 @@ public class GetTokenByPinIdGeoData { this.coordinates = coordinates; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -436,7 +438,7 @@ public class GetTokenByPinIdGeoData { private String subdivisions; - private String coordinates; + private String coordinates; private Builder() { // force use of static builder() method @@ -577,7 +579,8 @@ public class GetTokenByPinIdGeoData { } if (inPrivacyRestrictedRegion == null) { inPrivacyRestrictedRegion = _SINGLETON_VALUE_InPrivacyRestrictedRegion.value(); - } return new GetTokenByPinIdGeoData( + } + return new GetTokenByPinIdGeoData( code, continentCode, country, @@ -610,4 +613,3 @@ public class GetTokenByPinIdGeoData { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java index 865c98ac..615b38a1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -130,7 +129,7 @@ public class GetTokenByPinIdRequest { public final static Builder builder() { return new Builder(); - } + } /** * The PinID to retrieve an access token for @@ -221,6 +220,7 @@ public class GetTokenByPinIdRequest { this.platform = platform; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -274,7 +274,7 @@ public class GetTokenByPinIdRequest { private Optional clientVersion = Optional.empty(); - private Optional platform = Optional.empty(); + private Optional platform = Optional.empty(); private Builder() { // force use of static builder() method @@ -381,4 +381,3 @@ public class GetTokenByPinIdRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java index d0d0b1d8..2f4cfe34 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java index 759b5bd4..8bef38d5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenByPinIdResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetTokenByPinIdResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetTokenByPinIdResponse implements Response { this.authPinContainer = authPinContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetTokenByPinIdResponse implements Response { private HttpResponse rawResponse; - private Optional authPinContainer = Optional.empty(); + private Optional authPinContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetTokenByPinIdResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationResponseStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationResponseStatus.java index dd7a3790..fe74da1f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationResponseStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationResponseStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive + * GetTokenDetailsAuthenticationResponseStatus + * + *

String representation of subscriptionActive */ public enum GetTokenDetailsAuthenticationResponseStatus { INACTIVE("Inactive"), @@ -35,3 +37,4 @@ public enum GetTokenDetailsAuthenticationResponseStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationStatus.java index 95185353..3a241d6d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsAuthenticationStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive + * GetTokenDetailsAuthenticationStatus + * + *

String representation of subscriptionActive */ public enum GetTokenDetailsAuthenticationStatus { INACTIVE("Inactive"), @@ -35,3 +37,4 @@ public enum GetTokenDetailsAuthenticationStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsRequestBuilder.java index 61fa32fb..aad3a0ab 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsResponse.java index bc862840..8b0e9518 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetTokenDetailsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetTokenDetailsResponse implements Response { this.userPlexAccount = userPlexAccount; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetTokenDetailsResponse implements Response { private HttpResponse rawResponse; - private Optional userPlexAccount = Optional.empty(); + private Optional userPlexAccount = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetTokenDetailsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsStatus.java index f17a2d0d..34dcd9d5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsStatus.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum GetTokenDetailsStatus { ONLINE("online"), OFFLINE("offline"); @@ -32,3 +32,4 @@ public enum GetTokenDetailsStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsSubscription.java index ff26736c..df78b6ab 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsSubscription.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsSubscription.java @@ -1,9 +1,8 @@ /* * 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; @@ -141,7 +140,7 @@ public class GetTokenDetailsSubscription { public final static Builder builder() { return new Builder(); - } + } /** * List of features allowed on your Plex Pass subscription @@ -250,6 +249,7 @@ public class GetTokenDetailsSubscription { this.plan = plan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -303,7 +303,7 @@ public class GetTokenDetailsSubscription { private JsonNullable paymentService = JsonNullable.undefined(); - private JsonNullable plan = JsonNullable.undefined(); + private JsonNullable plan = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -428,4 +428,3 @@ public class GetTokenDetailsSubscription { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsUserPlexAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsUserPlexAccount.java index c12c6e8b..fa94d973 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsUserPlexAccount.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTokenDetailsUserPlexAccount.java @@ -1,9 +1,8 @@ /* * 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; @@ -23,10 +22,12 @@ import java.util.List; import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; -/** - * GetTokenDetailsUserPlexAccount - Logged in user details - */ +/** + * GetTokenDetailsUserPlexAccount + * + *

Logged in user details + */ public class GetTokenDetailsUserPlexAccount { /** @@ -182,7 +183,8 @@ public class GetTokenDetailsUserPlexAccount { private int maxHomeSize; /** - * [Might be removed] The hashed Plex Home PIN + * [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) @@ -618,7 +620,8 @@ public class GetTokenDetailsUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -747,7 +750,7 @@ public class GetTokenDetailsUserPlexAccount { public final static Builder builder() { return new Builder(); - } + } /** * Unknown @@ -1080,7 +1083,8 @@ public class GetTokenDetailsUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1091,7 +1095,8 @@ public class GetTokenDetailsUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1289,6 +1294,7 @@ public class GetTokenDetailsUserPlexAccount { this.attributionPartner = attributionPartner; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1518,7 +1524,7 @@ public class GetTokenDetailsUserPlexAccount { private String uuid; - private Optional attributionPartner = Optional.empty(); + private Optional attributionPartner = Optional.empty(); private Builder() { // force use of static builder() method @@ -1855,7 +1861,8 @@ public class GetTokenDetailsUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1866,7 +1873,8 @@ public class GetTokenDetailsUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -2104,7 +2112,8 @@ public class GetTokenDetailsUserPlexAccount { } if (twoFactorEnabled == null) { twoFactorEnabled = _SINGLETON_VALUE_TwoFactorEnabled.value(); - } return new GetTokenDetailsUserPlexAccount( + } + return new GetTokenDetailsUserPlexAccount( adsConsent, adsConsentReminderAt, adsConsentSetAt, @@ -2227,4 +2236,3 @@ public class GetTokenDetailsUserPlexAccount { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java index 834fc6b5..635a089f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentCountry.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTopWatchedContentCountry { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentCountry withId(int id) { Utils.checkNotNull(id, "id"); @@ -101,6 +100,7 @@ public class GetTopWatchedContentCountry { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTopWatchedContentCountry { private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTopWatchedContentCountry { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java index 502d300d..aeea1c1a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGenre.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class GetTopWatchedContentGenre { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentGenre withId(int id) { Utils.checkNotNull(id, "id"); @@ -101,6 +100,7 @@ public class GetTopWatchedContentGenre { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class GetTopWatchedContentGenre { private Optional filter = Optional.empty(); - private Optional tag = Optional.empty(); + private Optional tag = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class GetTopWatchedContentGenre { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java index 1bf1c88b..b92b805b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentGuids.java @@ -1,9 +1,8 @@ /* * 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; @@ -39,7 +38,7 @@ public class GetTopWatchedContentGuids { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentGuids withId(String id) { Utils.checkNotNull(id, "id"); @@ -52,6 +51,7 @@ public class GetTopWatchedContentGuids { this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -80,7 +80,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 @@ -104,4 +104,3 @@ public class GetTopWatchedContentGuids { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java index d8ab56b3..7ac93515 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -104,7 +103,7 @@ public class GetTopWatchedContentMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -177,6 +176,7 @@ public class GetTopWatchedContentMediaContainer { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -230,7 +230,7 @@ public class GetTopWatchedContentMediaContainer { private Optional mediaTagVersion = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -319,4 +319,3 @@ public class GetTopWatchedContentMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java index 97591f84..82174a98 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentMetadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -422,7 +421,7 @@ public class GetTopWatchedContentMetadata { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentMetadata withRatingKey(String ratingKey) { Utils.checkNotNull(ratingKey, "ratingKey"); @@ -807,6 +806,7 @@ public class GetTopWatchedContentMetadata { this.user = user; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -990,7 +990,7 @@ public class GetTopWatchedContentMetadata { private Optional> role = Optional.empty(); - private Optional> user = Optional.empty(); + private Optional> user = Optional.empty(); private Builder() { // force use of static builder() method @@ -1417,4 +1417,3 @@ public class GetTopWatchedContentMetadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java index 46e9896d..9976677e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentQueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * GetTopWatchedContentQueryParamType - The type of media to retrieve or filter by. + * GetTopWatchedContentQueryParamType + * + *

The type of media to retrieve or filter by. * 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 { Movie(1L), @@ -45,3 +46,4 @@ public enum GetTopWatchedContentQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java index 6a3272f8..f827e1dd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,7 +17,6 @@ public class GetTopWatchedContentRequest { /** * Adds the Guids object to the response - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") private Optional includeGuids; @@ -30,7 +28,6 @@ public class GetTopWatchedContentRequest { * 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 GetTopWatchedContentQueryParamType type; @@ -52,7 +49,6 @@ public class GetTopWatchedContentRequest { /** * Adds the Guids object to the response - * */ @JsonIgnore public Optional includeGuids() { @@ -66,7 +62,6 @@ public class GetTopWatchedContentRequest { * 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 GetTopWatchedContentQueryParamType type() { @@ -75,11 +70,10 @@ public class GetTopWatchedContentRequest { public final static Builder builder() { return new Builder(); - } + } /** * Adds the Guids object to the response - * */ public GetTopWatchedContentRequest withIncludeGuids(long includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -89,7 +83,6 @@ public class GetTopWatchedContentRequest { /** * Adds the Guids object to the response - * */ public GetTopWatchedContentRequest withIncludeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -104,13 +97,13 @@ public class GetTopWatchedContentRequest { * 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(GetTopWatchedContentQueryParamType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -144,7 +137,7 @@ public class GetTopWatchedContentRequest { private Optional includeGuids = Optional.empty(); - private GetTopWatchedContentQueryParamType type; + private GetTopWatchedContentQueryParamType type; private Builder() { // force use of static builder() method @@ -152,7 +145,6 @@ public class GetTopWatchedContentRequest { /** * Adds the Guids object to the response - * */ public Builder includeGuids(long includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -162,7 +154,6 @@ public class GetTopWatchedContentRequest { /** * Adds the Guids object to the response - * */ public Builder includeGuids(Optional includeGuids) { Utils.checkNotNull(includeGuids, "includeGuids"); @@ -177,7 +168,6 @@ public class GetTopWatchedContentRequest { * 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(GetTopWatchedContentQueryParamType type) { Utils.checkNotNull(type, "type"); @@ -192,4 +182,3 @@ public class GetTopWatchedContentRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java index 6ee3ac7a..3a655ae5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.Long; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java index e7499f1a..7ef26424 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetTopWatchedContentResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetTopWatchedContentResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetTopWatchedContentResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetTopWatchedContentResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java index 4c40c120..53290c4a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetTopWatchedContentResponseBody - The metadata of the library item. - */ +/** + * GetTopWatchedContentResponseBody + * + *

The metadata of the library item. + */ public class GetTopWatchedContentResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetTopWatchedContentResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentResponseBody withMediaContainer(GetTopWatchedContentMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetTopWatchedContentResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetTopWatchedContentResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetTopWatchedContentResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java index 710f6d13..4dcab711 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentRole.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class GetTopWatchedContentRole { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentRole withId(int id) { Utils.checkNotNull(id, "id"); @@ -173,6 +172,7 @@ public class GetTopWatchedContentRole { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -226,7 +226,7 @@ public class GetTopWatchedContentRole { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -315,4 +315,3 @@ public class GetTopWatchedContentRole { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentUser.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentUser.java index 9b05ac10..7f30b83d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentUser.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTopWatchedContentUser.java @@ -1,9 +1,8 @@ /* * 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; @@ -40,7 +39,7 @@ public class GetTopWatchedContentUser { public final static Builder builder() { return new Builder(); - } + } public GetTopWatchedContentUser withId(int id) { Utils.checkNotNull(id, "id"); @@ -53,6 +52,7 @@ public class GetTopWatchedContentUser { this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -81,7 +81,7 @@ public class GetTopWatchedContentUser { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -105,4 +105,3 @@ public class GetTopWatchedContentUser { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java index bf2b3bd2..47ff0a65 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -55,7 +54,7 @@ public class GetTranscodeSessionsMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -80,6 +79,7 @@ public class GetTranscodeSessionsMediaContainer { this.transcodeSession = transcodeSession; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -113,7 +113,7 @@ public class GetTranscodeSessionsMediaContainer { private Optional size = Optional.empty(); - private Optional> transcodeSession = Optional.empty(); + private Optional> transcodeSession = Optional.empty(); private Builder() { // force use of static builder() method @@ -150,4 +150,3 @@ public class GetTranscodeSessionsMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java index 46531ad8..88cff5f4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetTranscodeSessionsRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java index dc85aa3e..37f229c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetTranscodeSessionsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetTranscodeSessionsResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetTranscodeSessionsResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetTranscodeSessionsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java index 127ac645..26e354f2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTranscodeSessionsResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetTranscodeSessionsResponseBody - The Transcode Sessions - */ +/** + * GetTranscodeSessionsResponseBody + * + *

The Transcode Sessions + */ public class GetTranscodeSessionsResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetTranscodeSessionsResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetTranscodeSessionsResponseBody withMediaContainer(GetTranscodeSessionsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetTranscodeSessionsResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetTranscodeSessionsResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetTranscodeSessionsResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java index 28b4017a..70a58b6e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenQueryParamType.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * GetTransientTokenQueryParamType - `delegation` - This is the only supported `type` parameter. + * GetTransientTokenQueryParamType + * + *

`delegation` - This is the only supported `type` parameter. */ public enum GetTransientTokenQueryParamType { DELEGATION("delegation"); @@ -34,3 +36,4 @@ public enum GetTransientTokenQueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java index d372dac3..e120f126 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -54,7 +53,7 @@ public class GetTransientTokenRequest { public final static Builder builder() { return new Builder(); - } + } /** * `delegation` - This is the only supported `type` parameter. @@ -73,6 +72,7 @@ public class GetTransientTokenRequest { this.scope = scope; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -106,7 +106,7 @@ public class GetTransientTokenRequest { private GetTransientTokenQueryParamType type; - private Scope scope; + private Scope scope; private Builder() { // force use of static builder() method @@ -137,4 +137,3 @@ public class GetTransientTokenRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java index ad320b7d..dce1fb19 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class GetTransientTokenRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java index 68fb79d0..8a4449de 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetTransientTokenResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class GetTransientTokenResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class GetTransientTokenResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class GetTransientTokenResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class GetTransientTokenResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java index 49346956..6f616ebb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusMediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -104,7 +103,7 @@ public class GetUpdateStatusMediaContainer { public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusMediaContainer withSize(int size) { Utils.checkNotNull(size, "size"); @@ -177,6 +176,7 @@ public class GetUpdateStatusMediaContainer { this.release = release; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -230,7 +230,7 @@ public class GetUpdateStatusMediaContainer { private Optional status = Optional.empty(); - private Optional> release = Optional.empty(); + private Optional> release = Optional.empty(); private Builder() { // force use of static builder() method @@ -319,4 +319,3 @@ public class GetUpdateStatusMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java index 9ec2fffa..62988fab 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class GetUpdateStatusRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java index 4afcefd9..fbb25abe 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetUpdateStatusResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetUpdateStatusResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetUpdateStatusResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetUpdateStatusResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java index e8490287..58608bef 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUpdateStatusResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetUpdateStatusResponseBody - The Server Updates - */ +/** + * GetUpdateStatusResponseBody + * + *

The Server Updates + */ public class GetUpdateStatusResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -44,7 +45,7 @@ public class GetUpdateStatusResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetUpdateStatusResponseBody withMediaContainer(GetUpdateStatusMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); @@ -57,6 +58,7 @@ public class GetUpdateStatusResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -85,7 +87,7 @@ public class GetUpdateStatusResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -109,4 +111,3 @@ public class GetUpdateStatusResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java index 5a6c3c26..c9ec1529 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java index f0735ae8..e468079e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUserFriendsResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -98,7 +97,7 @@ public class GetUserFriendsResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -144,6 +143,7 @@ public class GetUserFriendsResponse implements Response { this.friends = friends; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -187,7 +187,7 @@ public class GetUserFriendsResponse implements Response { private HttpResponse rawResponse; - private Optional> friends = Optional.empty(); + private Optional> friends = Optional.empty(); private Builder() { // force use of static builder() method @@ -247,4 +247,3 @@ public class GetUserFriendsResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersMediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersMediaContainer.java index 3b4bfcc2..d8bb2c55 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersMediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersMediaContainer.java @@ -1,9 +1,8 @@ /* * 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.Utils; @@ -12,10 +11,12 @@ import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; -/** - * GetUsersMediaContainer - Container holding user and server details. - */ +/** + * GetUsersMediaContainer + * + *

Container holding user and server details. + */ public class GetUsersMediaContainer { /** @@ -114,7 +115,7 @@ public class GetUsersMediaContainer { public final static Builder builder() { return new Builder(); - } + } /** * The friendly name of the Plex instance. @@ -166,6 +167,7 @@ public class GetUsersMediaContainer { this.user = user; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -219,7 +221,7 @@ public class GetUsersMediaContainer { private Long size; - private List user; + private List user; private Builder() { // force use of static builder() method @@ -287,4 +289,3 @@ public class GetUsersMediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequest.java index 7c8231fa..f54fbf82 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -248,7 +247,7 @@ public class GetUsersRequest { public final static Builder builder() { return new Builder(); - } + } /** * An opaque identifier unique to the client (UUID, serial number, or other unique device ID) @@ -465,6 +464,7 @@ public class GetUsersRequest { this.xPlexToken = xPlexToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -553,7 +553,7 @@ public class GetUsersRequest { private Optional platformVersion = Optional.empty(); - private String xPlexToken; + private String xPlexToken; private Builder() { // force use of static builder() method @@ -793,4 +793,3 @@ public class GetUsersRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequestBuilder.java index 68eed22c..05b443d0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponse.java index bbd404b8..42eadbec 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponse.java @@ -1,18 +1,18 @@ /* * 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.IOException; import java.io.InputStream; +import java.io.UncheckedIOException; 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; @@ -34,14 +34,14 @@ public class GetUsersResponse implements Response { */ private HttpResponse rawResponse; - private Optional body; + private Optional body; @JsonCreator public GetUsersResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional body) { + Optional body) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -83,15 +83,21 @@ public class GetUsersResponse implements Response { return rawResponse; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional body() { - return (Optional) body; + if (body.isEmpty()) { + try { + body = Optional.of(Utils.extractByteArrayFromBody(rawResponse)); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } + return body; } public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -126,11 +132,12 @@ public class GetUsersResponse implements Response { return this; } - public GetUsersResponse withBody(Optional body) { + public GetUsersResponse withBody(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -174,7 +181,7 @@ public class GetUsersResponse implements Response { private HttpResponse rawResponse; - private Optional body = Optional.empty(); + private Optional body = Optional.empty(); private Builder() { // force use of static builder() method @@ -213,7 +220,7 @@ public class GetUsersResponse implements Response { return this; } - public Builder body(Optional body) { + public Builder body(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; @@ -228,4 +235,3 @@ public class GetUsersResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponseBody.java index 8d81ba9f..265fff55 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersResponseBody.java @@ -1,9 +1,8 @@ /* * 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.Utils; @@ -12,10 +11,12 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -/** - * GetUsersResponseBody - Successful response with media container data in XML - */ +/** + * GetUsersResponseBody + * + *

Successful response with media container data in XML + */ public class GetUsersResponseBody { /** @@ -45,7 +46,7 @@ public class GetUsersResponseBody { public final static Builder builder() { return new Builder(); - } + } /** * Container holding user and server details. @@ -64,6 +65,7 @@ public class GetUsersResponseBody { this.mediaContainer = mediaContainer; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -92,7 +94,7 @@ public class GetUsersResponseBody { public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method @@ -122,4 +124,3 @@ public class GetUsersResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersServer.java b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersServer.java index 2a9e4227..c79bdc6f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetUsersServer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetUsersServer.java @@ -1,9 +1,8 @@ /* * 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; @@ -157,7 +156,7 @@ public class GetUsersServer { public final static Builder builder() { return new Builder(); - } + } /** * Unique ID of the server of the connected user @@ -245,6 +244,7 @@ public class GetUsersServer { this.pending = pending; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -313,7 +313,7 @@ public class GetUsersServer { private Optional owned; - private Optional pending; + private Optional pending; private Builder() { // force use of static builder() method @@ -415,7 +415,8 @@ public class GetUsersServer { } if (pending == null) { pending = _SINGLETON_VALUE_Pending.value(); - } return new GetUsersServer( + } + return new GetUsersServer( id, serverId, machineIdentifier, @@ -446,4 +447,3 @@ public class GetUsersServer { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java index 2264b947..1580592f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -29,14 +28,12 @@ public class GetWatchListRequest { * In the format "field:dir". Available fields are "watchlistedAt" (Added At), * "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating). * "dir" can be "asc" or "desc" - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") private Optional sort; /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=libtype") private Optional libtype; @@ -44,21 +41,18 @@ 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. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=maxresults") private Optional maxresults; /** * include collections in the results - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeCollections") private Optional includeCollections; /** * include external media in the results - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExternalMedia") private Optional includeExternalMedia; @@ -67,7 +61,6 @@ 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 - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Start") private Optional xPlexContainerStart; @@ -76,7 +69,6 @@ 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 - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size") private Optional xPlexContainerSize; @@ -136,7 +128,6 @@ public class GetWatchListRequest { * 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" - * */ @JsonIgnore public Optional sort() { @@ -145,7 +136,6 @@ public class GetWatchListRequest { /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -156,7 +146,6 @@ 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. - * */ @JsonIgnore public Optional maxresults() { @@ -165,7 +154,6 @@ public class GetWatchListRequest { /** * include collections in the results - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -175,7 +163,6 @@ public class GetWatchListRequest { /** * include external media in the results - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -187,7 +174,6 @@ 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 - * */ @JsonIgnore public Optional xPlexContainerStart() { @@ -198,7 +184,6 @@ 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 - * */ @JsonIgnore public Optional xPlexContainerSize() { @@ -215,7 +200,7 @@ public class GetWatchListRequest { public final static Builder builder() { return new Builder(); - } + } /** * Filter @@ -230,7 +215,6 @@ public class GetWatchListRequest { * In the format "field:dir". Available fields are "watchlistedAt" (Added At), * "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating). * "dir" can be "asc" or "desc" - * */ public GetWatchListRequest withSort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -242,7 +226,6 @@ public class GetWatchListRequest { * In the format "field:dir". Available fields are "watchlistedAt" (Added At), * "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating). * "dir" can be "asc" or "desc" - * */ public GetWatchListRequest withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -252,7 +235,6 @@ public class GetWatchListRequest { /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ public GetWatchListRequest withLibtype(Libtype libtype) { Utils.checkNotNull(libtype, "libtype"); @@ -262,7 +244,6 @@ public class GetWatchListRequest { /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ public GetWatchListRequest withLibtype(Optional libtype) { Utils.checkNotNull(libtype, "libtype"); @@ -273,7 +254,6 @@ 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. - * */ public GetWatchListRequest withMaxresults(int maxresults) { Utils.checkNotNull(maxresults, "maxresults"); @@ -284,7 +264,6 @@ 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. - * */ public GetWatchListRequest withMaxresults(Optional maxresults) { Utils.checkNotNull(maxresults, "maxresults"); @@ -294,7 +273,6 @@ public class GetWatchListRequest { /** * include collections in the results - * */ public GetWatchListRequest withIncludeCollections(IncludeCollections includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); @@ -304,7 +282,6 @@ public class GetWatchListRequest { /** * include collections in the results - * */ public GetWatchListRequest withIncludeCollections(Optional includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); @@ -314,7 +291,6 @@ public class GetWatchListRequest { /** * include external media in the results - * */ public GetWatchListRequest withIncludeExternalMedia(IncludeExternalMedia includeExternalMedia) { Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); @@ -324,7 +300,6 @@ public class GetWatchListRequest { /** * include external media in the results - * */ public GetWatchListRequest withIncludeExternalMedia(Optional includeExternalMedia) { Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); @@ -336,7 +311,6 @@ 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(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -348,7 +322,6 @@ 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) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -360,7 +333,6 @@ 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) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -372,7 +344,6 @@ 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) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -388,6 +359,7 @@ public class GetWatchListRequest { this.xPlexToken = xPlexToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -456,7 +428,7 @@ public class GetWatchListRequest { private Optional xPlexContainerSize; - private String xPlexToken; + private String xPlexToken; private Builder() { // force use of static builder() method @@ -475,7 +447,6 @@ public class GetWatchListRequest { * In the format "field:dir". Available fields are "watchlistedAt" (Added At), * "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating). * "dir" can be "asc" or "desc" - * */ public Builder sort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -487,7 +458,6 @@ public class GetWatchListRequest { * In the format "field:dir". Available fields are "watchlistedAt" (Added At), * "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating). * "dir" can be "asc" or "desc" - * */ public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -497,7 +467,6 @@ public class GetWatchListRequest { /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ public Builder libtype(Libtype libtype) { Utils.checkNotNull(libtype, "libtype"); @@ -507,7 +476,6 @@ public class GetWatchListRequest { /** * The type of library to filter. Can be "movie" or "show", or all if not present. - * */ public Builder libtype(Optional libtype) { Utils.checkNotNull(libtype, "libtype"); @@ -518,7 +486,6 @@ 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. - * */ public Builder maxresults(int maxresults) { Utils.checkNotNull(maxresults, "maxresults"); @@ -529,7 +496,6 @@ 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. - * */ public Builder maxresults(Optional maxresults) { Utils.checkNotNull(maxresults, "maxresults"); @@ -539,7 +505,6 @@ public class GetWatchListRequest { /** * include collections in the results - * */ public Builder includeCollections(IncludeCollections includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); @@ -549,7 +514,6 @@ public class GetWatchListRequest { /** * include collections in the results - * */ public Builder includeCollections(Optional includeCollections) { Utils.checkNotNull(includeCollections, "includeCollections"); @@ -559,7 +523,6 @@ public class GetWatchListRequest { /** * include external media in the results - * */ public Builder includeExternalMedia(IncludeExternalMedia includeExternalMedia) { Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); @@ -569,7 +532,6 @@ public class GetWatchListRequest { /** * include external media in the results - * */ public Builder includeExternalMedia(Optional includeExternalMedia) { Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); @@ -581,7 +543,6 @@ 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(int xPlexContainerStart) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -593,7 +554,6 @@ 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) { Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); @@ -605,7 +565,6 @@ 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) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -617,7 +576,6 @@ 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) { Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); @@ -640,7 +598,8 @@ public class GetWatchListRequest { } if (xPlexContainerSize == null) { xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value(); - } return new GetWatchListRequest( + } + return new GetWatchListRequest( filter, sort, libtype, @@ -665,4 +624,3 @@ public class GetWatchListRequest { 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 index 96dc4189..557a7d3b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java index 728dcb3e..3576fcb3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class GetWatchListResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class GetWatchListResponse implements Response { this.object = object; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class GetWatchListResponse implements Response { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional object = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class GetWatchListResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java index cdc64a61..6d8a5067 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetWatchListResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,10 +16,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * GetWatchListResponseBody - Watchlist Data - */ +/** + * GetWatchListResponseBody + * + *

Watchlist Data + */ public class GetWatchListResponseBody { @JsonInclude(Include.NON_ABSENT) @@ -118,7 +119,7 @@ public class GetWatchListResponseBody { public final static Builder builder() { return new Builder(); - } + } public GetWatchListResponseBody withLibrarySectionID(String librarySectionID) { Utils.checkNotNull(librarySectionID, "librarySectionID"); @@ -203,6 +204,7 @@ public class GetWatchListResponseBody { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -261,7 +263,7 @@ public class GetWatchListResponseBody { private Optional size = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -363,4 +365,3 @@ public class GetWatchListResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Guids.java b/src/main/java/dev/plexapi/sdk/models/operations/Guids.java index dc26c1dd..cdefa09d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Guids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Guids.java @@ -1,9 +1,8 @@ /* * 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; @@ -19,7 +18,6 @@ public class Guids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") @@ -38,7 +36,6 @@ public class Guids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ @JsonIgnore public Optional id() { @@ -47,11 +44,10 @@ public class Guids { public final static Builder builder() { return new Builder(); - } + } /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Guids withId(String id) { Utils.checkNotNull(id, "id"); @@ -61,13 +57,13 @@ public class Guids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Guids withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -96,7 +92,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 @@ -104,7 +100,6 @@ public class Guids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -114,7 +109,6 @@ public class Guids { /** * The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337 - * */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -128,4 +122,3 @@ public class Guids { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/HasThumbnail.java b/src/main/java/dev/plexapi/sdk/models/operations/HasThumbnail.java index 8b2d0b2d..baeae247 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/HasThumbnail.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/HasThumbnail.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * HasThumbnail - Indicates if the part has a thumbnail. + * HasThumbnail + * + *

Indicates if the part has a thumbnail. */ public enum HasThumbnail { False("0"), @@ -35,3 +37,4 @@ public enum HasThumbnail { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Home.java b/src/main/java/dev/plexapi/sdk/models/operations/Home.java index 19305b38..e4172f50 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Home.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Home.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Home - Indicates if the user is part of a home group. + * Home + * + *

Indicates if the user is part of a home group. */ public enum Home { Disable(0), @@ -34,3 +36,4 @@ public enum Home { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Hub.java b/src/main/java/dev/plexapi/sdk/models/operations/Hub.java index bc86ae93..f25dbd4b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Hub.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Hub.java @@ -1,9 +1,8 @@ /* * 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; @@ -164,7 +163,7 @@ public class Hub { public final static Builder builder() { return new Builder(); - } + } public Hub withHubKey(String hubKey) { Utils.checkNotNull(hubKey, "hubKey"); @@ -297,6 +296,7 @@ public class Hub { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -375,7 +375,7 @@ public class Hub { private Optional promoted = Optional.empty(); - private Optional> metadata = Optional.empty(); + private Optional> metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -529,4 +529,3 @@ public class Hub { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Image.java b/src/main/java/dev/plexapi/sdk/models/operations/Image.java index f3d6c26d..5bc20b66 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Image.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Image.java @@ -1,9 +1,8 @@ /* * 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; @@ -63,7 +62,7 @@ public class Image { public final static Builder builder() { return new Builder(); - } + } public Image withAlt(String alt) { Utils.checkNotNull(alt, "alt"); @@ -100,6 +99,7 @@ public class Image { this.url = url; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class Image { private Optional type = Optional.empty(); - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Builder() { // force use of static builder() method @@ -188,4 +188,3 @@ public class Image { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeAdvanced.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeAdvanced.java index 772d0443..22143ff3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeAdvanced.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeAdvanced.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** * IncludeAdvanced */ @@ -34,3 +34,4 @@ public enum IncludeAdvanced { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java index 7f4a5eef..74257d11 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeCollections.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeCollections - include collections in the results + * IncludeCollections * + *

include collections in the results */ public enum IncludeCollections { ONE(1L), @@ -35,3 +36,4 @@ public enum IncludeCollections { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java index 6cffb67e..472cbb6d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeDetails.java @@ -1,16 +1,17 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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. + * IncludeDetails * + *

Whether or not to include details for a section (types, filters, and sorts). + * Only exists for backwards compatibility, media providers other than the server libraries have it on always. */ public enum IncludeDetails { ZERO(0L), @@ -36,3 +37,4 @@ public enum IncludeDetails { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java index 6551c448..5f315fe7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeExternalMedia.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeExternalMedia - include external media in the results + * IncludeExternalMedia * + *

include external media in the results */ public enum IncludeExternalMedia { ONE(1L), @@ -35,3 +36,4 @@ public enum IncludeExternalMedia { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java index db003a8a..61d73941 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeGuids.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeGuids - Adds the Guids object to the response + * IncludeGuids * + *

Adds the Guids object to the response */ public enum IncludeGuids { Disable(0), @@ -35,3 +36,4 @@ public enum IncludeGuids { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java index b49e7c30..d79f273c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeHttps.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeHttps - Include Https entries in the results + * IncludeHttps + * + *

Include Https entries in the results */ public enum IncludeHttps { Disable(0), @@ -34,3 +36,4 @@ public enum IncludeHttps { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java index 6872b94c..58272d90 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeIPv6.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeIPv6 - Include IPv6 entries in the results + * IncludeIPv6 + * + *

Include IPv6 entries in the results */ public enum IncludeIPv6 { Disable(0), @@ -34,3 +36,4 @@ public enum IncludeIPv6 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java index e923367e..73f25897 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeMeta.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeMeta - Adds the Meta object to the response + * IncludeMeta * + *

Adds the Meta object to the response */ public enum IncludeMeta { Disable(0), @@ -35,3 +36,4 @@ public enum IncludeMeta { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java b/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java index 7fb4efc5..fa6a397f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/IncludeRelay.java @@ -1,16 +1,17 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * IncludeRelay - Include Relay addresses in the results - * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 + * IncludeRelay * + *

Include Relay addresses in the results + * E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 */ public enum IncludeRelay { Disable(0), @@ -36,3 +37,4 @@ public enum IncludeRelay { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java b/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java index f2f486d7..10fd509b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/InternalPaymentMethod.java @@ -1,9 +1,8 @@ /* * 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; @@ -20,7 +19,8 @@ public class InternalPaymentMethod { public final static Builder builder() { return new Builder(); - } + } + @Override public boolean equals(java.lang.Object o) { @@ -44,7 +44,7 @@ public class InternalPaymentMethod { return Utils.toString(InternalPaymentMethod.class); } - public final static class Builder { + public final static class Builder { private Builder() { // force use of static builder() method @@ -56,4 +56,3 @@ public class 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 index 2eeaa074..277f5d56 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Level.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Level.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Level - An integer log level to write to the PMS log with. + * 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), @@ -43,3 +44,4 @@ public enum Level { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java b/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java index 5d0ef5a9..28861e9c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Libtype.java @@ -1,16 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Libtype - The type of library to filter. Can be "movie" or "show", or all if not present. + * Libtype * + *

The type of library to filter. Can be "movie" or "show", or all if not present. */ public enum Libtype { MOVIE("movie"), @@ -36,3 +37,4 @@ public enum Libtype { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Location.java b/src/main/java/dev/plexapi/sdk/models/operations/Location.java index 7f68a139..8ab14af9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Location.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Location.java @@ -1,9 +1,8 @@ /* * 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; @@ -11,10 +10,12 @@ import dev.plexapi.sdk.utils.Utils; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * Location - The folder path for the media item. - */ +/** + * Location + * + *

The folder path for the media item. + */ public class Location { @JsonProperty("path") @@ -34,13 +35,14 @@ public class Location { public final static Builder builder() { return new Builder(); - } + } public Location withPath(String path) { Utils.checkNotNull(path, "path"); this.path = path; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -69,7 +71,7 @@ public class Location { public final static class Builder { - private String path; + private String path; private Builder() { // force use of static builder() method @@ -87,4 +89,3 @@ public class Location { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java index 6d693091..37f9b1be 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -21,7 +20,6 @@ public class LogLineRequest { * 2: Info * 3: Debug * 4: Verbose - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=level") private Level level; @@ -58,7 +56,6 @@ public class LogLineRequest { * 2: Info * 3: Debug * 4: Verbose - * */ @JsonIgnore public Level level() { @@ -83,7 +80,7 @@ public class LogLineRequest { public final static Builder builder() { return new Builder(); - } + } /** * An integer log level to write to the PMS log with. @@ -92,7 +89,6 @@ public class LogLineRequest { * 2: Info * 3: Debug * 4: Verbose - * */ public LogLineRequest withLevel(Level level) { Utils.checkNotNull(level, "level"); @@ -117,6 +113,7 @@ public class LogLineRequest { this.source = source; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -155,7 +152,7 @@ public class LogLineRequest { private String message; - private String source; + private String source; private Builder() { // force use of static builder() method @@ -168,7 +165,6 @@ public class LogLineRequest { * 2: Info * 3: Debug * 4: Verbose - * */ public Builder level(Level level) { Utils.checkNotNull(level, "level"); @@ -202,4 +198,3 @@ public class LogLineRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java index 01fa9fc3..ad94ea62 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class LogLineRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java index c780b137..b61c4a51 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogLineResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class LogLineResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class LogLineResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class LogLineResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class LogLineResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java index 222c736b..dfcd8741 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class LogMultiLineRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java index 5d05275f..d329e6d4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/LogMultiLineResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class LogMultiLineResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class LogMultiLineResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class LogMultiLineResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class LogMultiLineResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java index 528ae7a0..477375ae 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MailingListStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * MailingListStatus - Your current mailing list status (active or unsubscribed) + * MailingListStatus + * + *

Your current mailing list status (active or unsubscribed) */ public enum MailingListStatus { ACTIVE("active"), @@ -35,3 +37,4 @@ public enum MailingListStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java index 7febdb53..b8af7691 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -38,7 +37,7 @@ public class MarkPlayedRequest { public final static Builder builder() { return new Builder(); - } + } /** * The media key to mark as played @@ -48,6 +47,7 @@ public class MarkPlayedRequest { this.key = key; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -76,7 +76,7 @@ public class MarkPlayedRequest { public final static class Builder { - private Double key; + private Double key; private Builder() { // force use of static builder() method @@ -97,4 +97,3 @@ public class MarkPlayedRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java index b8930877..f896ad7f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class MarkPlayedRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java index 70f8ff9c..5ee290c9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkPlayedResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class MarkPlayedResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class MarkPlayedResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class MarkPlayedResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class MarkPlayedResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java index 7b1a14b0..dcb12f3a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -38,7 +37,7 @@ public class MarkUnplayedRequest { public final static Builder builder() { return new Builder(); - } + } /** * The media key to mark as Unplayed @@ -48,6 +47,7 @@ public class MarkUnplayedRequest { this.key = key; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -76,7 +76,7 @@ public class MarkUnplayedRequest { public final static class Builder { - private Double key; + private Double key; private Builder() { // force use of static builder() method @@ -97,4 +97,3 @@ public class MarkUnplayedRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java index 588bcb9b..f217697e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; public class MarkUnplayedRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java index c8915d8f..2df891f8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MarkUnplayedResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class MarkUnplayedResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class MarkUnplayedResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class MarkUnplayedResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class MarkUnplayedResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Media.java b/src/main/java/dev/plexapi/sdk/models/operations/Media.java index ad3dbc11..41a591ec 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Media.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Media.java @@ -1,9 +1,8 @@ /* * 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; @@ -105,7 +104,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFrameRate") @@ -311,7 +309,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ @JsonIgnore public Optional videoFrameRate() { @@ -367,7 +364,7 @@ public class Media { public final static Builder builder() { return new Builder(); - } + } /** * Unique media identifier. @@ -572,7 +569,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Media withVideoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -582,7 +578,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Media withVideoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -691,6 +686,7 @@ public class Media { this.part = part; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -809,7 +805,7 @@ public class Media { private Optional has64bitOffsets = Optional.empty(); - private Optional> part = Optional.empty(); + private Optional> part = Optional.empty(); private Builder() { // force use of static builder() method @@ -1018,7 +1014,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(String videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1028,7 +1023,6 @@ public class Media { /** * Frame rate of the video. Values found include NTSC, PAL, 24p - * */ public Builder videoFrameRate(Optional videoFrameRate) { Utils.checkNotNull(videoFrameRate, "videoFrameRate"); @@ -1162,4 +1156,3 @@ public class Media { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java index 15337ec7..390e5a2f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaContainer.java @@ -1,9 +1,8 @@ /* * 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; @@ -644,7 +643,7 @@ public class MediaContainer { public final static Builder builder() { return new Builder(); - } + } public MediaContainer withSize(double size) { Utils.checkNotNull(size, "size"); @@ -1257,6 +1256,7 @@ public class MediaContainer { this.directory = directory; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1535,7 +1535,7 @@ public class MediaContainer { private Optional voiceSearch = Optional.empty(); - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -2209,4 +2209,3 @@ public class MediaContainer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaGuid.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaGuid.java index 9e03cecd..aaab6172 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MediaGuid.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaGuid.java @@ -1,9 +1,8 @@ /* * 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; @@ -17,7 +16,6 @@ public class MediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ @JsonProperty("id") private String id; @@ -32,7 +30,6 @@ public class MediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ @JsonIgnore public String id() { @@ -41,18 +38,18 @@ public class MediaGuid { public final static Builder builder() { return new Builder(); - } + } /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ public MediaGuid withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -81,7 +78,7 @@ public class MediaGuid { public final static class Builder { - private String id; + private String id; private Builder() { // force use of static builder() method @@ -90,7 +87,6 @@ public class MediaGuid { /** * Can be one of the following formats: * imdb://tt13015952, tmdb://2434012, tvdb://7945991 - * */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -104,4 +100,3 @@ public class MediaGuid { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java index 42b0a2aa..292eab8d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaProvider.java @@ -1,9 +1,8 @@ /* * 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; @@ -90,7 +89,7 @@ public class MediaProvider { public final static Builder builder() { return new Builder(); - } + } public MediaProvider withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); @@ -151,6 +150,7 @@ public class MediaProvider { this.feature = feature; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -199,7 +199,7 @@ public class MediaProvider { private Optional protocols = Optional.empty(); - private Optional> feature = Optional.empty(); + private Optional> feature = Optional.empty(); private Builder() { // force use of static builder() method @@ -275,4 +275,3 @@ public class MediaProvider { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java b/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java index a1f2375f..f5d853d8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MediaReviewsVisibility.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled + * MediaReviewsVisibility + * + *

Whether or not the account has media reviews visibility enabled */ public enum MediaReviewsVisibility { Disable(0), @@ -34,3 +36,4 @@ public enum MediaReviewsVisibility { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Meta.java b/src/main/java/dev/plexapi/sdk/models/operations/Meta.java index 13b42779..310d05d2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Meta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Meta.java @@ -1,9 +1,8 @@ /* * 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; @@ -16,11 +15,12 @@ import java.lang.SuppressWarnings; import java.util.List; import java.util.Objects; import java.util.Optional; -/** - * Meta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. - * - */ +/** + * Meta + * + *

The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. + */ public class Meta { @JsonInclude(Include.NON_ABSENT) @@ -59,7 +59,7 @@ public class Meta { public final static Builder builder() { return new Builder(); - } + } public Meta withType(List type) { Utils.checkNotNull(type, "type"); @@ -84,6 +84,7 @@ public class Meta { this.fieldType = fieldType; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -117,7 +118,7 @@ public class Meta { private Optional> type = Optional.empty(); - private Optional> fieldType = Optional.empty(); + private Optional> fieldType = Optional.empty(); private Builder() { // force use of static builder() method @@ -154,4 +155,3 @@ public class Meta { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MetaDataRating.java b/src/main/java/dev/plexapi/sdk/models/operations/MetaDataRating.java index 7ecf14d6..f998c456 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MetaDataRating.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MetaDataRating.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class MetaDataRating { public final static Builder builder() { return new Builder(); - } + } /** * A URI or path to the rating image. @@ -100,6 +99,7 @@ public class MetaDataRating { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class MetaDataRating { private Float value; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class MetaDataRating { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java b/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java index 996ccd91..9a9d1a78 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Metadata.java @@ -1,9 +1,8 @@ /* * 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; @@ -454,7 +453,7 @@ public class Metadata { public final static Builder builder() { return new Builder(); - } + } public Metadata withArt(String art) { Utils.checkNotNull(art, "art"); @@ -875,6 +874,7 @@ public class Metadata { this.playableKey = playableKey; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1073,7 +1073,7 @@ public class Metadata { private Optional streamingMediaId = Optional.empty(); - private Optional playableKey = Optional.empty(); + private Optional playableKey = Optional.empty(); private Builder() { // force use of static builder() method @@ -1539,4 +1539,3 @@ public class Metadata { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java b/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java index 8cf052f8..363208ed 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MinSize.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. + * 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), @@ -34,3 +36,4 @@ public enum MinSize { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java b/src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java index 148c165d..33c46265 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/MyPlex.java @@ -1,9 +1,8 @@ /* * 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; @@ -173,7 +172,7 @@ public class MyPlex { public final static Builder builder() { return new Builder(); - } + } public MyPlex withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -318,6 +317,7 @@ public class MyPlex { this.subscriptionState = subscriptionState; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -401,7 +401,7 @@ public class MyPlex { private Optional subscriptionActive = Optional.empty(); - private Optional subscriptionState = Optional.empty(); + private Optional subscriptionState = Optional.empty(); private Builder() { // force use of static builder() method @@ -568,4 +568,3 @@ public class MyPlex { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/One.java b/src/main/java/dev/plexapi/sdk/models/operations/One.java index b5962b17..08b2edb7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/One.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/One.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum One { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum One { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java b/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java index daf9454a..89ae32ca 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/OnlyTransient.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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). + * 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), @@ -34,3 +36,4 @@ public enum OnlyTransient { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Operator.java b/src/main/java/dev/plexapi/sdk/models/operations/Operator.java index e38dffce..8e3eae76 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Operator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Operator.java @@ -1,9 +1,8 @@ /* * 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; @@ -42,7 +41,7 @@ public class Operator { public final static Builder builder() { return new Builder(); - } + } public Operator withKey(String key) { Utils.checkNotNull(key, "key"); @@ -55,6 +54,7 @@ public class Operator { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -88,7 +88,7 @@ public class Operator { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -113,4 +113,3 @@ public class Operator { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming.java b/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming.java index f3af1475..4675fc98 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming.java @@ -1,9 +1,8 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -17,10 +16,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Objects; -/** - * OptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true - */ +/** + * OptimizedForStreaming + * + *

Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true + */ @JsonDeserialize(using = OptimizedForStreaming._Deserializer.class) public class OptimizedForStreaming { @@ -97,3 +98,4 @@ public class OptimizedForStreaming { } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming1.java b/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming1.java index ad73fca5..6164b92f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming1.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/OptimizedForStreaming1.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + public enum OptimizedForStreaming1 { ZERO(0), ONE(1); @@ -31,3 +31,4 @@ public enum OptimizedForStreaming1 { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Owned.java b/src/main/java/dev/plexapi/sdk/models/operations/Owned.java index 52ee235c..0403daa4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Owned.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Owned.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Owned - Indicates if the user owns the server. + * Owned + * + *

Indicates if the user owns the server. */ public enum Owned { Disable(0), @@ -34,3 +36,4 @@ public enum Owned { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Part.java b/src/main/java/dev/plexapi/sdk/models/operations/Part.java index e8887d14..71b7d39d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Part.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Part.java @@ -1,9 +1,8 @@ /* * 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; @@ -301,7 +300,7 @@ public class Part { public final static Builder builder() { return new Builder(); - } + } /** * Indicates if the part is accessible. @@ -530,6 +529,7 @@ public class Part { this.stream = stream; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -633,7 +633,7 @@ public class Part { private Optional hasThumbnail; - private Optional> stream = Optional.empty(); + private Optional> stream = Optional.empty(); private Builder() { // force use of static builder() method @@ -870,7 +870,8 @@ public class Part { public Part build() { if (hasThumbnail == null) { hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value(); - } return new Part( + } + return new Part( accessible, exists, id, @@ -896,4 +897,3 @@ public class Part { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java index afa2c456..d98772c1 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PastSubscription.java @@ -1,9 +1,8 @@ /* * 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; @@ -211,7 +210,7 @@ public class PastSubscription { public final static Builder builder() { return new Builder(); - } + } public PastSubscription withId(String id) { Utils.checkNotNull(id, "id"); @@ -374,6 +373,7 @@ public class PastSubscription { this.billing = billing; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -472,7 +472,7 @@ public class PastSubscription { private PostUsersSignInDataState state; - private Billing billing; + private Billing billing; private Builder() { // force use of static builder() method @@ -661,7 +661,8 @@ public class PastSubscription { } if (canConvert == null) { canConvert = _SINGLETON_VALUE_CanConvert.value(); - } return new PastSubscription( + } + return new PastSubscription( id, mode, renewsAt, @@ -722,4 +723,3 @@ public class PastSubscription { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java b/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java index c162147f..eca13690 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PathParamTaskName.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * PathParamTaskName - The name of the task to be started. + * PathParamTaskName + * + *

The name of the task to be started. */ public enum PathParamTaskName { BACKUP_DATABASE("BackupDatabase"), @@ -47,3 +49,4 @@ public enum PathParamTaskName { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Pending.java b/src/main/java/dev/plexapi/sdk/models/operations/Pending.java index 3570a0b9..30a9ab4e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Pending.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Pending.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Pending - Indicates if the server is pending approval. + * Pending + * + *

Indicates if the server is pending approval. */ public enum Pending { Disable(0), @@ -34,3 +36,4 @@ public enum Pending { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java index 6ab58156..974ef3bd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -80,7 +79,7 @@ public class PerformSearchRequest { public final static Builder builder() { return new Builder(); - } + } /** * The query term @@ -126,6 +125,7 @@ public class PerformSearchRequest { this.limit = limit; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -164,7 +164,7 @@ public class PerformSearchRequest { private Optional sectionId = Optional.empty(); - private Optional limit; + private Optional limit; private Builder() { // force use of static builder() method @@ -218,7 +218,8 @@ public class PerformSearchRequest { public PerformSearchRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); - } return new PerformSearchRequest( + } + return new PerformSearchRequest( query, sectionId, limit); @@ -231,4 +232,3 @@ public class PerformSearchRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java index 942bc359..2de8c21e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchRequestBuilder.java @@ -1,13 +1,13 @@ /* * 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.Double; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java index 4d68730f..48cb37b6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformSearchResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class PerformSearchResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class PerformSearchResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class PerformSearchResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class PerformSearchResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java index 11fa214e..2f449829 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -80,7 +79,7 @@ public class PerformVoiceSearchRequest { public final static Builder builder() { return new Builder(); - } + } /** * The query term @@ -126,6 +125,7 @@ public class PerformVoiceSearchRequest { this.limit = limit; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -164,7 +164,7 @@ public class PerformVoiceSearchRequest { private Optional sectionId = Optional.empty(); - private Optional limit; + private Optional limit; private Builder() { // force use of static builder() method @@ -218,7 +218,8 @@ public class PerformVoiceSearchRequest { public PerformVoiceSearchRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); - } return new PerformVoiceSearchRequest( + } + return new PerformVoiceSearchRequest( query, sectionId, limit); @@ -231,4 +232,3 @@ public class PerformVoiceSearchRequest { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java index 05dd0cdc..0e09f7bb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchRequestBuilder.java @@ -1,13 +1,13 @@ /* * 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.Double; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java index a73f5211..a6ac25aa 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PerformVoiceSearchResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class PerformVoiceSearchResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class PerformVoiceSearchResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class PerformVoiceSearchResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class PerformVoiceSearchResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java b/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java index 0dc90b34..baac8019 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Pivot.java @@ -1,9 +1,8 @@ /* * 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; @@ -99,7 +98,7 @@ public class Pivot { public final static Builder builder() { return new Builder(); - } + } public Pivot withId(String id) { Utils.checkNotNull(id, "id"); @@ -172,6 +171,7 @@ public class Pivot { this.symbol = symbol; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -225,7 +225,7 @@ public class Pivot { private Optional context = Optional.empty(); - private Optional symbol = Optional.empty(); + private Optional symbol = Optional.empty(); private Builder() { // force use of static builder() method @@ -314,4 +314,3 @@ public class Pivot { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Player.java b/src/main/java/dev/plexapi/sdk/models/operations/Player.java index 66f40019..2bac3669 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Player.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Player.java @@ -1,9 +1,8 @@ /* * 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; @@ -209,7 +208,7 @@ public class Player { public final static Builder builder() { return new Builder(); - } + } public Player withAddress(String address) { Utils.checkNotNull(address, "address"); @@ -390,6 +389,7 @@ public class Player { this.userID = userID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -488,7 +488,7 @@ public class Player { private Optional secure = Optional.empty(); - private Optional userID = Optional.empty(); + private Optional userID = Optional.empty(); private Builder() { // force use of static builder() method @@ -694,4 +694,3 @@ public class Player { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java b/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java index 1b24a001..77a21639 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PlaylistType.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * PlaylistType - limit to a type of playlist. + * PlaylistType + * + *

limit to a type of playlist. */ public enum PlaylistType { AUDIO("audio"), @@ -36,3 +38,4 @@ public enum PlaylistType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java b/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java index ab0a6ee6..26129e9f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PlexDevice.java @@ -1,9 +1,8 @@ /* * 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; @@ -325,7 +324,7 @@ public class PlexDevice { public final static Builder builder() { return new Builder(); - } + } public PlexDevice withName(String name) { Utils.checkNotNull(name, "name"); @@ -506,6 +505,7 @@ public class PlexDevice { this.connections = connections; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -649,7 +649,7 @@ public class PlexDevice { private Boolean natLoopbackSupported; - private List connections; + private List connections; private Builder() { // force use of static builder() method @@ -864,4 +864,3 @@ public class PlexDevice { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java index 81391605..f88c08f6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationResponseStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive + * PostUsersSignInDataAuthenticationResponseStatus + * + *

String representation of subscriptionActive */ public enum PostUsersSignInDataAuthenticationResponseStatus { INACTIVE("Inactive"), @@ -35,3 +37,4 @@ public enum PostUsersSignInDataAuthenticationResponseStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java index d5c9f63a..a717a529 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive + * PostUsersSignInDataAuthenticationStatus + * + *

String representation of subscriptionActive */ public enum PostUsersSignInDataAuthenticationStatus { INACTIVE("Inactive"), @@ -35,3 +37,4 @@ public enum PostUsersSignInDataAuthenticationStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java index 962b9d5b..0deb36d6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAuthenticationSubscription.java @@ -1,9 +1,8 @@ /* * 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; @@ -141,7 +140,7 @@ public class PostUsersSignInDataAuthenticationSubscription { public final static Builder builder() { return new Builder(); - } + } /** * List of features allowed on your Plex Pass subscription @@ -250,6 +249,7 @@ public class PostUsersSignInDataAuthenticationSubscription { this.plan = plan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -303,7 +303,7 @@ public class PostUsersSignInDataAuthenticationSubscription { private JsonNullable paymentService = JsonNullable.undefined(); - private JsonNullable plan = JsonNullable.undefined(); + private JsonNullable plan = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -428,4 +428,3 @@ public class PostUsersSignInDataAuthenticationSubscription { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java index 9a2a5684..f000fbbc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataAutoSelectSubtitle.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) + * PostUsersSignInDataAutoSelectSubtitle + * + *

The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) */ public enum PostUsersSignInDataAutoSelectSubtitle { Disable(0), @@ -34,3 +36,4 @@ public enum PostUsersSignInDataAutoSelectSubtitle { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java index 823283bc..6dfa90b3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleAccessibility.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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 show non-SDH subtitles) + * 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 show non-SDH subtitles) */ public enum PostUsersSignInDataDefaultSubtitleAccessibility { Disable(0), @@ -34,3 +36,4 @@ public enum PostUsersSignInDataDefaultSubtitleAccessibility { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java index 29109280..47c5559a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataDefaultSubtitleForced.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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) + * 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 { Disable(0), @@ -34,3 +36,4 @@ public enum PostUsersSignInDataDefaultSubtitleForced { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java index d7df5c11..bf5e84c9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMailingListStatus.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed) + * PostUsersSignInDataMailingListStatus + * + *

Your current mailing list status (active or unsubscribed) */ public enum PostUsersSignInDataMailingListStatus { ACTIVE("active"), @@ -35,3 +37,4 @@ public enum PostUsersSignInDataMailingListStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java index 39df704b..fdcad61c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataMediaReviewsVisibility.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled + * PostUsersSignInDataMediaReviewsVisibility + * + *

Whether or not the account has media reviews visibility enabled */ public enum PostUsersSignInDataMediaReviewsVisibility { Disable(0), @@ -34,3 +36,4 @@ public enum PostUsersSignInDataMediaReviewsVisibility { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java index 1485646d..46c0f707 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -130,7 +129,7 @@ public class PostUsersSignInDataRequest { public final static Builder builder() { return new Builder(); - } + } /** * An opaque identifier unique to the client (UUID, serial number, or other unique device ID) @@ -230,6 +229,7 @@ public class PostUsersSignInDataRequest { this.requestBody = requestBody; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -283,7 +283,7 @@ public class PostUsersSignInDataRequest { private Optional platform = Optional.empty(); - private Optional requestBody = Optional.empty(); + private Optional requestBody = Optional.empty(); private Builder() { // force use of static builder() method @@ -399,4 +399,3 @@ public class PostUsersSignInDataRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java index 8410fb2a..c975490e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -15,10 +14,12 @@ import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; -/** - * PostUsersSignInDataRequestBody - Login credentials - */ +/** + * PostUsersSignInDataRequestBody + * + *

Login credentials + */ public class PostUsersSignInDataRequestBody { @SpeakeasyMetadata("form:name=login") @@ -77,7 +78,7 @@ public class PostUsersSignInDataRequestBody { public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataRequestBody withLogin(String login) { Utils.checkNotNull(login, "login"); @@ -114,6 +115,7 @@ public class PostUsersSignInDataRequestBody { this.verificationCode = verificationCode; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -157,7 +159,7 @@ public class PostUsersSignInDataRequestBody { private Optional rememberMe; - private Optional verificationCode = Optional.empty(); + private Optional verificationCode = Optional.empty(); private Builder() { // force use of static builder() method @@ -202,7 +204,8 @@ public class PostUsersSignInDataRequestBody { public PostUsersSignInDataRequestBody build() { if (rememberMe == null) { rememberMe = _SINGLETON_VALUE_RememberMe.value(); - } return new PostUsersSignInDataRequestBody( + } + return new PostUsersSignInDataRequestBody( login, password, rememberMe, @@ -216,4 +219,3 @@ public class PostUsersSignInDataRequestBody { 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 index 3021fda5..171e7bb6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java index 9e69a062..e50dc55e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -97,7 +96,7 @@ public class PostUsersSignInDataResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -143,6 +142,7 @@ public class PostUsersSignInDataResponse implements Response { this.userPlexAccount = userPlexAccount; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -186,7 +186,7 @@ public class PostUsersSignInDataResponse implements Response { private HttpResponse rawResponse; - private Optional userPlexAccount = Optional.empty(); + private Optional userPlexAccount = Optional.empty(); private Builder() { // force use of static builder() method @@ -246,4 +246,3 @@ public class PostUsersSignInDataResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java index cdf00677..31765a74 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataServices.java @@ -1,9 +1,8 @@ /* * 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; @@ -87,7 +86,7 @@ public class PostUsersSignInDataServices { public final static Builder builder() { return new Builder(); - } + } public PostUsersSignInDataServices withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); @@ -130,6 +129,7 @@ public class PostUsersSignInDataServices { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -178,7 +178,7 @@ public class PostUsersSignInDataServices { private Optional secret = Optional.empty(); - private PostUsersSignInDataStatus status; + private PostUsersSignInDataStatus status; private Builder() { // force use of static builder() method @@ -236,4 +236,3 @@ public class PostUsersSignInDataServices { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java index 9687ebcf..f7a88c56 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataState.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum PostUsersSignInDataState { ENDED("ended"); @@ -31,3 +31,4 @@ public enum PostUsersSignInDataState { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java index 8e716625..839a503c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataStatus.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum PostUsersSignInDataStatus { ONLINE("online"), OFFLINE("offline"); @@ -32,3 +32,4 @@ public enum PostUsersSignInDataStatus { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java index 0c2d41aa..dd236064 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataSubscription.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,10 +17,12 @@ 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 - */ +/** + * PostUsersSignInDataSubscription + * + *

If the account’s Plex Pass subscription is active + */ public class PostUsersSignInDataSubscription { /** @@ -144,7 +145,7 @@ public class PostUsersSignInDataSubscription { public final static Builder builder() { return new Builder(); - } + } /** * List of features allowed on your Plex Pass subscription @@ -253,6 +254,7 @@ public class PostUsersSignInDataSubscription { this.plan = plan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -306,7 +308,7 @@ public class PostUsersSignInDataSubscription { private JsonNullable paymentService = JsonNullable.undefined(); - private JsonNullable plan = JsonNullable.undefined(); + private JsonNullable plan = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -431,4 +433,3 @@ public class PostUsersSignInDataSubscription { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java index 6dd262a6..c0237b35 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserPlexAccount.java @@ -1,9 +1,8 @@ /* * 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; @@ -23,10 +22,12 @@ 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 - */ +/** + * PostUsersSignInDataUserPlexAccount + * + *

Returns the user account data with a valid auth token + */ public class PostUsersSignInDataUserPlexAccount { /** @@ -182,7 +183,8 @@ public class PostUsersSignInDataUserPlexAccount { private int maxHomeSize; /** - * [Might be removed] The hashed Plex Home PIN + * [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) @@ -632,7 +634,8 @@ public class PostUsersSignInDataUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -771,7 +774,7 @@ public class PostUsersSignInDataUserPlexAccount { public final static Builder builder() { return new Builder(); - } + } /** * Unknown @@ -1104,7 +1107,8 @@ public class PostUsersSignInDataUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1115,7 +1119,8 @@ public class PostUsersSignInDataUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1325,6 +1330,7 @@ public class PostUsersSignInDataUserPlexAccount { this.trials = trials; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1564,7 +1570,7 @@ public class PostUsersSignInDataUserPlexAccount { private List pastSubscriptions; - private List trials; + private List trials; private Builder() { // force use of static builder() method @@ -1901,7 +1907,8 @@ public class PostUsersSignInDataUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -1912,7 +1919,8 @@ public class PostUsersSignInDataUserPlexAccount { } /** - * [Might be removed] The hashed Plex Home PIN + * [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 @@ -2162,7 +2170,8 @@ public class PostUsersSignInDataUserPlexAccount { } if (twoFactorEnabled == null) { twoFactorEnabled = _SINGLETON_VALUE_TwoFactorEnabled.value(); - } return new PostUsersSignInDataUserPlexAccount( + } + return new PostUsersSignInDataUserPlexAccount( adsConsent, adsConsentReminderAt, adsConsentSetAt, @@ -2287,4 +2296,3 @@ public class PostUsersSignInDataUserPlexAccount { 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 index d1312b57..0767f922 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataUserProfile.java @@ -1,9 +1,8 @@ /* * 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; @@ -150,7 +149,7 @@ public class PostUsersSignInDataUserProfile { public final static Builder builder() { return new Builder(); - } + } /** * If the account has automatically select audio and subtitle tracks enabled @@ -265,6 +264,7 @@ public class PostUsersSignInDataUserProfile { this.mediaReviewsVisibility = mediaReviewsVisibility; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -328,7 +328,7 @@ public class PostUsersSignInDataUserProfile { private Optional watchedIndicator; - private Optional mediaReviewsVisibility; + private Optional mediaReviewsVisibility; private Builder() { // force use of static builder() method @@ -466,7 +466,8 @@ public class PostUsersSignInDataUserProfile { } if (mediaReviewsVisibility == null) { mediaReviewsVisibility = _SINGLETON_VALUE_MediaReviewsVisibility.value(); - } return new PostUsersSignInDataUserProfile( + } + return new PostUsersSignInDataUserProfile( autoSelectAudio, defaultAudioLanguage, defaultSubtitleLanguage, @@ -514,4 +515,3 @@ public class PostUsersSignInDataUserProfile { 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 index 218b6237..c6c9fff6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/PostUsersSignInDataWatchedIndicator.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media) + * PostUsersSignInDataWatchedIndicator + * + *

Whether or not media watched indicators are enabled (little orange dot on media) */ public enum PostUsersSignInDataWatchedIndicator { Disable(0), @@ -34,3 +36,4 @@ public enum PostUsersSignInDataWatchedIndicator { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Producer.java b/src/main/java/dev/plexapi/sdk/models/operations/Producer.java index e8e2dcff..53780c8f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Producer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Producer.java @@ -1,9 +1,8 @@ /* * 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; @@ -118,7 +117,7 @@ public class Producer { public final static Builder builder() { return new Builder(); - } + } /** * Unique identifier for the producer. @@ -182,6 +181,7 @@ public class Producer { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -230,7 +230,7 @@ public class Producer { private Optional tagKey = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -309,4 +309,3 @@ public class Producer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Protected.java b/src/main/java/dev/plexapi/sdk/models/operations/Protected.java index 69f432a4..a2c79ad7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Protected.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Protected.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Protected - Indicates whether the account is protected. + * Protected + * + *

Indicates whether the account is protected. */ public enum Protected { Disable(0), @@ -34,3 +36,4 @@ public enum Protected { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Protocol.java b/src/main/java/dev/plexapi/sdk/models/operations/Protocol.java index 3e5af807..0413ab15 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Protocol.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Protocol.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Protocol - The protocol used for the connection (http, https, etc) + * Protocol + * + *

The protocol used for the connection (http, https, etc) */ public enum Protocol { HTTP("http"), @@ -35,3 +37,4 @@ public enum Protocol { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Provider.java b/src/main/java/dev/plexapi/sdk/models/operations/Provider.java index 54b7e0f6..e3b4e921 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Provider.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Provider.java @@ -1,9 +1,8 @@ /* * 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; @@ -63,7 +62,7 @@ public class Provider { public final static Builder builder() { return new Builder(); - } + } public Provider withKey(String key) { Utils.checkNotNull(key, "key"); @@ -100,6 +99,7 @@ public class Provider { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class Provider { private Optional title = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Builder() { // force use of static builder() method @@ -188,4 +188,3 @@ public class Provider { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java index 2d5e2f5f..273aeca2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamFilter.java @@ -1,20 +1,20 @@ /* * 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; -/** - * QueryParamFilter - Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ +/** + * QueryParamFilter + * + *

Filters content by field and direction/equality + * (Unknown if viewedAt is the only supported column) + */ public class QueryParamFilter { @JsonCreator @@ -25,7 +25,8 @@ public class QueryParamFilter { public final static Builder builder() { return new Builder(); - } + } + @Override public boolean equals(java.lang.Object o) { @@ -49,7 +50,7 @@ public class QueryParamFilter { return Utils.toString(QueryParamFilter.class); } - public final static class Builder { + public final static class Builder { private Builder() { // force use of static builder() method @@ -61,4 +62,3 @@ public class 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 index 472bce57..d4c8bcf8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamForce.java @@ -1,18 +1,19 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * QueryParamForce - Force overwriting of duplicate playlists. + * 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), @@ -38,3 +39,4 @@ public enum QueryParamForce { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeCollections.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeCollections.java index ef677023..29376b99 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeCollections.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeCollections.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** * QueryParamIncludeCollections */ @@ -34,3 +34,4 @@ public enum QueryParamIncludeCollections { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeExternalMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeExternalMedia.java index 8f648234..9a0eecd4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeExternalMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeExternalMedia.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** * QueryParamIncludeExternalMedia */ @@ -34,3 +34,4 @@ public enum QueryParamIncludeExternalMedia { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeGuids.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeGuids.java index 98921b3f..a7268810 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeGuids.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeGuids.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * QueryParamIncludeGuids - Adds the Guid object to the response + * QueryParamIncludeGuids * + *

Adds the Guid object to the response */ public enum QueryParamIncludeGuids { Disable(0), @@ -35,3 +36,4 @@ public enum QueryParamIncludeGuids { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeMeta.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeMeta.java index b621c7f0..50b9521b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeMeta.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamIncludeMeta.java @@ -1,15 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * QueryParamIncludeMeta - Adds the Meta object to the response + * QueryParamIncludeMeta * + *

Adds the Meta object to the response */ public enum QueryParamIncludeMeta { Disable(0), @@ -35,3 +36,4 @@ public enum QueryParamIncludeMeta { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java index 79e6b482..444e483a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamOnlyTransient.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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). + * QueryParamOnlyTransient + * + *

Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). */ public enum QueryParamOnlyTransient { ZERO(0L), @@ -34,3 +36,4 @@ public enum QueryParamOnlyTransient { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java index 07ab2708..47d7dc51 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamSmart.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * QueryParamSmart - type of playlists to return (default is all). + * QueryParamSmart + * + *

type of playlists to return (default is all). */ public enum QueryParamSmart { ZERO(0L), @@ -34,3 +36,4 @@ public enum QueryParamSmart { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java index 5dc6e904..e64bf9b6 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/QueryParamType.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * QueryParamType - The type of media to retrieve or filter by. + * QueryParamType + * + *

The type of media to retrieve or filter by. * 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 { Movie(1L), @@ -45,3 +46,4 @@ public enum QueryParamType { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Rating.java b/src/main/java/dev/plexapi/sdk/models/operations/Rating.java index e0651a51..61909a66 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Rating.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Rating.java @@ -1,9 +1,8 @@ /* * 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; @@ -12,10 +11,12 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * Rating - The type of rating, for example 'audience' or 'critic'. - */ +/** + * Rating + * + *

The type of rating, for example 'audience' or 'critic'. + */ public class Rating { @JsonProperty("image") @@ -57,7 +58,7 @@ public class Rating { public final static Builder builder() { return new Builder(); - } + } public Rating withImage(String image) { Utils.checkNotNull(image, "image"); @@ -76,6 +77,7 @@ public class Rating { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -114,7 +116,7 @@ public class Rating { private Double value; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -146,4 +148,3 @@ public class Rating { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java b/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java index b905b4d6..a8fecdd9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Ratings.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class Ratings { public final static Builder builder() { return new Builder(); - } + } /** * The image or reference for the rating. @@ -100,6 +99,7 @@ public class Ratings { this.type = type; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class Ratings { private Float value; - private String type; + private String type; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class Ratings { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Release.java b/src/main/java/dev/plexapi/sdk/models/operations/Release.java index 114bb98e..5299da17 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Release.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Release.java @@ -1,9 +1,8 @@ /* * 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; @@ -99,7 +98,7 @@ public class Release { public final static Builder builder() { return new Builder(); - } + } public Release withKey(String key) { Utils.checkNotNull(key, "key"); @@ -172,6 +171,7 @@ public class Release { this.state = state; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -225,7 +225,7 @@ public class Release { private Optional downloadURL = Optional.empty(); - private Optional state = Optional.empty(); + private Optional state = Optional.empty(); private Builder() { // force use of static builder() method @@ -314,4 +314,3 @@ public class Release { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java b/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java index 7fd18564..000c4e56 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ResponseBody.java @@ -1,9 +1,8 @@ /* * 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; @@ -92,7 +91,7 @@ public class ResponseBody { public final static Builder builder() { return new Builder(); - } + } public ResponseBody withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); @@ -132,6 +131,7 @@ public class ResponseBody { this.token = token; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -185,7 +185,7 @@ public class ResponseBody { private String provides; - private String token; + private String token; private Builder() { // force use of static builder() method @@ -241,4 +241,3 @@ public class ResponseBody { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Restricted.java b/src/main/java/dev/plexapi/sdk/models/operations/Restricted.java index e564322a..aec1ba42 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Restricted.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Restricted.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Restricted - Indicates if the user has restricted access. + * Restricted + * + *

Indicates if the user has restricted access. */ public enum Restricted { Disable(0), @@ -34,3 +36,4 @@ public enum Restricted { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Role.java b/src/main/java/dev/plexapi/sdk/models/operations/Role.java index 7c4230ee..c5df89d4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Role.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Role.java @@ -1,9 +1,8 @@ /* * 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; @@ -136,7 +135,7 @@ public class Role { public final static Builder builder() { return new Builder(); - } + } /** * Unique identifier for the actor or role. @@ -218,6 +217,7 @@ public class Role { this.thumb = thumb; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -271,7 +271,7 @@ public class Role { private Optional role = Optional.empty(); - private Optional thumb = Optional.empty(); + private Optional thumb = Optional.empty(); private Builder() { // force use of static builder() method @@ -369,4 +369,3 @@ public class Role { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java b/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java index ed3b6389..aaa2b561 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/SDKMethodInterfaces.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; import java.lang.Double; @@ -12,66 +11,54 @@ import java.util.Optional; public class SDKMethodInterfaces { - public interface MethodCallGetServerCapabilities { GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception; } - public interface MethodCallGetServerPreferences { GetServerPreferencesResponse getServerPreferencesDirect() throws Exception; } - public interface MethodCallGetAvailableClients { GetAvailableClientsResponse getAvailableClientsDirect() throws Exception; } - public interface MethodCallGetDevices { GetDevicesResponse getDevicesDirect() throws Exception; } - public interface MethodCallGetServerIdentity { GetServerIdentityResponse getServerIdentityDirect() throws Exception; } - public interface MethodCallGetMyPlexAccount { GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception; } - public interface MethodCallGetResizedPhoto { GetResizedPhotoResponse getResizedPhoto( GetResizedPhotoRequest request) throws Exception; } - public interface MethodCallGetMediaProviders { GetMediaProvidersResponse getMediaProviders( String xPlexToken) throws Exception; } - public interface MethodCallGetServerList { GetServerListResponse getServerListDirect() throws Exception; } - public interface MethodCallMarkPlayed { MarkPlayedResponse markPlayed( double key) throws Exception; } - public interface MethodCallMarkUnplayed { MarkUnplayedResponse markUnplayed( double key) throws Exception; } - public interface MethodCallUpdatePlayProgress { UpdatePlayProgressResponse updatePlayProgress( String key, @@ -79,92 +66,76 @@ public class SDKMethodInterfaces { String state) throws Exception; } - public interface MethodCallGetBannerImage { GetBannerImageResponse getBannerImage( GetBannerImageRequest request) throws Exception; } - public interface MethodCallGetThumbImage { GetThumbImageResponse getThumbImage( GetThumbImageRequest request) throws Exception; } - public interface MethodCallGetTimeline { GetTimelineResponse getTimeline( GetTimelineRequest request) throws Exception; } - public interface MethodCallStartUniversalTranscode { StartUniversalTranscodeResponse startUniversalTranscode( StartUniversalTranscodeRequest request) throws Exception; } - public interface MethodCallGetServerActivities { GetServerActivitiesResponse getServerActivitiesDirect() throws Exception; } - public interface MethodCallCancelServerActivities { CancelServerActivitiesResponse cancelServerActivities( String activityUUID) throws Exception; } - public interface MethodCallGetButlerTasks { GetButlerTasksResponse getButlerTasksDirect() throws Exception; } - public interface MethodCallStartAllTasks { StartAllTasksResponse startAllTasksDirect() throws Exception; } - public interface MethodCallStopAllTasks { StopAllTasksResponse stopAllTasksDirect() throws Exception; } - public interface MethodCallStartTask { StartTaskResponse startTask( TaskName taskName) throws Exception; } - public interface MethodCallStopTask { StopTaskResponse stopTask( PathParamTaskName taskName) throws Exception; } - public interface MethodCallGetCompanionsData { GetCompanionsDataResponse getCompanionsData( Optional serverURL) throws Exception; } - public interface MethodCallGetUserFriends { GetUserFriendsResponse getUserFriends( Optional serverURL) throws Exception; } - public interface MethodCallGetGeoData { GetGeoDataResponse getGeoData( Optional serverURL) throws Exception; } - public interface MethodCallGetHomeData { GetHomeDataResponse getHomeDataDirect() throws Exception; } - public interface MethodCallGetServerResources { GetServerResourcesResponse getServerResources( Optional includeHttps, @@ -174,34 +145,29 @@ public class SDKMethodInterfaces { Optional serverURL) throws Exception; } - public interface MethodCallGetPin { GetPinResponse getPin( GetPinRequest request, Optional serverURL) throws Exception; } - public interface MethodCallGetTokenByPinId { GetTokenByPinIdResponse getTokenByPinId( GetTokenByPinIdRequest request, Optional serverURL) throws Exception; } - public interface MethodCallGetGlobalHubs { GetGlobalHubsResponse getGlobalHubs( Optional count, Optional onlyTransient) throws Exception; } - public interface MethodCallGetRecentlyAdded { GetRecentlyAddedResponse getRecentlyAdded( GetRecentlyAddedRequest request) throws Exception; } - public interface MethodCallGetLibraryHubs { GetLibraryHubsResponse getLibraryHubs( double sectionId, @@ -209,7 +175,6 @@ public class SDKMethodInterfaces { Optional onlyTransient) throws Exception; } - public interface MethodCallPerformSearch { PerformSearchResponse performSearch( String query, @@ -217,7 +182,6 @@ public class SDKMethodInterfaces { Optional limit) throws Exception; } - public interface MethodCallPerformVoiceSearch { PerformVoiceSearchResponse performVoiceSearch( String query, @@ -225,124 +189,105 @@ public class SDKMethodInterfaces { Optional limit) throws Exception; } - public interface MethodCallGetSearchResults { GetSearchResultsResponse getSearchResults( String query) throws Exception; } - public interface MethodCallGetFileHash { GetFileHashResponse getFileHash( String url, Optional type) throws Exception; } - public interface MethodCallGetRecentlyAddedLibrary { GetRecentlyAddedLibraryResponse getRecentlyAddedLibrary( GetRecentlyAddedLibraryRequest request) throws Exception; } - public interface MethodCallGetAllLibraries { GetAllLibrariesResponse getAllLibrariesDirect() throws Exception; } - public interface MethodCallGetLibraryDetails { GetLibraryDetailsResponse getLibraryDetails( Optional includeDetails, int sectionKey) throws Exception; } - public interface MethodCallDeleteLibrary { DeleteLibraryResponse deleteLibrary( int sectionKey) throws Exception; } - public interface MethodCallGetLibraryItems { GetLibraryItemsResponse getLibraryItems( GetLibraryItemsRequest request) throws Exception; } - public interface MethodCallGetAllMediaLibrary { GetAllMediaLibraryResponse getAllMediaLibrary( GetAllMediaLibraryRequest request) throws Exception; } - public interface MethodCallGetRefreshLibraryMetadata { GetRefreshLibraryMetadataResponse getRefreshLibraryMetadata( Optional force, int sectionKey) throws Exception; } - public interface MethodCallGetSearchLibrary { GetSearchLibraryResponse getSearchLibrary( int sectionKey, GetSearchLibraryQueryParamType type) throws Exception; } - public interface MethodCallGetGenresLibrary { GetGenresLibraryResponse getGenresLibrary( int sectionKey, GetGenresLibraryQueryParamType type) throws Exception; } - public interface MethodCallGetCountriesLibrary { GetCountriesLibraryResponse getCountriesLibrary( int sectionKey, GetCountriesLibraryQueryParamType type) throws Exception; } - public interface MethodCallGetActorsLibrary { GetActorsLibraryResponse getActorsLibrary( int sectionKey, GetActorsLibraryQueryParamType type) throws Exception; } - public interface MethodCallGetSearchAllLibraries { GetSearchAllLibrariesResponse getSearchAllLibraries( GetSearchAllLibrariesRequest request) throws Exception; } - public interface MethodCallGetMediaMetaData { GetMediaMetaDataResponse getMediaMetaData( GetMediaMetaDataRequest request) throws Exception; } - public interface MethodCallGetMetadataChildren { GetMetadataChildrenResponse getMetadataChildren( double ratingKey, Optional includeElements) throws Exception; } - public interface MethodCallGetTopWatchedContent { GetTopWatchedContentResponse getTopWatchedContent( Optional includeGuids, GetTopWatchedContentQueryParamType type) throws Exception; } - public interface MethodCallGetWatchList { GetWatchListResponse getWatchList( GetWatchListRequest request, Optional serverURL) throws Exception; } - public interface MethodCallLogLine { LogLineResponse logLine( Level level, @@ -350,43 +295,36 @@ public class SDKMethodInterfaces { String source) throws Exception; } - public interface MethodCallLogMultiLine { LogMultiLineResponse logMultiLine( String request) throws Exception; } - public interface MethodCallEnablePaperTrail { EnablePaperTrailResponse enablePaperTrailDirect() throws Exception; } - public interface MethodCallCreatePlaylist { CreatePlaylistResponse createPlaylist( CreatePlaylistRequest request) throws Exception; } - public interface MethodCallGetPlaylists { GetPlaylistsResponse getPlaylists( Optional playlistType, Optional smart) throws Exception; } - public interface MethodCallGetPlaylist { GetPlaylistResponse getPlaylist( double playlistID) throws Exception; } - public interface MethodCallDeletePlaylist { DeletePlaylistResponse deletePlaylist( double playlistID) throws Exception; } - public interface MethodCallUpdatePlaylist { UpdatePlaylistResponse updatePlaylist( double playlistID, @@ -394,20 +332,17 @@ public class SDKMethodInterfaces { Optional summary) throws Exception; } - public interface MethodCallGetPlaylistContents { GetPlaylistContentsResponse getPlaylistContents( double playlistID, GetPlaylistContentsQueryParamType type) throws Exception; } - public interface MethodCallClearPlaylistContents { ClearPlaylistContentsResponse clearPlaylistContents( double playlistID) throws Exception; } - public interface MethodCallAddPlaylistContents { AddPlaylistContentsResponse addPlaylistContents( double playlistID, @@ -415,7 +350,6 @@ public class SDKMethodInterfaces { Optional playQueueID) throws Exception; } - public interface MethodCallUploadPlaylist { UploadPlaylistResponse uploadPlaylist( String path, @@ -423,56 +357,47 @@ public class SDKMethodInterfaces { long sectionID) throws Exception; } - public interface MethodCallGetTransientToken { GetTransientTokenResponse getTransientToken( GetTransientTokenQueryParamType type, Scope scope) throws Exception; } - public interface MethodCallGetSourceConnectionInformation { GetSourceConnectionInformationResponse getSourceConnectionInformation( String source) throws Exception; } - public interface MethodCallGetTokenDetails { GetTokenDetailsResponse getTokenDetails( Optional serverURL) throws Exception; } - public interface MethodCallPostUsersSignInData { PostUsersSignInDataResponse postUsersSignInData( PostUsersSignInDataRequest request, Optional serverURL) throws Exception; } - public interface MethodCallGetStatistics { GetStatisticsResponse getStatistics( Optional timespan) throws Exception; } - public interface MethodCallGetResourcesStatistics { GetResourcesStatisticsResponse getResourcesStatistics( Optional timespan) throws Exception; } - public interface MethodCallGetBandwidthStatistics { GetBandwidthStatisticsResponse getBandwidthStatistics( Optional timespan) throws Exception; } - public interface MethodCallGetSessions { GetSessionsResponse getSessionsDirect() throws Exception; } - public interface MethodCallGetSessionHistory { GetSessionHistoryResponse getSessionHistory( Optional sort, @@ -481,41 +406,33 @@ public class SDKMethodInterfaces { Optional librarySectionID) throws Exception; } - public interface MethodCallGetTranscodeSessions { GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception; } - public interface MethodCallStopTranscodeSession { StopTranscodeSessionResponse stopTranscodeSession( String sessionKey) throws Exception; } - public interface MethodCallGetUpdateStatus { GetUpdateStatusResponse getUpdateStatusDirect() throws Exception; } - public interface MethodCallCheckForUpdates { CheckForUpdatesResponse checkForUpdates( Optional download) throws Exception; } - public interface MethodCallApplyUpdates { ApplyUpdatesResponse applyUpdates( Optional tonight, Optional skip) throws Exception; } - public interface MethodCallGetUsers { GetUsersResponse getUsers( GetUsersRequest request, Optional serverURL) 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 index a843de69..f3a98a49 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Scope.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Scope.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Scope - `all` - This is the only supported `scope` parameter. + * Scope + * + *

`all` - This is the only supported `scope` parameter. */ public enum Scope { ALL("all"); @@ -34,3 +36,4 @@ public enum Scope { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SearchResult.java b/src/main/java/dev/plexapi/sdk/models/operations/SearchResult.java index b9bbc965..19fb1ef4 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/SearchResult.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/SearchResult.java @@ -1,9 +1,8 @@ /* * 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; @@ -43,7 +42,7 @@ public class SearchResult { public final static Builder builder() { return new Builder(); - } + } public SearchResult withScore(float score) { Utils.checkNotNull(score, "score"); @@ -56,6 +55,7 @@ public class SearchResult { this.metadata = metadata; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -89,7 +89,7 @@ public class SearchResult { private Float score; - private GetSearchAllLibrariesMetadata metadata; + private GetSearchAllLibrariesMetadata metadata; private Builder() { // force use of static builder() method @@ -114,4 +114,3 @@ public class SearchResult { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SearchTypes.java b/src/main/java/dev/plexapi/sdk/models/operations/SearchTypes.java index 119317f3..3dfc2a48 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/SearchTypes.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/SearchTypes.java @@ -1,13 +1,13 @@ /* * 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; import java.util.Objects; import java.util.Optional; + public enum SearchTypes { MOVIES("movies"), MUSIC("music"), @@ -35,3 +35,4 @@ public enum SearchTypes { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Server.java b/src/main/java/dev/plexapi/sdk/models/operations/Server.java index 83cfb9f4..87274b31 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Server.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Server.java @@ -1,9 +1,8 @@ /* * 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; @@ -160,7 +159,7 @@ public class Server { public final static Builder builder() { return new Builder(); - } + } public Server withName(String name) { Utils.checkNotNull(name, "name"); @@ -293,6 +292,7 @@ public class Server { this.protocolCapabilities = protocolCapabilities; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -371,7 +371,7 @@ public class Server { private Optional protocolVersion = Optional.empty(); - private Optional protocolCapabilities = Optional.empty(); + private Optional protocolCapabilities = Optional.empty(); private Builder() { // force use of static builder() method @@ -525,4 +525,3 @@ public class Server { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Services.java b/src/main/java/dev/plexapi/sdk/models/operations/Services.java index e3d1ece7..424e6129 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Services.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Services.java @@ -1,9 +1,8 @@ /* * 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; @@ -87,7 +86,7 @@ public class Services { public final static Builder builder() { return new Builder(); - } + } public Services withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); @@ -130,6 +129,7 @@ public class Services { this.status = status; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -178,7 +178,7 @@ public class Services { private Optional secret = Optional.empty(); - private GetTokenDetailsStatus status; + private GetTokenDetailsStatus status; private Builder() { // force use of static builder() method @@ -236,4 +236,3 @@ public class Services { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Session.java b/src/main/java/dev/plexapi/sdk/models/operations/Session.java index 4d866a0e..931dc37e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Session.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Session.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class Session { public final static Builder builder() { return new Builder(); - } + } public Session withId(String id) { Utils.checkNotNull(id, "id"); @@ -101,6 +100,7 @@ public class Session { this.location = location; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -139,7 +139,7 @@ public class Session { private Optional bandwidth = Optional.empty(); - private Optional location = Optional.empty(); + private Optional location = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,4 +189,3 @@ public class Session { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Setting.java b/src/main/java/dev/plexapi/sdk/models/operations/Setting.java index 1a0087e1..8615ab15 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Setting.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Setting.java @@ -1,9 +1,8 @@ /* * 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; @@ -148,7 +147,7 @@ public class Setting { public final static Builder builder() { return new Builder(); - } + } public Setting withId(String id) { Utils.checkNotNull(id, "id"); @@ -269,6 +268,7 @@ public class Setting { this.enumValues = enumValues; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -342,7 +342,7 @@ public class Setting { private Optional group = Optional.empty(); - private Optional enumValues = Optional.empty(); + private Optional enumValues = Optional.empty(); private Builder() { // force use of static builder() method @@ -483,4 +483,3 @@ public class Setting { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java b/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java index 279e8ab3..04666462 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/SharedServers.java @@ -1,9 +1,8 @@ /* * 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; @@ -20,7 +19,8 @@ public class SharedServers { public final static Builder builder() { return new Builder(); - } + } + @Override public boolean equals(java.lang.Object o) { @@ -44,7 +44,7 @@ public class SharedServers { return Utils.toString(SharedServers.class); } - public final static class Builder { + public final static class Builder { private Builder() { // force use of static builder() method @@ -56,4 +56,3 @@ public class 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 index 4408d722..9fcc0933 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/SharedSources.java @@ -1,9 +1,8 @@ /* * 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; @@ -20,7 +19,8 @@ public class SharedSources { public final static Builder builder() { return new Builder(); - } + } + @Override public boolean equals(java.lang.Object o) { @@ -44,7 +44,7 @@ public class SharedSources { return Utils.toString(SharedSources.class); } - public final static class Builder { + public final static class Builder { private Builder() { // force use of static builder() method @@ -56,4 +56,3 @@ public class SharedSources { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/ShowOrdering.java b/src/main/java/dev/plexapi/sdk/models/operations/ShowOrdering.java index 15e9b8b6..5cc4c0e5 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/ShowOrdering.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/ShowOrdering.java @@ -1,21 +1,22 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * ShowOrdering - Setting that indicates the episode ordering for the show. + * ShowOrdering + * + *

Setting that indicates the episode ordering for the show. * None = Library default, * tmdbAiring = The Movie Database (Aired), * aired = TheTVDB (Aired), * dvd = TheTVDB (DVD), * absolute = TheTVDB (Absolute)). - * */ public enum ShowOrdering { None("None"), @@ -44,3 +45,4 @@ public enum ShowOrdering { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Similar.java b/src/main/java/dev/plexapi/sdk/models/operations/Similar.java index f383658c..c5b7fd86 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Similar.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Similar.java @@ -1,9 +1,8 @@ /* * 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; @@ -12,10 +11,12 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; import java.util.Objects; -/** - * Similar - The display tag for the similar item, typically the title. - */ +/** + * Similar + * + *

The display tag for the similar item, typically the title. + */ public class Similar { @JsonProperty("id") @@ -57,7 +58,7 @@ public class Similar { public final static Builder builder() { return new Builder(); - } + } public Similar withId(long id) { Utils.checkNotNull(id, "id"); @@ -76,6 +77,7 @@ public class Similar { this.tag = tag; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -114,7 +116,7 @@ public class Similar { private String filter; - private String tag; + private String tag; private Builder() { // force use of static builder() method @@ -146,4 +148,3 @@ public class Similar { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Skip.java b/src/main/java/dev/plexapi/sdk/models/operations/Skip.java index 83aa577e..99ace864 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Skip.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Skip.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Skip - Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`. + * 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), @@ -34,3 +36,4 @@ public enum Skip { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Smart.java b/src/main/java/dev/plexapi/sdk/models/operations/Smart.java index 67548adf..129ac1d3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Smart.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Smart.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Smart - whether the playlist is smart or not + * Smart + * + *

whether the playlist is smart or not */ public enum Smart { ZERO(0L), @@ -34,3 +36,4 @@ public enum Smart { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Sort.java b/src/main/java/dev/plexapi/sdk/models/operations/Sort.java index bc676c69..bcee1a6e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Sort.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Sort.java @@ -1,9 +1,8 @@ /* * 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; @@ -31,7 +30,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeDirection") @@ -39,7 +37,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultDirection") @@ -105,7 +102,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +111,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ @SuppressWarnings("unchecked") @JsonIgnore @@ -145,7 +140,7 @@ public class Sort { public final static Builder builder() { return new Builder(); - } + } public Sort withDefault(String default_) { Utils.checkNotNull(default_, "default_"); @@ -173,7 +168,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Sort withActiveDirection(ActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -183,7 +177,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Sort withActiveDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -193,7 +186,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Sort withDefaultDirection(DefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -203,7 +195,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Sort withDefaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -246,6 +237,7 @@ public class Sort { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -309,7 +301,7 @@ public class Sort { private String key; - private String title; + private String title; private Builder() { // force use of static builder() method @@ -341,7 +333,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(ActiveDirection activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -351,7 +342,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder activeDirection(Optional activeDirection) { Utils.checkNotNull(activeDirection, "activeDirection"); @@ -361,7 +351,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(DefaultDirection defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -371,7 +360,6 @@ public class Sort { /** * The direction of the sort. Can be either `asc` or `desc`. - * */ public Builder defaultDirection(Optional defaultDirection) { Utils.checkNotNull(defaultDirection, "defaultDirection"); @@ -421,7 +409,8 @@ public class Sort { } if (defaultDirection == null) { defaultDirection = _SINGLETON_VALUE_DefaultDirection.value(); - } return new Sort( + } + return new Sort( default_, active, activeDirection, @@ -445,4 +434,3 @@ public class Sort { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java index 966a0423..1b3dea67 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class StartAllTasksRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java index 4a0dc556..f7420799 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartAllTasksResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StartAllTasksResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StartAllTasksResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StartAllTasksResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StartAllTasksResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java index 05e6e3b4..d64501a7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class StartTaskRequest { public final static Builder builder() { return new Builder(); - } + } /** * the name of the task to be started. @@ -47,6 +46,7 @@ public class StartTaskRequest { this.taskName = taskName; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class StartTaskRequest { public final static class Builder { - private TaskName taskName; + private TaskName taskName; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class StartTaskRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java index 5d4c7e01..47bd3be3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class StartTaskRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java index 389a128d..b37e4663 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartTaskResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StartTaskResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StartTaskResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StartTaskResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StartTaskResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java index e1650343..4989696f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -303,7 +302,7 @@ public class StartUniversalTranscodeRequest { public final static Builder builder() { return new Builder(); - } + } /** * Whether the media item has MDE @@ -547,6 +546,7 @@ public class StartUniversalTranscodeRequest { this.autoAdjustQuality = autoAdjustQuality; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -650,7 +650,7 @@ public class StartUniversalTranscodeRequest { private Optional addDebugOverlay = Optional.empty(); - private Optional autoAdjustQuality = Optional.empty(); + private Optional autoAdjustQuality = Optional.empty(); private Builder() { // force use of static builder() method @@ -920,4 +920,3 @@ public class StartUniversalTranscodeRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java index dadcbc18..6b045dc3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class StartUniversalTranscodeRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java index f1376eb6..199fd9c8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StartUniversalTranscodeResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StartUniversalTranscodeResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StartUniversalTranscodeResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StartUniversalTranscodeResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StartUniversalTranscodeResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/State.java b/src/main/java/dev/plexapi/sdk/models/operations/State.java index 3091f7bd..29b715b3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/State.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/State.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * State - The state of the media item + * State + * + *

The state of the media item */ public enum State { PLAYING("playing"), @@ -36,3 +38,4 @@ public enum State { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java index 2cc67398..f8292bdc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsBandwidth.java @@ -1,9 +1,8 @@ /* * 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; @@ -102,7 +101,7 @@ public class StatisticsBandwidth { public final static Builder builder() { return new Builder(); - } + } public StatisticsBandwidth withAccountID(int accountID) { Utils.checkNotNull(accountID, "accountID"); @@ -175,6 +174,7 @@ public class StatisticsBandwidth { this.bytes = bytes; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -228,7 +228,7 @@ public class StatisticsBandwidth { private Optional lan = Optional.empty(); - private Optional bytes = Optional.empty(); + private Optional bytes = Optional.empty(); private Builder() { // force use of static builder() method @@ -317,4 +317,3 @@ public class StatisticsBandwidth { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java index 441f91eb..b1c73d16 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsMedia.java @@ -1,9 +1,8 @@ /* * 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; @@ -112,7 +111,7 @@ public class StatisticsMedia { public final static Builder builder() { return new Builder(); - } + } public StatisticsMedia withAccountID(int accountID) { Utils.checkNotNull(accountID, "accountID"); @@ -197,6 +196,7 @@ public class StatisticsMedia { this.duration = duration; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -255,7 +255,7 @@ public class StatisticsMedia { private Optional count = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); private Builder() { // force use of static builder() method @@ -357,4 +357,3 @@ public class StatisticsMedia { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java index b4694be6..71a9a178 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StatisticsResources.java @@ -1,9 +1,8 @@ /* * 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; @@ -101,7 +100,7 @@ public class StatisticsResources { public final static Builder builder() { return new Builder(); - } + } public StatisticsResources withTimespan(long timespan) { Utils.checkNotNull(timespan, "timespan"); @@ -174,6 +173,7 @@ public class StatisticsResources { this.processMemoryUtilization = processMemoryUtilization; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -227,7 +227,7 @@ public class StatisticsResources { private Optional hostMemoryUtilization = Optional.empty(); - private Optional processMemoryUtilization = Optional.empty(); + private Optional processMemoryUtilization = Optional.empty(); private Builder() { // force use of static builder() method @@ -316,4 +316,3 @@ public class StatisticsResources { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Status.java b/src/main/java/dev/plexapi/sdk/models/operations/Status.java index 39697cc8..e874e141 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Status.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Status.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Status - Current friend request status + * Status + * + *

Current friend request status */ public enum Status { ACCEPTED("accepted"); @@ -34,3 +36,4 @@ public enum Status { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java index f31e3f2d..5252d245 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksRequestBuilder.java @@ -1,9 +1,9 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.models.operations; +import java.lang.Exception; public class StopAllTasksRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java index 8660dd9f..01221406 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopAllTasksResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StopAllTasksResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StopAllTasksResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StopAllTasksResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StopAllTasksResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java index eb3a886a..83f21a8b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class StopTaskRequest { public final static Builder builder() { return new Builder(); - } + } /** * The name of the task to be started. @@ -47,6 +46,7 @@ public class StopTaskRequest { this.taskName = taskName; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class StopTaskRequest { public final static class Builder { - private PathParamTaskName taskName; + private PathParamTaskName taskName; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class StopTaskRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java index dd143045..2474c1d7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; public class StopTaskRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java index 905c6bb3..7c6d4ee2 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTaskResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StopTaskResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StopTaskResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StopTaskResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StopTaskResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java index 45ac7d33..3b29be6d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -37,7 +36,7 @@ public class StopTranscodeSessionRequest { public final static Builder builder() { return new Builder(); - } + } /** * the Key of the transcode session to stop @@ -47,6 +46,7 @@ public class StopTranscodeSessionRequest { this.sessionKey = sessionKey; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -75,7 +75,7 @@ public class StopTranscodeSessionRequest { public final static class Builder { - private String sessionKey; + private String sessionKey; private Builder() { // force use of static builder() method @@ -96,4 +96,3 @@ public class StopTranscodeSessionRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java index cf76f9c7..f25271fb 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionRequestBuilder.java @@ -1,10 +1,10 @@ /* * 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.Exception; import java.lang.String; public class StopTranscodeSessionRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java index 3d8ff1d8..c41f8900 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopTranscodeSessionResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class StopTranscodeSessionResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class StopTranscodeSessionResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class StopTranscodeSessionResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class StopTranscodeSessionResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Stream.java b/src/main/java/dev/plexapi/sdk/models/operations/Stream.java index a23b9dd8..29efa8ee 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Stream.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Stream.java @@ -1,9 +1,8 @@ /* * 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; @@ -883,7 +882,7 @@ public class Stream { public final static Builder builder() { return new Builder(); - } + } /** * Unique stream identifier. @@ -1682,6 +1681,7 @@ public class Stream { this.title = title; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -1950,7 +1950,7 @@ public class Stream { private Optional dub = Optional.empty(); - private Optional title = Optional.empty(); + private Optional title = Optional.empty(); private Builder() { // force use of static builder() method @@ -2808,4 +2808,3 @@ public class Stream { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java b/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java index 20d96085..fc4441e0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Subscription.java @@ -1,9 +1,8 @@ /* * 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; @@ -18,10 +17,12 @@ 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 - */ +/** + * Subscription + * + *

If the account’s Plex Pass subscription is active + */ public class Subscription { /** @@ -144,7 +145,7 @@ public class Subscription { public final static Builder builder() { return new Builder(); - } + } /** * List of features allowed on your Plex Pass subscription @@ -253,6 +254,7 @@ public class Subscription { this.plan = plan; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -306,7 +308,7 @@ public class Subscription { private JsonNullable paymentService = JsonNullable.undefined(); - private JsonNullable plan = JsonNullable.undefined(); + private JsonNullable plan = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -431,4 +433,3 @@ public class Subscription { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Tag.java b/src/main/java/dev/plexapi/sdk/models/operations/Tag.java index 8e177b90..adbc732a 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Tag.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Tag.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * Tag - A key representing a specific tag within the section. + * Tag + * + *

A key representing a specific tag within the section. */ public enum Tag { UNWATCHED("unwatched"), @@ -49,3 +51,4 @@ public enum Tag { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java b/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java index 803cc4b2..31e713b9 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/TaskName.java @@ -1,15 +1,17 @@ /* * 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; import java.util.Objects; import java.util.Optional; + /** - * TaskName - the name of the task to be started. + * TaskName + * + *

the name of the task to be started. */ public enum TaskName { BACKUP_DATABASE("BackupDatabase"), @@ -47,3 +49,4 @@ public enum TaskName { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java b/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java index 740344c8..4d96d662 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Tonight.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * 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 + * 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), @@ -34,3 +36,4 @@ public enum Tonight { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java b/src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java index 36d08b4d..ef4d1698 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/TranscodeSession.java @@ -1,9 +1,8 @@ /* * 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; @@ -318,7 +317,7 @@ public class TranscodeSession { public final static Builder builder() { return new Builder(); - } + } public TranscodeSession withKey(String key) { Utils.checkNotNull(key, "key"); @@ -607,6 +606,7 @@ public class TranscodeSession { this.minOffsetAvailable = minOffsetAvailable; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -750,7 +750,7 @@ public class TranscodeSession { private Optional maxOffsetAvailable = Optional.empty(); - private Optional minOffsetAvailable = Optional.empty(); + private Optional minOffsetAvailable = Optional.empty(); private Builder() { // force use of static builder() method @@ -1073,4 +1073,3 @@ public class TranscodeSession { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Trials.java b/src/main/java/dev/plexapi/sdk/models/operations/Trials.java index 39f48886..cf662abc 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Trials.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Trials.java @@ -1,9 +1,8 @@ /* * 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; @@ -20,7 +19,8 @@ public class Trials { public final static Builder builder() { return new Builder(); - } + } + @Override public boolean equals(java.lang.Object o) { @@ -44,7 +44,7 @@ public class Trials { return Utils.toString(Trials.class); } - public final static class Builder { + public final static class Builder { private Builder() { // force use of static builder() method @@ -56,4 +56,3 @@ public class 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 index aba2b068..158f8672 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Type.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Type.java @@ -1,20 +1,21 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Type - The type of media to retrieve or filter by. + * Type + * + *

The type of media to retrieve or filter by. * 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 { Movie(1L), @@ -45,3 +46,4 @@ public enum Type { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UltraBlurColors.java b/src/main/java/dev/plexapi/sdk/models/operations/UltraBlurColors.java index 2c6c06ec..8724550f 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UltraBlurColors.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UltraBlurColors.java @@ -1,9 +1,8 @@ /* * 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; @@ -64,7 +63,7 @@ public class UltraBlurColors { public final static Builder builder() { return new Builder(); - } + } public UltraBlurColors withTopLeft(String topLeft) { Utils.checkNotNull(topLeft, "topLeft"); @@ -89,6 +88,7 @@ public class UltraBlurColors { this.bottomLeft = bottomLeft; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -132,7 +132,7 @@ public class UltraBlurColors { private String bottomRight; - private String bottomLeft; + private String bottomLeft; private Builder() { // force use of static builder() method @@ -171,4 +171,3 @@ public class UltraBlurColors { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java index 0fa7f7fc..22280a0e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -72,7 +71,7 @@ public class UpdatePlayProgressRequest { public final static Builder builder() { return new Builder(); - } + } /** * the media key @@ -100,6 +99,7 @@ public class UpdatePlayProgressRequest { this.state = state; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -138,7 +138,7 @@ public class UpdatePlayProgressRequest { private Double time; - private String state; + private String state; private Builder() { // force use of static builder() method @@ -179,4 +179,3 @@ public class UpdatePlayProgressRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java index 2eb6fb03..0ead85ea 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.lang.String; public class UpdatePlayProgressRequestBuilder { diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java index 143fa8f5..ed3cce99 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlayProgressResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class UpdatePlayProgressResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class UpdatePlayProgressResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class UpdatePlayProgressResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class UpdatePlayProgressResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java index fe000889..904c3f1e 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -78,7 +77,7 @@ public class UpdatePlaylistRequest { public final static Builder builder() { return new Builder(); - } + } /** * the ID of the playlist @@ -124,6 +123,7 @@ public class UpdatePlaylistRequest { this.summary = summary; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -162,7 +162,7 @@ public class UpdatePlaylistRequest { private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); + private Optional summary = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,4 +221,3 @@ public class UpdatePlaylistRequest { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java index 7d2b3cdd..acc29e52 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistRequestBuilder.java @@ -1,11 +1,11 @@ /* * 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; +import java.lang.Exception; import java.lang.String; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java index 3601c41b..3cb5d33b 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UpdatePlaylistResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class UpdatePlaylistResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class UpdatePlaylistResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class UpdatePlaylistResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class UpdatePlaylistResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java index 299d98b6..a90965dd 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequest.java @@ -1,9 +1,8 @@ /* * 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; @@ -24,7 +23,6 @@ public class UploadPlaylistRequest { * The GUID of each playlist is based on the filename. * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. * The GUID of each playlist is based on the filename. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=path") private String path; @@ -34,7 +32,6 @@ public class UploadPlaylistRequest { * By default, a playlist file uploaded with the same path will overwrite the existing playlist. * The `force` argument is used to disable overwriting. * If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=force") private QueryParamForce force; @@ -65,7 +62,6 @@ public class UploadPlaylistRequest { * The GUID of each playlist is based on the filename. * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. * The GUID of each playlist is based on the filename. - * */ @JsonIgnore public String path() { @@ -77,7 +73,6 @@ public class UploadPlaylistRequest { * By default, a playlist file uploaded with the same path will overwrite the existing playlist. * The `force` argument is used to disable overwriting. * If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * */ @JsonIgnore public QueryParamForce force() { @@ -94,7 +89,7 @@ public class UploadPlaylistRequest { public final static Builder builder() { return new Builder(); - } + } /** * absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. @@ -103,7 +98,6 @@ public class UploadPlaylistRequest { * The GUID of each playlist is based on the filename. * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. * The GUID of each playlist is based on the filename. - * */ public UploadPlaylistRequest withPath(String path) { Utils.checkNotNull(path, "path"); @@ -116,7 +110,6 @@ public class UploadPlaylistRequest { * By default, a playlist file uploaded with the same path will overwrite the existing playlist. * The `force` argument is used to disable overwriting. * If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * */ public UploadPlaylistRequest withForce(QueryParamForce force) { Utils.checkNotNull(force, "force"); @@ -132,6 +125,7 @@ public class UploadPlaylistRequest { this.sectionID = sectionID; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -170,7 +164,7 @@ public class UploadPlaylistRequest { private QueryParamForce force; - private Long sectionID; + private Long sectionID; private Builder() { // force use of static builder() method @@ -183,7 +177,6 @@ public class UploadPlaylistRequest { * The GUID of each playlist is based on the filename. * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. * The GUID of each playlist is based on the filename. - * */ public Builder path(String path) { Utils.checkNotNull(path, "path"); @@ -196,7 +189,6 @@ public class UploadPlaylistRequest { * By default, a playlist file uploaded with the same path will overwrite the existing playlist. * The `force` argument is used to disable overwriting. * If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * */ public Builder force(QueryParamForce force) { Utils.checkNotNull(force, "force"); @@ -216,7 +208,8 @@ public class UploadPlaylistRequest { public UploadPlaylistRequest build() { if (sectionID == null) { sectionID = _SINGLETON_VALUE_SectionID.value(); - } return new UploadPlaylistRequest( + } + return new UploadPlaylistRequest( path, force, sectionID); @@ -229,4 +222,3 @@ public class UploadPlaylistRequest { new TypeReference() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java index 2739c987..06d2e241 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistRequestBuilder.java @@ -1,12 +1,12 @@ /* * 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.Exception; import java.lang.Long; import java.lang.String; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java index 636f0492..3f151b54 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UploadPlaylistResponse.java @@ -1,9 +1,8 @@ /* * 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; @@ -71,7 +70,7 @@ public class UploadPlaylistResponse implements Response { public final static Builder builder() { return new Builder(); - } + } /** * HTTP response content type for this operation @@ -99,6 +98,7 @@ public class UploadPlaylistResponse implements Response { this.rawResponse = rawResponse; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -137,7 +137,7 @@ public class UploadPlaylistResponse implements Response { private Integer statusCode; - private HttpResponse rawResponse; + private HttpResponse rawResponse; private Builder() { // force use of static builder() method @@ -178,4 +178,3 @@ public class UploadPlaylistResponse implements Response { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java b/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java index b85d36c3..e4a4a586 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Upscale.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * Upscale - allow images to be resized beyond native dimensions. + * Upscale + * + *

allow images to be resized beyond native dimensions. */ public enum Upscale { ZERO(0L), @@ -34,3 +36,4 @@ public enum Upscale { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/User.java b/src/main/java/dev/plexapi/sdk/models/operations/User.java index 0a009a48..32bd57b3 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/User.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/User.java @@ -1,9 +1,8 @@ /* * 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; @@ -316,7 +315,7 @@ public class User { public final static Builder builder() { return new Builder(); - } + } /** * User's unique ID. @@ -575,6 +574,7 @@ public class User { this.server = server; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -698,7 +698,7 @@ public class User { private Optional restricted; - private List server; + private List server; private Builder() { // force use of static builder() method @@ -986,7 +986,8 @@ public class User { } if (restricted == null) { restricted = _SINGLETON_VALUE_Restricted.value(); - } return new User( + } + return new User( id, title, username, @@ -1058,4 +1059,3 @@ public class User { new TypeReference>() {}); } } - diff --git a/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java b/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java index 5d2a5012..a426abe8 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/UserProfile.java @@ -1,9 +1,8 @@ /* * 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; @@ -150,7 +149,7 @@ public class UserProfile { public final static Builder builder() { return new Builder(); - } + } /** * If the account has automatically select audio and subtitle tracks enabled @@ -265,6 +264,7 @@ public class UserProfile { this.mediaReviewsVisibility = mediaReviewsVisibility; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -328,7 +328,7 @@ public class UserProfile { private Optional watchedIndicator; - private Optional mediaReviewsVisibility; + private Optional mediaReviewsVisibility; private Builder() { // force use of static builder() method @@ -466,7 +466,8 @@ public class UserProfile { } if (mediaReviewsVisibility == null) { mediaReviewsVisibility = _SINGLETON_VALUE_MediaReviewsVisibility.value(); - } return new UserProfile( + } + return new UserProfile( autoSelectAudio, defaultAudioLanguage, defaultSubtitleLanguage, @@ -514,4 +515,3 @@ public class UserProfile { 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 index 797cfb23..f88aa20d 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/WatchedIndicator.java @@ -1,14 +1,16 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.operations; + import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import java.util.Optional; + /** - * WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media) + * WatchedIndicator + * + *

Whether or not media watched indicators are enabled (little orange dot on media) */ public enum WatchedIndicator { Disable(0), @@ -34,3 +36,4 @@ public enum WatchedIndicator { return Optional.empty(); } } + diff --git a/src/main/java/dev/plexapi/sdk/models/operations/Writer.java b/src/main/java/dev/plexapi/sdk/models/operations/Writer.java index a59d6d34..06cda96c 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/Writer.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/Writer.java @@ -1,9 +1,8 @@ /* * 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; @@ -100,7 +99,7 @@ public class Writer { public final static Builder builder() { return new Builder(); - } + } /** * Unique identifier for the writer. @@ -146,6 +145,7 @@ public class Writer { this.tagKey = tagKey; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -189,7 +189,7 @@ public class Writer { private String tag; - private Optional tagKey = Optional.empty(); + private Optional tagKey = Optional.empty(); private Builder() { // force use of static builder() method @@ -249,4 +249,3 @@ public class Writer { } } } - diff --git a/src/main/java/dev/plexapi/sdk/models/shared/Security.java b/src/main/java/dev/plexapi/sdk/models/shared/Security.java index 7e1faea3..6d9328a3 100644 --- a/src/main/java/dev/plexapi/sdk/models/shared/Security.java +++ b/src/main/java/dev/plexapi/sdk/models/shared/Security.java @@ -1,11 +1,11 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - - package dev.plexapi.sdk.models.shared; + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import dev.plexapi.sdk.utils.HasSecurity; import dev.plexapi.sdk.utils.SpeakeasyMetadata; import dev.plexapi.sdk.utils.Utils; import java.lang.Override; @@ -13,7 +13,7 @@ import java.lang.String; import java.util.Objects; import java.util.Optional; -public class Security { +public class Security implements HasSecurity { @SpeakeasyMetadata("security:scheme=true,type=apiKey,subtype=header,name=X-Plex-Token") private Optional accessToken; @@ -36,7 +36,7 @@ public class Security { public final static Builder builder() { return new Builder(); - } + } public Security withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -49,6 +49,7 @@ public class Security { this.accessToken = accessToken; return this; } + @Override public boolean equals(java.lang.Object o) { @@ -77,7 +78,7 @@ public class Security { public final static class Builder { - private Optional accessToken = Optional.empty(); + private Optional accessToken = Optional.empty(); private Builder() { // force use of static builder() method @@ -101,4 +102,3 @@ public class Security { } } } - diff --git a/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java b/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java index 80721241..0e7b66d2 100644 --- a/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java +++ b/src/main/java/dev/plexapi/sdk/utils/BackoffStrategy.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java b/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java index 8f6174ce..3c5e7418 100644 --- a/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java +++ b/src/main/java/dev/plexapi/sdk/utils/BigDecimalString.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java b/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java index 650a6599..bb3b5589 100644 --- a/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java +++ b/src/main/java/dev/plexapi/sdk/utils/BigIntegerString.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/Deserializers.java b/src/main/java/dev/plexapi/sdk/utils/Deserializers.java index 7764108f..f04a7347 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Deserializers.java +++ b/src/main/java/dev/plexapi/sdk/utils/Deserializers.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/EventStream.java b/src/main/java/dev/plexapi/sdk/utils/EventStream.java index 79648c74..7a014f35 100644 --- a/src/main/java/dev/plexapi/sdk/utils/EventStream.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStream.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java index e70126cb..4f9c0c9d 100644 --- a/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamLineReader.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java index 04235f7f..53eba8a0 100644 --- a/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamMessage.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java b/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java index 7d97ed8b..1244beb3 100644 --- a/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java +++ b/src/main/java/dev/plexapi/sdk/utils/EventStreamReader.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.BufferedReader; diff --git a/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java b/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java index e1f16cbb..06872abf 100644 --- a/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/FormMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java b/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java index 5362e0e4..30df5eb0 100644 --- a/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java +++ b/src/main/java/dev/plexapi/sdk/utils/HTTPClient.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java b/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java index 910012cc..6c1c5575 100644 --- a/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java +++ b/src/main/java/dev/plexapi/sdk/utils/HTTPRequest.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.net.URI; diff --git a/src/main/java/dev/plexapi/sdk/utils/HasSecurity.java b/src/main/java/dev/plexapi/sdk/utils/HasSecurity.java new file mode 100644 index 00000000..f919177e --- /dev/null +++ b/src/main/java/dev/plexapi/sdk/utils/HasSecurity.java @@ -0,0 +1,10 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package dev.plexapi.sdk.utils; + +/** + * Implemented by classes that have security annotations on fields. + **/ +public interface HasSecurity { +} \ No newline at end of file diff --git a/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java b/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java index 90532703..4de7c087 100644 --- a/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/HeaderMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/Helpers.java b/src/main/java/dev/plexapi/sdk/utils/Helpers.java index d8f45cde..f8b586b6 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Helpers.java +++ b/src/main/java/dev/plexapi/sdk/utils/Helpers.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.ByteArrayOutputStream; diff --git a/src/main/java/dev/plexapi/sdk/utils/Hook.java b/src/main/java/dev/plexapi/sdk/utils/Hook.java index 3a4c2791..f10872d5 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Hook.java +++ b/src/main/java/dev/plexapi/sdk/utils/Hook.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.InputStream; @@ -27,6 +26,7 @@ public final class Hook { * Context for a hook call. */ public interface HookContext { + String baseUrl(); String operationId(); Optional> oauthScopes(); Optional securitySource(); @@ -40,16 +40,23 @@ public final class Hook { public static final class BeforeRequestContextImpl implements BeforeRequestContext { + private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public BeforeRequestContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { + public BeforeRequestContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { + this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override + public String baseUrl() { + return baseUrl; + } + @Override public String operationId() { return operationId; @@ -74,17 +81,24 @@ public final class Hook { public static final class AfterSuccessContextImpl implements AfterSuccessContext { + private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public AfterSuccessContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { + public AfterSuccessContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); + this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override + public String baseUrl() { + return baseUrl; + } + @Override public String operationId() { return operationId; @@ -109,16 +123,23 @@ public final class Hook { public static final class AfterErrorContextImpl implements AfterErrorContext { + private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public AfterErrorContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { + public AfterErrorContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); + this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + + @Override + public String baseUrl() { + return baseUrl; + } @Override public String operationId() { @@ -145,7 +166,7 @@ public final class Hook { * Transforms the given {@link HttpRequest} before sending. * *

Note that {@link HttpRequest} is immutable. To modify the request you can use - * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * {@code HttpRequest#newBuilder(HttpRequest, BiPredicate)} with * JDK 16 and later (which will copy the request for modification in a builder). * If that method is not available then use {@link Helpers#copy} (which also returns * a builder). diff --git a/src/main/java/dev/plexapi/sdk/utils/Hooks.java b/src/main/java/dev/plexapi/sdk/utils/Hooks.java index 30b9f5e2..52425a16 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Hooks.java +++ b/src/main/java/dev/plexapi/sdk/utils/Hooks.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.InputStream; diff --git a/src/main/java/dev/plexapi/sdk/utils/JSON.java b/src/main/java/dev/plexapi/sdk/utils/JSON.java index c24d736a..67593ed7 100644 --- a/src/main/java/dev/plexapi/sdk/utils/JSON.java +++ b/src/main/java/dev/plexapi/sdk/utils/JSON.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import org.openapitools.jackson.nullable.JsonNullableModule; diff --git a/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java b/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java index 78c8481b..4c7c26f6 100644 --- a/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java +++ b/src/main/java/dev/plexapi/sdk/utils/LazySingletonValue.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/main/java/dev/plexapi/sdk/utils/Metadata.java b/src/main/java/dev/plexapi/sdk/utils/Metadata.java index 0dcb2245..b5db1b70 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Metadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/Metadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/Multipart.java b/src/main/java/dev/plexapi/sdk/utils/Multipart.java index af4d1516..37d67b1e 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Multipart.java +++ b/src/main/java/dev/plexapi/sdk/utils/Multipart.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java b/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java index 27d8beb2..a284ef1b 100644 --- a/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/MultipartFormMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/NameValue.java b/src/main/java/dev/plexapi/sdk/utils/NameValue.java index 521f6c1e..c41c4f9a 100644 --- a/src/main/java/dev/plexapi/sdk/utils/NameValue.java +++ b/src/main/java/dev/plexapi/sdk/utils/NameValue.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; final class NameValue { diff --git a/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java b/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java index a5dfbd4e..420dda33 100644 --- a/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java +++ b/src/main/java/dev/plexapi/sdk/utils/OneOfDeserializer.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/Options.java b/src/main/java/dev/plexapi/sdk/utils/Options.java index 5fc5a702..4beb883b 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Options.java +++ b/src/main/java/dev/plexapi/sdk/utils/Options.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java b/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java index ce71f38a..628a9e71 100644 --- a/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/PathParamsMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/QueryEncoding.java b/src/main/java/dev/plexapi/sdk/utils/QueryEncoding.java index 0b299001..a95f1096 100644 --- a/src/main/java/dev/plexapi/sdk/utils/QueryEncoding.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryEncoding.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.nio.ByteBuffer; diff --git a/src/main/java/dev/plexapi/sdk/utils/QueryParameter.java b/src/main/java/dev/plexapi/sdk/utils/QueryParameter.java index 8b49709f..42041dad 100644 --- a/src/main/java/dev/plexapi/sdk/utils/QueryParameter.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryParameter.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.Objects; diff --git a/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java b/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java index 66aa3241..4c362236 100644 --- a/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryParameters.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java b/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java index b2bea8fc..3e74e3c6 100644 --- a/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/QueryParamsMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/RecordingClient.java b/src/main/java/dev/plexapi/sdk/utils/RecordingClient.java index dfb58d28..9ebae220 100644 --- a/src/main/java/dev/plexapi/sdk/utils/RecordingClient.java +++ b/src/main/java/dev/plexapi/sdk/utils/RecordingClient.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; @@ -12,14 +11,15 @@ import java.net.http.HttpResponse; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import java.util.function.Function; +import java.util.function.UnaryOperator; // internal testing use public final class RecordingClient implements HTTPClient { private final List requests = new CopyOnWriteArrayList<>(); private final HTTPClient client; - private final List> beforeRequestHooks = new ArrayList<>(); + private final List> beforeRequestHooks = new ArrayList<>(); + private final List>> afterResponseHooks = new ArrayList<>(); public RecordingClient() { this.client = new SpeakeasyHTTPClient(); @@ -28,21 +28,30 @@ public final class RecordingClient implements HTTPClient { @Override public HttpResponse send(HttpRequest request) throws IOException, InterruptedException, URISyntaxException { - for (Function hook : beforeRequestHooks) { + for (var hook : beforeRequestHooks) { request = hook.apply(request); } requests.add(request); - return client.send(request); + var response = client.send(request); + for (var hook: afterResponseHooks) { + response = hook.apply(response); + } + return response; } public List requests() { return requests; } - public RecordingClient beforeRequest(Function hook) { + public RecordingClient beforeRequest(UnaryOperator hook) { beforeRequestHooks.add(hook); return this; } + + public RecordingClient afterResponse(UnaryOperator> hook) { + afterResponseHooks.add(hook); + return this; + } public void reset() { requests.clear(); diff --git a/src/main/java/dev/plexapi/sdk/utils/RequestBody.java b/src/main/java/dev/plexapi/sdk/utils/RequestBody.java index 661ab372..60f46748 100644 --- a/src/main/java/dev/plexapi/sdk/utils/RequestBody.java +++ b/src/main/java/dev/plexapi/sdk/utils/RequestBody.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.ByteArrayInputStream; diff --git a/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java b/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java index e84698a1..666feee6 100644 --- a/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/RequestMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/Response.java b/src/main/java/dev/plexapi/sdk/utils/Response.java index b0c01e97..d26ab57a 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Response.java +++ b/src/main/java/dev/plexapi/sdk/utils/Response.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.InputStream; diff --git a/src/main/java/dev/plexapi/sdk/utils/Retries.java b/src/main/java/dev/plexapi/sdk/utils/Retries.java index 57dd794b..39fd3676 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Retries.java +++ b/src/main/java/dev/plexapi/sdk/utils/Retries.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java b/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java index 98810df6..e4b170a0 100644 --- a/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java +++ b/src/main/java/dev/plexapi/sdk/utils/RetryConfig.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.Optional; diff --git a/src/main/java/dev/plexapi/sdk/utils/Security.java b/src/main/java/dev/plexapi/sdk/utils/Security.java index 2884e136..6950ea13 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Security.java +++ b/src/main/java/dev/plexapi/sdk/utils/Security.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; @@ -120,7 +119,7 @@ public final class Security { break; default: throw new RuntimeException( - "Unsupported security scheme subtype for apiKey: " + securityMetadata.subtype); + "Unsupported apiKey security scheme subtype: " + securityMetadata.subtype); } break; case "openIdConnect": @@ -136,12 +135,16 @@ public final class Security { case "bearer": request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); break; + case "custom": + // customers are expected to consume the security object and transform requests + // in their own BeforeRequest hook. + break; default: - throw new RuntimeException("Unsupported security scheme subtype for bearer"); + throw new RuntimeException("Unsupported http security scheme subtype: " + schemeMetadata.subtype); } break; default: - throw new RuntimeException("Unsupported security scheme type"); + throw new RuntimeException("Unsupported security scheme type: " + schemeMetadata.subtype); } } @@ -239,4 +242,4 @@ public final class Security { } return false; } -} \ No newline at end of file +} diff --git a/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java b/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java index 47db414d..e5b72d7c 100644 --- a/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/SecurityMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.reflect.Field; diff --git a/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java b/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java index 16d9ce3b..5ec53333 100644 --- a/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java +++ b/src/main/java/dev/plexapi/sdk/utils/SerializedBody.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.net.http.HttpRequest.BodyPublisher; diff --git a/src/main/java/dev/plexapi/sdk/utils/SessionManager.java b/src/main/java/dev/plexapi/sdk/utils/SessionManager.java index e1110e66..79a61274 100644 --- a/src/main/java/dev/plexapi/sdk/utils/SessionManager.java +++ b/src/main/java/dev/plexapi/sdk/utils/SessionManager.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; @@ -137,13 +136,18 @@ public final class SessionManager { } public static Session requestOAuth2Token(HTTPClient client, T credentials, List scopes, - Map payload, URI tokenUri) { + Map body, Map headers, URI tokenUri) { try { - HttpRequest request = HttpRequest // + HttpRequest.Builder requestBuilder = HttpRequest // .newBuilder(tokenUri) // .header("Content-Type", "application/x-www-form-urlencoded") // - .POST(RequestBody.serializeFormData(payload).body()) // - .build(); + .POST(RequestBody.serializeFormData(body).body()); // + + for (Map.Entry header : headers.entrySet()) { + requestBuilder.header(header.getKey(), header.getValue()); + } + + HttpRequest request = requestBuilder.build(); HttpResponse response = client.send(request); if (response.statusCode() != HttpURLConnection.HTTP_OK) { String responseBody = Utils.toUtf8AndClose(response.body()); diff --git a/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java index 7a335fdf..afc46023 100644 --- a/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyHTTPClient.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java index 02d740f2..2d846d2f 100644 --- a/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java +++ b/src/main/java/dev/plexapi/sdk/utils/SpeakeasyMetadata.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.lang.annotation.ElementType; diff --git a/src/main/java/dev/plexapi/sdk/utils/TypedObject.java b/src/main/java/dev/plexapi/sdk/utils/TypedObject.java index a39cc660..c92a81f2 100644 --- a/src/main/java/dev/plexapi/sdk/utils/TypedObject.java +++ b/src/main/java/dev/plexapi/sdk/utils/TypedObject.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.IOException; diff --git a/src/main/java/dev/plexapi/sdk/utils/Types.java b/src/main/java/dev/plexapi/sdk/utils/Types.java index 4fd16795..a5fe868e 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Types.java +++ b/src/main/java/dev/plexapi/sdk/utils/Types.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.util.HashSet; diff --git a/src/main/java/dev/plexapi/sdk/utils/Utf8UrlEncoder.java b/src/main/java/dev/plexapi/sdk/utils/Utf8UrlEncoder.java index 78fb8847..935d9bf2 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Utf8UrlEncoder.java +++ b/src/main/java/dev/plexapi/sdk/utils/Utf8UrlEncoder.java @@ -1,7 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.CharArrayWriter; diff --git a/src/main/java/dev/plexapi/sdk/utils/Utils.java b/src/main/java/dev/plexapi/sdk/utils/Utils.java index 2836554c..e6d36db1 100644 --- a/src/main/java/dev/plexapi/sdk/utils/Utils.java +++ b/src/main/java/dev/plexapi/sdk/utils/Utils.java @@ -1,11 +1,13 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ - package dev.plexapi.sdk.utils; import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; @@ -15,6 +17,7 @@ import java.lang.reflect.Method; import java.math.BigDecimal; import java.math.BigInteger; import java.net.URI; +import java.net.URISyntaxException; import java.net.http.HttpClient.Version; import java.net.http.HttpHeaders; import java.net.http.HttpRequest; @@ -39,6 +42,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.Optional; +import java.util.Random; import java.util.concurrent.Callable; import java.util.function.BiPredicate; import java.util.regex.Matcher; @@ -1035,11 +1039,53 @@ public final class Utils { } } - private static final char[] HEX_ARRAY = "0123456789abcdef".toCharArray(); + private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray(); - public static String bytesToLowerCaseHex(byte[] bytes) { - char[] hexChars = new char[bytes.length * 2]; - for (int j = 0; j < bytes.length; j++) { + public static byte[] readBytes(String filename) { + return readBytes(new File(filename)); + } + + public static byte[] readBytes(File file) { + try { + return readBytesAndClose(new FileInputStream(file)); + } catch (FileNotFoundException e) { + throw new UncheckedIOException(e); + } + } + + public static byte[] readBytesAndClose(InputStream in) { + try { + return readBytes(in); + } finally { + try { + in.close(); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } + } + + public static byte[] readBytes(InputStream in) { + ByteArrayOutputStream bytes = new ByteArrayOutputStream(); + byte[] buffer = new byte[8192]; + int n; + try { + while ((n = in.read(buffer))!= -1) { + bytes.write(buffer, 0, n); + } + } catch (IOException e) { + throw new UncheckedIOException(e); + } + return bytes.toByteArray(); + } + + public static String toHex(byte[] bytes) { + return toHex(bytes, bytes.length); + } + + private static String toHex(byte[] bytes, int length) { + char[] hexChars = new char[length * 2]; + for (int j = 0; j < length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = HEX_ARRAY[v >>> 4]; hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F]; @@ -1198,10 +1244,144 @@ public final class Utils { MessageDigest md = MessageDigest.getInstance("MD5"); String input = Arrays.stream(items).collect(Collectors.joining(":")); byte[] bytes = md.digest(input.getBytes(StandardCharsets.UTF_8)); - return Utils.bytesToLowerCaseHex(bytes); + return Utils.toHex(bytes).toLowerCase(Locale.ENGLISH); } catch (NoSuchAlgorithmException e) { // not expected, MD5 always available throw new RuntimeException(e); } } + + // internal API + public static HTTPClient createTestHTTPClient(String testName) { + return createTestHTTPClient(new SpeakeasyHTTPClient(), testName); + } + + // internal API + public static HTTPClient createTestHTTPClient(SpeakeasyHTTPClient client, String testName) { + return new TestHTTPClient(client, testName, randomLetters(16)); + } + + private static final class TestHTTPClient implements HTTPClient { + + private final HTTPClient client; + private final String testName; + private final String testInstanceId; + + TestHTTPClient(HTTPClient client, String testName, String testInstanceId) { + checkNotNull(client, "client"); + checkNotNull(testName, "name"); + checkNotNull(testInstanceId, "instanceId"); + this.client = client; + this.testName = testName; + this.testInstanceId = testInstanceId; + } + + @Override + public HttpResponse send(HttpRequest request) + throws IOException, InterruptedException, URISyntaxException { + HttpRequest r = Utils.copy(request) // + .header("x-speakeasy-test-name", testName) // + .header("x-speakeasy-test-instance-id", testInstanceId) // + .build(); + return client.send(r); + } + } + + private static final Random RANDOM = new Random(); + + private static String randomLetters(int length) { + return RANDOM.ints(length).mapToObj(x -> (char) (Math.abs(x) % 26 + 'a') + "").collect(Collectors.joining()); + } + + /** + * Internal use. Returns the system property with {@code key = "env." + name} + * and if doesn't exist returns the value of the environment variable with the + * given name of if it doesn't exist returns {@code defaultValue}. + * + * @param name variable name + * @param defaultValue default value if system property and environment variable + * don't exist + * @return system property with name prepended with ".env" or environment + * variable of given name or default value + */ + public static String environmentVariable(String name, String defaultValue) { + String value = System.getProperty("env." + name); + if (value != null) { + return value; + } + value = System.getenv(name); + if (value != null) { + return value; + } else { + return defaultValue; + } + } + + // internal use + public static Optional toOptional(JsonNullable a) { + if (a.isPresent() && a.get() != null) { + return Optional.of(a.get()); + } else { + return Optional.empty(); + } + } + + // internal use + public static String sortJSONObjectKeys(String json, String... fields) { + var fieldList = List.of(fields); + var m = new ObjectMapper(); + try { + JsonNode tree = m.readTree(json); + if (!tree.isObject()) { + return json; + } else if (fieldList.isEmpty()) { + return m.writeValueAsString(sortKeys(m, tree)); + } else { + var node = (ObjectNode) tree; + var list = toList(node.fields()); + list.stream() // + .filter(entry -> fieldList.contains(entry.getKey())) // + .forEach(entry -> node.set(entry.getKey(), sortKeys(m, entry.getValue()))); + return m.writeValueAsString(node); + } + } catch (JsonProcessingException e) { + throw new RuntimeException(e); + } + } + + private static JsonNode sortKeys(ObjectMapper m, JsonNode node) { + if (!node.isObject()) { + return node; + } else { + var list = toList(node.fields()); + list.sort((a, b) -> a.getKey().compareTo(b.getKey())); + var map = new LinkedHashMap(); + list.forEach(x -> map.put(x.getKey(), x.getValue())); + return new ObjectNode(m.getNodeFactory(), map); + } + } + + private static List toList(Iterator it) { + var list = new ArrayList(); + while (it.hasNext()) { + list.add(it.next()); + } + return list; + } + + public static T valueOrNull(T value) { + return value; + } + + public static T valueOrNull(Optional value) { + return value.orElse(null); + } + + public static T valueOrNull(JsonNullable value) { + if (value.isPresent()) { + return value.get(); + } else { + return null; + } + } }