Skip to content

Commit

Permalink
[AutoPR] peering/resource-manager (Azure#6923)
Browse files Browse the repository at this point in the history
* Generated from aa0011a90349ff29e0113304a7b176273914b617 (Azure#5622)

chore: jsonfmt peering

Ran `jsonfmt -w "specification/peering/**/*.json"`

* Generated from 65b2f8a37695f3d9cf53c50a05a61c4179857199 (Azure#6922)

updated readme with correct version.

* regenerated

* regenerated in proper place

* Packaging update of azure-mgmt-peering

* just add top level files and readme
  • Loading branch information
AutorestCI authored and yijxie committed Oct 9, 2019
1 parent b912181 commit 23c333d
Show file tree
Hide file tree
Showing 29 changed files with 4,861 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sdk/peering/azure-mgmt-peering/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.1.0rc1 (2019-09-26)
+++++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions sdk/peering/azure-mgmt-peering/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

33 changes: 33 additions & 0 deletions sdk/peering/azure-mgmt-peering/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Peering Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Usage
=====

For code examples, see `Peering Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-peering%2FREADME.png
1 change: 1 addition & 0 deletions sdk/peering/azure-mgmt-peering/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions sdk/peering/azure-mgmt-peering/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
19 changes: 19 additions & 0 deletions sdk/peering/azure-mgmt-peering/azure/mgmt/peering/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 ._configuration import PeeringManagementClientConfiguration
from ._peering_management_client import PeeringManagementClient
__all__ = ['PeeringManagementClient', 'PeeringManagementClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class PeeringManagementClientConfiguration(AzureConfiguration):
"""Configuration for PeeringManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(PeeringManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-peering/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# 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.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import PeeringManagementClientConfiguration
from .operations import PeeringManagementClientOperationsMixin
from .operations import LegacyPeeringsOperations
from .operations import Operations
from .operations import PeerAsnsOperations
from .operations import PeeringLocationsOperations
from .operations import PeeringsOperations
from .operations import PeeringServiceLocationsOperations
from .operations import PeeringServicePrefixesOperations
from .operations import PrefixesOperations
from .operations import PeeringServiceProvidersOperations
from .operations import PeeringServicesOperations
from . import models


class PeeringManagementClient(PeeringManagementClientOperationsMixin, SDKClient):
"""Peering Client
:ivar config: Configuration for client.
:vartype config: PeeringManagementClientConfiguration
:ivar legacy_peerings: LegacyPeerings operations
:vartype legacy_peerings: azure.mgmt.peering.operations.LegacyPeeringsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.peering.operations.Operations
:ivar peer_asns: PeerAsns operations
:vartype peer_asns: azure.mgmt.peering.operations.PeerAsnsOperations
:ivar peering_locations: PeeringLocations operations
:vartype peering_locations: azure.mgmt.peering.operations.PeeringLocationsOperations
:ivar peerings: Peerings operations
:vartype peerings: azure.mgmt.peering.operations.PeeringsOperations
:ivar peering_service_locations: PeeringServiceLocations operations
:vartype peering_service_locations: azure.mgmt.peering.operations.PeeringServiceLocationsOperations
:ivar peering_service_prefixes: PeeringServicePrefixes operations
:vartype peering_service_prefixes: azure.mgmt.peering.operations.PeeringServicePrefixesOperations
:ivar prefixes: Prefixes operations
:vartype prefixes: azure.mgmt.peering.operations.PrefixesOperations
:ivar peering_service_providers: PeeringServiceProviders operations
:vartype peering_service_providers: azure.mgmt.peering.operations.PeeringServiceProvidersOperations
:ivar peering_services: PeeringServices operations
:vartype peering_services: azure.mgmt.peering.operations.PeeringServicesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = PeeringManagementClientConfiguration(credentials, subscription_id, base_url)
super(PeeringManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-08-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.legacy_peerings = LegacyPeeringsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.peer_asns = PeerAsnsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peering_locations = PeeringLocationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peerings = PeeringsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peering_service_locations = PeeringServiceLocationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peering_service_prefixes = PeeringServicePrefixesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.prefixes = PrefixesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peering_service_providers = PeeringServiceProvidersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.peering_services = PeeringServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
140 changes: 140 additions & 0 deletions sdk/peering/azure-mgmt-peering/azure/mgmt/peering/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# 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 ._models_py3 import BgpSession
from ._models_py3 import CheckServiceProviderAvailabilityInput
from ._models_py3 import ContactInfo
from ._models_py3 import DirectConnection
from ._models_py3 import DirectPeeringFacility
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ExchangeConnection
from ._models_py3 import ExchangePeeringFacility
from ._models_py3 import Operation
from ._models_py3 import OperationDisplayInfo
from ._models_py3 import PeerAsn
from ._models_py3 import Peering
from ._models_py3 import PeeringBandwidthOffer
from ._models_py3 import PeeringLocation
from ._models_py3 import PeeringLocationPropertiesDirect
from ._models_py3 import PeeringLocationPropertiesExchange
from ._models_py3 import PeeringPropertiesDirect
from ._models_py3 import PeeringPropertiesExchange
from ._models_py3 import PeeringService
from ._models_py3 import PeeringServiceLocation
from ._models_py3 import PeeringServicePrefix
from ._models_py3 import PeeringServiceProvider
from ._models_py3 import PeeringSku
from ._models_py3 import Resource
from ._models_py3 import ResourceTags
from ._models_py3 import SubResource
except (SyntaxError, ImportError):
from ._models import BgpSession
from ._models import CheckServiceProviderAvailabilityInput
from ._models import ContactInfo
from ._models import DirectConnection
from ._models import DirectPeeringFacility
from ._models import ErrorResponse, ErrorResponseException
from ._models import ExchangeConnection
from ._models import ExchangePeeringFacility
from ._models import Operation
from ._models import OperationDisplayInfo
from ._models import PeerAsn
from ._models import Peering
from ._models import PeeringBandwidthOffer
from ._models import PeeringLocation
from ._models import PeeringLocationPropertiesDirect
from ._models import PeeringLocationPropertiesExchange
from ._models import PeeringPropertiesDirect
from ._models import PeeringPropertiesExchange
from ._models import PeeringService
from ._models import PeeringServiceLocation
from ._models import PeeringServicePrefix
from ._models import PeeringServiceProvider
from ._models import PeeringSku
from ._models import Resource
from ._models import ResourceTags
from ._models import SubResource
from ._paged_models import OperationPaged
from ._paged_models import PeerAsnPaged
from ._paged_models import PeeringLocationPaged
from ._paged_models import PeeringPaged
from ._paged_models import PeeringServiceLocationPaged
from ._paged_models import PeeringServicePaged
from ._paged_models import PeeringServicePrefixPaged
from ._paged_models import PeeringServiceProviderPaged
from ._peering_management_client_enums import (
Name,
Tier,
Family,
Size,
Kind,
SessionAddressProvider,
ConnectionState,
SessionStateV4,
SessionStateV6,
DirectPeeringType,
ProvisioningState,
ValidationState,
PrefixValidationState,
LearnedType,
)

__all__ = [
'BgpSession',
'CheckServiceProviderAvailabilityInput',
'ContactInfo',
'DirectConnection',
'DirectPeeringFacility',
'ErrorResponse', 'ErrorResponseException',
'ExchangeConnection',
'ExchangePeeringFacility',
'Operation',
'OperationDisplayInfo',
'PeerAsn',
'Peering',
'PeeringBandwidthOffer',
'PeeringLocation',
'PeeringLocationPropertiesDirect',
'PeeringLocationPropertiesExchange',
'PeeringPropertiesDirect',
'PeeringPropertiesExchange',
'PeeringService',
'PeeringServiceLocation',
'PeeringServicePrefix',
'PeeringServiceProvider',
'PeeringSku',
'Resource',
'ResourceTags',
'SubResource',
'PeeringPaged',
'OperationPaged',
'PeerAsnPaged',
'PeeringLocationPaged',
'PeeringServiceLocationPaged',
'PeeringServicePrefixPaged',
'PeeringServiceProviderPaged',
'PeeringServicePaged',
'Name',
'Tier',
'Family',
'Size',
'Kind',
'SessionAddressProvider',
'ConnectionState',
'SessionStateV4',
'SessionStateV6',
'DirectPeeringType',
'ProvisioningState',
'ValidationState',
'PrefixValidationState',
'LearnedType',
]
Loading

0 comments on commit 23c333d

Please sign in to comment.