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

## 1.0.0 (2025-05-09)

### Features Added

- Enum `SkuName` added member `C1`
- Enum `SkuName` added member `PES`
- Added enum `CreatedByType`
- Added model `ErrorDetail`
- Added model `UserAssignedIdentityMap`
- Added model `HealthBotsOperations`
- Method `Error.__init__` has a new overload `def __init__(self: None, error: Optional[_models.ErrorDetail])`
- Method `Error.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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])`
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
- Method `HealthBot.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `HealthBotKey.__init__` has a new overload `def __init__(self: None, key_name: Optional[str], value: Optional[str])`
- Method `HealthBotKey.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `HealthBotKeysResponse.__init__` has a new overload `def __init__(self: None, secrets: Optional[List[_models.HealthBotKey]])`
- Method `HealthBotKeysResponse.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `HealthBotProperties.__init__` has a new overload `def __init__(self: None, key_vault_properties: Optional[_models.KeyVaultProperties])`
- Method `HealthBotProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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])`
- Method `HealthBotUpdateParameters.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `Identity.__init__` has a new overload `def __init__(self: None, type: Optional[Union[str, _models.ResourceIdentityType]], user_assigned_identities: Optional[_models.UserAssignedIdentityMap])`
- Method `Identity.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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])`
- Method `KeyVaultProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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])`
- Method `OperationDetail.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `OperationDisplay.__init__` has a new overload `def __init__(self: None, provider: Optional[str], resource: Optional[str], operation: Optional[str], description: Optional[str])`
- Method `OperationDisplay.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `Sku.__init__` has a new overload `def __init__(self: None, name: Union[str, _models.SkuName])`
- Method `Sku.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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])`
- Method `SystemData.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`

### Breaking Changes

- Deleted or renamed client `HealthBotMgmtClient`
- Model `Error` deleted or renamed its instance variable `additional_properties`
- Model `ErrorAdditionalInfo` deleted or renamed its instance variable `additional_properties`
- Model `HealthBot` deleted or renamed its instance variable `additional_properties`
- Model `HealthBotKey` deleted or renamed its instance variable `additional_properties`
- Model `HealthBotKeysResponse` deleted or renamed its instance variable `additional_properties`
- Model `HealthBotProperties` deleted or renamed its instance variable `additional_properties`
- Model `HealthBotUpdateParameters` deleted or renamed its instance variable `additional_properties`
- Model `Identity` deleted or renamed its instance variable `additional_properties`
- Model `KeyVaultProperties` deleted or renamed its instance variable `additional_properties`
- Model `OperationDetail` deleted or renamed its instance variable `additional_properties`
- Model `OperationDisplay` deleted or renamed its instance variable `additional_properties`
- Model `Resource` deleted or renamed its instance variable `additional_properties`
- Model `Sku` deleted or renamed its instance variable `additional_properties`
- Model `SystemData` deleted or renamed its instance variable `additional_properties`
- Model `TrackedResource` deleted or renamed its instance variable `additional_properties`
- Model `UserAssignedIdentity` deleted or renamed its instance variable `additional_properties`
- Deleted or renamed model `AvailableOperations`
- Deleted or renamed model `BotResponseList`
- Deleted or renamed model `ErrorError`
- Deleted or renamed model `IdentityType`
- Deleted or renamed model `ValidationResult`
- Deleted or renamed model `BotsOperations`

## 1.0.0b2 (2022-10-28)

### Features Added
Expand Down
55 changes: 44 additions & 11 deletions sdk/healthbot/azure-mgmt-healthbot/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 Health Bot 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 [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.
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-healthbot
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.healthbot import HealthBotMgmtClient
import os

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

## Examples

Code samples for this package can be found at:
- [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
- [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: 3 additions & 8 deletions sdk/healthbot/azure-mgmt-healthbot/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"commit": "e82a24def11ffc98cc263884f9f1742c99f2df5e",
"commit": "766e13fd8db3dd6afe3dee255cbbec09e54e017b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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",
"readme": "specification/healthbot/resource-manager/readme.md"
"typespec_src": "specification/healthbot/Healthbot.Management",
"@azure-tools/typespec-python": "0.44.2"
}
44 changes: 44 additions & 0 deletions sdk/healthbot/azure-mgmt-healthbot/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"CrossLanguagePackageId": "Microsoft.HealthBot",
"CrossLanguageDefinitionId": {
"azure.mgmt.healthbot.models.Error": "Microsoft.HealthBot.Error",
"azure.mgmt.healthbot.models.ErrorAdditionalInfo": "Microsoft.HealthBot.ErrorAdditionalInfo",
"azure.mgmt.healthbot.models.ErrorDetail": "Microsoft.HealthBot.ErrorDetail",
"azure.mgmt.healthbot.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.healthbot.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.healthbot.models.HealthBot": "Microsoft.HealthBot.HealthBot",
"azure.mgmt.healthbot.models.HealthBotKey": "Microsoft.HealthBot.HealthBotKey",
"azure.mgmt.healthbot.models.HealthBotKeysResponse": "Microsoft.HealthBot.HealthBotKeysResponse",
"azure.mgmt.healthbot.models.HealthBotProperties": "Microsoft.HealthBot.HealthBotProperties",
"azure.mgmt.healthbot.models.HealthBotUpdateParameters": "Microsoft.HealthBot.HealthBotUpdateParameters",
"azure.mgmt.healthbot.models.Identity": "Microsoft.HealthBot.Identity",
"azure.mgmt.healthbot.models.KeyVaultProperties": "Microsoft.HealthBot.KeyVaultProperties",
"azure.mgmt.healthbot.models.OperationDetail": "Microsoft.HealthBot.OperationDetail",
"azure.mgmt.healthbot.models.OperationDisplay": "Microsoft.HealthBot.OperationDisplay",
"azure.mgmt.healthbot.models.Sku": "Microsoft.HealthBot.Sku",
"azure.mgmt.healthbot.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.healthbot.models.UserAssignedIdentity": "Microsoft.HealthBot.UserAssignedIdentity",
"azure.mgmt.healthbot.models.UserAssignedIdentityMap": "Microsoft.HealthBot.UserAssignedIdentityMap",
"azure.mgmt.healthbot.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.healthbot.models.SkuName": "Microsoft.HealthBot.SkuName",
"azure.mgmt.healthbot.models.ResourceIdentityType": "Microsoft.HealthBot.ResourceIdentityType",
"azure.mgmt.healthbot.operations.Operations.list": "Microsoft.HealthBot.Operations.list",
"azure.mgmt.healthbot.aio.operations.Operations.list": "Microsoft.HealthBot.Operations.list",
"azure.mgmt.healthbot.operations.HealthBotsOperations.get": "Microsoft.HealthBot.HealthBots.get",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.get": "Microsoft.HealthBot.HealthBots.get",
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_create": "Microsoft.HealthBot.HealthBots.create",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_create": "Microsoft.HealthBot.HealthBots.create",
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_update": "Microsoft.HealthBot.HealthBots.update",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_update": "Microsoft.HealthBot.HealthBots.update",
"azure.mgmt.healthbot.operations.HealthBotsOperations.begin_delete": "Microsoft.HealthBot.HealthBots.delete",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.begin_delete": "Microsoft.HealthBot.HealthBots.delete",
"azure.mgmt.healthbot.operations.HealthBotsOperations.list_by_resource_group": "Microsoft.HealthBot.HealthBots.listByResourceGroup",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list_by_resource_group": "Microsoft.HealthBot.HealthBots.listByResourceGroup",
"azure.mgmt.healthbot.operations.HealthBotsOperations.list": "Microsoft.HealthBot.HealthBots.list",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list": "Microsoft.HealthBot.HealthBots.list",
"azure.mgmt.healthbot.operations.HealthBotsOperations.list_secrets": "Microsoft.HealthBot.HealthBots.listSecrets",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.list_secrets": "Microsoft.HealthBot.HealthBots.listSecrets",
"azure.mgmt.healthbot.operations.HealthBotsOperations.regenerate_api_jwt_secret": "Microsoft.HealthBot.HealthBots.regenerateApiJwtSecret",
"azure.mgmt.healthbot.aio.operations.HealthBotsOperations.regenerate_api_jwt_secret": "Microsoft.HealthBot.HealthBots.regenerateApiJwtSecret"
}
}
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 ._health_bot_mgmt_client import HealthBotMgmtClient
from typing import TYPE_CHECKING

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

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

__version__ = VERSION

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

__all__ = [
"HealthBotMgmtClient",
"HealthBotClient",
]
__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