plex-api-client 0.6.6__tar.gz → 0.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/PKG-INFO +3 -3
  2. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/README.md +2 -2
  3. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/setup.py +1 -1
  4. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/activities.py +3 -0
  5. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/authentication.py +2 -0
  6. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/butler.py +6 -0
  7. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/hubs.py +4 -0
  8. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/library.py +39 -4
  9. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/log.py +3 -0
  10. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/media.py +3 -0
  11. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/__init__.py +3 -1
  12. plex-api-client-0.8.0/src/plex_api/models/errors/getlibraryitems.py +32 -0
  13. plex-api-client-0.8.0/src/plex_api/models/errors/searchlibrary.py +32 -0
  14. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/applyupdates.py +2 -0
  15. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/checkforupdates.py +1 -0
  16. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/createplaylist.py +2 -0
  17. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getglobalhubs.py +1 -0
  18. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getlibrary.py +1 -0
  19. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getlibraryhubs.py +1 -0
  20. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getlibraryitems.py +1 -0
  21. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getplaylists.py +2 -0
  22. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getresizedphoto.py +2 -0
  23. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/gettimeline.py +1 -0
  24. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/gettransienttoken.py +2 -0
  25. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/logline.py +1 -0
  26. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/searchlibrary.py +1 -0
  27. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/starttask.py +1 -0
  28. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/stoptask.py +1 -0
  29. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/uploadplaylist.py +1 -0
  30. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/playlists.py +14 -0
  31. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/plex.py +3 -0
  32. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/sdkconfiguration.py +4 -3
  33. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/search.py +4 -0
  34. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/server.py +15 -0
  35. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/sessions.py +7 -0
  36. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/statistics.py +2 -0
  37. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/updater.py +4 -0
  38. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/utils/utils.py +29 -2
  39. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/video.py +2 -0
  40. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api_client.egg-info/PKG-INFO +3 -3
  41. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api_client.egg-info/SOURCES.txt +2 -0
  42. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/LICENSE.md +0 -0
  43. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/setup.cfg +0 -0
  44. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/__init__.py +0 -0
  45. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/_hooks/__init__.py +0 -0
  46. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/_hooks/registration.py +0 -0
  47. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/_hooks/sdkhooks.py +0 -0
  48. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/_hooks/types.py +0 -0
  49. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/__init__.py +0 -0
  50. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/components/__init__.py +0 -0
  51. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/components/security.py +0 -0
  52. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/addplaylistcontents.py +0 -0
  53. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/applyupdates.py +0 -0
  54. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/cancelserveractivities.py +0 -0
  55. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/checkforupdates.py +0 -0
  56. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/clearplaylistcontents.py +0 -0
  57. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/createplaylist.py +0 -0
  58. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/deletelibrary.py +0 -0
  59. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/deleteplaylist.py +0 -0
  60. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/enablepapertrail.py +0 -0
  61. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getavailableclients.py +0 -0
  62. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getbutlertasks.py +0 -0
  63. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getdevices.py +0 -0
  64. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getfilehash.py +0 -0
  65. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getglobalhubs.py +0 -0
  66. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getlibraries.py +0 -0
  67. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getlibrary.py +0 -0
  68. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getlibraryhubs.py +0 -0
  69. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getmetadata.py +0 -0
  70. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getmetadatachildren.py +0 -0
  71. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getmyplexaccount.py +0 -0
  72. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getondeck.py +0 -0
  73. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getpin.py +0 -0
  74. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getplaylist.py +0 -0
  75. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getplaylistcontents.py +0 -0
  76. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getplaylists.py +0 -0
  77. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getrecentlyadded.py +0 -0
  78. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getresizedphoto.py +0 -0
  79. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getsearchresults.py +0 -0
  80. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getserveractivities.py +0 -0
  81. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getservercapabilities.py +0 -0
  82. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getserveridentity.py +0 -0
  83. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getserverlist.py +0 -0
  84. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getserverpreferences.py +0 -0
  85. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getsessionhistory.py +0 -0
  86. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getsessions.py +0 -0
  87. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getsourceconnectioninformation.py +0 -0
  88. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getstatistics.py +0 -0
  89. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/gettimeline.py +0 -0
  90. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/gettoken.py +0 -0
  91. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/gettranscodesessions.py +0 -0
  92. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/gettransienttoken.py +0 -0
  93. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/getupdatestatus.py +0 -0
  94. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/logline.py +0 -0
  95. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/logmultiline.py +0 -0
  96. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/markplayed.py +0 -0
  97. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/markunplayed.py +0 -0
  98. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/performsearch.py +0 -0
  99. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/performvoicesearch.py +0 -0
  100. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/refreshlibrary.py +0 -0
  101. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/sdkerror.py +0 -0
  102. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/startalltasks.py +0 -0
  103. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/starttask.py +0 -0
  104. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/startuniversaltranscode.py +0 -0
  105. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/stopalltasks.py +0 -0
  106. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/stoptask.py +0 -0
  107. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/stoptranscodesession.py +0 -0
  108. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/updateplaylist.py +0 -0
  109. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/updateplayprogress.py +0 -0
  110. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/errors/uploadplaylist.py +0 -0
  111. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/internal/__init__.py +0 -0
  112. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/internal/globals.py +0 -0
  113. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/__init__.py +0 -0
  114. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/addplaylistcontents.py +0 -0
  115. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/cancelserveractivities.py +0 -0
  116. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/clearplaylistcontents.py +0 -0
  117. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/deletelibrary.py +0 -0
  118. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/deleteplaylist.py +0 -0
  119. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/enablepapertrail.py +0 -0
  120. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getavailableclients.py +0 -0
  121. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getbutlertasks.py +0 -0
  122. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getdevices.py +0 -0
  123. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getfilehash.py +0 -0
  124. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getlibraries.py +0 -0
  125. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getmetadata.py +0 -0
  126. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getmetadatachildren.py +0 -0
  127. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getmyplexaccount.py +0 -0
  128. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getondeck.py +0 -0
  129. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getpin.py +0 -0
  130. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getplaylist.py +0 -0
  131. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getplaylistcontents.py +0 -0
  132. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getrecentlyadded.py +0 -0
  133. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getsearchresults.py +0 -0
  134. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getserveractivities.py +0 -0
  135. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getservercapabilities.py +0 -0
  136. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getserveridentity.py +0 -0
  137. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getserverlist.py +0 -0
  138. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getserverpreferences.py +0 -0
  139. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getsessionhistory.py +0 -0
  140. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getsessions.py +0 -0
  141. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getsourceconnectioninformation.py +0 -0
  142. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getstatistics.py +0 -0
  143. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/gettoken.py +0 -0
  144. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/gettranscodesessions.py +0 -0
  145. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/getupdatestatus.py +0 -0
  146. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/logmultiline.py +0 -0
  147. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/markplayed.py +0 -0
  148. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/markunplayed.py +0 -0
  149. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/performsearch.py +0 -0
  150. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/performvoicesearch.py +0 -0
  151. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/refreshlibrary.py +0 -0
  152. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/startalltasks.py +0 -0
  153. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/startuniversaltranscode.py +0 -0
  154. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/stopalltasks.py +0 -0
  155. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/stoptranscodesession.py +0 -0
  156. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/updateplaylist.py +0 -0
  157. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/models/operations/updateplayprogress.py +0 -0
  158. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/sdk.py +0 -0
  159. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/utils/__init__.py +0 -0
  160. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api/utils/retries.py +0 -0
  161. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api_client.egg-info/dependency_links.txt +0 -0
  162. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api_client.egg-info/requires.txt +0 -0
  163. {plex-api-client-0.6.6 → plex-api-client-0.8.0}/src/plex_api_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plex-api-client
3
- Version: 0.6.6
3
+ Version: 0.8.0
4
4
  Summary: Python Client SDK Generated by Speakeasy
5
5
  Home-page: https://github.com/LukeHagar/plexpy.git
6
6
  Author: LukeHagar
@@ -175,10 +175,10 @@ Description: # plexpy
175
175
  x_plex_client_identifier='Postman',
176
176
  )
177
177
 
178
-
179
178
  res = None
180
179
  try:
181
180
  res = s.server.get_server_capabilities()
181
+
182
182
  except errors.GetServerCapabilitiesResponseBody as e:
183
183
  # handle exception
184
184
  raise(e)
@@ -263,7 +263,7 @@ Description: # plexpy
263
263
  )
264
264
 
265
265
 
266
- res = s.plex.get_pin(server_url="https://plex.tv/api/v2", strong=False, x_plex_client_identifier='Postman')
266
+ res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman', server_url="https://plex.tv/api/v2")
267
267
 
268
268
  if res.object is not None:
269
269
  # handle response
@@ -168,10 +168,10 @@ s = plex_api.PlexAPI(
168
168
  x_plex_client_identifier='Postman',
169
169
  )
170
170
 
171
-
172
171
  res = None
173
172
  try:
174
173
  res = s.server.get_server_capabilities()
174
+
175
175
  except errors.GetServerCapabilitiesResponseBody as e:
176
176
  # handle exception
177
177
  raise(e)
@@ -256,7 +256,7 @@ s = plex_api.PlexAPI(
256
256
  )
257
257
 
258
258
 
259
- res = s.plex.get_pin(server_url="https://plex.tv/api/v2", strong=False, x_plex_client_identifier='Postman')
259
+ res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman', server_url="https://plex.tv/api/v2")
260
260
 
261
261
  if res.object is not None:
262
262
  # handle response
@@ -19,7 +19,7 @@ except FileNotFoundError:
19
19
 
20
20
  setuptools.setup(
21
21
  name='plex-api-client',
22
- version='0.6.6',
22
+ version='0.8.0',
23
23
  author='LukeHagar',
24
24
  description='Python Client SDK Generated by Speakeasy',
25
25
  url='https://github.com/LukeHagar/plexpy.git',
@@ -64,6 +64,7 @@ class Activities:
64
64
  res = operations.GetServerActivitiesResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
65
65
 
66
66
  if http_res.status_code == 200:
67
+ # pylint: disable=no-else-return
67
68
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
68
69
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetServerActivitiesResponseBody])
69
70
  res.object = out
@@ -73,6 +74,7 @@ class Activities:
73
74
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
74
75
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
75
76
  elif http_res.status_code == 401:
77
+ # pylint: disable=no-else-return
76
78
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
77
79
  out = utils.unmarshal_json(http_res.text, errors.GetServerActivitiesResponseBody)
78
80
  out.raw_response = http_res
@@ -136,6 +138,7 @@ class Activities:
136
138
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
137
139
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
138
140
  elif http_res.status_code == 401:
141
+ # pylint: disable=no-else-return
139
142
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
140
143
  out = utils.unmarshal_json(http_res.text, errors.CancelServerActivitiesResponseBody)
141
144
  out.raw_response = http_res
@@ -66,6 +66,7 @@ class Authentication:
66
66
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
67
67
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
68
68
  elif http_res.status_code == 401:
69
+ # pylint: disable=no-else-return
69
70
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
70
71
  out = utils.unmarshal_json(http_res.text, errors.GetTransientTokenResponseBody)
71
72
  out.raw_response = http_res
@@ -131,6 +132,7 @@ class Authentication:
131
132
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
132
133
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
133
134
  elif http_res.status_code == 401:
135
+ # pylint: disable=no-else-return
134
136
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
135
137
  out = utils.unmarshal_json(http_res.text, errors.GetSourceConnectionInformationResponseBody)
136
138
  out.raw_response = http_res
@@ -57,6 +57,7 @@ class Butler:
57
57
  res = operations.GetButlerTasksResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
58
58
 
59
59
  if http_res.status_code == 200:
60
+ # pylint: disable=no-else-return
60
61
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
61
62
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetButlerTasksResponseBody])
62
63
  res.object = out
@@ -66,6 +67,7 @@ class Butler:
66
67
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
67
68
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
68
69
  elif http_res.status_code == 401:
70
+ # pylint: disable=no-else-return
69
71
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
70
72
  out = utils.unmarshal_json(http_res.text, errors.GetButlerTasksResponseBody)
71
73
  out.raw_response = http_res
@@ -129,6 +131,7 @@ class Butler:
129
131
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
130
132
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
131
133
  elif http_res.status_code == 401:
134
+ # pylint: disable=no-else-return
132
135
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
133
136
  out = utils.unmarshal_json(http_res.text, errors.StartAllTasksResponseBody)
134
137
  out.raw_response = http_res
@@ -188,6 +191,7 @@ class Butler:
188
191
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
189
192
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
190
193
  elif http_res.status_code == 401:
194
+ # pylint: disable=no-else-return
191
195
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
192
196
  out = utils.unmarshal_json(http_res.text, errors.StopAllTasksResponseBody)
193
197
  out.raw_response = http_res
@@ -255,6 +259,7 @@ class Butler:
255
259
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
256
260
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
257
261
  elif http_res.status_code == 401:
262
+ # pylint: disable=no-else-return
258
263
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
259
264
  out = utils.unmarshal_json(http_res.text, errors.StartTaskResponseBody)
260
265
  out.raw_response = http_res
@@ -318,6 +323,7 @@ class Butler:
318
323
  elif http_res.status_code == 400 or http_res.status_code == 404 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
319
324
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
320
325
  elif http_res.status_code == 401:
326
+ # pylint: disable=no-else-return
321
327
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
322
328
  out = utils.unmarshal_json(http_res.text, errors.StopTaskResponseBody)
323
329
  out.raw_response = http_res
@@ -63,6 +63,7 @@ class Hubs:
63
63
  res = operations.GetGlobalHubsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
64
64
 
65
65
  if http_res.status_code == 200:
66
+ # pylint: disable=no-else-return
66
67
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
67
68
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetGlobalHubsResponseBody])
68
69
  res.object = out
@@ -72,6 +73,7 @@ class Hubs:
72
73
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
73
74
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
74
75
  elif http_res.status_code == 401:
76
+ # pylint: disable=no-else-return
75
77
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
76
78
  out = utils.unmarshal_json(http_res.text, errors.GetGlobalHubsResponseBody)
77
79
  out.raw_response = http_res
@@ -134,6 +136,7 @@ class Hubs:
134
136
  res = operations.GetLibraryHubsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
135
137
 
136
138
  if http_res.status_code == 200:
139
+ # pylint: disable=no-else-return
137
140
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
138
141
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryHubsResponseBody])
139
142
  res.object = out
@@ -143,6 +146,7 @@ class Hubs:
143
146
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
144
147
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
145
148
  elif http_res.status_code == 401:
149
+ # pylint: disable=no-else-return
146
150
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
147
151
  out = utils.unmarshal_json(http_res.text, errors.GetLibraryHubsResponseBody)
148
152
  out.raw_response = http_res
@@ -67,6 +67,7 @@ class Library:
67
67
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
68
68
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
69
69
  elif http_res.status_code == 401:
70
+ # pylint: disable=no-else-return
70
71
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
71
72
  out = utils.unmarshal_json(http_res.text, errors.GetFileHashResponseBody)
72
73
  out.raw_response = http_res
@@ -122,6 +123,7 @@ class Library:
122
123
  res = operations.GetRecentlyAddedResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
123
124
 
124
125
  if http_res.status_code == 200:
126
+ # pylint: disable=no-else-return
125
127
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
126
128
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetRecentlyAddedResponseBody])
127
129
  res.object = out
@@ -131,6 +133,7 @@ class Library:
131
133
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
132
134
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
133
135
  elif http_res.status_code == 401:
136
+ # pylint: disable=no-else-return
134
137
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
135
138
  out = utils.unmarshal_json(http_res.text, errors.GetRecentlyAddedResponseBody)
136
139
  out.raw_response = http_res
@@ -191,6 +194,7 @@ class Library:
191
194
  res = operations.GetLibrariesResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
192
195
 
193
196
  if http_res.status_code == 200:
197
+ # pylint: disable=no-else-return
194
198
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
195
199
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibrariesResponseBody])
196
200
  res.object = out
@@ -200,6 +204,7 @@ class Library:
200
204
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
201
205
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
202
206
  elif http_res.status_code == 401:
207
+ # pylint: disable=no-else-return
203
208
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
204
209
  out = utils.unmarshal_json(http_res.text, errors.GetLibrariesResponseBody)
205
210
  out.raw_response = http_res
@@ -299,6 +304,7 @@ class Library:
299
304
  res = operations.GetLibraryResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
300
305
 
301
306
  if http_res.status_code == 200:
307
+ # pylint: disable=no-else-return
302
308
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
303
309
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryResponseBody])
304
310
  res.object = out
@@ -308,6 +314,7 @@ class Library:
308
314
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
309
315
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
310
316
  elif http_res.status_code == 401:
317
+ # pylint: disable=no-else-return
311
318
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
312
319
  out = utils.unmarshal_json(http_res.text, errors.GetLibraryResponseBody)
313
320
  out.raw_response = http_res
@@ -371,6 +378,7 @@ class Library:
371
378
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
372
379
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
373
380
  elif http_res.status_code == 401:
381
+ # pylint: disable=no-else-return
374
382
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
375
383
  out = utils.unmarshal_json(http_res.text, errors.DeleteLibraryResponseBody)
376
384
  out.raw_response = http_res
@@ -436,7 +444,7 @@ class Library:
436
444
  if e is not None:
437
445
  raise e
438
446
 
439
- if utils.match_status_codes(['4XX','5XX'], http_res.status_code):
447
+ if utils.match_status_codes(['400','401','4XX','5XX'], http_res.status_code):
440
448
  result, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), http_res, None)
441
449
  if e is not None:
442
450
  raise e
@@ -450,14 +458,24 @@ class Library:
450
458
  res = operations.GetLibraryItemsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
451
459
 
452
460
  if http_res.status_code == 200:
461
+ # pylint: disable=no-else-return
453
462
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
454
463
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryItemsResponseBody])
455
464
  res.object = out
456
465
  else:
457
466
  content_type = http_res.headers.get('Content-Type')
458
467
  raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
459
- elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
468
+ elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
460
469
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
470
+ elif http_res.status_code == 401:
471
+ # pylint: disable=no-else-return
472
+ if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
473
+ out = utils.unmarshal_json(http_res.text, errors.GetLibraryItemsResponseBody)
474
+ out.raw_response = http_res
475
+ raise out
476
+ else:
477
+ content_type = http_res.headers.get('Content-Type')
478
+ raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
461
479
  else:
462
480
  raise errors.SDKError('unknown status code received', http_res.status_code, http_res.text, http_res)
463
481
 
@@ -514,6 +532,7 @@ class Library:
514
532
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
515
533
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
516
534
  elif http_res.status_code == 401:
535
+ # pylint: disable=no-else-return
517
536
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
518
537
  out = utils.unmarshal_json(http_res.text, errors.RefreshLibraryResponseBody)
519
538
  out.raw_response = http_res
@@ -578,7 +597,7 @@ class Library:
578
597
  if e is not None:
579
598
  raise e
580
599
 
581
- if utils.match_status_codes(['4XX','5XX'], http_res.status_code):
600
+ if utils.match_status_codes(['400','401','4XX','5XX'], http_res.status_code):
582
601
  result, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), http_res, None)
583
602
  if e is not None:
584
603
  raise e
@@ -592,14 +611,24 @@ class Library:
592
611
  res = operations.SearchLibraryResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
593
612
 
594
613
  if http_res.status_code == 200:
614
+ # pylint: disable=no-else-return
595
615
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
596
616
  out = utils.unmarshal_json(http_res.text, Optional[operations.SearchLibraryResponseBody])
597
617
  res.object = out
598
618
  else:
599
619
  content_type = http_res.headers.get('Content-Type')
600
620
  raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
601
- elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
621
+ elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
602
622
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
623
+ elif http_res.status_code == 401:
624
+ # pylint: disable=no-else-return
625
+ if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
626
+ out = utils.unmarshal_json(http_res.text, errors.SearchLibraryResponseBody)
627
+ out.raw_response = http_res
628
+ raise out
629
+ else:
630
+ content_type = http_res.headers.get('Content-Type')
631
+ raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
603
632
  else:
604
633
  raise errors.SDKError('unknown status code received', http_res.status_code, http_res.text, http_res)
605
634
 
@@ -652,6 +681,7 @@ class Library:
652
681
  res = operations.GetMetadataResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
653
682
 
654
683
  if http_res.status_code == 200:
684
+ # pylint: disable=no-else-return
655
685
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
656
686
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetMetadataResponseBody])
657
687
  res.object = out
@@ -661,6 +691,7 @@ class Library:
661
691
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
662
692
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
663
693
  elif http_res.status_code == 401:
694
+ # pylint: disable=no-else-return
664
695
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
665
696
  out = utils.unmarshal_json(http_res.text, errors.GetMetadataResponseBody)
666
697
  out.raw_response = http_res
@@ -720,6 +751,7 @@ class Library:
720
751
  res = operations.GetMetadataChildrenResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
721
752
 
722
753
  if http_res.status_code == 200:
754
+ # pylint: disable=no-else-return
723
755
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
724
756
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetMetadataChildrenResponseBody])
725
757
  res.object = out
@@ -729,6 +761,7 @@ class Library:
729
761
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
730
762
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
731
763
  elif http_res.status_code == 401:
764
+ # pylint: disable=no-else-return
732
765
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
733
766
  out = utils.unmarshal_json(http_res.text, errors.GetMetadataChildrenResponseBody)
734
767
  out.raw_response = http_res
@@ -784,6 +817,7 @@ class Library:
784
817
  res = operations.GetOnDeckResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
785
818
 
786
819
  if http_res.status_code == 200:
820
+ # pylint: disable=no-else-return
787
821
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
788
822
  out = utils.unmarshal_json(http_res.text, Optional[operations.GetOnDeckResponseBody])
789
823
  res.object = out
@@ -793,6 +827,7 @@ class Library:
793
827
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
794
828
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
795
829
  elif http_res.status_code == 401:
830
+ # pylint: disable=no-else-return
796
831
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
797
832
  out = utils.unmarshal_json(http_res.text, errors.GetOnDeckResponseBody)
798
833
  out.raw_response = http_res
@@ -67,6 +67,7 @@ class Log:
67
67
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
68
68
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
69
69
  elif http_res.status_code == 401:
70
+ # pylint: disable=no-else-return
70
71
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
71
72
  out = utils.unmarshal_json(http_res.text, errors.LogLineResponseBody)
72
73
  out.raw_response = http_res
@@ -151,6 +152,7 @@ class Log:
151
152
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
152
153
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
153
154
  elif http_res.status_code == 401:
155
+ # pylint: disable=no-else-return
154
156
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
155
157
  out = utils.unmarshal_json(http_res.text, errors.LogMultiLineResponseBody)
156
158
  out.raw_response = http_res
@@ -210,6 +212,7 @@ class Log:
210
212
  elif http_res.status_code == 400 or http_res.status_code == 403 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
211
213
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
212
214
  elif http_res.status_code == 401:
215
+ # pylint: disable=no-else-return
213
216
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
214
217
  out = utils.unmarshal_json(http_res.text, errors.EnablePaperTrailResponseBody)
215
218
  out.raw_response = http_res
@@ -65,6 +65,7 @@ class Media:
65
65
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
66
66
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
67
67
  elif http_res.status_code == 401:
68
+ # pylint: disable=no-else-return
68
69
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
69
70
  out = utils.unmarshal_json(http_res.text, errors.MarkPlayedResponseBody)
70
71
  out.raw_response = http_res
@@ -129,6 +130,7 @@ class Media:
129
130
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
130
131
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
131
132
  elif http_res.status_code == 401:
133
+ # pylint: disable=no-else-return
132
134
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
133
135
  out = utils.unmarshal_json(http_res.text, errors.MarkUnplayedResponseBody)
134
136
  out.raw_response = http_res
@@ -195,6 +197,7 @@ class Media:
195
197
  elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
196
198
  raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
197
199
  elif http_res.status_code == 401:
200
+ # pylint: disable=no-else-return
198
201
  if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
199
202
  out = utils.unmarshal_json(http_res.text, errors.UpdatePlayProgressResponseBody)
200
203
  out.raw_response = http_res
@@ -17,6 +17,7 @@ from .getglobalhubs import *
17
17
  from .getlibraries import *
18
18
  from .getlibrary import *
19
19
  from .getlibraryhubs import *
20
+ from .getlibraryitems import *
20
21
  from .getmetadata import *
21
22
  from .getmetadatachildren import *
22
23
  from .getmyplexaccount import *
@@ -50,6 +51,7 @@ from .performsearch import *
50
51
  from .performvoicesearch import *
51
52
  from .refreshlibrary import *
52
53
  from .sdkerror import *
54
+ from .searchlibrary import *
53
55
  from .startalltasks import *
54
56
  from .starttask import *
55
57
  from .startuniversaltranscode import *
@@ -60,4 +62,4 @@ from .updateplaylist import *
60
62
  from .updateplayprogress import *
61
63
  from .uploadplaylist import *
62
64
 
63
- __all__ = ["AddPlaylistContentsErrors","AddPlaylistContentsResponseBody","ApplyUpdatesErrors","ApplyUpdatesResponseBody","CancelServerActivitiesErrors","CancelServerActivitiesResponseBody","CheckForUpdatesErrors","CheckForUpdatesResponseBody","ClearPlaylistContentsErrors","ClearPlaylistContentsResponseBody","CreatePlaylistErrors","CreatePlaylistResponseBody","DeleteLibraryErrors","DeleteLibraryResponseBody","DeletePlaylistErrors","DeletePlaylistResponseBody","EnablePaperTrailErrors","EnablePaperTrailResponseBody","Errors","GetAvailableClientsErrors","GetAvailableClientsResponseBody","GetButlerTasksErrors","GetButlerTasksResponseBody","GetDevicesErrors","GetDevicesResponseBody","GetFileHashErrors","GetFileHashResponseBody","GetGlobalHubsErrors","GetGlobalHubsResponseBody","GetLibrariesErrors","GetLibrariesResponseBody","GetLibraryErrors","GetLibraryHubsErrors","GetLibraryHubsResponseBody","GetLibraryResponseBody","GetMetadataChildrenErrors","GetMetadataChildrenResponseBody","GetMetadataErrors","GetMetadataResponseBody","GetMyPlexAccountErrors","GetMyPlexAccountResponseBody","GetOnDeckErrors","GetOnDeckResponseBody","GetPinErrors","GetPinResponseBody","GetPlaylistContentsErrors","GetPlaylistContentsResponseBody","GetPlaylistErrors","GetPlaylistResponseBody","GetPlaylistsErrors","GetPlaylistsResponseBody","GetRecentlyAddedErrors","GetRecentlyAddedResponseBody","GetResizedPhotoErrors","GetResizedPhotoResponseBody","GetSearchResultsErrors","GetSearchResultsResponseBody","GetServerActivitiesErrors","GetServerActivitiesResponseBody","GetServerCapabilitiesResponseBody","GetServerIdentityErrors","GetServerIdentityResponseBody","GetServerListErrors","GetServerListResponseBody","GetServerPreferencesErrors","GetServerPreferencesResponseBody","GetSessionHistoryErrors","GetSessionHistoryResponseBody","GetSessionsErrors","GetSessionsResponseBody","GetSourceConnectionInformationErrors","GetSourceConnectionInformationResponseBody","GetStatisticsErrors","GetStatisticsResponseBody","GetTimelineErrors","GetTimelineResponseBody","GetTokenErrors","GetTokenResponseBody","GetTranscodeSessionsErrors","GetTranscodeSessionsResponseBody","GetTransientTokenErrors","GetTransientTokenResponseBody","GetUpdateStatusErrors","GetUpdateStatusResponseBody","LogLineErrors","LogLineResponseBody","LogMultiLineErrors","LogMultiLineResponseBody","MarkPlayedErrors","MarkPlayedResponseBody","MarkUnplayedErrors","MarkUnplayedResponseBody","PerformSearchErrors","PerformSearchResponseBody","PerformVoiceSearchErrors","PerformVoiceSearchResponseBody","RefreshLibraryErrors","RefreshLibraryResponseBody","SDKError","StartAllTasksErrors","StartAllTasksResponseBody","StartTaskErrors","StartTaskResponseBody","StartUniversalTranscodeErrors","StartUniversalTranscodeResponseBody","StopAllTasksErrors","StopAllTasksResponseBody","StopTaskErrors","StopTaskResponseBody","StopTranscodeSessionErrors","StopTranscodeSessionResponseBody","UpdatePlayProgressErrors","UpdatePlayProgressResponseBody","UpdatePlaylistErrors","UpdatePlaylistResponseBody","UploadPlaylistErrors","UploadPlaylistResponseBody"]
65
+ __all__ = ["AddPlaylistContentsErrors","AddPlaylistContentsResponseBody","ApplyUpdatesErrors","ApplyUpdatesResponseBody","CancelServerActivitiesErrors","CancelServerActivitiesResponseBody","CheckForUpdatesErrors","CheckForUpdatesResponseBody","ClearPlaylistContentsErrors","ClearPlaylistContentsResponseBody","CreatePlaylistErrors","CreatePlaylistResponseBody","DeleteLibraryErrors","DeleteLibraryResponseBody","DeletePlaylistErrors","DeletePlaylistResponseBody","EnablePaperTrailErrors","EnablePaperTrailResponseBody","Errors","GetAvailableClientsErrors","GetAvailableClientsResponseBody","GetButlerTasksErrors","GetButlerTasksResponseBody","GetDevicesErrors","GetDevicesResponseBody","GetFileHashErrors","GetFileHashResponseBody","GetGlobalHubsErrors","GetGlobalHubsResponseBody","GetLibrariesErrors","GetLibrariesResponseBody","GetLibraryErrors","GetLibraryHubsErrors","GetLibraryHubsResponseBody","GetLibraryItemsErrors","GetLibraryItemsResponseBody","GetLibraryResponseBody","GetMetadataChildrenErrors","GetMetadataChildrenResponseBody","GetMetadataErrors","GetMetadataResponseBody","GetMyPlexAccountErrors","GetMyPlexAccountResponseBody","GetOnDeckErrors","GetOnDeckResponseBody","GetPinErrors","GetPinResponseBody","GetPlaylistContentsErrors","GetPlaylistContentsResponseBody","GetPlaylistErrors","GetPlaylistResponseBody","GetPlaylistsErrors","GetPlaylistsResponseBody","GetRecentlyAddedErrors","GetRecentlyAddedResponseBody","GetResizedPhotoErrors","GetResizedPhotoResponseBody","GetSearchResultsErrors","GetSearchResultsResponseBody","GetServerActivitiesErrors","GetServerActivitiesResponseBody","GetServerCapabilitiesResponseBody","GetServerIdentityErrors","GetServerIdentityResponseBody","GetServerListErrors","GetServerListResponseBody","GetServerPreferencesErrors","GetServerPreferencesResponseBody","GetSessionHistoryErrors","GetSessionHistoryResponseBody","GetSessionsErrors","GetSessionsResponseBody","GetSourceConnectionInformationErrors","GetSourceConnectionInformationResponseBody","GetStatisticsErrors","GetStatisticsResponseBody","GetTimelineErrors","GetTimelineResponseBody","GetTokenErrors","GetTokenResponseBody","GetTranscodeSessionsErrors","GetTranscodeSessionsResponseBody","GetTransientTokenErrors","GetTransientTokenResponseBody","GetUpdateStatusErrors","GetUpdateStatusResponseBody","LogLineErrors","LogLineResponseBody","LogMultiLineErrors","LogMultiLineResponseBody","MarkPlayedErrors","MarkPlayedResponseBody","MarkUnplayedErrors","MarkUnplayedResponseBody","PerformSearchErrors","PerformSearchResponseBody","PerformVoiceSearchErrors","PerformVoiceSearchResponseBody","RefreshLibraryErrors","RefreshLibraryResponseBody","SDKError","SearchLibraryErrors","SearchLibraryResponseBody","StartAllTasksErrors","StartAllTasksResponseBody","StartTaskErrors","StartTaskResponseBody","StartUniversalTranscodeErrors","StartUniversalTranscodeResponseBody","StopAllTasksErrors","StopAllTasksResponseBody","StopTaskErrors","StopTaskResponseBody","StopTranscodeSessionErrors","StopTranscodeSessionResponseBody","UpdatePlayProgressErrors","UpdatePlayProgressResponseBody","UpdatePlaylistErrors","UpdatePlaylistResponseBody","UploadPlaylistErrors","UploadPlaylistResponseBody"]
@@ -0,0 +1,32 @@
1
+ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ import dataclasses
5
+ import requests as requests_http
6
+ from dataclasses_json import Undefined, dataclass_json
7
+ from plex_api import utils
8
+ from typing import List, Optional
9
+
10
+
11
+ @dataclass_json(undefined=Undefined.EXCLUDE)
12
+ @dataclasses.dataclass
13
+ class GetLibraryItemsErrors:
14
+ code: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('code'), 'exclude': lambda f: f is None }})
15
+ message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }})
16
+ status: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }})
17
+
18
+
19
+
20
+
21
+ @dataclass_json(undefined=Undefined.EXCLUDE)
22
+
23
+ @dataclasses.dataclass
24
+ class GetLibraryItemsResponseBody(Exception):
25
+ r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
26
+ errors: Optional[List[GetLibraryItemsErrors]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errors'), 'exclude': lambda f: f is None }})
27
+ raw_response: Optional[requests_http.Response] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: True }})
28
+ r"""Raw HTTP response; suitable for custom response parsing"""
29
+
30
+
31
+ def __str__(self) -> str:
32
+ return utils.marshal_json(self, type(self))
@@ -0,0 +1,32 @@
1
+ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ import dataclasses
5
+ import requests as requests_http
6
+ from dataclasses_json import Undefined, dataclass_json
7
+ from plex_api import utils
8
+ from typing import List, Optional
9
+
10
+
11
+ @dataclass_json(undefined=Undefined.EXCLUDE)
12
+ @dataclasses.dataclass
13
+ class SearchLibraryErrors:
14
+ code: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('code'), 'exclude': lambda f: f is None }})
15
+ message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }})
16
+ status: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }})
17
+
18
+
19
+
20
+
21
+ @dataclass_json(undefined=Undefined.EXCLUDE)
22
+
23
+ @dataclasses.dataclass
24
+ class SearchLibraryResponseBody(Exception):
25
+ r"""Unauthorized - Returned if the X-Plex-Token is missing from the header or query."""
26
+ errors: Optional[List[SearchLibraryErrors]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('errors'), 'exclude': lambda f: f is None }})
27
+ raw_response: Optional[requests_http.Response] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: True }})
28
+ r"""Raw HTTP response; suitable for custom response parsing"""
29
+
30
+
31
+ def __str__(self) -> str:
32
+ return utils.marshal_json(self, type(self))
@@ -6,11 +6,13 @@ import requests as requests_http
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
 
9
+
9
10
  class Tonight(int, Enum):
10
11
  r"""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"""
11
12
  ZERO = 0
12
13
  ONE = 1
13
14
 
15
+
14
16
  class Skip(int, Enum):
15
17
  r"""Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`."""
16
18
  ZERO = 0
@@ -6,6 +6,7 @@ import requests as requests_http
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
 
9
+
9
10
  class Download(int, Enum):
10
11
  r"""Indicate that you want to start download any updates found."""
11
12
  ZERO = 0
@@ -8,12 +8,14 @@ from enum import Enum
8
8
  from plex_api import utils
9
9
  from typing import List, Optional
10
10
 
11
+
11
12
  class QueryParamType(str, Enum):
12
13
  r"""type of playlist to create"""
13
14
  AUDIO = 'audio'
14
15
  VIDEO = 'video'
15
16
  PHOTO = 'photo'
16
17
 
18
+
17
19
  class Smart(int, Enum):
18
20
  r"""whether the playlist is smart or not"""
19
21
  ZERO = 0
@@ -8,6 +8,7 @@ from enum import Enum
8
8
  from plex_api import utils
9
9
  from typing import List, Optional
10
10
 
11
+
11
12
  class OnlyTransient(int, Enum):
12
13
  r"""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)."""
13
14
  ZERO = 0
@@ -8,6 +8,7 @@ from enum import Enum
8
8
  from plex_api import utils
9
9
  from typing import List, Optional
10
10
 
11
+
11
12
  class IncludeDetails(int, Enum):
12
13
  r"""Whether or not to include details for a section (types, filters, and sorts).
13
14
  Only exists for backwards compatibility, media providers other than the server libraries have it on always.
@@ -9,6 +9,7 @@ from enum import Enum
9
9
  from plex_api import utils
10
10
  from typing import List, Optional
11
11
 
12
+
12
13
  class QueryParamOnlyTransient(int, Enum):
13
14
  r"""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)."""
14
15
  ZERO = 0
@@ -9,6 +9,7 @@ from enum import Enum
9
9
  from plex_api import utils
10
10
  from typing import List, Optional
11
11
 
12
+
12
13
  class Tag(str, Enum):
13
14
  r"""A key representing a specific tag within the section."""
14
15
  ALL = 'all'
@@ -8,12 +8,14 @@ from enum import Enum
8
8
  from plex_api import utils
9
9
  from typing import List, Optional
10
10
 
11
+
11
12
  class PlaylistType(str, Enum):
12
13
  r"""limit to a type of playlist."""
13
14
  AUDIO = 'audio'
14
15
  VIDEO = 'video'
15
16
  PHOTO = 'photo'
16
17
 
18
+
17
19
  class QueryParamSmart(int, Enum):
18
20
  r"""type of playlists to return (default is all)."""
19
21
  ZERO = 0
@@ -5,11 +5,13 @@ import dataclasses
5
5
  import requests as requests_http
6
6
  from enum import Enum
7
7
 
8
+
8
9
  class MinSize(int, Enum):
9
10
  r"""images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against."""
10
11
  ZERO = 0
11
12
  ONE = 1
12
13
 
14
+
13
15
  class Upscale(int, Enum):
14
16
  r"""allow images to be resized beyond native dimensions."""
15
17
  ZERO = 0