Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Generated from 8732be5f9bec6cfe96e72f320fb6d0a3bf36ae9d
Reverting changes in stable APIs
  • Loading branch information
AutorestCI committed Jul 11, 2018
commit ce74242a9dabbb568e009517737c09fd8be7b10e
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,15 @@ def create_or_update(
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)

if response.status_code not in [201]:
if response.status_code not in [201, 409]:
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None

if response.status_code == 201:
deserialized = self._deserialize('ConnectionType', response)
if response.status_code == 409:
deserialized = self._deserialize('ConnectionType', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def create_or_update(
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)

if response.status_code not in [200, 201]:
if response.status_code not in [200, 201, 400]:
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_or_update(
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)

if response.status_code not in [200, 201]:
if response.status_code not in [200, 201, 409]:
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None
Expand Down