-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR network/resource-manager] Added NetworkConfigurationDiagnosti…
…c rest API + example (#3095) * Generated from 6ad7c8a080cf905ffcbe9c42c0382059ce753188 Added NetworkConfigurationDiagnostic rest API + example * Generated from 6909b52c5e23056444d410930b8702e7540811e2 Removed 'read-only' from queries in NetworkConfigurationDiagnostic API * Generated from 6e6b30b52851dcd98880dc07125d2fc2faf97576 Added long-running-operation-options: final-state-via location to networkConfigurationDiagnostic API * Generated from f12e6b41326c05506097b75dce076c297074a3d2 Fixed example name * Generated from 9e5daf5f1cd3c59140eec06d6fb55e6456323c54 Fixed reference to ErrorDetails * Generated from 0858a238c818aa119584a9d61deddc2a26494de9 Fixed response for QueryConnectionMonitors API + fixed example * Generated from 377e5cc3f8f10f71d7816d78462fbb68685453bd Fixed types for latencies in networkwatcher.json
- Loading branch information
1 parent
c7c9a9b
commit 841399c
Showing
30 changed files
with
1,343 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...mt-network/azure/mgmt/network/v2018_06_01/models/connection_monitors_query_result_item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 ConnectionMonitorsQueryResultItem(Model): | ||
"""Results of query particular connection monitor. | ||
:param resource_id: Connection monitor resource ID. | ||
:type resource_id: str | ||
:param report: | ||
:type report: | ||
~azure.mgmt.network.v2018_06_01.models.ConnectionMonitorQueryResult | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_id': {'key': 'resourceId', 'type': 'str'}, | ||
'report': {'key': 'report', 'type': 'ConnectionMonitorQueryResult'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ConnectionMonitorsQueryResultItem, self).__init__(**kwargs) | ||
self.resource_id = kwargs.get('resource_id', None) | ||
self.report = kwargs.get('report', None) |
33 changes: 33 additions & 0 deletions
33
...etwork/azure/mgmt/network/v2018_06_01/models/connection_monitors_query_result_item_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 ConnectionMonitorsQueryResultItem(Model): | ||
"""Results of query particular connection monitor. | ||
:param resource_id: Connection monitor resource ID. | ||
:type resource_id: str | ||
:param report: | ||
:type report: | ||
~azure.mgmt.network.v2018_06_01.models.ConnectionMonitorQueryResult | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_id': {'key': 'resourceId', 'type': 'str'}, | ||
'report': {'key': 'report', 'type': 'ConnectionMonitorQueryResult'}, | ||
} | ||
|
||
def __init__(self, *, resource_id: str=None, report=None, **kwargs) -> None: | ||
super(ConnectionMonitorsQueryResultItem, self).__init__(**kwargs) | ||
self.resource_id = resource_id | ||
self.report = report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/error_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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 | ||
from msrest.exceptions import HttpOperationError | ||
|
||
|
||
class ErrorResponse(Model): | ||
"""The error object. | ||
:param error: Error. | ||
:type error: ~azure.mgmt.network.v2018_06_01.models.ErrorDetails | ||
""" | ||
|
||
_attribute_map = { | ||
'error': {'key': 'error', 'type': 'ErrorDetails'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ErrorResponse, self).__init__(**kwargs) | ||
self.error = kwargs.get('error', None) | ||
|
||
|
||
class ErrorResponseException(HttpOperationError): | ||
"""Server responsed with exception of type: 'ErrorResponse'. | ||
:param deserialize: A deserializer | ||
:param response: Server response to be deserialized. | ||
""" | ||
|
||
def __init__(self, deserialize, response, *args): | ||
|
||
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) |
41 changes: 41 additions & 0 deletions
41
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/error_response_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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 | ||
from msrest.exceptions import HttpOperationError | ||
|
||
|
||
class ErrorResponse(Model): | ||
"""The error object. | ||
:param error: Error. | ||
:type error: ~azure.mgmt.network.v2018_06_01.models.ErrorDetails | ||
""" | ||
|
||
_attribute_map = { | ||
'error': {'key': 'error', 'type': 'ErrorDetails'}, | ||
} | ||
|
||
def __init__(self, *, error=None, **kwargs) -> None: | ||
super(ErrorResponse, self).__init__(**kwargs) | ||
self.error = error | ||
|
||
|
||
class ErrorResponseException(HttpOperationError): | ||
"""Server responsed with exception of type: 'ErrorResponse'. | ||
:param deserialize: A deserializer | ||
:param response: Server response to be deserialized. | ||
""" | ||
|
||
def __init__(self, deserialize, response, *args): | ||
|
||
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) |
45 changes: 45 additions & 0 deletions
45
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/evaluated_network_security_group.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 EvaluatedNetworkSecurityGroup(Model): | ||
"""Results of network security group evaluation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param network_security_group_id: Network security group ID. | ||
:type network_security_group_id: str | ||
:param matched_rule: | ||
:type matched_rule: ~azure.mgmt.network.v2018_06_01.models.MatchedRule | ||
:ivar rules_evaluation_result: List of network security rules evaluation | ||
results. | ||
:vartype rules_evaluation_result: | ||
list[~azure.mgmt.network.v2018_06_01.models.NetworkSecurityRulesEvaluationResult] | ||
""" | ||
|
||
_validation = { | ||
'rules_evaluation_result': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'network_security_group_id': {'key': 'networkSecurityGroupId', 'type': 'str'}, | ||
'matched_rule': {'key': 'matchedRule', 'type': 'MatchedRule'}, | ||
'rules_evaluation_result': {'key': 'rulesEvaluationResult', 'type': '[NetworkSecurityRulesEvaluationResult]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs) | ||
self.network_security_group_id = kwargs.get('network_security_group_id', None) | ||
self.matched_rule = kwargs.get('matched_rule', None) | ||
self.rules_evaluation_result = None |
Oops, something went wrong.