Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR peering/resource-manager] chore: jsonfmt peering #5622

Merged
Merged
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
18 changes: 18 additions & 0 deletions sdk/azure-mgmt-peering/azure/mgmt/peering/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .peering_management_client import PeeringManagementClient
from .version import VERSION

__all__ = ['PeeringManagementClient']

__version__ = VERSION

109 changes: 109 additions & 0 deletions sdk/azure-mgmt-peering/azure/mgmt/peering/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# 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.
# --------------------------------------------------------------------------

try:
from .peering_sku_py3 import PeeringSku
from .bgp_session_py3 import BgpSession
from .direct_connection_py3 import DirectConnection
from .sub_resource_py3 import SubResource
from .peering_properties_direct_py3 import PeeringPropertiesDirect
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
from .peer_asn_py3 import PeerAsn
from .direct_peering_facility_py3 import DirectPeeringFacility
from .peering_bandwidth_offer_py3 import PeeringBandwidthOffer
from .peering_location_properties_direct_py3 import PeeringLocationPropertiesDirect
from .exchange_peering_facility_py3 import ExchangePeeringFacility
from .peering_location_properties_exchange_py3 import PeeringLocationPropertiesExchange
from .peering_location_py3 import PeeringLocation
from .resource_tags_py3 import ResourceTags
except (SyntaxError, ImportError):
from .peering_sku import PeeringSku
from .bgp_session import BgpSession
from .direct_connection import DirectConnection
from .sub_resource import SubResource
from .peering_properties_direct import PeeringPropertiesDirect
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
from .peer_asn import PeerAsn
from .direct_peering_facility import DirectPeeringFacility
from .peering_bandwidth_offer import PeeringBandwidthOffer
from .peering_location_properties_direct import PeeringLocationPropertiesDirect
from .exchange_peering_facility import ExchangePeeringFacility
from .peering_location_properties_exchange import PeeringLocationPropertiesExchange
from .peering_location import PeeringLocation
from .resource_tags import ResourceTags
from .peering_paged import PeeringPaged
from .operation_paged import OperationPaged
from .peer_asn_paged import PeerAsnPaged
from .peering_location_paged import PeeringLocationPaged
from .peering_management_client_enums import (
Name,
Tier,
Family,
Size,
Kind,
ConnectionState,
SessionStateV4,
SessionStateV6,
ProvisioningState,
ValidationState,
)

__all__ = [
'PeeringSku',
'BgpSession',
'DirectConnection',
'SubResource',
'PeeringPropertiesDirect',
'ExchangeConnection',
'PeeringPropertiesExchange',
'Peering',
'ErrorResponse', 'ErrorResponseException',
'Resource',
'OperationDisplayInfo',
'Operation',
'ContactInfo',
'PeerAsn',
'DirectPeeringFacility',
'PeeringBandwidthOffer',
'PeeringLocationPropertiesDirect',
'ExchangePeeringFacility',
'PeeringLocationPropertiesExchange',
'PeeringLocation',
'ResourceTags',
'PeeringPaged',
'OperationPaged',
'PeerAsnPaged',
'PeeringLocationPaged',
'Name',
'Tier',
'Family',
'Size',
'Kind',
'ConnectionState',
'SessionStateV4',
'SessionStateV6',
'ProvisioningState',
'ValidationState',
]
90 changes: 90 additions & 0 deletions sdk/azure-mgmt-peering/azure/mgmt/peering/models/bgp_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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 BgpSession(Model):
"""The properties that define a BGP session.

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

:param session_prefix_v4: The IPv4 prefix that contains both ends' IPv4
addresses.
:type session_prefix_v4: str
:param session_prefix_v6: The IPv6 prefix that contains both ends' IPv6
addresses.
:type session_prefix_v6: str
:ivar microsoft_session_ipv4_address: The IPv4 session address on
Microsoft's end.
:vartype microsoft_session_ipv4_address: str
:ivar microsoft_session_ipv6_address: The IPv6 session address on
Microsoft's end.
:vartype microsoft_session_ipv6_address: str
:param peer_session_ipv4_address: The IPv4 session address on peer's end.
:type peer_session_ipv4_address: str
:param peer_session_ipv6_address: The IPv6 session address on peer's end.
: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'
: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'
:vartype session_state_v6: str or
~azure.mgmt.peering.models.SessionStateV6
:param max_prefixes_advertised_v4: The maximum number of prefixes
advertised over the IPv4 session.
:type max_prefixes_advertised_v4: int
:param max_prefixes_advertised_v6: The maximum number of prefixes
advertised over the IPv6 session.
:type max_prefixes_advertised_v6: int
:param md5_authentication_key: The MD5 authentication key of the session.
:type md5_authentication_key: str
"""

_validation = {
'microsoft_session_ipv4_address': {'readonly': True},
'microsoft_session_ipv6_address': {'readonly': True},
'session_state_v4': {'readonly': True},
'session_state_v6': {'readonly': True},
}

_attribute_map = {
'session_prefix_v4': {'key': 'sessionPrefixV4', 'type': 'str'},
'session_prefix_v6': {'key': 'sessionPrefixV6', 'type': 'str'},
'microsoft_session_ipv4_address': {'key': 'microsoftSessionIPv4Address', 'type': 'str'},
'microsoft_session_ipv6_address': {'key': 'microsoftSessionIPv6Address', 'type': 'str'},
'peer_session_ipv4_address': {'key': 'peerSessionIPv4Address', 'type': 'str'},
'peer_session_ipv6_address': {'key': 'peerSessionIPv6Address', 'type': 'str'},
'session_state_v4': {'key': 'sessionStateV4', 'type': 'str'},
'session_state_v6': {'key': 'sessionStateV6', 'type': 'str'},
'max_prefixes_advertised_v4': {'key': 'maxPrefixesAdvertisedV4', 'type': 'int'},
'max_prefixes_advertised_v6': {'key': 'maxPrefixesAdvertisedV6', 'type': 'int'},
'md5_authentication_key': {'key': 'md5AuthenticationKey', 'type': 'str'},
}

def __init__(self, **kwargs):
super(BgpSession, self).__init__(**kwargs)
self.session_prefix_v4 = kwargs.get('session_prefix_v4', None)
self.session_prefix_v6 = kwargs.get('session_prefix_v6', None)
self.microsoft_session_ipv4_address = None
self.microsoft_session_ipv6_address = None
self.peer_session_ipv4_address = kwargs.get('peer_session_ipv4_address', None)
self.peer_session_ipv6_address = kwargs.get('peer_session_ipv6_address', None)
self.session_state_v4 = None
self.session_state_v6 = None
self.max_prefixes_advertised_v4 = kwargs.get('max_prefixes_advertised_v4', None)
self.max_prefixes_advertised_v6 = kwargs.get('max_prefixes_advertised_v6', None)
self.md5_authentication_key = kwargs.get('md5_authentication_key', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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 BgpSession(Model):
"""The properties that define a BGP session.

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

:param session_prefix_v4: The IPv4 prefix that contains both ends' IPv4
addresses.
:type session_prefix_v4: str
:param session_prefix_v6: The IPv6 prefix that contains both ends' IPv6
addresses.
:type session_prefix_v6: str
:ivar microsoft_session_ipv4_address: The IPv4 session address on
Microsoft's end.
:vartype microsoft_session_ipv4_address: str
:ivar microsoft_session_ipv6_address: The IPv6 session address on
Microsoft's end.
:vartype microsoft_session_ipv6_address: str
:param peer_session_ipv4_address: The IPv4 session address on peer's end.
:type peer_session_ipv4_address: str
:param peer_session_ipv6_address: The IPv6 session address on peer's end.
: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'
: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'
:vartype session_state_v6: str or
~azure.mgmt.peering.models.SessionStateV6
:param max_prefixes_advertised_v4: The maximum number of prefixes
advertised over the IPv4 session.
:type max_prefixes_advertised_v4: int
:param max_prefixes_advertised_v6: The maximum number of prefixes
advertised over the IPv6 session.
:type max_prefixes_advertised_v6: int
:param md5_authentication_key: The MD5 authentication key of the session.
:type md5_authentication_key: str
"""

_validation = {
'microsoft_session_ipv4_address': {'readonly': True},
'microsoft_session_ipv6_address': {'readonly': True},
'session_state_v4': {'readonly': True},
'session_state_v6': {'readonly': True},
}

_attribute_map = {
'session_prefix_v4': {'key': 'sessionPrefixV4', 'type': 'str'},
'session_prefix_v6': {'key': 'sessionPrefixV6', 'type': 'str'},
'microsoft_session_ipv4_address': {'key': 'microsoftSessionIPv4Address', 'type': 'str'},
'microsoft_session_ipv6_address': {'key': 'microsoftSessionIPv6Address', 'type': 'str'},
'peer_session_ipv4_address': {'key': 'peerSessionIPv4Address', 'type': 'str'},
'peer_session_ipv6_address': {'key': 'peerSessionIPv6Address', 'type': 'str'},
'session_state_v4': {'key': 'sessionStateV4', 'type': 'str'},
'session_state_v6': {'key': 'sessionStateV6', 'type': 'str'},
'max_prefixes_advertised_v4': {'key': 'maxPrefixesAdvertisedV4', 'type': 'int'},
'max_prefixes_advertised_v6': {'key': 'maxPrefixesAdvertisedV6', 'type': 'int'},
'md5_authentication_key': {'key': 'md5AuthenticationKey', 'type': 'str'},
}

def __init__(self, *, session_prefix_v4: str=None, session_prefix_v6: str=None, peer_session_ipv4_address: str=None, peer_session_ipv6_address: str=None, max_prefixes_advertised_v4: int=None, max_prefixes_advertised_v6: int=None, md5_authentication_key: str=None, **kwargs) -> None:
super(BgpSession, self).__init__(**kwargs)
self.session_prefix_v4 = session_prefix_v4
self.session_prefix_v6 = session_prefix_v6
self.microsoft_session_ipv4_address = None
self.microsoft_session_ipv6_address = None
self.peer_session_ipv4_address = peer_session_ipv4_address
self.peer_session_ipv6_address = peer_session_ipv6_address
self.session_state_v4 = None
self.session_state_v6 = None
self.max_prefixes_advertised_v4 = max_prefixes_advertised_v4
self.max_prefixes_advertised_v6 = max_prefixes_advertised_v6
self.md5_authentication_key = md5_authentication_key
32 changes: 32 additions & 0 deletions sdk/azure-mgmt-peering/azure/mgmt/peering/models/contact_info.py
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 ContactInfo(Model):
"""The contact information of the peer.

:param emails: The list of email addresses.
:type emails: list[str]
:param phone: The list of contact numbers.
:type phone: list[str]
"""

_attribute_map = {
'emails': {'key': 'emails', 'type': '[str]'},
'phone': {'key': 'phone', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(ContactInfo, self).__init__(**kwargs)
self.emails = kwargs.get('emails', None)
self.phone = kwargs.get('phone', 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 ContactInfo(Model):
"""The contact information of the peer.

:param emails: The list of email addresses.
:type emails: list[str]
:param phone: The list of contact numbers.
:type phone: list[str]
"""

_attribute_map = {
'emails': {'key': 'emails', 'type': '[str]'},
'phone': {'key': 'phone', 'type': '[str]'},
}

def __init__(self, *, emails=None, phone=None, **kwargs) -> None:
super(ContactInfo, self).__init__(**kwargs)
self.emails = emails
self.phone = phone
Loading