mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 20:57:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1
This commit is contained in:
@@ -80,7 +80,7 @@ class Hubs(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetGlobalHubsResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -91,17 +91,17 @@ class Hubs(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.GetGlobalHubsBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsBadRequest(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.GetGlobalHubsUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsUnauthorized(data=response_data)
|
||||
if utils.match_response(http_res, "4XX", "*"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
raise errors.SDKError(
|
||||
@@ -191,7 +191,7 @@ class Hubs(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetGlobalHubsResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -202,17 +202,17 @@ class Hubs(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.GetGlobalHubsBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsBadRequest(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.GetGlobalHubsUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetGlobalHubsUnauthorized(data=response_data)
|
||||
if utils.match_response(http_res, "4XX", "*"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
raise errors.SDKError(
|
||||
@@ -504,7 +504,7 @@ class Hubs(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetLibraryHubsResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -515,17 +515,17 @@ class Hubs(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.GetLibraryHubsBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsBadRequest(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.GetLibraryHubsUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsUnauthorized(data=response_data)
|
||||
if utils.match_response(http_res, "4XX", "*"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
raise errors.SDKError(
|
||||
@@ -619,7 +619,7 @@ class Hubs(BaseSDK):
|
||||
retry_config=retry_config,
|
||||
)
|
||||
|
||||
data: Any = None
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return operations.GetLibraryHubsResponse(
|
||||
object=utils.unmarshal_json(
|
||||
@@ -630,17 +630,17 @@ class Hubs(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.GetLibraryHubsBadRequestData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsBadRequest(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsBadRequest(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.GetLibraryHubsUnauthorizedData
|
||||
)
|
||||
data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsUnauthorized(data=data)
|
||||
response_data.raw_response = http_res
|
||||
raise errors.GetLibraryHubsUnauthorized(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