Skip to content

Commit 941c098

Browse files
author
SDKAuto
committed
CodeGen from PR 34549 in Azure/azure-rest-api-specs
Merge 9616763a1ce6e6d2d08b42a4afc7275aa158972e into 9f69db7532b6706baedc004f2eda762196a3e1eb
1 parent d6612d0 commit 941c098

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5705
-3847
lines changed

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

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

3+
## 1.0.0 (2025-05-09)
4+
5+
### Features Added
6+
7+
- Enum `SkuName` added member `C1`
8+
- Enum `SkuName` added member `PES`
9+
- Added enum `CreatedByType`
10+
- Added model `ErrorDetail`
11+
- Added model `UserAssignedIdentityMap`
12+
- Added model `HealthBotsOperations`
13+
- Method `Error.__init__` has a new overload `def __init__(self: None, error: Optional[_models.ErrorDetail])`
14+
- Method `Error.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
15+
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, location: str, sku: _models.Sku, tags: Optional[Dict[str, str]], identity: Optional[_models.Identity], properties: Optional[_models.HealthBotProperties])`
16+
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
17+
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
18+
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
19+
- Method `HealthBotKey.__init__` has a new overload `def __init__(self: None, key_name: Optional[str], value: Optional[str])`
20+
- Method `HealthBotKey.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
21+
- Method `HealthBotKeysResponse.__init__` has a new overload `def __init__(self: None, secrets: Optional[List[_models.HealthBotKey]])`
22+
- Method `HealthBotKeysResponse.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
23+
- Method `HealthBotProperties.__init__` has a new overload `def __init__(self: None, key_vault_properties: Optional[_models.KeyVaultProperties])`
24+
- Method `HealthBotProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
25+
- Method `HealthBotUpdateParameters.__init__` has a new overload `def __init__(self: None, properties: Optional[_models.HealthBotProperties], tags: Optional[Dict[str, str]], sku: Optional[_models.Sku], identity: Optional[_models.Identity], location: Optional[str])`
26+
- Method `HealthBotUpdateParameters.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
27+
- Method `Identity.__init__` has a new overload `def __init__(self: None, type: Optional[Union[str, _models.ResourceIdentityType]], user_assigned_identities: Optional[_models.UserAssignedIdentityMap])`
28+
- Method `Identity.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
29+
- Method `KeyVaultProperties.__init__` has a new overload `def __init__(self: None, key_name: str, key_vault_uri: str, key_version: Optional[str], user_identity: Optional[str])`
30+
- Method `KeyVaultProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
31+
- Method `OperationDetail.__init__` has a new overload `def __init__(self: None, name: Optional[str], is_data_action: Optional[bool], display: Optional[_models.OperationDisplay], origin: Optional[str], properties: Optional[Any])`
32+
- Method `OperationDetail.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
33+
- Method `OperationDisplay.__init__` has a new overload `def __init__(self: None, provider: Optional[str], resource: Optional[str], operation: Optional[str], description: Optional[str])`
34+
- Method `OperationDisplay.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
35+
- Method `Sku.__init__` has a new overload `def __init__(self: None, name: Union[str, _models.SkuName])`
36+
- Method `Sku.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
37+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, created_by: Optional[str], created_by_type: Optional[Union[str, _models.CreatedByType]], created_at: Optional[datetime], last_modified_by: Optional[str], last_modified_by_type: Optional[Union[str, _models.CreatedByType]], last_modified_at: Optional[datetime])`
38+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
39+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
40+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
41+
- Method `HealthBotsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, bot_name: str, parameters: HealthBot, content_type: str)`
42+
- Method `HealthBotsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, bot_name: str, parameters: JSON, content_type: str)`
43+
- Method `HealthBotsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, bot_name: str, parameters: IO[bytes], content_type: str)`
44+
- Method `HealthBotsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, bot_name: str, parameters: HealthBotUpdateParameters, content_type: str)`
45+
- Method `HealthBotsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, bot_name: str, parameters: JSON, content_type: str)`
46+
- Method `HealthBotsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, bot_name: str, parameters: IO[bytes], content_type: str)`
47+
48+
### Breaking Changes
49+
50+
- Deleted or renamed client `HealthBotMgmtClient`
51+
- Model `Error` deleted or renamed its instance variable `additional_properties`
52+
- Model `ErrorAdditionalInfo` deleted or renamed its instance variable `additional_properties`
53+
- Model `HealthBot` deleted or renamed its instance variable `additional_properties`
54+
- Model `HealthBotKey` deleted or renamed its instance variable `additional_properties`
55+
- Model `HealthBotKeysResponse` deleted or renamed its instance variable `additional_properties`
56+
- Model `HealthBotProperties` deleted or renamed its instance variable `additional_properties`
57+
- Model `HealthBotUpdateParameters` deleted or renamed its instance variable `additional_properties`
58+
- Model `Identity` deleted or renamed its instance variable `additional_properties`
59+
- Model `KeyVaultProperties` deleted or renamed its instance variable `additional_properties`
60+
- Model `OperationDetail` deleted or renamed its instance variable `additional_properties`
61+
- Model `OperationDisplay` deleted or renamed its instance variable `additional_properties`
62+
- Model `Resource` deleted or renamed its instance variable `additional_properties`
63+
- Model `Sku` deleted or renamed its instance variable `additional_properties`
64+
- Model `SystemData` deleted or renamed its instance variable `additional_properties`
65+
- Model `TrackedResource` deleted or renamed its instance variable `additional_properties`
66+
- Model `UserAssignedIdentity` deleted or renamed its instance variable `additional_properties`
67+
- Deleted or renamed model `AvailableOperations`
68+
- Deleted or renamed model `BotResponseList`
69+
- Deleted or renamed model `ErrorError`
70+
- Deleted or renamed model `IdentityType`
71+
- Deleted or renamed model `ValidationResult`
72+
- Deleted or renamed model `BotsOperations`
73+
374
## 1.0.0b2 (2022-10-28)
475

576
### 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.
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
"commit": "e82a24def11ffc98cc263884f9f1742c99f2df5e",
2+
"commit": "766e13fd8db3dd6afe3dee255cbbec09e54e017b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
5-
"use": [
6-
"@autorest/[email protected]",
7-
"@autorest/[email protected]"
8-
],
9-
"autorest_command": "autorest specification/healthbot/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
10-
"readme": "specification/healthbot/resource-manager/readme.md"
4+
"typespec_src": "specification/healthbot/Healthbot.Management",
5+
"@azure-tools/typespec-python": "0.44.2"
116
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.HealthBot",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.healthbot.models.Error": "Microsoft.HealthBot.Error",
5+
"azure.mgmt.healthbot.models.ErrorAdditionalInfo": "Microsoft.HealthBot.ErrorAdditionalInfo",
6+
"azure.mgmt.healthbot.models.ErrorDetail": "Microsoft.HealthBot.ErrorDetail",
7+
"azure.mgmt.healthbot.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
8+
"azure.mgmt.healthbot.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
9+
"azure.mgmt.healthbot.models.HealthBot": "Microsoft.HealthBot.HealthBot",
10+
"azure.mgmt.healthbot.models.HealthBotKey": "Microsoft.HealthBot.HealthBotKey",
11+
"azure.mgmt.healthbot.models.HealthBotKeysResponse": "Microsoft.HealthBot.HealthBotKeysResponse",
12+
"azure.mgmt.healthbot.models.HealthBotProperties": "Microsoft.HealthBot.HealthBotProperties",
13+
"azure.mgmt.healthbot.models.HealthBotUpdateParameters": "Microsoft.HealthBot.HealthBotUpdateParameters",
14+
"azure.mgmt.healthbot.models.Identity": "Microsoft.HealthBot.Identity",
15+
"azure.mgmt.healthbot.models.KeyVaultProperties": "Microsoft.HealthBot.KeyVaultProperties",
16+
"azure.mgmt.healthbot.models.OperationDetail": "Microsoft.HealthBot.OperationDetail",
17+
"azure.mgmt.healthbot.models.OperationDisplay": "Microsoft.HealthBot.OperationDisplay",
18+
"azure.mgmt.healthbot.models.Sku": "Microsoft.HealthBot.Sku",
19+
"azure.mgmt.healthbot.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
20+
"azure.mgmt.healthbot.models.UserAssignedIdentity": "Microsoft.HealthBot.UserAssignedIdentity",
21+
"azure.mgmt.healthbot.models.UserAssignedIdentityMap": "Microsoft.HealthBot.UserAssignedIdentityMap",
22+
"azure.mgmt.healthbot.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
23+
"azure.mgmt.healthbot.models.SkuName": "Microsoft.HealthBot.SkuName",
24+
"azure.mgmt.healthbot.models.ResourceIdentityType": "Microsoft.HealthBot.ResourceIdentityType",
25+
"azure.mgmt.healthbot.operations.Operations.list": "Microsoft.HealthBot.Operations.list",
26+
"azure.mgmt.healthbot.aio.operations.Operations.list": "Microsoft.HealthBot.Operations.list",
27+
"azure.mgmt.healthbot.operations.HealthBotsOperations.get": "Microsoft.HealthBot.HealthBots.get",
28+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.get": "Microsoft.HealthBot.HealthBots.get",
29+
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_create": "Microsoft.HealthBot.HealthBots.create",
30+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_create": "Microsoft.HealthBot.HealthBots.create",
31+
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_update": "Microsoft.HealthBot.HealthBots.update",
32+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_update": "Microsoft.HealthBot.HealthBots.update",
33+
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_delete": "Microsoft.HealthBot.HealthBots.delete",
34+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_delete": "Microsoft.HealthBot.HealthBots.delete",
35+
"azure.mgmt.healthbot.operations.HealthBotsOperations.list_by_resource_group": "Microsoft.HealthBot.HealthBots.listByResourceGroup",
36+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list_by_resource_group": "Microsoft.HealthBot.HealthBots.listByResourceGroup",
37+
"azure.mgmt.healthbot.operations.HealthBotsOperations.list": "Microsoft.HealthBot.HealthBots.list",
38+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list": "Microsoft.HealthBot.HealthBots.list",
39+
"azure.mgmt.healthbot.operations.HealthBotsOperations.list_secrets": "Microsoft.HealthBot.HealthBots.listSecrets",
40+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list_secrets": "Microsoft.HealthBot.HealthBots.listSecrets",
41+
"azure.mgmt.healthbot.operations.HealthBotsOperations.regenerate_api_jwt_secret": "Microsoft.HealthBot.HealthBots.regenerateApiJwtSecret",
42+
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.regenerate_api_jwt_secret": "Microsoft.HealthBot.HealthBots.regenerateApiJwtSecret"
43+
}
44+
}

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._health_bot_mgmt_client import HealthBotMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import HealthBotClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
22-
"HealthBotMgmtClient",
28+
"HealthBotClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

0 commit comments

Comments
 (0)