diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-21 11:28:18 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-21 11:28:18 +0000 | 
| commit | 7a67d4509a0e01aab0629e520dd7e508d46dee5c (patch) | |
| tree | cb958586f6f39bc8765245a2183d11031bcf0cc2 | |
| parent | 3200c74b742f1bbdc7527aa9a2d846ca03715303 (diff) | |
automatic import of python-azure-mgmt-iothubopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-azure-mgmt-iothub.spec | 200 | ||||
| -rw-r--r-- | sources | 2 | 
3 files changed, 174 insertions, 29 deletions
@@ -1 +1,2 @@  /azure-mgmt-iothub-2.3.0.zip +/azure-mgmt-iothub-2.4.0.zip diff --git a/python-azure-mgmt-iothub.spec b/python-azure-mgmt-iothub.spec index d25c5cd..eaa6fe1 100644 --- a/python-azure-mgmt-iothub.spec +++ b/python-azure-mgmt-iothub.spec @@ -1,16 +1,13 @@  %global _empty_manifest_terminate_build 0  Name:		python-azure-mgmt-iothub -Version:	2.3.0 +Version:	2.4.0  Release:	1  Summary:	Microsoft Azure IoT Hub Management Client Library for Python  License:	MIT License  URL:		https://github.com/Azure/azure-sdk-for-python -Source0:	https://mirrors.nju.edu.cn/pypi/web/packages/87/e1/ade7f65b73061a7780837202800fadfe5a381e2e58eba3b6aa2efe04e931/azure-mgmt-iothub-2.3.0.zip +Source0:	https://mirrors.nju.edu.cn/pypi/web/packages/8d/65/ea40e550598d9281e8fbc2e4ef2dcd82197b625564557949600214a62cc9/azure-mgmt-iothub-2.4.0.zip  BuildArch:	noarch -Requires:	python3-msrest -Requires:	python3-azure-common -Requires:	python3-azure-mgmt-core  %description  # Microsoft Azure SDK for Python @@ -23,17 +20,53 @@ For a more complete view of Azure libraries, see the [azure sdk python release](  _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/iot) -Code samples for this package can be found at [IoT Hub 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://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/iothub) +- Python 3.7+ is required to use this package. +- [Azure subscription](https://azure.microsoft.com/free/) +### Install the package -# Provide Feedback +```bash +pip install azure-mgmt-iothub +pip install azure-identity +``` + +### Authentication + +By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of 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.iothub import IotHubClient +import os + +sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") +client = IotHubClient(credential=DefaultAzureCredential(), subscription_id=sub_id) +``` + +## Examples + +Code samples for this package can be found at: +- [Search IoT Hub 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) @@ -45,6 +78,19 @@ section of the project.  # Release History +## 2.4.0 (2023-04-20) + +### Features Added + +  - Model IotHubProperties has a new parameter ip_version + +## 2.4.0b1 (2023-02-15) + +### Other Changes + +  - Added generated samples in github repo +  - Drop support for python<3.7.0 +  ## 2.3.0 (2022-09-02)  ### Features Added @@ -385,17 +431,53 @@ For a more complete view of Azure libraries, see the [azure sdk python release](  _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 + +- Python 3.7+ is required to use this package. +- [Azure subscription](https://azure.microsoft.com/free/) + +### Install the package + +```bash +pip install azure-mgmt-iothub +pip install azure-identity +``` + +### Authentication + +By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of 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.iothub import IotHubClient +import os +sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") +client = IotHubClient(credential=DefaultAzureCredential(), subscription_id=sub_id) +``` -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/iot) -Code samples for this package can be found at [IoT Hub 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://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/iothub) +## Examples +Code samples for this package can be found at: +- [Search IoT Hub 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) -# Provide Feedback + +## 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) @@ -407,6 +489,19 @@ section of the project.  # Release History +## 2.4.0 (2023-04-20) + +### Features Added + +  - Model IotHubProperties has a new parameter ip_version + +## 2.4.0b1 (2023-02-15) + +### Other Changes + +  - Added generated samples in github repo +  - Drop support for python<3.7.0 +  ## 2.3.0 (2022-09-02)  ### Features Added @@ -744,17 +839,53 @@ For a more complete view of Azure libraries, see the [azure sdk python release](  _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 + +- Python 3.7+ is required to use this package. +- [Azure subscription](https://azure.microsoft.com/free/) + +### Install the package + +```bash +pip install azure-mgmt-iothub +pip install azure-identity +``` + +### Authentication +By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables. -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/iot) -Code samples for this package can be found at [IoT Hub 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://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/iothub) +- `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`. -# Provide Feedback +With above configuration, client can be authenticated by following code: + +```python +from azure.identity import DefaultAzureCredential +from azure.mgmt.iothub import IotHubClient +import os + +sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") +client = IotHubClient(credential=DefaultAzureCredential(), subscription_id=sub_id) +``` + +## Examples + +Code samples for this package can be found at: +- [Search IoT Hub 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) @@ -766,6 +897,19 @@ section of the project.  # Release History +## 2.4.0 (2023-04-20) + +### Features Added + +  - Model IotHubProperties has a new parameter ip_version + +## 2.4.0b1 (2023-02-15) + +### Other Changes + +  - Added generated samples in github repo +  - Drop support for python<3.7.0 +  ## 2.3.0 (2022-09-02)  ### Features Added @@ -1090,7 +1234,7 @@ introduce breaking changes.  %prep -%autosetup -n azure-mgmt-iothub-2.3.0 +%autosetup -n azure-mgmt-iothub-2.4.0  %build  %py3_build @@ -1130,5 +1274,5 @@ mv %{buildroot}/doclist.lst .  %{_docdir}/*  %changelog -* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1 +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.0-1  - Package Spec generated @@ -1 +1 @@ -2e6f228e91aa517de1db19a3cc9d42db  azure-mgmt-iothub-2.3.0.zip +a27b9467eea16d8968ca717732396902  azure-mgmt-iothub-2.4.0.zip  | 
