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
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ class ExpressRouteCircuitAuthorization(SubResource):
:param provisioning_state: Gets the provisioning state of the public IP
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:type provisioning_state: str
:param name: Gets name of the resource that is unique within a resource
:ivar name: Gets name of the resource that is unique within a resource
group. This name can be used to access the resource.
:type name: str
:vartype name: str
:ivar etag: A unique read-only string that changes whenever the resource
is updated.
:vartype etag: str
"""

_validation = {
'name': {'readonly': True},
'etag': {'readonly': True},
}

Expand All @@ -51,10 +52,10 @@ class ExpressRouteCircuitAuthorization(SubResource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, id=None, authorization_key=None, authorization_use_status=None, provisioning_state=None, name=None):
def __init__(self, id=None, authorization_key=None, authorization_use_status=None, provisioning_state=None):
super(ExpressRouteCircuitAuthorization, self).__init__(id=id)
self.authorization_key = authorization_key
self.authorization_use_status = authorization_use_status
self.provisioning_state = provisioning_state
self.name = name
self.name = None
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,17 @@ class ExpressRouteCircuitPeering(SubResource):
:param ipv6_peering_config: The IPv6 peering configuration.
:type ipv6_peering_config:
~azure.mgmt.network.v2018_01_01.models.Ipv6ExpressRouteCircuitPeeringConfig
:param name: Gets name of the resource that is unique within a resource
:ivar name: Gets name of the resource that is unique within a resource
group. This name can be used to access the resource.
:type name: str
:vartype name: str
:ivar etag: A unique read-only string that changes whenever the resource
is updated.
:vartype etag: str
"""

_validation = {
'peer_asn': {'maximum': 4294967295, 'minimum': 1},
'name': {'readonly': True},
'etag': {'readonly': True},
}

Expand All @@ -101,7 +102,7 @@ class ExpressRouteCircuitPeering(SubResource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, id=None, peering_type=None, state=None, azure_asn=None, peer_asn=None, primary_peer_address_prefix=None, secondary_peer_address_prefix=None, primary_azure_port=None, secondary_azure_port=None, shared_key=None, vlan_id=None, microsoft_peering_config=None, stats=None, provisioning_state=None, gateway_manager_etag=None, last_modified_by=None, route_filter=None, ipv6_peering_config=None, name=None):
def __init__(self, id=None, peering_type=None, state=None, azure_asn=None, peer_asn=None, primary_peer_address_prefix=None, secondary_peer_address_prefix=None, primary_azure_port=None, secondary_azure_port=None, shared_key=None, vlan_id=None, microsoft_peering_config=None, stats=None, provisioning_state=None, gateway_manager_etag=None, last_modified_by=None, route_filter=None, ipv6_peering_config=None):
super(ExpressRouteCircuitPeering, self).__init__(id=id)
self.peering_type = peering_type
self.state = state
Expand All @@ -120,5 +121,5 @@ def __init__(self, id=None, peering_type=None, state=None, azure_asn=None, peer_
self.last_modified_by = last_modified_by
self.route_filter = route_filter
self.ipv6_peering_config = ipv6_peering_config
self.name = name
self.name = None
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ def get_long_running_output(response):

def get(
self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config):
"""Gets the specified authorization from the specified express route
circuit.
"""Gets the specified peering for the express route circuit.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down