Skip to content

Commit

Permalink
Generated from 758c143eae019925ae9e021fbcd6821af918d000
Browse files Browse the repository at this point in the history
Add ExpressRoutePort swagger (#4104)

* Add ExpressRoutePort details to readme.md

* ExpressRoutePort swagger

* Refer SubscriptionIdParameter and ApiVersionParameter from network.json
  • Loading branch information
AutorestCI committed Oct 15, 2018
1 parent d3f5f83 commit bf676b2
Show file tree
Hide file tree
Showing 21 changed files with 1,714 additions and 1 deletion.
39 changes: 39 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 @@ -848,6 +848,45 @@ def express_route_gateways(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_links(self):
"""Instance depends on the API version:
* 2018-08-01: :class:`ExpressRouteLinksOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRouteLinksOperations>`
"""
api_version = self._get_api_version('express_route_links')
if api_version == '2018-08-01':
from .v2018_08_01.operations import ExpressRouteLinksOperations 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_ports(self):
"""Instance depends on the API version:
* 2018-08-01: :class:`ExpressRoutePortsOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsOperations>`
"""
api_version = self._get_api_version('express_route_ports')
if api_version == '2018-08-01':
from .v2018_08_01.operations import ExpressRoutePortsOperations 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_ports_locations(self):
"""Instance depends on the API version:
* 2018-08-01: :class:`ExpressRoutePortsLocationsOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsLocationsOperations>`
"""
api_version = self._get_api_version('express_route_ports_locations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import ExpressRoutePortsLocationsOperations 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 @@ -125,6 +125,10 @@
from .express_route_gateway_py3 import ExpressRouteGateway
from .express_route_gateway_list_py3 import ExpressRouteGatewayList
from .express_route_connection_list_py3 import ExpressRouteConnectionList
from .express_route_ports_location_bandwidths_py3 import ExpressRoutePortsLocationBandwidths
from .express_route_ports_location_py3 import ExpressRoutePortsLocation
from .express_route_link_py3 import ExpressRouteLink
from .express_route_port_py3 import ExpressRoutePort
from .load_balancer_sku_py3 import LoadBalancerSku
from .load_balancing_rule_py3 import LoadBalancingRule
from .probe_py3 import Probe
Expand Down Expand Up @@ -394,6 +398,10 @@
from .express_route_gateway import ExpressRouteGateway
from .express_route_gateway_list import ExpressRouteGatewayList
from .express_route_connection_list import ExpressRouteConnectionList
from .express_route_ports_location_bandwidths import ExpressRoutePortsLocationBandwidths
from .express_route_ports_location import ExpressRoutePortsLocation
from .express_route_link import ExpressRouteLink
from .express_route_port import ExpressRoutePort
from .load_balancer_sku import LoadBalancerSku
from .load_balancing_rule import LoadBalancingRule
from .probe import Probe
Expand Down Expand Up @@ -561,6 +569,9 @@
from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged
from .express_route_cross_connection_paged import ExpressRouteCrossConnectionPaged
from .express_route_cross_connection_peering_paged import ExpressRouteCrossConnectionPeeringPaged
from .express_route_ports_location_paged import ExpressRoutePortsLocationPaged
from .express_route_port_paged import ExpressRoutePortPaged
from .express_route_link_paged import ExpressRouteLinkPaged
from .interface_endpoint_paged import InterfaceEndpointPaged
from .load_balancer_paged import LoadBalancerPaged
from .backend_address_pool_paged import BackendAddressPoolPaged
Expand Down Expand Up @@ -643,6 +654,9 @@
ExpressRouteCircuitSkuTier,
ExpressRouteCircuitSkuFamily,
ServiceProviderProvisioningState,
ExpressRouteLinkConnectorType,
ExpressRouteLinkAdminState,
ExpressRoutePortsEncapsulation,
LoadBalancerSkuName,
LoadDistribution,
ProbeProtocol,
Expand Down Expand Up @@ -810,6 +824,10 @@
'ExpressRouteGateway',
'ExpressRouteGatewayList',
'ExpressRouteConnectionList',
'ExpressRoutePortsLocationBandwidths',
'ExpressRoutePortsLocation',
'ExpressRouteLink',
'ExpressRoutePort',
'LoadBalancerSku',
'LoadBalancingRule',
'Probe',
Expand Down Expand Up @@ -977,6 +995,9 @@
'ExpressRouteServiceProviderPaged',
'ExpressRouteCrossConnectionPaged',
'ExpressRouteCrossConnectionPeeringPaged',
'ExpressRoutePortsLocationPaged',
'ExpressRoutePortPaged',
'ExpressRouteLinkPaged',
'InterfaceEndpointPaged',
'LoadBalancerPaged',
'BackendAddressPoolPaged',
Expand Down Expand Up @@ -1058,6 +1079,9 @@
'ExpressRouteCircuitSkuTier',
'ExpressRouteCircuitSkuFamily',
'ServiceProviderProvisioningState',
'ExpressRouteLinkConnectorType',
'ExpressRouteLinkAdminState',
'ExpressRoutePortsEncapsulation',
'LoadBalancerSkuName',
'LoadDistribution',
'ProbeProtocol',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ class ExpressRouteCircuit(Resource):
:param service_provider_properties: The ServiceProviderProperties.
:type service_provider_properties:
~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitServiceProviderProperties
:param express_route_port: The reference to the ExpressRoutePort resource
when the circuit is provisioned on an ExpressRoutePort resource.
:type express_route_port:
~azure.mgmt.network.v2018_08_01.models.SubResource
:param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is
provisioned on an ExpressRoutePort resource.
:type bandwidth_in_gbps: float
:ivar stag: The identifier of the circuit traffic. Outer tag for QinQ
encapsulation.
:vartype stag: int
:param provisioning_state: Gets the provisioning state of the public IP
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:type provisioning_state: str
Expand All @@ -70,6 +80,7 @@ class ExpressRouteCircuit(Resource):
_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'stag': {'readonly': True},
'etag': {'readonly': True},
}

Expand All @@ -88,6 +99,9 @@ class ExpressRouteCircuit(Resource):
'service_key': {'key': 'properties.serviceKey', 'type': 'str'},
'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'},
'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'},
'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'},
'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'},
'stag': {'key': 'properties.stag', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'},
'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'},
Expand All @@ -105,6 +119,9 @@ def __init__(self, **kwargs):
self.service_key = kwargs.get('service_key', None)
self.service_provider_notes = kwargs.get('service_provider_notes', None)
self.service_provider_properties = kwargs.get('service_provider_properties', None)
self.express_route_port = kwargs.get('express_route_port', None)
self.bandwidth_in_gbps = kwargs.get('bandwidth_in_gbps', None)
self.stag = None
self.provisioning_state = kwargs.get('provisioning_state', None)
self.gateway_manager_etag = kwargs.get('gateway_manager_etag', None)
self.allow_global_reach = kwargs.get('allow_global_reach', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ class ExpressRouteCircuit(Resource):
:param service_provider_properties: The ServiceProviderProperties.
:type service_provider_properties:
~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitServiceProviderProperties
:param express_route_port: The reference to the ExpressRoutePort resource
when the circuit is provisioned on an ExpressRoutePort resource.
:type express_route_port:
~azure.mgmt.network.v2018_08_01.models.SubResource
:param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is
provisioned on an ExpressRoutePort resource.
:type bandwidth_in_gbps: float
:ivar stag: The identifier of the circuit traffic. Outer tag for QinQ
encapsulation.
:vartype stag: int
:param provisioning_state: Gets the provisioning state of the public IP
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:type provisioning_state: str
Expand All @@ -70,6 +80,7 @@ class ExpressRouteCircuit(Resource):
_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'stag': {'readonly': True},
'etag': {'readonly': True},
}

Expand All @@ -88,13 +99,16 @@ class ExpressRouteCircuit(Resource):
'service_key': {'key': 'properties.serviceKey', 'type': 'str'},
'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'},
'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'},
'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'},
'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'},
'stag': {'key': 'properties.stag', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'},
'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, allow_classic_operations: bool=None, circuit_provisioning_state: str=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key: str=None, service_provider_notes: str=None, service_provider_properties=None, provisioning_state: str=None, gateway_manager_etag: str=None, allow_global_reach: bool=None, **kwargs) -> None:
def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, allow_classic_operations: bool=None, circuit_provisioning_state: str=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key: str=None, service_provider_notes: str=None, service_provider_properties=None, express_route_port=None, bandwidth_in_gbps: float=None, provisioning_state: str=None, gateway_manager_etag: str=None, allow_global_reach: bool=None, **kwargs) -> None:
super(ExpressRouteCircuit, self).__init__(id=id, location=location, tags=tags, **kwargs)
self.sku = sku
self.allow_classic_operations = allow_classic_operations
Expand All @@ -105,6 +119,9 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, all
self.service_key = service_key
self.service_provider_notes = service_provider_notes
self.service_provider_properties = service_provider_properties
self.express_route_port = express_route_port
self.bandwidth_in_gbps = bandwidth_in_gbps
self.stag = None
self.provisioning_state = provisioning_state
self.gateway_manager_etag = gateway_manager_etag
self.allow_global_reach = allow_global_reach
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# 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 ExpressRouteLink(SubResource):
"""ExpressRouteLink.
ExpressRouteLink child resource definition.
Variables are only populated by the server, and will be ignored when
sending a request.
:param id: Resource ID.
:type id: str
:ivar router_name: Name of Azure router associated with physical port.
:vartype router_name: str
:ivar interface_name: Name of Azure router interface.
:vartype interface_name: str
:ivar patch_panel_id: Mapping between physical port to patch panel port.
:vartype patch_panel_id: str
:ivar rack_id: Mapping of physical patch panel to rack.
:vartype rack_id: str
:ivar connector_type: Physical fiber port type. Possible values include:
'LC', 'SC'
:vartype connector_type: str or
~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkConnectorType
:param admin_state: Administrative state of the physical port. Possible
values include: 'Enabled', 'Disabled'
:type admin_state: str or
~azure.mgmt.network.v2018_08_01.models.ExpressRouteLinkAdminState
:ivar provisioning_state: The provisioning state of the ExpressRouteLink
resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and
'Failed'.
:vartype provisioning_state: str
:param name: Name of child port resource that is unique among child port
resources of the parent.
:type name: str
:ivar etag: A unique read-only string that changes whenever the resource
is updated.
:vartype etag: str
"""

_validation = {
'router_name': {'readonly': True},
'interface_name': {'readonly': True},
'patch_panel_id': {'readonly': True},
'rack_id': {'readonly': True},
'connector_type': {'readonly': True},
'provisioning_state': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'router_name': {'key': 'properties.routerName', 'type': 'str'},
'interface_name': {'key': 'properties.interfaceName', 'type': 'str'},
'patch_panel_id': {'key': 'properties.patchPanelId', 'type': 'str'},
'rack_id': {'key': 'properties.rackId', 'type': 'str'},
'connector_type': {'key': 'properties.connectorType', 'type': 'str'},
'admin_state': {'key': 'properties.adminState', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ExpressRouteLink, self).__init__(**kwargs)
self.router_name = None
self.interface_name = None
self.patch_panel_id = None
self.rack_id = None
self.connector_type = None
self.admin_state = kwargs.get('admin_state', None)
self.provisioning_state = None
self.name = kwargs.get('name', None)
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class ExpressRouteLinkPaged(Paged):
"""
A paging container for iterating over a list of :class:`ExpressRouteLink <azure.mgmt.network.v2018_08_01.models.ExpressRouteLink>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ExpressRouteLink]'}
}

def __init__(self, *args, **kwargs):

super(ExpressRouteLinkPaged, self).__init__(*args, **kwargs)
Loading

0 comments on commit bf676b2

Please sign in to comment.