Skip to content

Commit

Permalink
Generated from b358cc2d9448ec292d6d67de69f587080731c85e (#4428)
Browse files Browse the repository at this point in the history
Add examples of 201 response to AppServicePlans_CreateOrUpdate.
  • Loading branch information
AutorestCI authored Feb 26, 2019
1 parent 4907e5e commit 60727bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,15 @@ def _create_or_update_initial(
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)

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

deserialized = None

if response.status_code == 200:
deserialized = self._deserialize('AppServicePlan', response)
if response.status_code == 201:
deserialized = self._deserialize('AppServicePlan', response)
if response.status_code == 202:
deserialized = self._deserialize('AppServicePlan', response)

Expand Down
3 changes: 2 additions & 1 deletion azure-mgmt-web/azure/mgmt/web/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.41.0"
VERSION = "0.36.0"

0 comments on commit 60727bd

Please sign in to comment.