Skip to content

Commit 9058ec9

Browse files
author
SDKAuto
committed
CodeGen from PR 34069 in Azure/azure-rest-api-specs
Merge dd3f5c6cb49ff5eafe2875d683c13ee224a69cd1 into 9f69db7532b6706baedc004f2eda762196a3e1eb
1 parent d6612d0 commit 9058ec9

File tree

5 files changed

+98
-53
lines changed

5 files changed

+98
-53
lines changed

sdk/healthbot/azure-mgmt-healthbot/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 1.0.0 (2025-05-09)
4+
5+
### Breaking Changes
6+
7+
- Parameter value of model AvailableOperations is now required
8+
- Parameter value of model BotResponseList is now required
9+
- Renamed operation BotsOperations.update to BotsOperations.begin_update
10+
311
## 1.0.0b2 (2022-10-28)
412

513
### Features Added
Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,61 @@
11
# Microsoft Azure SDK for Python
22

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

77
## _Disclaimer_
88

99
_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_
1010

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

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

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-healthbot
22+
pip install azure-identity
23+
```
2224

23-
If you encounter any bugs or have suggestions, please file an issue in the
24-
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
25-
section of the project.
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
28+
29+
- `AZURE_CLIENT_ID` for Azure client ID.
30+
- `AZURE_TENANT_ID` for Azure tenant ID.
31+
- `AZURE_CLIENT_SECRET` for Azure client secret.
32+
33+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34+
35+
With above configuration, client can be authenticated by following code:
36+
37+
```python
38+
from azure.identity import DefaultAzureCredential
39+
from azure.mgmt.healthbot import HealthBotMgmtClient
40+
import os
2641

42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = HealthBotMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
2745

46+
## Examples
2847

48+
Code samples for this package can be found at:
49+
- [Search Health Bot Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
58+
59+
If you encounter any bugs or have suggestions, please file an issue in the
60+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
61+
section of the project.

sdk/healthbot/azure-mgmt-healthbot/azure/mgmt/healthbot/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0"

sdk/healthbot/azure-mgmt-healthbot/sdk_packaging.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ package_name = "azure-mgmt-healthbot"
33
package_nspkg = "azure-mgmt-nspkg"
44
package_pprint_name = "Health Bot Management"
55
package_doc_id = ""
6-
is_stable = false
6+
is_stable = true
77
is_arm = true
88
title = "HealthBotMgmtClient"
Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env python
22

3-
#-------------------------------------------------------------------------
3+
# -------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.
55
# Licensed under the MIT License. See License.txt in the project root for
66
# license information.
7-
#--------------------------------------------------------------------------
7+
# --------------------------------------------------------------------------
88

99
import re
1010
import os.path
@@ -16,63 +16,67 @@
1616
PACKAGE_PPRINT_NAME = "Health Bot Management"
1717

1818
# a-b-c => a/b/c
19-
package_folder_path = PACKAGE_NAME.replace('-', '/')
19+
package_folder_path = PACKAGE_NAME.replace("-", "/")
2020
# a-b-c => a.b.c
21-
namespace_name = PACKAGE_NAME.replace('-', '.')
21+
namespace_name = PACKAGE_NAME.replace("-", ".")
2222

2323
# Version extraction inspired from 'requests'
24-
with open(os.path.join(package_folder_path, 'version.py')
25-
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
26-
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
27-
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
28-
fd.read(), re.MULTILINE).group(1)
24+
with open(
25+
os.path.join(package_folder_path, "version.py")
26+
if os.path.exists(os.path.join(package_folder_path, "version.py"))
27+
else os.path.join(package_folder_path, "_version.py"),
28+
"r",
29+
) as fd:
30+
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
2931

3032
if not version:
31-
raise RuntimeError('Cannot find version information')
33+
raise RuntimeError("Cannot find version information")
3234

33-
with open('README.md', encoding='utf-8') as f:
35+
with open("README.md", encoding="utf-8") as f:
3436
readme = f.read()
35-
with open('CHANGELOG.md', encoding='utf-8') as f:
37+
with open("CHANGELOG.md", encoding="utf-8") as f:
3638
changelog = f.read()
3739

3840
setup(
3941
name=PACKAGE_NAME,
4042
version=version,
41-
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
42-
long_description=readme + '\n\n' + changelog,
43-
long_description_content_type='text/markdown',
44-
license='MIT License',
45-
author='Microsoft Corporation',
46-
author_email='[email protected]',
47-
url='https://github.com/Azure/azure-sdk-for-python',
43+
description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME),
44+
long_description=readme + "\n\n" + changelog,
45+
long_description_content_type="text/markdown",
46+
license="MIT License",
47+
author="Microsoft Corporation",
48+
author_email="[email protected]",
49+
url="https://github.com/Azure/azure-sdk-for-python",
4850
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
4951
classifiers=[
50-
'Development Status :: 4 - Beta',
51-
'Programming Language :: Python',
52-
'Programming Language :: Python :: 3 :: Only',
53-
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.7',
55-
'Programming Language :: Python :: 3.8',
56-
'Programming Language :: Python :: 3.9',
57-
'Programming Language :: Python :: 3.10',
58-
'License :: OSI Approved :: MIT License',
52+
"Development Status :: 5 - Production/Stable",
53+
"Programming Language :: Python",
54+
"Programming Language :: Python :: 3 :: Only",
55+
"Programming Language :: Python :: 3",
56+
"Programming Language :: Python :: 3.9",
57+
"Programming Language :: Python :: 3.10",
58+
"Programming Language :: Python :: 3.11",
59+
"Programming Language :: Python :: 3.12",
60+
"License :: OSI Approved :: MIT License",
5961
],
6062
zip_safe=False,
61-
packages=find_packages(exclude=[
62-
'tests',
63-
# Exclude packages that will be covered by PEP420 or nspkg
64-
'azure',
65-
'azure.mgmt',
66-
]),
63+
packages=find_packages(
64+
exclude=[
65+
"tests",
66+
# Exclude packages that will be covered by PEP420 or nspkg
67+
"azure",
68+
"azure.mgmt",
69+
]
70+
),
6771
include_package_data=True,
6872
package_data={
69-
'pytyped': ['py.typed'],
73+
"pytyped": ["py.typed"],
7074
},
7175
install_requires=[
72-
"msrest>=0.7.1",
73-
"azure-common~=1.1",
74-
"azure-mgmt-core>=1.3.2,<2.0.0",
75-
"typing-extensions>=4.3.0; python_version<'3.8.0'",
76+
"isodate>=0.6.1",
77+
"typing-extensions>=4.6.0",
78+
"azure-common>=1.1",
79+
"azure-mgmt-core>=1.5.0",
7680
],
77-
python_requires=">=3.7"
81+
python_requires=">=3.9",
7882
)

0 commit comments

Comments
 (0)