Skip to content
Draft
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
56 changes: 56 additions & 0 deletions sdk/peering/azure-mgmt-peering/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
# Release History

## 2.0.0b2 (2026-03-25)

### Features Added

- Client `PeeringManagementClient` added method `send_request`
- Model `CdnPeeringPrefix` added property `system_data`
- Model `ConnectionMonitorTest` added property `system_data`
- Model `ErrorDetail` added property `target`
- Model `ErrorDetail` added property `details`
- Model `ErrorDetail` added property `additional_info`
- Model `PeerAsn` added property `system_data`
- Model `Peering` added property `system_data`
- Model `PeeringLocation` added property `system_data`
- Model `PeeringRegisteredAsn` added property `system_data`
- Model `PeeringRegisteredPrefix` added property `system_data`
- Model `PeeringService` added property `system_data`
- Model `PeeringServiceCountry` added property `system_data`
- Model `PeeringServiceLocation` added property `system_data`
- Model `PeeringServicePrefix` added property `system_data`
- Model `PeeringServiceProvider` added property `system_data`
- Model `Resource` added property `system_data`
- Added enum `CheckServiceProviderAvailabilityResponse`
- Added enum `CreatedByType`
- Added model `ErrorAdditionalInfo`
- Added model `ProxyResource`
- Added model `SystemData`
- Added model `TrackedResource`

### Breaking Changes

- Deleted or renamed model `Enum0`
- Method `CdnPeeringPrefixesOperations.list` changed its parameter `peering_location` from `positional_or_keyword` to `keyword_only`
- Method `LegacyPeeringsOperations.list` changed its parameter `peering_location` from `positional_or_keyword` to `keyword_only`
- Method `LegacyPeeringsOperations.list` changed its parameter `kind` from `positional_or_keyword` to `keyword_only`
- Method `LegacyPeeringsOperations.list` changed its parameter `asn` from `positional_or_keyword` to `keyword_only`
- Method `LegacyPeeringsOperations.list` changed its parameter `direct_peering_type` from `positional_or_keyword` to `keyword_only`
- Method `LookingGlassOperations.invoke` changed its parameter `command` from `positional_or_keyword` to `keyword_only`
- Method `LookingGlassOperations.invoke` changed its parameter `source_type` from `positional_or_keyword` to `keyword_only`
- Method `LookingGlassOperations.invoke` changed its parameter `source_location` from `positional_or_keyword` to `keyword_only`
- Method `LookingGlassOperations.invoke` changed its parameter `destination_ip` from `positional_or_keyword` to `keyword_only`
- Method `PeeringLocationsOperations.list` changed its parameter `kind` from `positional_or_keyword` to `keyword_only`
- Method `PeeringLocationsOperations.list` changed its parameter `direct_peering_type` from `positional_or_keyword` to `keyword_only`
- Method `PeeringServiceLocationsOperations.list` changed its parameter `country` from `positional_or_keyword` to `keyword_only`
- Method `PrefixesOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only`
- Method `PrefixesOperations.list_by_peering_service` changed its parameter `expand` from `positional_or_keyword` to `keyword_only`
- Method `ReceivedRoutesOperations.list_by_peering` changed its parameter `prefix` from `positional_or_keyword` to `keyword_only`
- Method `ReceivedRoutesOperations.list_by_peering` changed its parameter `as_path` from `positional_or_keyword` to `keyword_only`
- Method `ReceivedRoutesOperations.list_by_peering` changed its parameter `origin_as_validation_state` from `positional_or_keyword` to `keyword_only`
- Method `ReceivedRoutesOperations.list_by_peering` changed its parameter `rpki_validation_state` from `positional_or_keyword` to `keyword_only`
- Method `ReceivedRoutesOperations.list_by_peering` changed its parameter `skip_token` from `positional_or_keyword` to `keyword_only`
- Method `RpUnbilledPrefixesOperations.list` changed its parameter `consolidate` from `positional_or_keyword` to `keyword_only`

## 1.1.0 (2026-03-25)

skip changelog generation

## 2.0.0b1 (2022-11-01)

### Features Added
Expand Down
9 changes: 4 additions & 5 deletions sdk/peering/azure-mgmt-peering/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/peering/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
55 changes: 44 additions & 11 deletions sdk/peering/azure-mgmt-peering/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,61 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Peering Management Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

# Usage
## Getting started

### Prerequisites

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Peering Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

# Provide Feedback
```bash
pip install azure-mgmt-peering
pip install azure-identity
```

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.
### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.peering import PeeringManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = PeeringManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [Search Peering Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## 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.
11 changes: 0 additions & 11 deletions sdk/peering/azure-mgmt-peering/_meta.json

This file was deleted.

10 changes: 10 additions & 0 deletions sdk/peering/azure-mgmt-peering/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apiVersion": "2025-05-01",
"apiVersions": {
"Microsoft.Peering": "2025-05-01"
},
"commit": "e3083bc5d7f8d5a01e969ba71182339a64d8b21b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/peering/resource-manager/Microsoft.Peering/Peering",
"emitterVersion": "0.61.1"
}
Loading
Loading