mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-10 04:21:03 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1
This commit is contained in:
@@ -81,7 +81,7 @@ class Watchlist(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetWatchListResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -92,17 +92,17 @@ class Watchlist(BaseSDK):
|
||||
raw_response=http_res,
|
||||
)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
data = utils.unmarshal_json(
|
||||
response_data = utils.unmarshal_json(
|
||||
http_res.text, errors.GetWatchListBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetWatchListBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetWatchListBadRequest(data=response_data)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
data = utils.unmarshal_json(
|
||||
response_data = utils.unmarshal_json(
|
||||
http_res.text, errors.GetWatchListUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetWatchListUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetWatchListUnauthorized(data=response_data)
|
||||
if utils.match_response(http_res, "4XX", "*"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
raise errors.SDKError(
|
||||
@@ -193,7 +193,7 @@ class Watchlist(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetWatchListResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -204,17 +204,17 @@ class Watchlist(BaseSDK):
|
||||
raw_response=http_res,
|
||||
)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
data = utils.unmarshal_json(
|
||||
response_data = utils.unmarshal_json(
|
||||
http_res.text, errors.GetWatchListBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetWatchListBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetWatchListBadRequest(data=response_data)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
data = utils.unmarshal_json(
|
||||
response_data = utils.unmarshal_json(
|
||||
http_res.text, errors.GetWatchListUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetWatchListUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetWatchListUnauthorized(data=response_data)
|
||||
if utils.match_response(http_res, "4XX", "*"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
raise errors.SDKError(
|
||||
|
||||
Reference in New Issue
Block a user