From 60727bd00f61f2225851fadf8ebbf527f5dd534b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 26 Feb 2019 11:54:10 -0800 Subject: [PATCH] Generated from b358cc2d9448ec292d6d67de69f587080731c85e (#4428) Add examples of 201 response to AppServicePlans_CreateOrUpdate. --- .../azure/mgmt/web/operations/app_service_plans_operations.py | 4 +++- azure-mgmt-web/azure/mgmt/web/version.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py index 678402b79e06..564ef92378f1 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/app_service_plans_operations.py @@ -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) diff --git a/azure-mgmt-web/azure/mgmt/web/version.py b/azure-mgmt-web/azure/mgmt/web/version.py index 641190369164..8ae395630e43 100644 --- a/azure-mgmt-web/azure/mgmt/web/version.py +++ b/azure-mgmt-web/azure/mgmt/web/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.41.0" +VERSION = "0.36.0" +