Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR web/resource-manager] Fix for https://github.com/Azure/azure-rest-api-specs/issues/2907. Missed the production slot APIs earlier. #2533

Merged
merged 1 commit into from
May 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
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