Skip to content

Commit

Permalink
regen to revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Jun 6, 2024
1 parent d70e0e9 commit d71c77b
Show file tree
Hide file tree
Showing 254 changed files with 5,252 additions and 2,626 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-s
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -144,7 +145,8 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -119,7 +120,8 @@ async def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-s
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -144,7 +145,8 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -119,7 +120,8 @@ async def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-s
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -144,7 +145,8 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async def valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -119,7 +120,8 @@ async def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def valid_key(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retu
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -128,7 +129,8 @@ def valid_token(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-re
response = pipeline_response.http_response

if response.status_code not in [204]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ async def valid_key(self, **kwargs: Any) -> None: # pylint: disable=inconsisten
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -111,7 +112,8 @@ async def valid_token(self, **kwargs: Any) -> None: # pylint: disable=inconsist
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ async def no_decorator_in_public(self, *, name: str, **kwargs: Any) -> _models.N
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -168,7 +169,8 @@ async def public_decorator_in_public(self, *, name: str, **kwargs: Any) -> _mode
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -251,7 +253,8 @@ async def _no_decorator_in_internal( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -319,7 +322,8 @@ async def _internal_decorator_in_internal( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -384,7 +388,8 @@ async def _public_decorator_in_internal(
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -462,7 +467,8 @@ async def public(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -522,7 +528,8 @@ async def _internal(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -616,7 +623,8 @@ async def _operation( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -693,7 +701,8 @@ async def _discriminator( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ def no_decorator_in_public(self, *, name: str, **kwargs: Any) -> _models.NoDecor
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -342,7 +343,8 @@ def public_decorator_in_public(self, *, name: str, **kwargs: Any) -> _models.Pub
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -425,7 +427,8 @@ def _no_decorator_in_internal( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -493,7 +496,8 @@ def _internal_decorator_in_internal( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -556,7 +560,8 @@ def _public_decorator_in_internal(self, *, name: str, **kwargs: Any) -> _models.
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -634,7 +639,8 @@ def public(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -694,7 +700,8 @@ def _internal(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -786,7 +793,8 @@ def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -863,7 +871,8 @@ def _discriminator( # pylint: disable=protected-access
response = pipeline_response.http_response

if response.status_code not in [200]:
response.read() # Load the body in memory and close the socket
if _stream:
response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ async def input_to_input_output( # pylint: disable=inconsistent-return-statemen
response = pipeline_response.http_response

if response.status_code not in [204]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down Expand Up @@ -250,7 +251,8 @@ async def output_to_input_output(self, **kwargs: Any) -> _models.OutputModel:
response = pipeline_response.http_response

if response.status_code not in [200]:
await response.read() # Load the body in memory and close the socket
if _stream:
await response.read() # Load the body in memory and close the socket
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response)

Expand Down
Loading

0 comments on commit d71c77b

Please sign in to comment.