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
28 changes: 28 additions & 0 deletions sdk/networkfunction/azure-mgmt-networkfunction/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Release History

## 1.0.0b2 (2026-03-11)

### Features Added

- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
- Model `TrafficCollectorMgmtClient` added parameter `cloud_setting` in method `__init__`
- Client `TrafficCollectorMgmtClient` added method `send_request`
- Model `AzureTrafficCollector` added property `properties`
- Model `CollectorPolicy` added property `properties`
- Model `ProxyResource` added property `system_data`
- Model `SystemData` added property `last_modified_at`
- Added model `AzureTrafficCollectorPropertiesFormat`
- Added model `CloudError`
- Added model `CollectorPolicyPropertiesFormat`
- Added model `Resource`

### Breaking Changes

- Model `AzureTrafficCollector` moved instance variable `collector_policies`, `virtual_hub` and `provisioning_state` under property `properties`
- Model `CollectorPolicy` moved instance variable `ingestion_policy`, `emission_policies` and `provisioning_state` under property `properties`
- Method `AzureTrafficCollectorsOperations.begin_create_or_update` moved its parameters `location`/`tags`/`virtual_hub` under property `parameters`
- Method `CollectorPoliciesOperations.begin_create_or_update` moved its parameters `location`/`tags`/`ingestion_policy`/`emission_policies` under property `parameters`

### Other Changes

- Deleted model `ApiVersionParameter`/`TrackedResource`/`TrackedResourceSystemData` which actually were not used by SDK users

## 1.0.0b1 (2022-11-18)

* Initial Release
9 changes: 4 additions & 5 deletions sdk/networkfunction/azure-mgmt-networkfunction/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/networkfunction/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/networkfunction/azure-mgmt-networkfunction/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 Networkfunction 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 [Networkfunction 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-networkfunction
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.networkfunction import TrafficCollectorMgmtClient
import os

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

## Examples

Code samples for this package can be found at:
- [Search Networkfunction 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/networkfunction/azure-mgmt-networkfunction/_meta.json

This file was deleted.

10 changes: 10 additions & 0 deletions sdk/networkfunction/azure-mgmt-networkfunction/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apiVersion": "2022-11-01",
"apiVersions": {
"Microsoft.NetworkFunction": "2022-11-01"
},
"commit": "63cb8f987d0d5fb94e781d000c7f7fc7a4a69842",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/networkfunction/NetworkFunction.Management",
"emitterVersion": "0.60.2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"CrossLanguagePackageId": "Microsoft.NetworkFunction",
"CrossLanguageDefinitionId": {
"azure.mgmt.networkfunction.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.networkfunction.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.networkfunction.models.AzureTrafficCollector": "Microsoft.NetworkFunction.AzureTrafficCollector",
"azure.mgmt.networkfunction.models.AzureTrafficCollectorPropertiesFormat": "Microsoft.NetworkFunction.AzureTrafficCollectorPropertiesFormat",
"azure.mgmt.networkfunction.models.CloudError": "Microsoft.NetworkFunction.CloudError",
"azure.mgmt.networkfunction.models.CloudErrorBody": "Microsoft.NetworkFunction.CloudErrorBody",
"azure.mgmt.networkfunction.models.CollectorPolicy": "Microsoft.NetworkFunction.CollectorPolicy",
"azure.mgmt.networkfunction.models.CollectorPolicyPropertiesFormat": "Microsoft.NetworkFunction.CollectorPolicyPropertiesFormat",
"azure.mgmt.networkfunction.models.EmissionPoliciesPropertiesFormat": "Microsoft.NetworkFunction.EmissionPoliciesPropertiesFormat",
"azure.mgmt.networkfunction.models.EmissionPolicyDestination": "Microsoft.NetworkFunction.EmissionPolicyDestination",
"azure.mgmt.networkfunction.models.IngestionPolicyPropertiesFormat": "Microsoft.NetworkFunction.IngestionPolicyPropertiesFormat",
"azure.mgmt.networkfunction.models.IngestionSourcesPropertiesFormat": "Microsoft.NetworkFunction.IngestionSourcesPropertiesFormat",
"azure.mgmt.networkfunction.models.Operation": "Microsoft.NetworkFunction.Operation",
"azure.mgmt.networkfunction.models.OperationDisplay": "Microsoft.NetworkFunction.OperationDisplay",
"azure.mgmt.networkfunction.models.ResourceReference": "Microsoft.NetworkFunction.ResourceReference",
"azure.mgmt.networkfunction.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.networkfunction.models.TagsObject": "Microsoft.NetworkFunction.TagsObject",
"azure.mgmt.networkfunction.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.networkfunction.models.ProvisioningState": "Microsoft.NetworkFunction.ProvisioningState",
"azure.mgmt.networkfunction.models.IngestionType": "Microsoft.NetworkFunction.IngestionType",
"azure.mgmt.networkfunction.models.SourceType": "Microsoft.NetworkFunction.SourceType",
"azure.mgmt.networkfunction.models.EmissionType": "Microsoft.NetworkFunction.EmissionType",
"azure.mgmt.networkfunction.models.DestinationType": "Microsoft.NetworkFunction.DestinationType",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsOperations.get": "Microsoft.NetworkFunction.AzureTrafficCollectors.get",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsOperations.get": "Microsoft.NetworkFunction.AzureTrafficCollectors.get",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsOperations.begin_create_or_update": "Microsoft.NetworkFunction.AzureTrafficCollectors.createOrUpdate",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsOperations.begin_create_or_update": "Microsoft.NetworkFunction.AzureTrafficCollectors.createOrUpdate",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsOperations.update_tags": "Microsoft.NetworkFunction.AzureTrafficCollectors.updateTags",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsOperations.update_tags": "Microsoft.NetworkFunction.AzureTrafficCollectors.updateTags",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsOperations.begin_delete": "Microsoft.NetworkFunction.AzureTrafficCollectors.delete",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsOperations.begin_delete": "Microsoft.NetworkFunction.AzureTrafficCollectors.delete",
"azure.mgmt.networkfunction.operations.CollectorPoliciesOperations.get": "Microsoft.NetworkFunction.CollectorPolicies.get",
"azure.mgmt.networkfunction.aio.operations.CollectorPoliciesOperations.get": "Microsoft.NetworkFunction.CollectorPolicies.get",
"azure.mgmt.networkfunction.operations.CollectorPoliciesOperations.begin_create_or_update": "Microsoft.NetworkFunction.CollectorPolicies.createOrUpdate",
"azure.mgmt.networkfunction.aio.operations.CollectorPoliciesOperations.begin_create_or_update": "Microsoft.NetworkFunction.CollectorPolicies.createOrUpdate",
"azure.mgmt.networkfunction.operations.CollectorPoliciesOperations.update_tags": "Microsoft.NetworkFunction.CollectorPolicies.updateTags",
"azure.mgmt.networkfunction.aio.operations.CollectorPoliciesOperations.update_tags": "Microsoft.NetworkFunction.CollectorPolicies.updateTags",
"azure.mgmt.networkfunction.operations.CollectorPoliciesOperations.begin_delete": "Microsoft.NetworkFunction.CollectorPolicies.delete",
"azure.mgmt.networkfunction.aio.operations.CollectorPoliciesOperations.begin_delete": "Microsoft.NetworkFunction.CollectorPolicies.delete",
"azure.mgmt.networkfunction.operations.CollectorPoliciesOperations.list": "Microsoft.NetworkFunction.CollectorPolicies.list",
"azure.mgmt.networkfunction.aio.operations.CollectorPoliciesOperations.list": "Microsoft.NetworkFunction.CollectorPolicies.list",
"azure.mgmt.networkfunction.operations.NetworkFunctionOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.networkfunction.aio.operations.NetworkFunctionOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsByResourceGroupOperations.list": "Microsoft.NetworkFunction.AzureTrafficCollectors.list",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsByResourceGroupOperations.list": "Microsoft.NetworkFunction.AzureTrafficCollectors.list",
"azure.mgmt.networkfunction.operations.AzureTrafficCollectorsBySubscriptionOperations.list": "Microsoft.NetworkFunction.AzureTrafficCollectors.azureTrafficCollectorsBySubscriptionList",
"azure.mgmt.networkfunction.aio.operations.AzureTrafficCollectorsBySubscriptionOperations.list": "Microsoft.NetworkFunction.AzureTrafficCollectors.azureTrafficCollectorsBySubscriptionList"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._traffic_collector_mgmt_client import TrafficCollectorMgmtClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import TrafficCollectorMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"TrafficCollectorMgmtClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Loading