Skip to content

Commit

Permalink
[AutoPR web/resource-manager] Fix network trace API bugs (Retake) (#3720
Browse files Browse the repository at this point in the history
)

* Generated from 490314cf7a09e90d28985acda96d9d8d39e3e052

Fix network trace API bugs

* Generated from cd188bfe4b478640564185f58a0c505640d2d095

Fix network trace API V2
  • Loading branch information
AutorestCI authored Nov 1, 2018
1 parent 2457ea6 commit c5c6651
Showing 1 changed file with 48 additions and 36 deletions.
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

0 comments on commit c5c6651

Please sign in to comment.