Skip to content

Commit

Permalink
Generated from 803aa2f0154403f9b82544013d0f108a5f0781d2 (#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
AutorestCI committed May 29, 2018
1 parent 3617561 commit 2feef0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_multi_role_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}metrics'}
list_multi_role_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics'}

def list_multi_role_metric_definitions(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -2911,7 +2911,7 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_worker_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}metrics'}
list_worker_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics'}

def list_web_worker_metric_definitions(
self, resource_group_name, name, worker_pool_name, custom_headers=None, raw=False, **operation_config):
Expand Down
12 changes: 9 additions & 3 deletions azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -21919,7 +21919,7 @@ def get_source_control(
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
if response.status_code not in [200, 201, 202]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
Expand All @@ -21928,6 +21928,10 @@ def get_source_control(

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

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -21970,7 +21974,7 @@ def _create_or_update_source_control_initial(
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, 202]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
Expand All @@ -21981,6 +21985,8 @@ def _create_or_update_source_control_initial(
deserialized = self._deserialize('SiteSourceControl', response)
if response.status_code == 201:
deserialized = self._deserialize('SiteSourceControl', response)
if response.status_code == 202:
deserialized = self._deserialize('SiteSourceControl', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -22039,7 +22045,7 @@ def get_long_running_status(status_link, headers=None):

def get_long_running_output(response):

if response.status_code not in [200, 201]:
if response.status_code not in [200, 201, 202]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
Expand Down

0 comments on commit 2feef0c

Please sign in to comment.