Skip to content

Commit

Permalink
[AutoPR web/resource-manager] Add networkTrace resource and APIs (#3274)
Browse files Browse the repository at this point in the history
* Generated from cb01370bae16cce8a604d118f5378f5655894566

Add networkTrace resource and APIs

* Generated from 4cf9c58d93370fcbbb947706137465706962d979

Fix file name typo of GetWebSiteNetworkTraces.json

* Generated from 890632e8e01a40080edde5f84b6a8aa1178c14c3

Fix network trace APIs
  • Loading branch information
AutorestCI authored Sep 17, 2018
1 parent afa007e commit d2652dd
Show file tree
Hide file tree
Showing 4 changed files with 591 additions and 16 deletions.
3 changes: 3 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
from .migrate_my_sql_status_py3 import MigrateMySqlStatus
from .relay_service_connection_entity_py3 import RelayServiceConnectionEntity
from .network_features_py3 import NetworkFeatures
from .network_trace_py3 import NetworkTrace
from .perf_mon_sample_py3 import PerfMonSample
from .perf_mon_set_py3 import PerfMonSet
from .perf_mon_response_py3 import PerfMonResponse
Expand Down Expand Up @@ -403,6 +404,7 @@
from .migrate_my_sql_status import MigrateMySqlStatus
from .relay_service_connection_entity import RelayServiceConnectionEntity
from .network_features import NetworkFeatures
from .network_trace import NetworkTrace
from .perf_mon_sample import PerfMonSample
from .perf_mon_set import PerfMonSet
from .perf_mon_response import PerfMonResponse
Expand Down Expand Up @@ -743,6 +745,7 @@
'MigrateMySqlStatus',
'RelayServiceConnectionEntity',
'NetworkFeatures',
'NetworkTrace',
'PerfMonSample',
'PerfMonSet',
'PerfMonResponse',
Expand Down
38 changes: 38 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/network_trace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class NetworkTrace(Model):
"""Network trace.
:param path: Local file path for the captured network trace file.
:type path: str
:param status: Current status of the network trace operation, same as
Operation.Status (InProgress/Succeeded/Failed).
:type status: str
:param message: Detailed message of a network trace operation, e.g. error
message in case of failure.
:type message: str
"""

_attribute_map = {
'path': {'key': 'path', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(NetworkTrace, self).__init__(**kwargs)
self.path = kwargs.get('path', None)
self.status = kwargs.get('status', None)
self.message = kwargs.get('message', None)
38 changes: 38 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/network_trace_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class NetworkTrace(Model):
"""Network trace.
:param path: Local file path for the captured network trace file.
:type path: str
:param status: Current status of the network trace operation, same as
Operation.Status (InProgress/Succeeded/Failed).
:type status: str
:param message: Detailed message of a network trace operation, e.g. error
message in case of failure.
:type message: str
"""

_attribute_map = {
'path': {'key': 'path', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, path: str=None, status: str=None, message: str=None, **kwargs) -> None:
super(NetworkTrace, self).__init__(**kwargs)
self.path = path
self.status = status
self.message = message
Loading

0 comments on commit d2652dd

Please sign in to comment.