Skip to content

Commit

Permalink
[AutoPR] network/resource-manager (#3154)
Browse files Browse the repository at this point in the history
* [AutoPR network/resource-manager] Added NetworkConfigurationDiagnostic 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

* Generated from 6b8368dd434d71e004539fe305ae2c2c9cc100a3 (#3166)

Removed QueryConnectionMonitors API

* Rebuild by #3154

* Generated from c588675255041df691fc413f19c346a30538fbb9 (#3189)

Fetch upstream master

* Make 2018-07-01 the default

* Network 2.1.0
  • Loading branch information
AutorestCI authored and lmazuel committed Aug 28, 2018
1 parent 011b1f0 commit 930047d
Show file tree
Hide file tree
Showing 604 changed files with 56,231 additions and 1,727 deletions.
29 changes: 29 additions & 0 deletions azure-mgmt-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@
Release History
===============

2.1.0 (2018-08-28)
++++++++++++++++++

Default API version is now 2018-07-01

**Features**

- Model ExpressRouteCircuit has a new parameter allow_global_reach
- Model PublicIPAddress has a new parameter public_ip_prefix
- Model BackendAddressPool has a new parameter outbound_rule (replaces outbound_nat_rule)
- Model FrontendIPConfiguration has a new parameter outbound_rules (replaces outbound_nat_rule)
- Model FrontendIPConfiguration has a new parameter public_ip_prefix
- Model LoadBalancingRule has a new parameter enable_tcp_reset
- Model VirtualNetworkGatewayConnectionListEntity has a new parameter express_route_gateway_bypass
- Model VirtualNetworkGatewayConnection has a new parameter express_route_gateway_bypass
- Model Subnet has a new parameter service_endpoint_policies
- Model InboundNatPool has a new parameter enable_tcp_reset
- Model LoadBalancer has a new parameter outbound_rules (replaces outbound_nat_rule)
- Model InboundNatRule has a new parameter enable_tcp_reset
- Added operation group ServiceEndpointPolicyDefinitionsOperations
- Added operation group ServiceEndpointPoliciesOperations
- Added operation group PublicIPPrefixesOperations

**Breaking changes**

- Model BackendAddressPool no longer has parameter outbound_nat_rule (now outbound_rules)
- Model FrontendIPConfiguration no longer has parameter outbound_nat_rules (now outbound_rules)
- Model LoadBalancer no longer has parameter outbound_nat_rules (now outbound_rules)

2.0.1 (2018-08-07)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-network/azure/mgmt/network/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .v2018_06_01.models import *
from .v2018_07_01.models import *
198 changes: 195 additions & 3 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
from .effective_network_security_group_list_result_py3 import EffectiveNetworkSecurityGroupListResult
from .effective_route_py3 import EffectiveRoute
from .effective_route_list_result_py3 import EffectiveRouteListResult
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .network_watcher_py3 import NetworkWatcher
from .topology_parameters_py3 import TopologyParameters
from .topology_association_py3 import TopologyAssociation
Expand Down Expand Up @@ -172,6 +173,14 @@
from .connection_monitor_result_py3 import ConnectionMonitorResult
from .connection_state_snapshot_py3 import ConnectionStateSnapshot
from .connection_monitor_query_result_py3 import ConnectionMonitorQueryResult
from .traffic_query_py3 import TrafficQuery
from .network_configuration_diagnostic_parameters_py3 import NetworkConfigurationDiagnosticParameters
from .matched_rule_py3 import MatchedRule
from .network_security_rules_evaluation_result_py3 import NetworkSecurityRulesEvaluationResult
from .evaluated_network_security_group_py3 import EvaluatedNetworkSecurityGroup
from .network_security_group_result_py3 import NetworkSecurityGroupResult
from .network_configuration_diagnostic_result_py3 import NetworkConfigurationDiagnosticResult
from .network_configuration_diagnostic_response_py3 import NetworkConfigurationDiagnosticResponse
from .operation_display_py3 import OperationDisplay
from .availability_py3 import Availability
from .dimension_py3 import Dimension
Expand Down Expand Up @@ -330,6 +339,7 @@
from .effective_network_security_group_list_result import EffectiveNetworkSecurityGroupListResult
from .effective_route import EffectiveRoute
from .effective_route_list_result import EffectiveRouteListResult
from .error_response import ErrorResponse, ErrorResponseException
from .network_watcher import NetworkWatcher
from .topology_parameters import TopologyParameters
from .topology_association import TopologyAssociation
Expand Down Expand Up @@ -387,6 +397,14 @@
from .connection_monitor_result import ConnectionMonitorResult
from .connection_state_snapshot import ConnectionStateSnapshot
from .connection_monitor_query_result import ConnectionMonitorQueryResult
from .traffic_query import TrafficQuery
from .network_configuration_diagnostic_parameters import NetworkConfigurationDiagnosticParameters
from .matched_rule import MatchedRule
from .network_security_rules_evaluation_result import NetworkSecurityRulesEvaluationResult
from .evaluated_network_security_group import EvaluatedNetworkSecurityGroup
from .network_security_group_result import NetworkSecurityGroupResult
from .network_configuration_diagnostic_result import NetworkConfigurationDiagnosticResult
from .network_configuration_diagnostic_response import NetworkConfigurationDiagnosticResponse
from .operation_display import OperationDisplay
from .availability import Availability
from .dimension import Dimension
Expand Down Expand Up @@ -673,6 +691,7 @@
'EffectiveNetworkSecurityGroupListResult',
'EffectiveRoute',
'EffectiveRouteListResult',
'ErrorResponse', 'ErrorResponseException',
'NetworkWatcher',
'TopologyParameters',
'TopologyAssociation',
Expand Down Expand Up @@ -730,6 +749,14 @@
'ConnectionMonitorResult',
'ConnectionStateSnapshot',
'ConnectionMonitorQueryResult',
'TrafficQuery',
'NetworkConfigurationDiagnosticParameters',
'MatchedRule',
'NetworkSecurityRulesEvaluationResult',
'EvaluatedNetworkSecurityGroup',
'NetworkSecurityGroupResult',
'NetworkConfigurationDiagnosticResult',
'NetworkConfigurationDiagnosticResponse',
'OperationDisplay',
'Availability',
'Dimension',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ class ConnectionStateSnapshot(Model):
values include: 'NotStarted', 'InProgress', 'Completed'
:type evaluation_state: str or
~azure.mgmt.network.v2018_06_01.models.EvaluationState
:param avg_latency_in_ms: Average latency in ms.
:type avg_latency_in_ms: int
:param min_latency_in_ms: Minimum latency in ms.
:type min_latency_in_ms: int
:param max_latency_in_ms: Maximum latency in ms.
:type max_latency_in_ms: int
:param probes_sent: The number of sent probes.
:type probes_sent: int
:param probes_failed: The number of failed probes.
:type probes_failed: int
:ivar hops: List of hops between the source and the destination.
:vartype hops:
list[~azure.mgmt.network.v2018_06_01.models.ConnectivityHop]
Expand All @@ -44,6 +54,11 @@ class ConnectionStateSnapshot(Model):
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'evaluation_state': {'key': 'evaluationState', 'type': 'str'},
'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'},
'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'},
'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'},
'probes_sent': {'key': 'probesSent', 'type': 'int'},
'probes_failed': {'key': 'probesFailed', 'type': 'int'},
'hops': {'key': 'hops', 'type': '[ConnectivityHop]'},
}

Expand All @@ -53,4 +68,9 @@ def __init__(self, **kwargs):
self.start_time = kwargs.get('start_time', None)
self.end_time = kwargs.get('end_time', None)
self.evaluation_state = kwargs.get('evaluation_state', None)
self.avg_latency_in_ms = kwargs.get('avg_latency_in_ms', None)
self.min_latency_in_ms = kwargs.get('min_latency_in_ms', None)
self.max_latency_in_ms = kwargs.get('max_latency_in_ms', None)
self.probes_sent = kwargs.get('probes_sent', None)
self.probes_failed = kwargs.get('probes_failed', None)
self.hops = None
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ class ConnectionStateSnapshot(Model):
values include: 'NotStarted', 'InProgress', 'Completed'
:type evaluation_state: str or
~azure.mgmt.network.v2018_06_01.models.EvaluationState
:param avg_latency_in_ms: Average latency in ms.
:type avg_latency_in_ms: int
:param min_latency_in_ms: Minimum latency in ms.
:type min_latency_in_ms: int
:param max_latency_in_ms: Maximum latency in ms.
:type max_latency_in_ms: int
:param probes_sent: The number of sent probes.
:type probes_sent: int
:param probes_failed: The number of failed probes.
:type probes_failed: int
:ivar hops: List of hops between the source and the destination.
:vartype hops:
list[~azure.mgmt.network.v2018_06_01.models.ConnectivityHop]
Expand All @@ -44,13 +54,23 @@ class ConnectionStateSnapshot(Model):
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'evaluation_state': {'key': 'evaluationState', 'type': 'str'},
'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'},
'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'},
'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'},
'probes_sent': {'key': 'probesSent', 'type': 'int'},
'probes_failed': {'key': 'probesFailed', 'type': 'int'},
'hops': {'key': 'hops', 'type': '[ConnectivityHop]'},
}

def __init__(self, *, connection_state=None, start_time=None, end_time=None, evaluation_state=None, **kwargs) -> None:
def __init__(self, *, connection_state=None, start_time=None, end_time=None, evaluation_state=None, avg_latency_in_ms: int=None, min_latency_in_ms: int=None, max_latency_in_ms: int=None, probes_sent: int=None, probes_failed: int=None, **kwargs) -> None:
super(ConnectionStateSnapshot, self).__init__(**kwargs)
self.connection_state = connection_state
self.start_time = start_time
self.end_time = end_time
self.evaluation_state = evaluation_state
self.avg_latency_in_ms = avg_latency_in_ms
self.min_latency_in_ms = min_latency_in_ms
self.max_latency_in_ms = max_latency_in_ms
self.probes_sent = probes_sent
self.probes_failed = probes_failed
self.hops = None
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)
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)
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
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, *, network_security_group_id: str=None, matched_rule=None, **kwargs) -> None:
super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs)
self.network_security_group_id = network_security_group_id
self.matched_rule = matched_rule
self.rules_evaluation_result = None
Loading

0 comments on commit 930047d

Please sign in to comment.