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 network trace API bugs (Retake) #3720

Merged
merged 2 commits into from
Nov 1, 2018
Merged
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
84 changes: 48 additions & 36 deletions azure-mgmt-web/azure/mgmt/web/operations/web_apps_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7751,8 +7751,9 @@ def get_network_trace_operation(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: object or ClientRawResponse if raw=true
:rtype: object or ~msrest.pipeline.ClientRawResponse
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.web.models.NetworkTrace] or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand Down Expand Up @@ -7792,7 +7793,7 @@ def get_network_trace_operation(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -7920,7 +7921,7 @@ def _start_web_site_network_trace_operation_initial(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -7950,10 +7951,12 @@ def start_web_site_network_trace_operation(
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns object or
ClientRawResponse<object> if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]]
:return: An instance of LROPoller that returns list or
ClientRawResponse<list> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]]
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand All @@ -7969,7 +7972,7 @@ def start_web_site_network_trace_operation(
)

def get_long_running_output(response):
deserialized = self._deserialize('object', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -8131,8 +8134,9 @@ def get_network_trace_operation_v2(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: object or ClientRawResponse if raw=true
:rtype: object or ~msrest.pipeline.ClientRawResponse
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.web.models.NetworkTrace] or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand Down Expand Up @@ -8172,7 +8176,7 @@ def get_network_trace_operation_v2(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -18270,8 +18274,9 @@ def get_network_trace_operation_slot(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: object or ClientRawResponse if raw=true
:rtype: object or ~msrest.pipeline.ClientRawResponse
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.web.models.NetworkTrace] or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand Down Expand Up @@ -18312,7 +18317,7 @@ def get_network_trace_operation_slot(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -18444,7 +18449,7 @@ def _start_web_site_network_trace_operation_slot_initial(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -18476,10 +18481,12 @@ def start_web_site_network_trace_operation_slot(
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns object or
ClientRawResponse<object> if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]]
:return: An instance of LROPoller that returns list or
ClientRawResponse<list> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]]
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand All @@ -18496,7 +18503,7 @@ def start_web_site_network_trace_operation_slot(
)

def get_long_running_output(response):
deserialized = self._deserialize('object', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -18668,8 +18675,9 @@ def get_network_trace_operation_slot_v2(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: object or ClientRawResponse if raw=true
:rtype: object or ~msrest.pipeline.ClientRawResponse
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.web.models.NetworkTrace] or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand Down Expand Up @@ -18710,7 +18718,7 @@ def get_network_trace_operation_slot_v2(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -21932,7 +21940,7 @@ def _start_network_trace_slot_initial(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -21964,10 +21972,12 @@ def start_network_trace_slot(
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns object or
ClientRawResponse<object> if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]]
:return: An instance of LROPoller that returns list or
ClientRawResponse<list> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]]
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand All @@ -21984,7 +21994,7 @@ def start_network_trace_slot(
)

def get_long_running_output(response):
deserialized = self._deserialize('object', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -24172,7 +24182,7 @@ def _start_network_trace_initial(
if response.status_code == 200:
deserialized = self._deserialize('[NetworkTrace]', response)
if response.status_code == 202:
deserialized = self._deserialize('Operation', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down Expand Up @@ -24202,10 +24212,12 @@ def start_network_trace(
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns object or
ClientRawResponse<object> if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[object] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[object]]
:return: An instance of LROPoller that returns list or
ClientRawResponse<list> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[list[~azure.mgmt.web.models.NetworkTrace]]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[list[~azure.mgmt.web.models.NetworkTrace]]]
:raises:
:class:`DefaultErrorResponseException<azure.mgmt.web.models.DefaultErrorResponseException>`
"""
Expand All @@ -24221,7 +24233,7 @@ def start_network_trace(
)

def get_long_running_output(response):
deserialized = self._deserialize('object', response)
deserialized = self._deserialize('[NetworkTrace]', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down