diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb index a83e75d0c9..bdd1f33300 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb @@ -3188,7 +3188,7 @@ def begin_create_or_update_async(resource_group_name, name, app_service_plan, cu http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 202 + unless status_code == 200 || status_code == 201 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -3205,6 +3205,16 @@ def begin_create_or_update_async(resource_group_name, name, app_service_plan, cu end end # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlan.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)