Skip to content

Commit

Permalink
Generated from 65b2f8a37695f3d9cf53c50a05a61c4179857199 (#6922)
Browse files Browse the repository at this point in the history
updated readme with correct version.
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Sep 26, 2019
1 parent 5c0cdf1 commit f5d50d0
Show file tree
Hide file tree
Showing 40 changed files with 1,879 additions and 29 deletions.
43 changes: 37 additions & 6 deletions sdk/azure-mgmt-peering/azure/mgmt/peering/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# --------------------------------------------------------------------------

try:
from .check_service_provider_availability_input_py3 import CheckServiceProviderAvailabilityInput
from .peering_sku_py3 import PeeringSku
from .bgp_session_py3 import BgpSession
from .direct_connection_py3 import DirectConnection
Expand All @@ -18,8 +19,6 @@
from .exchange_connection_py3 import ExchangeConnection
from .peering_properties_exchange_py3 import PeeringPropertiesExchange
from .peering_py3 import Peering
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .resource_py3 import Resource
from .operation_display_info_py3 import OperationDisplayInfo
from .operation_py3 import Operation
from .contact_info_py3 import ContactInfo
Expand All @@ -31,7 +30,14 @@
from .peering_location_properties_exchange_py3 import PeeringLocationPropertiesExchange
from .peering_location_py3 import PeeringLocation
from .resource_tags_py3 import ResourceTags
from .peering_service_location_py3 import PeeringServiceLocation
from .peering_service_prefix_py3 import PeeringServicePrefix
from .peering_service_provider_py3 import PeeringServiceProvider
from .peering_service_py3 import PeeringService
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .resource_py3 import Resource
except (SyntaxError, ImportError):
from .check_service_provider_availability_input import CheckServiceProviderAvailabilityInput
from .peering_sku import PeeringSku
from .bgp_session import BgpSession
from .direct_connection import DirectConnection
Expand All @@ -40,8 +46,6 @@
from .exchange_connection import ExchangeConnection
from .peering_properties_exchange import PeeringPropertiesExchange
from .peering import Peering
from .error_response import ErrorResponse, ErrorResponseException
from .resource import Resource
from .operation_display_info import OperationDisplayInfo
from .operation import Operation
from .contact_info import ContactInfo
Expand All @@ -53,24 +57,39 @@
from .peering_location_properties_exchange import PeeringLocationPropertiesExchange
from .peering_location import PeeringLocation
from .resource_tags import ResourceTags
from .peering_service_location import PeeringServiceLocation
from .peering_service_prefix import PeeringServicePrefix
from .peering_service_provider import PeeringServiceProvider
from .peering_service import PeeringService
from .error_response import ErrorResponse, ErrorResponseException
from .resource import Resource
from .peering_paged import PeeringPaged
from .operation_paged import OperationPaged
from .peer_asn_paged import PeerAsnPaged
from .peering_location_paged import PeeringLocationPaged
from .peering_service_location_paged import PeeringServiceLocationPaged
from .peering_service_prefix_paged import PeeringServicePrefixPaged
from .peering_service_provider_paged import PeeringServiceProviderPaged
from .peering_service_paged import PeeringServicePaged
from .peering_management_client_enums import (
Name,
Tier,
Family,
Size,
Kind,
SessionAddressProvider,
ConnectionState,
SessionStateV4,
SessionStateV6,
DirectPeeringType,
ProvisioningState,
ValidationState,
PrefixValidationState,
LearnedType,
)

__all__ = [
'CheckServiceProviderAvailabilityInput',
'PeeringSku',
'BgpSession',
'DirectConnection',
Expand All @@ -79,8 +98,6 @@
'ExchangeConnection',
'PeeringPropertiesExchange',
'Peering',
'ErrorResponse', 'ErrorResponseException',
'Resource',
'OperationDisplayInfo',
'Operation',
'ContactInfo',
Expand All @@ -92,18 +109,32 @@
'PeeringLocationPropertiesExchange',
'PeeringLocation',
'ResourceTags',
'PeeringServiceLocation',
'PeeringServicePrefix',
'PeeringServiceProvider',
'PeeringService',
'ErrorResponse', 'ErrorResponseException',
'Resource',
'PeeringPaged',
'OperationPaged',
'PeerAsnPaged',
'PeeringLocationPaged',
'PeeringServiceLocationPaged',
'PeeringServicePrefixPaged',
'PeeringServiceProviderPaged',
'PeeringServicePaged',
'Name',
'Tier',
'Family',
'Size',
'Kind',
'SessionAddressProvider',
'ConnectionState',
'SessionStateV4',
'SessionStateV6',
'DirectPeeringType',
'ProvisioningState',
'ValidationState',
'PrefixValidationState',
'LearnedType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ class BgpSession(Model):
:type peer_session_ipv6_address: str
:ivar session_state_v4: The state of the IPv4 session. Possible values
include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent', 'OpenConfirm',
'Established', 'PendingAdd', 'PendingUpdate', 'PendingRemove'
'OpenReceived', 'Established', 'PendingAdd', 'PendingUpdate',
'PendingRemove'
:vartype session_state_v4: str or
~azure.mgmt.peering.models.SessionStateV4
:ivar session_state_v6: The state of the IPv6 session. Possible values
include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent', 'OpenConfirm',
'Established', 'PendingAdd', 'PendingUpdate', 'PendingRemove'
'OpenReceived', 'Established', 'PendingAdd', 'PendingUpdate',
'PendingRemove'
:vartype session_state_v6: str or
~azure.mgmt.peering.models.SessionStateV6
:param max_prefixes_advertised_v4: The maximum number of prefixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ class BgpSession(Model):
:type peer_session_ipv6_address: str
:ivar session_state_v4: The state of the IPv4 session. Possible values
include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent', 'OpenConfirm',
'Established', 'PendingAdd', 'PendingUpdate', 'PendingRemove'
'OpenReceived', 'Established', 'PendingAdd', 'PendingUpdate',
'PendingRemove'
:vartype session_state_v4: str or
~azure.mgmt.peering.models.SessionStateV4
:ivar session_state_v6: The state of the IPv6 session. Possible values
include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent', 'OpenConfirm',
'Established', 'PendingAdd', 'PendingUpdate', 'PendingRemove'
'OpenReceived', 'Established', 'PendingAdd', 'PendingUpdate',
'PendingRemove'
:vartype session_state_v6: str or
~azure.mgmt.peering.models.SessionStateV6
:param max_prefixes_advertised_v4: The maximum number of prefixes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 CheckServiceProviderAvailabilityInput(Model):
"""Class for CheckServiceProviderAvailabilityInput.
:param peering_service_location: Gets or sets the PeeringServiceLocation
:type peering_service_location: str
:param peering_service_provider: Gets or sets the PeeringServiceProvider
:type peering_service_provider: str
"""

_attribute_map = {
'peering_service_location': {'key': 'peeringServiceLocation', 'type': 'str'},
'peering_service_provider': {'key': 'peeringServiceProvider', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckServiceProviderAvailabilityInput, self).__init__(**kwargs)
self.peering_service_location = kwargs.get('peering_service_location', None)
self.peering_service_provider = kwargs.get('peering_service_provider', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 CheckServiceProviderAvailabilityInput(Model):
"""Class for CheckServiceProviderAvailabilityInput.
:param peering_service_location: Gets or sets the PeeringServiceLocation
:type peering_service_location: str
:param peering_service_provider: Gets or sets the PeeringServiceProvider
:type peering_service_provider: str
"""

_attribute_map = {
'peering_service_location': {'key': 'peeringServiceLocation', 'type': 'str'},
'peering_service_provider': {'key': 'peeringServiceProvider', 'type': 'str'},
}

def __init__(self, *, peering_service_location: str=None, peering_service_provider: str=None, **kwargs) -> None:
super(CheckServiceProviderAvailabilityInput, self).__init__(**kwargs)
self.peering_service_location = peering_service_location
self.peering_service_provider = peering_service_provider
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ class DirectConnection(Model):
:param provisioned_bandwidth_in_mbps: The bandwidth that is actually
provisioned.
:type provisioned_bandwidth_in_mbps: int
:param session_address_provider: The field indicating if Microsoft
provides session ip addresses. Possible values include: 'Microsoft',
'Peer'
:type session_address_provider: str or
~azure.mgmt.peering.models.SessionAddressProvider
:param use_for_peering_service: The flag that indicates whether or not the
connection is used for peering service.
:type use_for_peering_service: bool
:param peering_db_facility_id: The PeeringDB.com ID of the facility at
which the connection has to be set up.
:type peering_db_facility_id: int
Expand All @@ -33,6 +41,9 @@ class DirectConnection(Model):
~azure.mgmt.peering.models.ConnectionState
:param bgp_session: The BGP session associated with the connection.
:type bgp_session: ~azure.mgmt.peering.models.BgpSession
:param connection_identifier: The unique identifier (GUID) for the
connection.
:type connection_identifier: str
"""

_validation = {
Expand All @@ -42,15 +53,21 @@ class DirectConnection(Model):
_attribute_map = {
'bandwidth_in_mbps': {'key': 'bandwidthInMbps', 'type': 'int'},
'provisioned_bandwidth_in_mbps': {'key': 'provisionedBandwidthInMbps', 'type': 'int'},
'session_address_provider': {'key': 'sessionAddressProvider', 'type': 'str'},
'use_for_peering_service': {'key': 'useForPeeringService', 'type': 'bool'},
'peering_db_facility_id': {'key': 'peeringDBFacilityId', 'type': 'int'},
'connection_state': {'key': 'connectionState', 'type': 'str'},
'bgp_session': {'key': 'bgpSession', 'type': 'BgpSession'},
'connection_identifier': {'key': 'connectionIdentifier', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DirectConnection, self).__init__(**kwargs)
self.bandwidth_in_mbps = kwargs.get('bandwidth_in_mbps', None)
self.provisioned_bandwidth_in_mbps = kwargs.get('provisioned_bandwidth_in_mbps', None)
self.session_address_provider = kwargs.get('session_address_provider', None)
self.use_for_peering_service = kwargs.get('use_for_peering_service', None)
self.peering_db_facility_id = kwargs.get('peering_db_facility_id', None)
self.connection_state = None
self.bgp_session = kwargs.get('bgp_session', None)
self.connection_identifier = kwargs.get('connection_identifier', None)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ class DirectConnection(Model):
:param provisioned_bandwidth_in_mbps: The bandwidth that is actually
provisioned.
:type provisioned_bandwidth_in_mbps: int
:param session_address_provider: The field indicating if Microsoft
provides session ip addresses. Possible values include: 'Microsoft',
'Peer'
:type session_address_provider: str or
~azure.mgmt.peering.models.SessionAddressProvider
:param use_for_peering_service: The flag that indicates whether or not the
connection is used for peering service.
:type use_for_peering_service: bool
:param peering_db_facility_id: The PeeringDB.com ID of the facility at
which the connection has to be set up.
:type peering_db_facility_id: int
Expand All @@ -33,6 +41,9 @@ class DirectConnection(Model):
~azure.mgmt.peering.models.ConnectionState
:param bgp_session: The BGP session associated with the connection.
:type bgp_session: ~azure.mgmt.peering.models.BgpSession
:param connection_identifier: The unique identifier (GUID) for the
connection.
:type connection_identifier: str
"""

_validation = {
Expand All @@ -42,15 +53,21 @@ class DirectConnection(Model):
_attribute_map = {
'bandwidth_in_mbps': {'key': 'bandwidthInMbps', 'type': 'int'},
'provisioned_bandwidth_in_mbps': {'key': 'provisionedBandwidthInMbps', 'type': 'int'},
'session_address_provider': {'key': 'sessionAddressProvider', 'type': 'str'},
'use_for_peering_service': {'key': 'useForPeeringService', 'type': 'bool'},
'peering_db_facility_id': {'key': 'peeringDBFacilityId', 'type': 'int'},
'connection_state': {'key': 'connectionState', 'type': 'str'},
'bgp_session': {'key': 'bgpSession', 'type': 'BgpSession'},
'connection_identifier': {'key': 'connectionIdentifier', 'type': 'str'},
}

def __init__(self, *, bandwidth_in_mbps: int=None, provisioned_bandwidth_in_mbps: int=None, peering_db_facility_id: int=None, bgp_session=None, **kwargs) -> None:
def __init__(self, *, bandwidth_in_mbps: int=None, provisioned_bandwidth_in_mbps: int=None, session_address_provider=None, use_for_peering_service: bool=None, peering_db_facility_id: int=None, bgp_session=None, connection_identifier: str=None, **kwargs) -> None:
super(DirectConnection, self).__init__(**kwargs)
self.bandwidth_in_mbps = bandwidth_in_mbps
self.provisioned_bandwidth_in_mbps = provisioned_bandwidth_in_mbps
self.session_address_provider = session_address_provider
self.use_for_peering_service = use_for_peering_service
self.peering_db_facility_id = peering_db_facility_id
self.connection_state = None
self.bgp_session = bgp_session
self.connection_identifier = connection_identifier
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class DirectPeeringFacility(Model):
:param address: The address of the direct peering facility.
:type address: str
:param direct_peering_type: The type of the direct peering. Possible
values include: 'Edge', 'Transit', 'Cdn', 'Internal'
:type direct_peering_type: str or
~azure.mgmt.peering.models.DirectPeeringType
:param peering_db_facility_id: The PeeringDB.com ID of the facility.
:type peering_db_facility_id: int
:param peering_db_facility_link: The PeeringDB.com URL of the facility.
Expand All @@ -25,12 +29,14 @@ class DirectPeeringFacility(Model):

_attribute_map = {
'address': {'key': 'address', 'type': 'str'},
'direct_peering_type': {'key': 'directPeeringType', 'type': 'str'},
'peering_db_facility_id': {'key': 'peeringDBFacilityId', 'type': 'int'},
'peering_db_facility_link': {'key': 'peeringDBFacilityLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DirectPeeringFacility, self).__init__(**kwargs)
self.address = kwargs.get('address', None)
self.direct_peering_type = kwargs.get('direct_peering_type', None)
self.peering_db_facility_id = kwargs.get('peering_db_facility_id', None)
self.peering_db_facility_link = kwargs.get('peering_db_facility_link', None)
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class DirectPeeringFacility(Model):
:param address: The address of the direct peering facility.
:type address: str
:param direct_peering_type: The type of the direct peering. Possible
values include: 'Edge', 'Transit', 'Cdn', 'Internal'
:type direct_peering_type: str or
~azure.mgmt.peering.models.DirectPeeringType
:param peering_db_facility_id: The PeeringDB.com ID of the facility.
:type peering_db_facility_id: int
:param peering_db_facility_link: The PeeringDB.com URL of the facility.
Expand All @@ -25,12 +29,14 @@ class DirectPeeringFacility(Model):

_attribute_map = {
'address': {'key': 'address', 'type': 'str'},
'direct_peering_type': {'key': 'directPeeringType', 'type': 'str'},
'peering_db_facility_id': {'key': 'peeringDBFacilityId', 'type': 'int'},
'peering_db_facility_link': {'key': 'peeringDBFacilityLink', 'type': 'str'},
}

def __init__(self, *, address: str=None, peering_db_facility_id: int=None, peering_db_facility_link: str=None, **kwargs) -> None:
def __init__(self, *, address: str=None, direct_peering_type=None, peering_db_facility_id: int=None, peering_db_facility_link: str=None, **kwargs) -> None:
super(DirectPeeringFacility, self).__init__(**kwargs)
self.address = address
self.direct_peering_type = direct_peering_type
self.peering_db_facility_id = peering_db_facility_id
self.peering_db_facility_link = peering_db_facility_link
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class ExchangeConnection(Model):
~azure.mgmt.peering.models.ConnectionState
:param bgp_session: The BGP session associated with the connection.
:type bgp_session: ~azure.mgmt.peering.models.BgpSession
:param connection_identifier: The unique identifier (GUID) for the
connection.
:type connection_identifier: str
"""

_validation = {
Expand All @@ -38,10 +41,12 @@ class ExchangeConnection(Model):
'peering_db_facility_id': {'key': 'peeringDBFacilityId', 'type': 'int'},
'connection_state': {'key': 'connectionState', 'type': 'str'},
'bgp_session': {'key': 'bgpSession', 'type': 'BgpSession'},
'connection_identifier': {'key': 'connectionIdentifier', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ExchangeConnection, self).__init__(**kwargs)
self.peering_db_facility_id = kwargs.get('peering_db_facility_id', None)
self.connection_state = None
self.bgp_session = kwargs.get('bgp_session', None)
self.connection_identifier = kwargs.get('connection_identifier', None)
Loading

0 comments on commit f5d50d0

Please sign in to comment.