Skip to content
Closed
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,19 @@ def express_route_circuits(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def express_route_connections(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`ExpressRouteConnectionsOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRouteConnectionsOperations>`
"""
api_version = self._get_api_version('express_route_connections')
if api_version == '2018-08-01':
from .v2018_08_01.operations import ExpressRouteConnectionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def express_route_cross_connection_peerings(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -794,6 +807,19 @@ def express_route_cross_connections(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def express_route_gateways(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`ExpressRouteGatewaysOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRouteGatewaysOperations>`
"""
api_version = self._get_api_version('express_route_gateways')
if api_version == '2018-08-01':
from .v2018_08_01.operations import ExpressRouteGatewaysOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def express_route_service_providers(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
from .express_route_circuit_peering_config_py3 import ExpressRouteCircuitPeeringConfig
from .route_filter_rule_py3 import RouteFilterRule
from .express_route_circuit_stats_py3 import ExpressRouteCircuitStats
from .express_route_connection_id_py3 import ExpressRouteConnectionId
from .express_route_circuit_connection_py3 import ExpressRouteCircuitConnection
from .express_route_circuit_peering_py3 import ExpressRouteCircuitPeering
from .route_filter_py3 import RouteFilter
Expand All @@ -111,6 +112,12 @@
from .express_route_circuit_reference_py3 import ExpressRouteCircuitReference
from .express_route_cross_connection_peering_py3 import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection_py3 import ExpressRouteCrossConnection
from .express_route_gateway_properties_auto_scale_configuration_bounds_py3 import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds
from .express_route_gateway_properties_auto_scale_configuration_py3 import ExpressRouteGatewayPropertiesAutoScaleConfiguration
from .express_route_connection_py3 import ExpressRouteConnection
from .express_route_gateway_py3 import ExpressRouteGateway
from .express_route_gateway_list_py3 import ExpressRouteGatewayList
from .express_route_connection_list_py3 import ExpressRouteConnectionList
from .load_balancer_sku_py3 import LoadBalancerSku
from .load_balancing_rule_py3 import LoadBalancingRule
from .probe_py3 import Probe
Expand Down Expand Up @@ -329,6 +336,7 @@
from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig
from .route_filter_rule import RouteFilterRule
from .express_route_circuit_stats import ExpressRouteCircuitStats
from .express_route_connection_id import ExpressRouteConnectionId
from .express_route_circuit_connection import ExpressRouteCircuitConnection
from .express_route_circuit_peering import ExpressRouteCircuitPeering
from .route_filter import RouteFilter
Expand All @@ -349,6 +357,12 @@
from .express_route_circuit_reference import ExpressRouteCircuitReference
from .express_route_cross_connection_peering import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection import ExpressRouteCrossConnection
from .express_route_gateway_properties_auto_scale_configuration_bounds import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds
from .express_route_gateway_properties_auto_scale_configuration import ExpressRouteGatewayPropertiesAutoScaleConfiguration
from .express_route_connection import ExpressRouteConnection
from .express_route_gateway import ExpressRouteGateway
from .express_route_gateway_list import ExpressRouteGatewayList
from .express_route_connection_list import ExpressRouteConnectionList
from .load_balancer_sku import LoadBalancerSku
from .load_balancing_rule import LoadBalancingRule
from .probe import Probe
Expand Down Expand Up @@ -704,6 +718,7 @@
'ExpressRouteCircuitPeeringConfig',
'RouteFilterRule',
'ExpressRouteCircuitStats',
'ExpressRouteConnectionId',
'ExpressRouteCircuitConnection',
'ExpressRouteCircuitPeering',
'RouteFilter',
Expand All @@ -724,6 +739,12 @@
'ExpressRouteCircuitReference',
'ExpressRouteCrossConnectionPeering',
'ExpressRouteCrossConnection',
'ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds',
'ExpressRouteGatewayPropertiesAutoScaleConfiguration',
'ExpressRouteConnection',
'ExpressRouteGateway',
'ExpressRouteGatewayList',
'ExpressRouteConnectionList',
'LoadBalancerSku',
'LoadBalancingRule',
'Probe',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class ExpressRouteCircuitPeering(SubResource):
:param ipv6_peering_config: The IPv6 peering configuration.
:type ipv6_peering_config:
~azure.mgmt.network.v2018_08_01.models.Ipv6ExpressRouteCircuitPeeringConfig
:param express_route_connection: The ExpressRoute connection.
:type express_route_connection:
~azure.mgmt.network.v2018_08_01.models.ExpressRouteConnectionId
:param connections: The list of circuit connections associated with Azure
Private Peering for this circuit.
:type connections:
Expand Down Expand Up @@ -99,6 +102,7 @@ class ExpressRouteCircuitPeering(SubResource):
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
'route_filter': {'key': 'properties.routeFilter', 'type': 'RouteFilter'},
'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'},
'express_route_connection': {'key': 'properties.expressRouteConnection', 'type': 'ExpressRouteConnectionId'},
'connections': {'key': 'properties.connections', 'type': '[ExpressRouteCircuitConnection]'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
Expand All @@ -123,6 +127,7 @@ def __init__(self, **kwargs):
self.last_modified_by = kwargs.get('last_modified_by', None)
self.route_filter = kwargs.get('route_filter', None)
self.ipv6_peering_config = kwargs.get('ipv6_peering_config', None)
self.express_route_connection = kwargs.get('express_route_connection', None)
self.connections = kwargs.get('connections', None)
self.name = kwargs.get('name', None)
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class ExpressRouteCircuitPeering(SubResource):
:param ipv6_peering_config: The IPv6 peering configuration.
:type ipv6_peering_config:
~azure.mgmt.network.v2018_08_01.models.Ipv6ExpressRouteCircuitPeeringConfig
:param express_route_connection: The ExpressRoute connection.
:type express_route_connection:
~azure.mgmt.network.v2018_08_01.models.ExpressRouteConnectionId
:param connections: The list of circuit connections associated with Azure
Private Peering for this circuit.
:type connections:
Expand Down Expand Up @@ -99,12 +102,13 @@ class ExpressRouteCircuitPeering(SubResource):
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
'route_filter': {'key': 'properties.routeFilter', 'type': 'RouteFilter'},
'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'},
'express_route_connection': {'key': 'properties.expressRouteConnection', 'type': 'ExpressRouteConnectionId'},
'connections': {'key': 'properties.connections', 'type': '[ExpressRouteCircuitConnection]'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, peering_type=None, state=None, azure_asn: int=None, peer_asn: int=None, primary_peer_address_prefix: str=None, secondary_peer_address_prefix: str=None, primary_azure_port: str=None, secondary_azure_port: str=None, shared_key: str=None, vlan_id: int=None, microsoft_peering_config=None, stats=None, provisioning_state: str=None, gateway_manager_etag: str=None, last_modified_by: str=None, route_filter=None, ipv6_peering_config=None, connections=None, name: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, peering_type=None, state=None, azure_asn: int=None, peer_asn: int=None, primary_peer_address_prefix: str=None, secondary_peer_address_prefix: str=None, primary_azure_port: str=None, secondary_azure_port: str=None, shared_key: str=None, vlan_id: int=None, microsoft_peering_config=None, stats=None, provisioning_state: str=None, gateway_manager_etag: str=None, last_modified_by: str=None, route_filter=None, ipv6_peering_config=None, express_route_connection=None, connections=None, name: str=None, **kwargs) -> None:
super(ExpressRouteCircuitPeering, self).__init__(id=id, **kwargs)
self.peering_type = peering_type
self.state = state
Expand All @@ -123,6 +127,7 @@ def __init__(self, *, id: str=None, peering_type=None, state=None, azure_asn: in
self.last_modified_by = last_modified_by
self.route_filter = route_filter
self.ipv6_peering_config = ipv6_peering_config
self.express_route_connection = express_route_connection
self.connections = connections
self.name = name
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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 .sub_resource import SubResource


class ExpressRouteConnection(SubResource):
"""ExpressRouteConnection resource.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:param id: Resource ID.
:type id: str
:ivar provisioning_state: The provisioning state of the resource. Possible
values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.network.v2018_08_01.models.ProvisioningState
:param express_route_connection_id: The ID of the ExpressRoute circuit
peering.
:type express_route_connection_id: str
:param authorization_key: Authorization key to establish the connection.
:type authorization_key: str
:param routing_weight: The routing weight associated to the connection.
:type routing_weight: int
:param name: Required. The name of the resource.
:type name: str
"""

_validation = {
'provisioning_state': {'readonly': True},
'name': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'express_route_connection_id': {'key': 'properties.expressRouteCircuitPeering.id', 'type': 'str'},
'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'},
'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ExpressRouteConnection, self).__init__(**kwargs)
self.provisioning_state = None
self.express_route_connection_id = kwargs.get('express_route_connection_id', None)
self.authorization_key = kwargs.get('authorization_key', None)
self.routing_weight = kwargs.get('routing_weight', None)
self.name = kwargs.get('name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 ExpressRouteConnectionId(Model):
"""The ID of the ExpressRouteConnection.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The ID of the ExpressRouteConnection.
:vartype id: str
"""

_validation = {
'id': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ExpressRouteConnectionId, self).__init__(**kwargs)
self.id = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 ExpressRouteConnectionId(Model):
"""The ID of the ExpressRouteConnection.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The ID of the ExpressRouteConnection.
:vartype id: str
"""

_validation = {
'id': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(ExpressRouteConnectionId, self).__init__(**kwargs)
self.id = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 ExpressRouteConnectionList(Model):
"""ExpressRouteConnection list.

:param value: The list of ExpressRoute connections
:type value:
list[~azure.mgmt.network.v2018_08_01.models.ExpressRouteConnection]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[ExpressRouteConnection]'},
}

def __init__(self, **kwargs):
super(ExpressRouteConnectionList, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 ExpressRouteConnectionList(Model):
"""ExpressRouteConnection list.

:param value: The list of ExpressRoute connections
:type value:
list[~azure.mgmt.network.v2018_08_01.models.ExpressRouteConnection]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[ExpressRouteConnection]'},
}

def __init__(self, *, value=None, **kwargs) -> None:
super(ExpressRouteConnectionList, self).__init__(**kwargs)
self.value = value
Loading