From 31e043d9d8715f1b1826c382fb0c6597d70058a4 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 16 Jun 2020 00:06:12 +0000 Subject: [PATCH] Update from release/v3 --- .../azure-mgmt-botservice/README.md | 30 +- .../azure/mgmt/botservice/__init__.py | 7 +- ...e_bot_service.py => _azure_bot_service.py} | 56 +- .../azure/mgmt/botservice/_configuration.py | 48 + .../azure/mgmt/botservice/models/__init__.py | 301 +-- ...e_enums.py => _azure_bot_service_enums.py} | 39 +- .../azure/mgmt/botservice/models/_models.py | 1839 +++++++++++++++++ .../mgmt/botservice/models/_models_py3.py | 1839 +++++++++++++++++ .../mgmt/botservice/models/_paged_models.py | 66 + .../azure/mgmt/botservice/models/bot.py | 62 - .../mgmt/botservice/models/bot_channel.py | 62 - .../botservice/models/bot_channel_paged.py | 27 - .../mgmt/botservice/models/bot_channel_py3.py | 62 - .../azure/mgmt/botservice/models/bot_paged.py | 27 - .../mgmt/botservice/models/bot_properties.py | 93 - .../botservice/models/bot_properties_py3.py | 93 - .../azure/mgmt/botservice/models/bot_py3.py | 62 - .../azure/mgmt/botservice/models/channel.py | 43 - .../mgmt/botservice/models/channel_py3.py | 43 - .../check_name_availability_request_body.py | 35 - ...heck_name_availability_request_body_py3.py | 35 - .../check_name_availability_response_body.py | 34 - ...eck_name_availability_response_body_py3.py | 34 - .../botservice/models/connection_item_name.py | 35 - .../models/connection_item_name_py3.py | 35 - .../botservice/models/connection_setting.py | 63 - .../models/connection_setting_paged.py | 27 - .../models/connection_setting_parameter.py | 33 - .../connection_setting_parameter_py3.py | 33 - .../models/connection_setting_properties.py | 64 - .../connection_setting_properties_py3.py | 64 - .../models/connection_setting_py3.py | 63 - .../botservice/models/direct_line_channel.py | 40 - .../models/direct_line_channel_properties.py | 28 - .../direct_line_channel_properties_py3.py | 28 - .../models/direct_line_channel_py3.py | 40 - .../botservice/models/direct_line_site.py | 82 - .../botservice/models/direct_line_site_py3.py | 82 - .../mgmt/botservice/models/email_channel.py | 39 - .../models/email_channel_properties.py | 45 - .../models/email_channel_properties_py3.py | 45 - .../botservice/models/email_channel_py3.py | 39 - .../botservice/models/enterprise_channel.py | 64 - ...channel_check_name_availability_request.py | 30 - ...nel_check_name_availability_request_py3.py | 30 - ...hannel_check_name_availability_response.py | 34 - ...el_check_name_availability_response_py3.py | 34 - .../models/enterprise_channel_node.py | 62 - .../models/enterprise_channel_node_py3.py | 62 - .../models/enterprise_channel_paged.py | 27 - .../models/enterprise_channel_properties.py | 40 - .../enterprise_channel_properties_py3.py | 40 - .../models/enterprise_channel_py3.py | 64 - .../azure/mgmt/botservice/models/error.py | 41 - .../mgmt/botservice/models/error_body.py | 39 - .../mgmt/botservice/models/error_body_py3.py | 39 - .../azure/mgmt/botservice/models/error_py3.py | 41 - .../botservice/models/facebook_channel.py | 38 - .../models/facebook_channel_properties.py | 63 - .../models/facebook_channel_properties_py3.py | 63 - .../botservice/models/facebook_channel_py3.py | 38 - .../mgmt/botservice/models/facebook_page.py | 41 - .../botservice/models/facebook_page_py3.py | 41 - .../mgmt/botservice/models/kik_channel.py | 38 - .../models/kik_channel_properties.py | 49 - .../models/kik_channel_properties_py3.py | 49 - .../mgmt/botservice/models/kik_channel_py3.py | 38 - .../botservice/models/ms_teams_channel.py | 39 - .../models/ms_teams_channel_properties.py | 42 - .../models/ms_teams_channel_properties_py3.py | 42 - .../botservice/models/ms_teams_channel_py3.py | 39 - .../models/operation_display_info.py | 41 - .../models/operation_display_info_py3.py | 41 - .../botservice/models/operation_entity.py | 40 - .../models/operation_entity_paged.py | 27 - .../botservice/models/operation_entity_py3.py | 40 - .../azure/mgmt/botservice/models/resource.py | 66 - .../mgmt/botservice/models/resource_py3.py | 66 - .../botservice/models/service_provider.py | 28 - .../models/service_provider_parameter.py | 60 - .../models/service_provider_parameter_py3.py | 60 - .../models/service_provider_properties.py | 60 - .../models/service_provider_properties_py3.py | 60 - .../botservice/models/service_provider_py3.py | 28 - .../models/service_provider_response_list.py | 41 - .../service_provider_response_list_py3.py | 41 - .../azure/mgmt/botservice/models/sku.py | 43 - .../azure/mgmt/botservice/models/sku_py3.py | 43 - .../mgmt/botservice/models/skype_channel.py | 39 - .../models/skype_channel_properties.py | 66 - .../models/skype_channel_properties_py3.py | 66 - .../botservice/models/skype_channel_py3.py | 39 - .../mgmt/botservice/models/slack_channel.py | 39 - .../models/slack_channel_properties.py | 80 - .../models/slack_channel_properties_py3.py | 80 - .../botservice/models/slack_channel_py3.py | 39 - .../mgmt/botservice/models/sms_channel.py | 38 - .../models/sms_channel_properties.py | 55 - .../models/sms_channel_properties_py3.py | 55 - .../mgmt/botservice/models/sms_channel_py3.py | 38 - .../botservice/models/telegram_channel.py | 39 - .../models/telegram_channel_properties.py | 44 - .../models/telegram_channel_properties_py3.py | 44 - .../botservice/models/telegram_channel_py3.py | 39 - .../botservice/models/web_chat_channel.py | 39 - .../models/web_chat_channel_properties.py | 39 - .../models/web_chat_channel_properties_py3.py | 39 - .../botservice/models/web_chat_channel_py3.py | 39 - .../mgmt/botservice/models/web_chat_site.py | 66 - .../botservice/models/web_chat_site_py3.py | 66 - .../mgmt/botservice/operations/__init__.py | 12 +- ...tions.py => _bot_connection_operations.py} | 45 +- ...bots_operations.py => _bots_operations.py} | 38 +- ..._operations.py => _channels_operations.py} | 45 +- .../operations/_direct_line_operations.py | 118 ++ .../{operations.py => _operations.py} | 20 +- .../enterprise_channels_operations.py | 535 ----- sdk/botservice/azure-mgmt-botservice/setup.py | 6 +- 118 files changed, 4192 insertions(+), 5589 deletions(-) rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/{azure_bot_service.py => _azure_bot_service.py} (58%) create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_configuration.py rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/{azure_bot_service_enums.py => _azure_bot_service_enums.py} (63%) create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_paged.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_paged.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_paged.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_paged.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_paged.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_py3.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site.py delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site_py3.py rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/{bot_connection_operations.py => _bot_connection_operations.py} (97%) rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/{bots_operations.py => _bots_operations.py} (97%) rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/{channels_operations.py => _channels_operations.py} (94%) create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py rename sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/{operations.py => _operations.py} (88%) delete mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/enterprise_channels_operations.py diff --git a/sdk/botservice/azure-mgmt-botservice/README.md b/sdk/botservice/azure-mgmt-botservice/README.md index daa33ba29a17..2d49788ab284 100644 --- a/sdk/botservice/azure-mgmt-botservice/README.md +++ b/sdk/botservice/azure-mgmt-botservice/README.md @@ -1,29 +1,21 @@ -## Microsoft Azure SDK for Python +# Microsoft Azure SDK for Python This is the Microsoft Azure Bot Service Client Library. +This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. +For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/) -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +# Usage -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. +For code examples, see [Bot Service](https://docs.microsoft.com/python/api/overview/azure/) +on docs.microsoft.com. -For a more complete set of Azure libraries, see the -[azure](https://pypi.python.org/pypi/azure) bundle package. -## Usage +# Provide Feedback -For code examples, see [Bot -Service](https://docs.microsoft.com/python/api/overview/azure/) on -docs.microsoft.com. - -## 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) +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. -![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-botservice%2FREADME.png) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-botservice%2FREADME.png) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/__init__.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/__init__.py index 62afd7a253a2..77c6e98a8f71 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/__init__.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .azure_bot_service import AzureBotService -from .version import VERSION +from ._configuration import AzureBotServiceConfiguration +from ._azure_bot_service import AzureBotService +__all__ = ['AzureBotService', 'AzureBotServiceConfiguration'] -__all__ = ['AzureBotService'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/azure_bot_service.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py similarity index 58% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/azure_bot_service.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py index e4ed47896874..4518da8b62a6 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/azure_bot_service.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py @@ -11,46 +11,14 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.bots_operations import BotsOperations -from .operations.channels_operations import ChannelsOperations -from .operations.operations import Operations -from .operations.bot_connection_operations import BotConnectionOperations -from .operations.enterprise_channels_operations import EnterpriseChannelsOperations -from . import models - - -class AzureBotServiceConfiguration(AzureConfiguration): - """Configuration for AzureBotService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Azure Subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - super(AzureBotServiceConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-botservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import AzureBotServiceConfiguration +from .operations import BotsOperations +from .operations import ChannelsOperations +from .operations import DirectLineOperations +from .operations import Operations +from .operations import BotConnectionOperations +from . import models class AzureBotService(SDKClient): @@ -63,12 +31,12 @@ class AzureBotService(SDKClient): :vartype bots: azure.mgmt.botservice.operations.BotsOperations :ivar channels: Channels operations :vartype channels: azure.mgmt.botservice.operations.ChannelsOperations + :ivar direct_line: DirectLine operations + :vartype direct_line: azure.mgmt.botservice.operations.DirectLineOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.botservice.operations.Operations :ivar bot_connection: BotConnection operations :vartype bot_connection: azure.mgmt.botservice.operations.BotConnectionOperations - :ivar enterprise_channels: EnterpriseChannels operations - :vartype enterprise_channels: azure.mgmt.botservice.operations.EnterpriseChannelsOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -85,7 +53,7 @@ def __init__( super(AzureBotService, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-07-12' + self.api_version = '2020-06-02' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -93,9 +61,9 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.channels = ChannelsOperations( self._client, self.config, self._serialize, self._deserialize) + self.direct_line = DirectLineOperations( + self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) self.bot_connection = BotConnectionOperations( self._client, self.config, self._serialize, self._deserialize) - self.enterprise_channels = EnterpriseChannelsOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_configuration.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_configuration.py new file mode 100644 index 000000000000..e606a0b8ea8d --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class AzureBotServiceConfiguration(AzureConfiguration): + """Configuration for AzureBotService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Azure Subscription ID. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(AzureBotServiceConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-botservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py index 8091b3656229..40a0bf5bf7f4 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py @@ -10,175 +10,182 @@ # -------------------------------------------------------------------------- try: - from .sku_py3 import Sku - from .resource_py3 import Resource - from .bot_properties_py3 import BotProperties - from .bot_py3 import Bot - from .channel_py3 import Channel - from .bot_channel_py3 import BotChannel - from .facebook_page_py3 import FacebookPage - from .facebook_channel_properties_py3 import FacebookChannelProperties - from .facebook_channel_py3 import FacebookChannel - from .email_channel_properties_py3 import EmailChannelProperties - from .email_channel_py3 import EmailChannel - from .ms_teams_channel_properties_py3 import MsTeamsChannelProperties - from .ms_teams_channel_py3 import MsTeamsChannel - from .skype_channel_properties_py3 import SkypeChannelProperties - from .skype_channel_py3 import SkypeChannel - from .kik_channel_properties_py3 import KikChannelProperties - from .kik_channel_py3 import KikChannel - from .web_chat_site_py3 import WebChatSite - from .web_chat_channel_properties_py3 import WebChatChannelProperties - from .web_chat_channel_py3 import WebChatChannel - from .direct_line_site_py3 import DirectLineSite - from .direct_line_channel_properties_py3 import DirectLineChannelProperties - from .direct_line_channel_py3 import DirectLineChannel - from .telegram_channel_properties_py3 import TelegramChannelProperties - from .telegram_channel_py3 import TelegramChannel - from .sms_channel_properties_py3 import SmsChannelProperties - from .sms_channel_py3 import SmsChannel - from .slack_channel_properties_py3 import SlackChannelProperties - from .slack_channel_py3 import SlackChannel - from .connection_item_name_py3 import ConnectionItemName - from .connection_setting_parameter_py3 import ConnectionSettingParameter - from .connection_setting_properties_py3 import ConnectionSettingProperties - from .connection_setting_py3 import ConnectionSetting - from .service_provider_parameter_py3 import ServiceProviderParameter - from .service_provider_properties_py3 import ServiceProviderProperties - from .service_provider_py3 import ServiceProvider - from .service_provider_response_list_py3 import ServiceProviderResponseList - from .error_body_py3 import ErrorBody - from .error_py3 import Error, ErrorException - from .operation_display_info_py3 import OperationDisplayInfo - from .operation_entity_py3 import OperationEntity - from .check_name_availability_request_body_py3 import CheckNameAvailabilityRequestBody - from .check_name_availability_response_body_py3 import CheckNameAvailabilityResponseBody - from .enterprise_channel_check_name_availability_request_py3 import EnterpriseChannelCheckNameAvailabilityRequest - from .enterprise_channel_check_name_availability_response_py3 import EnterpriseChannelCheckNameAvailabilityResponse - from .enterprise_channel_node_py3 import EnterpriseChannelNode - from .enterprise_channel_properties_py3 import EnterpriseChannelProperties - from .enterprise_channel_py3 import EnterpriseChannel + from ._models_py3 import AlexaChannel + from ._models_py3 import AlexaChannelProperties + from ._models_py3 import Bot + from ._models_py3 import BotChannel + from ._models_py3 import BotProperties + from ._models_py3 import Channel + from ._models_py3 import CheckNameAvailabilityRequestBody + from ._models_py3 import CheckNameAvailabilityResponseBody + from ._models_py3 import ConnectionItemName + from ._models_py3 import ConnectionSetting + from ._models_py3 import ConnectionSettingParameter + from ._models_py3 import ConnectionSettingProperties + from ._models_py3 import DirectLineChannel + from ._models_py3 import DirectLineChannelProperties + from ._models_py3 import DirectLineSite + from ._models_py3 import DirectLineSpeechChannel + from ._models_py3 import DirectLineSpeechChannelProperties + from ._models_py3 import EmailChannel + from ._models_py3 import EmailChannelProperties + from ._models_py3 import Error, ErrorException + from ._models_py3 import ErrorBody + from ._models_py3 import FacebookChannel + from ._models_py3 import FacebookChannelProperties + from ._models_py3 import FacebookPage + from ._models_py3 import KikChannel + from ._models_py3 import KikChannelProperties + from ._models_py3 import LineChannel + from ._models_py3 import LineChannelProperties + from ._models_py3 import LineRegistration + from ._models_py3 import MsTeamsChannel + from ._models_py3 import MsTeamsChannelProperties + from ._models_py3 import OperationDisplayInfo + from ._models_py3 import OperationEntity + from ._models_py3 import Resource + from ._models_py3 import ServiceProvider + from ._models_py3 import ServiceProviderParameter + from ._models_py3 import ServiceProviderProperties + from ._models_py3 import ServiceProviderResponseList + from ._models_py3 import SiteInfo + from ._models_py3 import Sku + from ._models_py3 import SkypeChannel + from ._models_py3 import SkypeChannelProperties + from ._models_py3 import SlackChannel + from ._models_py3 import SlackChannelProperties + from ._models_py3 import SmsChannel + from ._models_py3 import SmsChannelProperties + from ._models_py3 import TelegramChannel + from ._models_py3 import TelegramChannelProperties + from ._models_py3 import WebChatChannel + from ._models_py3 import WebChatChannelProperties + from ._models_py3 import WebChatSite except (SyntaxError, ImportError): - from .sku import Sku - from .resource import Resource - from .bot_properties import BotProperties - from .bot import Bot - from .channel import Channel - from .bot_channel import BotChannel - from .facebook_page import FacebookPage - from .facebook_channel_properties import FacebookChannelProperties - from .facebook_channel import FacebookChannel - from .email_channel_properties import EmailChannelProperties - from .email_channel import EmailChannel - from .ms_teams_channel_properties import MsTeamsChannelProperties - from .ms_teams_channel import MsTeamsChannel - from .skype_channel_properties import SkypeChannelProperties - from .skype_channel import SkypeChannel - from .kik_channel_properties import KikChannelProperties - from .kik_channel import KikChannel - from .web_chat_site import WebChatSite - from .web_chat_channel_properties import WebChatChannelProperties - from .web_chat_channel import WebChatChannel - from .direct_line_site import DirectLineSite - from .direct_line_channel_properties import DirectLineChannelProperties - from .direct_line_channel import DirectLineChannel - from .telegram_channel_properties import TelegramChannelProperties - from .telegram_channel import TelegramChannel - from .sms_channel_properties import SmsChannelProperties - from .sms_channel import SmsChannel - from .slack_channel_properties import SlackChannelProperties - from .slack_channel import SlackChannel - from .connection_item_name import ConnectionItemName - from .connection_setting_parameter import ConnectionSettingParameter - from .connection_setting_properties import ConnectionSettingProperties - from .connection_setting import ConnectionSetting - from .service_provider_parameter import ServiceProviderParameter - from .service_provider_properties import ServiceProviderProperties - from .service_provider import ServiceProvider - from .service_provider_response_list import ServiceProviderResponseList - from .error_body import ErrorBody - from .error import Error, ErrorException - from .operation_display_info import OperationDisplayInfo - from .operation_entity import OperationEntity - from .check_name_availability_request_body import CheckNameAvailabilityRequestBody - from .check_name_availability_response_body import CheckNameAvailabilityResponseBody - from .enterprise_channel_check_name_availability_request import EnterpriseChannelCheckNameAvailabilityRequest - from .enterprise_channel_check_name_availability_response import EnterpriseChannelCheckNameAvailabilityResponse - from .enterprise_channel_node import EnterpriseChannelNode - from .enterprise_channel_properties import EnterpriseChannelProperties - from .enterprise_channel import EnterpriseChannel -from .bot_paged import BotPaged -from .bot_channel_paged import BotChannelPaged -from .operation_entity_paged import OperationEntityPaged -from .connection_setting_paged import ConnectionSettingPaged -from .enterprise_channel_paged import EnterpriseChannelPaged -from .azure_bot_service_enums import ( + from ._models import AlexaChannel + from ._models import AlexaChannelProperties + from ._models import Bot + from ._models import BotChannel + from ._models import BotProperties + from ._models import Channel + from ._models import CheckNameAvailabilityRequestBody + from ._models import CheckNameAvailabilityResponseBody + from ._models import ConnectionItemName + from ._models import ConnectionSetting + from ._models import ConnectionSettingParameter + from ._models import ConnectionSettingProperties + from ._models import DirectLineChannel + from ._models import DirectLineChannelProperties + from ._models import DirectLineSite + from ._models import DirectLineSpeechChannel + from ._models import DirectLineSpeechChannelProperties + from ._models import EmailChannel + from ._models import EmailChannelProperties + from ._models import Error, ErrorException + from ._models import ErrorBody + from ._models import FacebookChannel + from ._models import FacebookChannelProperties + from ._models import FacebookPage + from ._models import KikChannel + from ._models import KikChannelProperties + from ._models import LineChannel + from ._models import LineChannelProperties + from ._models import LineRegistration + from ._models import MsTeamsChannel + from ._models import MsTeamsChannelProperties + from ._models import OperationDisplayInfo + from ._models import OperationEntity + from ._models import Resource + from ._models import ServiceProvider + from ._models import ServiceProviderParameter + from ._models import ServiceProviderProperties + from ._models import ServiceProviderResponseList + from ._models import SiteInfo + from ._models import Sku + from ._models import SkypeChannel + from ._models import SkypeChannelProperties + from ._models import SlackChannel + from ._models import SlackChannelProperties + from ._models import SmsChannel + from ._models import SmsChannelProperties + from ._models import TelegramChannel + from ._models import TelegramChannelProperties + from ._models import WebChatChannel + from ._models import WebChatChannelProperties + from ._models import WebChatSite +from ._paged_models import BotChannelPaged +from ._paged_models import BotPaged +from ._paged_models import ConnectionSettingPaged +from ._paged_models import OperationEntityPaged +from ._azure_bot_service_enums import ( SkuName, SkuTier, Kind, - EnterpriseChannelState, - EnterpriseChannelNodeState, + Key, ChannelName, + RegenerateKeysChannelName, ) __all__ = [ - 'Sku', - 'Resource', - 'BotProperties', + 'AlexaChannel', + 'AlexaChannelProperties', 'Bot', - 'Channel', 'BotChannel', - 'FacebookPage', - 'FacebookChannelProperties', - 'FacebookChannel', - 'EmailChannelProperties', - 'EmailChannel', - 'MsTeamsChannelProperties', - 'MsTeamsChannel', - 'SkypeChannelProperties', - 'SkypeChannel', - 'KikChannelProperties', - 'KikChannel', - 'WebChatSite', - 'WebChatChannelProperties', - 'WebChatChannel', - 'DirectLineSite', - 'DirectLineChannelProperties', - 'DirectLineChannel', - 'TelegramChannelProperties', - 'TelegramChannel', - 'SmsChannelProperties', - 'SmsChannel', - 'SlackChannelProperties', - 'SlackChannel', + 'BotProperties', + 'Channel', + 'CheckNameAvailabilityRequestBody', + 'CheckNameAvailabilityResponseBody', 'ConnectionItemName', + 'ConnectionSetting', 'ConnectionSettingParameter', 'ConnectionSettingProperties', - 'ConnectionSetting', - 'ServiceProviderParameter', - 'ServiceProviderProperties', - 'ServiceProvider', - 'ServiceProviderResponseList', - 'ErrorBody', + 'DirectLineChannel', + 'DirectLineChannelProperties', + 'DirectLineSite', + 'DirectLineSpeechChannel', + 'DirectLineSpeechChannelProperties', + 'EmailChannel', + 'EmailChannelProperties', 'Error', 'ErrorException', + 'ErrorBody', + 'FacebookChannel', + 'FacebookChannelProperties', + 'FacebookPage', + 'KikChannel', + 'KikChannelProperties', + 'LineChannel', + 'LineChannelProperties', + 'LineRegistration', + 'MsTeamsChannel', + 'MsTeamsChannelProperties', 'OperationDisplayInfo', 'OperationEntity', - 'CheckNameAvailabilityRequestBody', - 'CheckNameAvailabilityResponseBody', - 'EnterpriseChannelCheckNameAvailabilityRequest', - 'EnterpriseChannelCheckNameAvailabilityResponse', - 'EnterpriseChannelNode', - 'EnterpriseChannelProperties', - 'EnterpriseChannel', + 'Resource', + 'ServiceProvider', + 'ServiceProviderParameter', + 'ServiceProviderProperties', + 'ServiceProviderResponseList', + 'SiteInfo', + 'Sku', + 'SkypeChannel', + 'SkypeChannelProperties', + 'SlackChannel', + 'SlackChannelProperties', + 'SmsChannel', + 'SmsChannelProperties', + 'TelegramChannel', + 'TelegramChannelProperties', + 'WebChatChannel', + 'WebChatChannelProperties', + 'WebChatSite', 'BotPaged', 'BotChannelPaged', 'OperationEntityPaged', 'ConnectionSettingPaged', - 'EnterpriseChannelPaged', 'SkuName', 'SkuTier', 'Kind', - 'EnterpriseChannelState', - 'EnterpriseChannelNodeState', + 'Key', 'ChannelName', + 'RegenerateKeysChannelName', ] diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/azure_bot_service_enums.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py similarity index 63% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/azure_bot_service_enums.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py index 4c195bfc0f8f..8bf05112160a 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/azure_bot_service_enums.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py @@ -32,36 +32,15 @@ class Kind(str, Enum): function = "function" -class EnterpriseChannelState(str, Enum): - - creating = "Creating" - create_failed = "CreateFailed" - started = "Started" - starting = "Starting" - start_failed = "StartFailed" - stopped = "Stopped" - stopping = "Stopping" - stop_failed = "StopFailed" - deleting = "Deleting" - delete_failed = "DeleteFailed" - - -class EnterpriseChannelNodeState(str, Enum): - - creating = "Creating" - create_failed = "CreateFailed" - started = "Started" - starting = "Starting" - start_failed = "StartFailed" - stopped = "Stopped" - stopping = "Stopping" - stop_failed = "StopFailed" - deleting = "Deleting" - delete_failed = "DeleteFailed" +class Key(str, Enum): + + key1 = "key1" + key2 = "key2" class ChannelName(str, Enum): + alexa_channel = "AlexaChannel" facebook_channel = "FacebookChannel" email_channel = "EmailChannel" kik_channel = "KikChannel" @@ -72,3 +51,11 @@ class ChannelName(str, Enum): web_chat_channel = "WebChatChannel" direct_line_channel = "DirectLineChannel" sms_channel = "SmsChannel" + line_channel = "LineChannel" + direct_line_speech_channel = "DirectLineSpeechChannel" + + +class RegenerateKeysChannelName(str, Enum): + + web_chat_channel = "WebChatChannel" + direct_line_channel = "DirectLineChannel" diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py new file mode 100644 index 000000000000..280551fbe090 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py @@ -0,0 +1,1839 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Channel(Model): + """Channel definition. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AlexaChannel, FacebookChannel, EmailChannel, + MsTeamsChannel, SkypeChannel, KikChannel, WebChatChannel, + DirectLineChannel, TelegramChannel, SmsChannel, SlackChannel, LineChannel, + DirectLineSpeechChannel + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + } + + _subtype_map = { + 'channel_name': {'AlexaChannel': 'AlexaChannel', 'FacebookChannel': 'FacebookChannel', 'EmailChannel': 'EmailChannel', 'MsTeamsChannel': 'MsTeamsChannel', 'SkypeChannel': 'SkypeChannel', 'KikChannel': 'KikChannel', 'WebChatChannel': 'WebChatChannel', 'DirectLineChannel': 'DirectLineChannel', 'TelegramChannel': 'TelegramChannel', 'SmsChannel': 'SmsChannel', 'SlackChannel': 'SlackChannel', 'LineChannel': 'LineChannel', 'DirectLineSpeechChannel': 'DirectLineSpeechChannel'} + } + + def __init__(self, **kwargs): + super(Channel, self).__init__(**kwargs) + self.channel_name = None + + +class AlexaChannel(Channel): + """Alexa channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Alexa channel + resource + :type properties: ~azure.mgmt.botservice.models.AlexaChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AlexaChannelProperties'}, + } + + def __init__(self, **kwargs): + super(AlexaChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'AlexaChannel' + + +class AlexaChannelProperties(Model): + """The parameters to provide for the Alexa channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param alexa_skill_id: Required. The Alexa skill Id + :type alexa_skill_id: str + :ivar url_fragment: Url fragment used in part of the Uri configured in + Alexa + :vartype url_fragment: str + :ivar service_endpoint_uri: Full Uri used to configured the skill in Alexa + :vartype service_endpoint_uri: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'alexa_skill_id': {'required': True}, + 'url_fragment': {'readonly': True}, + 'service_endpoint_uri': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'alexa_skill_id': {'key': 'alexaSkillId', 'type': 'str'}, + 'url_fragment': {'key': 'urlFragment', 'type': 'str'}, + 'service_endpoint_uri': {'key': 'serviceEndpointUri', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AlexaChannelProperties, self).__init__(**kwargs) + self.alexa_skill_id = kwargs.get('alexa_skill_id', None) + self.url_fragment = None + self.service_endpoint_uri = None + self.is_enabled = kwargs.get('is_enabled', None) + + +class Resource(Model): + """Azure resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.location = kwargs.get('location', None) + self.type = None + self.tags = kwargs.get('tags', None) + self.sku = kwargs.get('sku', None) + self.kind = kwargs.get('kind', None) + self.etag = kwargs.get('etag', None) + + +class Bot(Resource): + """Bot resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot resource + :type properties: ~azure.mgmt.botservice.models.BotProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BotProperties'}, + } + + def __init__(self, **kwargs): + super(Bot, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BotChannel(Resource): + """Bot channel resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot channel resource + :type properties: ~azure.mgmt.botservice.models.Channel + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'Channel'}, + } + + def __init__(self, **kwargs): + super(BotChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BotProperties(Model): + """The parameters to provide for the Bot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param display_name: Required. The Name of the bot + :type display_name: str + :param description: The description of the bot + :type description: str + :param icon_url: The Icon Url of the bot + :type icon_url: str + :param endpoint: Required. The bot's endpoint + :type endpoint: str + :ivar endpoint_version: The bot's endpoint version + :vartype endpoint_version: str + :param msa_app_id: Required. Microsoft App Id for the bot + :type msa_app_id: str + :ivar configured_channels: Collection of channels for which the bot is + configured + :vartype configured_channels: list[str] + :ivar enabled_channels: Collection of channels for which the bot is + enabled + :vartype enabled_channels: list[str] + :param developer_app_insight_key: The Application Insights key + :type developer_app_insight_key: str + :param developer_app_insights_api_key: The Application Insights Api Key + :type developer_app_insights_api_key: str + :param developer_app_insights_application_id: The Application Insights App + Id + :type developer_app_insights_application_id: str + :param luis_app_ids: Collection of LUIS App Ids + :type luis_app_ids: list[str] + :param luis_key: The LUIS Key + :type luis_key: str + """ + + _validation = { + 'display_name': {'required': True}, + 'endpoint': {'required': True}, + 'endpoint_version': {'readonly': True}, + 'msa_app_id': {'required': True}, + 'configured_channels': {'readonly': True}, + 'enabled_channels': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, + 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, + 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, + 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, + 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, + 'developer_app_insights_api_key': {'key': 'developerAppInsightsApiKey', 'type': 'str'}, + 'developer_app_insights_application_id': {'key': 'developerAppInsightsApplicationId', 'type': 'str'}, + 'luis_app_ids': {'key': 'luisAppIds', 'type': '[str]'}, + 'luis_key': {'key': 'luisKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BotProperties, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.icon_url = kwargs.get('icon_url', None) + self.endpoint = kwargs.get('endpoint', None) + self.endpoint_version = None + self.msa_app_id = kwargs.get('msa_app_id', None) + self.configured_channels = None + self.enabled_channels = None + self.developer_app_insight_key = kwargs.get('developer_app_insight_key', None) + self.developer_app_insights_api_key = kwargs.get('developer_app_insights_api_key', None) + self.developer_app_insights_application_id = kwargs.get('developer_app_insights_application_id', None) + self.luis_app_ids = kwargs.get('luis_app_ids', None) + self.luis_key = kwargs.get('luis_key', None) + + +class CheckNameAvailabilityRequestBody(Model): + """The request body for a request to Bot Service Management to check + availability of a bot name. + + :param name: the name of the bot for which availability needs to be + checked. + :type name: str + :param type: the type of the bot for which availability needs to be + checked + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityRequestBody, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + +class CheckNameAvailabilityResponseBody(Model): + """The response body returned for a request to Bot Service Management to check + availability of a bot name. + + :param valid: indicates if the bot name is valid. + :type valid: bool + :param message: additional message from the bot management api showing why + a bot name is not available + :type message: str + """ + + _attribute_map = { + 'valid': {'key': 'valid', 'type': 'bool'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityResponseBody, self).__init__(**kwargs) + self.valid = kwargs.get('valid', None) + self.message = kwargs.get('message', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ConnectionItemName(Model): + """The display name of a connection Item Setting registered with the Bot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Connection Item name that has been added in the API + :vartype name: str + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectionItemName, self).__init__(**kwargs) + self.name = None + + +class ConnectionSetting(Resource): + """Bot channel resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot channel resource + :type properties: + ~azure.mgmt.botservice.models.ConnectionSettingProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, + } + + def __init__(self, **kwargs): + super(ConnectionSetting, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ConnectionSettingParameter(Model): + """Extra Parameter in a Connection Setting Properties to indicate service + provider specific properties. + + :param key: Key for the Connection Setting Parameter. + :type key: str + :param value: Value associated with the Connection Setting Parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectionSettingParameter, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.value = kwargs.get('value', None) + + +class ConnectionSettingProperties(Model): + """Properties for a Connection Setting Item. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param client_id: Client Id associated with the Connection Setting. + :type client_id: str + :ivar setting_id: Setting Id set by the service for the Connection + Setting. + :vartype setting_id: str + :param client_secret: Client Secret associated with the Connection Setting + :type client_secret: str + :param scopes: Scopes associated with the Connection Setting + :type scopes: str + :param service_provider_id: Service Provider Id associated with the + Connection Setting + :type service_provider_id: str + :param service_provider_display_name: Service Provider Display Name + associated with the Connection Setting + :type service_provider_display_name: str + :param parameters: Service Provider Parameters associated with the + Connection Setting + :type parameters: + list[~azure.mgmt.botservice.models.ConnectionSettingParameter] + """ + + _validation = { + 'setting_id': {'readonly': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'setting_id': {'key': 'settingId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': 'str'}, + 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, + 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, + } + + def __init__(self, **kwargs): + super(ConnectionSettingProperties, self).__init__(**kwargs) + self.client_id = kwargs.get('client_id', None) + self.setting_id = None + self.client_secret = kwargs.get('client_secret', None) + self.scopes = kwargs.get('scopes', None) + self.service_provider_id = kwargs.get('service_provider_id', None) + self.service_provider_display_name = kwargs.get('service_provider_display_name', None) + self.parameters = kwargs.get('parameters', None) + + +class DirectLineChannel(Channel): + """Direct Line channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Direct Line channel + resource + :type properties: + ~azure.mgmt.botservice.models.DirectLineChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, + } + + def __init__(self, **kwargs): + super(DirectLineChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'DirectLineChannel' + + +class DirectLineChannelProperties(Model): + """The parameters to provide for the Direct Line channel. + + :param sites: The list of Direct Line sites + :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] + """ + + _attribute_map = { + 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, + } + + def __init__(self, **kwargs): + super(DirectLineChannelProperties, self).__init__(**kwargs) + self.sites = kwargs.get('sites', None) + + +class DirectLineSite(Model): + """A site for the Direct Line channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel. + :type is_enabled: bool + :param is_v1_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v1_enabled: bool + :param is_v3_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v3_enabled: bool + :param is_secure_site_enabled: Whether this site is enabled for + authentication with Bot Framework. + :type is_secure_site_enabled: bool + :param trusted_origins: List of Trusted Origin URLs for this site. This + field is applicable only if isSecureSiteEnabled is True. + :type trusted_origins: list[str] + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'is_v1_enabled': {'required': True}, + 'is_v3_enabled': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, + 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, + 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DirectLineSite, self).__init__(**kwargs) + self.site_id = None + self.site_name = kwargs.get('site_name', None) + self.key = None + self.key2 = None + self.is_enabled = kwargs.get('is_enabled', None) + self.is_v1_enabled = kwargs.get('is_v1_enabled', None) + self.is_v3_enabled = kwargs.get('is_v3_enabled', None) + self.is_secure_site_enabled = kwargs.get('is_secure_site_enabled', None) + self.trusted_origins = kwargs.get('trusted_origins', None) + + +class DirectLineSpeechChannel(Channel): + """DirectLine Speech channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to DirectLine Speech + channel resource + :type properties: + ~azure.mgmt.botservice.models.DirectLineSpeechChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DirectLineSpeechChannelProperties'}, + } + + def __init__(self, **kwargs): + super(DirectLineSpeechChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'DirectLineSpeechChannel' + + +class DirectLineSpeechChannelProperties(Model): + """The parameters to provide for the DirectLine Speech channel. + + All required parameters must be populated in order to send to Azure. + + :param cognitive_services_subscription_id: Required. The cognitive service + subscription ID to use with this channel registration. + :type cognitive_services_subscription_id: str + :param is_enabled: Whether this channel is enabled or not. + :type is_enabled: bool + :param custom_voice_deployment_id: Custom speech model id (optional). + :type custom_voice_deployment_id: str + :param custom_speech_model_id: Custom voice deployment id (optional). + :type custom_speech_model_id: str + :param is_default_bot_for_cog_svc_account: Make this a default bot for + chosen cognitive service account. + :type is_default_bot_for_cog_svc_account: bool + """ + + _validation = { + 'cognitive_services_subscription_id': {'required': True}, + } + + _attribute_map = { + 'cognitive_services_subscription_id': {'key': 'cognitiveServicesSubscriptionId', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'custom_voice_deployment_id': {'key': 'customVoiceDeploymentId', 'type': 'str'}, + 'custom_speech_model_id': {'key': 'customSpeechModelId', 'type': 'str'}, + 'is_default_bot_for_cog_svc_account': {'key': 'isDefaultBotForCogSvcAccount', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(DirectLineSpeechChannelProperties, self).__init__(**kwargs) + self.cognitive_services_subscription_id = kwargs.get('cognitive_services_subscription_id', None) + self.is_enabled = kwargs.get('is_enabled', None) + self.custom_voice_deployment_id = kwargs.get('custom_voice_deployment_id', None) + self.custom_speech_model_id = kwargs.get('custom_speech_model_id', None) + self.is_default_bot_for_cog_svc_account = kwargs.get('is_default_bot_for_cog_svc_account', None) + + +class EmailChannel(Channel): + """Email channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to email channel + resource + :type properties: ~azure.mgmt.botservice.models.EmailChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, + } + + def __init__(self, **kwargs): + super(EmailChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'EmailChannel' + + +class EmailChannelProperties(Model): + """The parameters to provide for the Email channel. + + All required parameters must be populated in order to send to Azure. + + :param email_address: Required. The email address + :type email_address: str + :param password: Required. The password for the email address. Value only + returned through POST to the action Channel List API, otherwise empty. + :type password: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'email_address': {'required': True}, + 'password': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(EmailChannelProperties, self).__init__(**kwargs) + self.email_address = kwargs.get('email_address', None) + self.password = kwargs.get('password', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class Error(Model): + """Bot Service error object. + + :param error: The error body. + :type error: ~azure.mgmt.botservice.models.ErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorBody'}, + } + + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) + + +class ErrorBody(Model): + """Bot Service error body. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. error code + :type code: str + :param message: Required. error message + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorBody, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class FacebookChannel(Channel): + """Facebook channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to bot facebook channel + :type properties: ~azure.mgmt.botservice.models.FacebookChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, + } + + def __init__(self, **kwargs): + super(FacebookChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'FacebookChannel' + + +class FacebookChannelProperties(Model): + """The parameters to provide for the Facebook channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar verify_token: Verify token. Value only returned through POST to the + action Channel List API, otherwise empty. + :vartype verify_token: str + :param pages: The list of Facebook pages + :type pages: list[~azure.mgmt.botservice.models.FacebookPage] + :param app_id: Required. Facebook application id + :type app_id: str + :param app_secret: Required. Facebook application secret. Value only + returned through POST to the action Channel List API, otherwise empty. + :type app_secret: str + :ivar callback_url: Callback Url + :vartype callback_url: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'verify_token': {'readonly': True}, + 'app_id': {'required': True}, + 'app_secret': {'required': True}, + 'callback_url': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'verify_token': {'key': 'verifyToken', 'type': 'str'}, + 'pages': {'key': 'pages', 'type': '[FacebookPage]'}, + 'app_id': {'key': 'appId', 'type': 'str'}, + 'app_secret': {'key': 'appSecret', 'type': 'str'}, + 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(FacebookChannelProperties, self).__init__(**kwargs) + self.verify_token = None + self.pages = kwargs.get('pages', None) + self.app_id = kwargs.get('app_id', None) + self.app_secret = kwargs.get('app_secret', None) + self.callback_url = None + self.is_enabled = kwargs.get('is_enabled', None) + + +class FacebookPage(Model): + """A Facebook page for Facebook channel registration. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Page id + :type id: str + :param access_token: Required. Facebook application access token. Value + only returned through POST to the action Channel List API, otherwise + empty. + :type access_token: str + """ + + _validation = { + 'id': {'required': True}, + 'access_token': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FacebookPage, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.access_token = kwargs.get('access_token', None) + + +class KikChannel(Channel): + """Kik channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Kik channel resource + :type properties: ~azure.mgmt.botservice.models.KikChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, + } + + def __init__(self, **kwargs): + super(KikChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'KikChannel' + + +class KikChannelProperties(Model): + """The parameters to provide for the Kik channel. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The Kik user name + :type user_name: str + :param api_key: Required. Kik API key. Value only returned through POST to + the action Channel List API, otherwise empty. + :type api_key: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'user_name': {'required': True}, + 'api_key': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'api_key': {'key': 'apiKey', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(KikChannelProperties, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.api_key = kwargs.get('api_key', None) + self.is_validated = kwargs.get('is_validated', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class LineChannel(Channel): + """Line channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to line channel resource + :type properties: ~azure.mgmt.botservice.models.LineChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LineChannelProperties'}, + } + + def __init__(self, **kwargs): + super(LineChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'LineChannel' + + +class LineChannelProperties(Model): + """The parameters to provide for the Line channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param line_registrations: Required. The list of line channel + registrations + :type line_registrations: + list[~azure.mgmt.botservice.models.LineRegistration] + :ivar callback_url: Callback Url to enter in line registration. + :vartype callback_url: str + :ivar is_validated: Whether this channel is validated for the bot + :vartype is_validated: bool + """ + + _validation = { + 'line_registrations': {'required': True}, + 'callback_url': {'readonly': True}, + 'is_validated': {'readonly': True}, + } + + _attribute_map = { + 'line_registrations': {'key': 'lineRegistrations', 'type': '[LineRegistration]'}, + 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(LineChannelProperties, self).__init__(**kwargs) + self.line_registrations = kwargs.get('line_registrations', None) + self.callback_url = None + self.is_validated = None + + +class LineRegistration(Model): + """The properties corresponding to a line channel registration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar generated_id: Id generated for the line channel registration + :vartype generated_id: str + :param channel_secret: Secret for the line channel registration + :type channel_secret: str + :param channel_access_token: Access token for the line channel + registration + :type channel_access_token: str + """ + + _validation = { + 'generated_id': {'readonly': True}, + } + + _attribute_map = { + 'generated_id': {'key': 'generatedId', 'type': 'str'}, + 'channel_secret': {'key': 'channelSecret', 'type': 'str'}, + 'channel_access_token': {'key': 'channelAccessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LineRegistration, self).__init__(**kwargs) + self.generated_id = None + self.channel_secret = kwargs.get('channel_secret', None) + self.channel_access_token = kwargs.get('channel_access_token', None) + + +class MsTeamsChannel(Channel): + """Microsoft Teams channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Microsoft Teams + channel resource + :type properties: ~azure.mgmt.botservice.models.MsTeamsChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, + } + + def __init__(self, **kwargs): + super(MsTeamsChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'MsTeamsChannel' + + +class MsTeamsChannelProperties(Model): + """The parameters to provide for the Microsoft Teams channel. + + All required parameters must be populated in order to send to Azure. + + :param enable_calling: Enable calling for Microsoft Teams channel + :type enable_calling: bool + :param calling_web_hook: Webhook for Microsoft Teams channel calls + :type calling_web_hook: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, + 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MsTeamsChannelProperties, self).__init__(**kwargs) + self.enable_calling = kwargs.get('enable_calling', None) + self.calling_web_hook = kwargs.get('calling_web_hook', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class OperationDisplayInfo(Model): + """The operation supported by Bot Service Management. + + :param description: The description of the operation. + :type description: str + :param operation: The action that users can perform, based on their + permission level. + :type operation: str + :param provider: Service provider: Microsoft Bot Service. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplayInfo, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.operation = kwargs.get('operation', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + + +class OperationEntity(Model): + """The operations supported by Bot Service Management. + + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The operation supported by Bot Service Management. + :type display: ~azure.mgmt.botservice.models.OperationDisplayInfo + :param origin: The origin of the operation. + :type origin: str + :param properties: Additional properties. + :type properties: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(OperationEntity, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) + + +class ServiceProvider(Model): + """Service Provider Definition. + + :param properties: The Properties of a Service Provider Object + :type properties: ~azure.mgmt.botservice.models.ServiceProviderProperties + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'ServiceProviderProperties'}, + } + + def __init__(self, **kwargs): + super(ServiceProvider, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ServiceProviderParameter(Model): + """Extra Parameters specific to each Service Provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the Service Provider + :vartype name: str + :ivar type: Type of the Service Provider + :vartype type: str + :ivar display_name: Display Name of the Service Provider + :vartype display_name: str + :ivar description: Description of the Service Provider + :vartype description: str + :ivar help_url: Help Url for the Service Provider + :vartype help_url: str + :ivar default: Default Name for the Service Provider + :vartype default: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'description': {'readonly': True}, + 'help_url': {'readonly': True}, + 'default': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'default': {'key': 'default', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceProviderParameter, self).__init__(**kwargs) + self.name = None + self.type = None + self.display_name = None + self.description = None + self.help_url = None + self.default = None + + +class ServiceProviderProperties(Model): + """The Object used to describe a Service Provider supported by Bot Service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Id for Service Provider + :vartype id: str + :ivar display_name: Display Name of the Service Provider + :vartype display_name: str + :ivar service_provider_name: Display Name of the Service Provider + :vartype service_provider_name: str + :ivar dev_portal_url: Display Name of the Service Provider + :vartype dev_portal_url: str + :ivar icon_url: Display Name of the Service Provider + :vartype icon_url: str + :param parameters: The list of parameters for the Service Provider + :type parameters: + list[~azure.mgmt.botservice.models.ServiceProviderParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'service_provider_name': {'readonly': True}, + 'dev_portal_url': {'readonly': True}, + 'icon_url': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, + 'dev_portal_url': {'key': 'devPortalUrl', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ServiceProviderParameter]'}, + } + + def __init__(self, **kwargs): + super(ServiceProviderProperties, self).__init__(**kwargs) + self.id = None + self.display_name = None + self.service_provider_name = None + self.dev_portal_url = None + self.icon_url = None + self.parameters = kwargs.get('parameters', None) + + +class ServiceProviderResponseList(Model): + """The list of bot service providers response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param next_link: The link used to get the next page of bot service + providers. + :type next_link: str + :ivar value: Gets the list of bot service providers and their properties. + :vartype value: list[~azure.mgmt.botservice.models.ServiceProvider] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceProvider]'}, + } + + def __init__(self, **kwargs): + super(ServiceProviderResponseList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = None + + +class SiteInfo(Model): + """Site information for WebChat or DirectLine Channels to identify which site + to regenerate keys for. + + All required parameters must be populated in order to send to Azure. + + :param site_name: Required. The site name + :type site_name: str + :param key: Required. Determines which key is to be regenerated. Possible + values include: 'key1', 'key2' + :type key: str or ~azure.mgmt.botservice.models.Key + """ + + _validation = { + 'site_name': {'required': True}, + 'key': {'required': True}, + } + + _attribute_map = { + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'Key'}, + } + + def __init__(self, **kwargs): + super(SiteInfo, self).__init__(**kwargs) + self.site_name = kwargs.get('site_name', None) + self.key = kwargs.get('key', None) + + +class Sku(Model): + """The SKU of the cognitive services account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The sku name. Possible values include: 'F0', 'S1' + :type name: str or ~azure.mgmt.botservice.models.SkuName + :ivar tier: Gets the sku tier. This is based on the SKU name. Possible + values include: 'Free', 'Standard' + :vartype tier: str or ~azure.mgmt.botservice.models.SkuTier + """ + + _validation = { + 'name': {'required': True}, + 'tier': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = None + + +class SkypeChannel(Channel): + """Skype channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Skype channel + resource + :type properties: ~azure.mgmt.botservice.models.SkypeChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, + } + + def __init__(self, **kwargs): + super(SkypeChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'SkypeChannel' + + +class SkypeChannelProperties(Model): + """The parameters to provide for the Microsoft Teams channel. + + All required parameters must be populated in order to send to Azure. + + :param enable_messaging: Enable messaging for Skype channel + :type enable_messaging: bool + :param enable_media_cards: Enable media cards for Skype channel + :type enable_media_cards: bool + :param enable_video: Enable video for Skype channel + :type enable_video: bool + :param enable_calling: Enable calling for Skype channel + :type enable_calling: bool + :param enable_screen_sharing: Enable screen sharing for Skype channel + :type enable_screen_sharing: bool + :param enable_groups: Enable groups for Skype channel + :type enable_groups: bool + :param groups_mode: Group mode for Skype channel + :type groups_mode: str + :param calling_web_hook: Calling web hook for Skype channel + :type calling_web_hook: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'enable_messaging': {'key': 'enableMessaging', 'type': 'bool'}, + 'enable_media_cards': {'key': 'enableMediaCards', 'type': 'bool'}, + 'enable_video': {'key': 'enableVideo', 'type': 'bool'}, + 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, + 'enable_screen_sharing': {'key': 'enableScreenSharing', 'type': 'bool'}, + 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, + 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, + 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(SkypeChannelProperties, self).__init__(**kwargs) + self.enable_messaging = kwargs.get('enable_messaging', None) + self.enable_media_cards = kwargs.get('enable_media_cards', None) + self.enable_video = kwargs.get('enable_video', None) + self.enable_calling = kwargs.get('enable_calling', None) + self.enable_screen_sharing = kwargs.get('enable_screen_sharing', None) + self.enable_groups = kwargs.get('enable_groups', None) + self.groups_mode = kwargs.get('groups_mode', None) + self.calling_web_hook = kwargs.get('calling_web_hook', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class SlackChannel(Channel): + """Slack channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Slack channel + resource + :type properties: ~azure.mgmt.botservice.models.SlackChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, + } + + def __init__(self, **kwargs): + super(SlackChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'SlackChannel' + + +class SlackChannelProperties(Model): + """The parameters to provide for the Slack channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param client_id: Required. The Slack client id + :type client_id: str + :param client_secret: Required. The Slack client secret. Value only + returned through POST to the action Channel List API, otherwise empty. + :type client_secret: str + :param verification_token: Required. The Slack verification token. Value + only returned through POST to the action Channel List API, otherwise + empty. + :type verification_token: str + :param landing_page_url: The Slack landing page Url + :type landing_page_url: str + :ivar redirect_action: The Slack redirect action + :vartype redirect_action: str + :ivar last_submission_id: The Sms auth token + :vartype last_submission_id: str + :ivar register_before_oauth_flow: Whether to register the settings before + OAuth validation is performed. Recommended to True. + :vartype register_before_oauth_flow: bool + :ivar is_validated: Whether this channel is validated for the bot + :vartype is_validated: bool + :param signing_secret: The Slack signing secret. + :type signing_secret: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'client_id': {'required': True}, + 'client_secret': {'required': True}, + 'verification_token': {'required': True}, + 'redirect_action': {'readonly': True}, + 'last_submission_id': {'readonly': True}, + 'register_before_oauth_flow': {'readonly': True}, + 'is_validated': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'verification_token': {'key': 'verificationToken', 'type': 'str'}, + 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, + 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, + 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, + 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'signing_secret': {'key': 'signingSecret', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(SlackChannelProperties, self).__init__(**kwargs) + self.client_id = kwargs.get('client_id', None) + self.client_secret = kwargs.get('client_secret', None) + self.verification_token = kwargs.get('verification_token', None) + self.landing_page_url = kwargs.get('landing_page_url', None) + self.redirect_action = None + self.last_submission_id = None + self.register_before_oauth_flow = None + self.is_validated = None + self.signing_secret = kwargs.get('signing_secret', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class SmsChannel(Channel): + """Sms channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Sms channel resource + :type properties: ~azure.mgmt.botservice.models.SmsChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, + } + + def __init__(self, **kwargs): + super(SmsChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'SmsChannel' + + +class SmsChannelProperties(Model): + """The parameters to provide for the Sms channel. + + All required parameters must be populated in order to send to Azure. + + :param phone: Required. The Sms phone + :type phone: str + :param account_sid: Required. The Sms account SID. Value only returned + through POST to the action Channel List API, otherwise empty. + :type account_sid: str + :param auth_token: Required. The Sms auth token. Value only returned + through POST to the action Channel List API, otherwise empty. + :type auth_token: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'phone': {'required': True}, + 'account_sid': {'required': True}, + 'auth_token': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'phone': {'key': 'phone', 'type': 'str'}, + 'account_sid': {'key': 'accountSID', 'type': 'str'}, + 'auth_token': {'key': 'authToken', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(SmsChannelProperties, self).__init__(**kwargs) + self.phone = kwargs.get('phone', None) + self.account_sid = kwargs.get('account_sid', None) + self.auth_token = kwargs.get('auth_token', None) + self.is_validated = kwargs.get('is_validated', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class TelegramChannel(Channel): + """Telegram channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Telegram channel + resource + :type properties: ~azure.mgmt.botservice.models.TelegramChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, + } + + def __init__(self, **kwargs): + super(TelegramChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'TelegramChannel' + + +class TelegramChannelProperties(Model): + """The parameters to provide for the Telegram channel. + + All required parameters must be populated in order to send to Azure. + + :param access_token: Required. The Telegram access token. Value only + returned through POST to the action Channel List API, otherwise empty. + :type access_token: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'access_token': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(TelegramChannelProperties, self).__init__(**kwargs) + self.access_token = kwargs.get('access_token', None) + self.is_validated = kwargs.get('is_validated', None) + self.is_enabled = kwargs.get('is_enabled', None) + + +class WebChatChannel(Channel): + """Web Chat channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Web Chat channel + resource + :type properties: ~azure.mgmt.botservice.models.WebChatChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, + } + + def __init__(self, **kwargs): + super(WebChatChannel, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.channel_name = 'WebChatChannel' + + +class WebChatChannelProperties(Model): + """The parameters to provide for the Web Chat channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar web_chat_embed_code: Web chat control embed code + :vartype web_chat_embed_code: str + :param sites: The list of Web Chat sites + :type sites: list[~azure.mgmt.botservice.models.WebChatSite] + """ + + _validation = { + 'web_chat_embed_code': {'readonly': True}, + } + + _attribute_map = { + 'web_chat_embed_code': {'key': 'webChatEmbedCode', 'type': 'str'}, + 'sites': {'key': 'sites', 'type': '[WebChatSite]'}, + } + + def __init__(self, **kwargs): + super(WebChatChannelProperties, self).__init__(**kwargs) + self.web_chat_embed_code = None + self.sites = kwargs.get('sites', None) + + +class WebChatSite(Model): + """A site for the Webchat channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel + :type is_enabled: bool + :param enable_preview: Required. Whether this site is enabled for preview + versions of Webchat + :type enable_preview: bool + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'enable_preview': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(WebChatSite, self).__init__(**kwargs) + self.site_id = None + self.site_name = kwargs.get('site_name', None) + self.key = None + self.key2 = None + self.is_enabled = kwargs.get('is_enabled', None) + self.enable_preview = kwargs.get('enable_preview', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py new file mode 100644 index 000000000000..abdb4924cc09 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py @@ -0,0 +1,1839 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Channel(Model): + """Channel definition. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AlexaChannel, FacebookChannel, EmailChannel, + MsTeamsChannel, SkypeChannel, KikChannel, WebChatChannel, + DirectLineChannel, TelegramChannel, SmsChannel, SlackChannel, LineChannel, + DirectLineSpeechChannel + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + } + + _subtype_map = { + 'channel_name': {'AlexaChannel': 'AlexaChannel', 'FacebookChannel': 'FacebookChannel', 'EmailChannel': 'EmailChannel', 'MsTeamsChannel': 'MsTeamsChannel', 'SkypeChannel': 'SkypeChannel', 'KikChannel': 'KikChannel', 'WebChatChannel': 'WebChatChannel', 'DirectLineChannel': 'DirectLineChannel', 'TelegramChannel': 'TelegramChannel', 'SmsChannel': 'SmsChannel', 'SlackChannel': 'SlackChannel', 'LineChannel': 'LineChannel', 'DirectLineSpeechChannel': 'DirectLineSpeechChannel'} + } + + def __init__(self, **kwargs) -> None: + super(Channel, self).__init__(**kwargs) + self.channel_name = None + + +class AlexaChannel(Channel): + """Alexa channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Alexa channel + resource + :type properties: ~azure.mgmt.botservice.models.AlexaChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AlexaChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(AlexaChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'AlexaChannel' + + +class AlexaChannelProperties(Model): + """The parameters to provide for the Alexa channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param alexa_skill_id: Required. The Alexa skill Id + :type alexa_skill_id: str + :ivar url_fragment: Url fragment used in part of the Uri configured in + Alexa + :vartype url_fragment: str + :ivar service_endpoint_uri: Full Uri used to configured the skill in Alexa + :vartype service_endpoint_uri: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'alexa_skill_id': {'required': True}, + 'url_fragment': {'readonly': True}, + 'service_endpoint_uri': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'alexa_skill_id': {'key': 'alexaSkillId', 'type': 'str'}, + 'url_fragment': {'key': 'urlFragment', 'type': 'str'}, + 'service_endpoint_uri': {'key': 'serviceEndpointUri', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, alexa_skill_id: str, is_enabled: bool, **kwargs) -> None: + super(AlexaChannelProperties, self).__init__(**kwargs) + self.alexa_skill_id = alexa_skill_id + self.url_fragment = None + self.service_endpoint_uri = None + self.is_enabled = is_enabled + + +class Resource(Model): + """Azure resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.location = location + self.type = None + self.tags = tags + self.sku = sku + self.kind = kind + self.etag = etag + + +class Bot(Resource): + """Bot resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot resource + :type properties: ~azure.mgmt.botservice.models.BotProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BotProperties'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: + super(Bot, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) + self.properties = properties + + +class BotChannel(Resource): + """Bot channel resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot channel resource + :type properties: ~azure.mgmt.botservice.models.Channel + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'Channel'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: + super(BotChannel, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) + self.properties = properties + + +class BotProperties(Model): + """The parameters to provide for the Bot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param display_name: Required. The Name of the bot + :type display_name: str + :param description: The description of the bot + :type description: str + :param icon_url: The Icon Url of the bot + :type icon_url: str + :param endpoint: Required. The bot's endpoint + :type endpoint: str + :ivar endpoint_version: The bot's endpoint version + :vartype endpoint_version: str + :param msa_app_id: Required. Microsoft App Id for the bot + :type msa_app_id: str + :ivar configured_channels: Collection of channels for which the bot is + configured + :vartype configured_channels: list[str] + :ivar enabled_channels: Collection of channels for which the bot is + enabled + :vartype enabled_channels: list[str] + :param developer_app_insight_key: The Application Insights key + :type developer_app_insight_key: str + :param developer_app_insights_api_key: The Application Insights Api Key + :type developer_app_insights_api_key: str + :param developer_app_insights_application_id: The Application Insights App + Id + :type developer_app_insights_application_id: str + :param luis_app_ids: Collection of LUIS App Ids + :type luis_app_ids: list[str] + :param luis_key: The LUIS Key + :type luis_key: str + """ + + _validation = { + 'display_name': {'required': True}, + 'endpoint': {'required': True}, + 'endpoint_version': {'readonly': True}, + 'msa_app_id': {'required': True}, + 'configured_channels': {'readonly': True}, + 'enabled_channels': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, + 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, + 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, + 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, + 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, + 'developer_app_insights_api_key': {'key': 'developerAppInsightsApiKey', 'type': 'str'}, + 'developer_app_insights_application_id': {'key': 'developerAppInsightsApplicationId', 'type': 'str'}, + 'luis_app_ids': {'key': 'luisAppIds', 'type': '[str]'}, + 'luis_key': {'key': 'luisKey', 'type': 'str'}, + } + + def __init__(self, *, display_name: str, endpoint: str, msa_app_id: str, description: str=None, icon_url: str=None, developer_app_insight_key: str=None, developer_app_insights_api_key: str=None, developer_app_insights_application_id: str=None, luis_app_ids=None, luis_key: str=None, **kwargs) -> None: + super(BotProperties, self).__init__(**kwargs) + self.display_name = display_name + self.description = description + self.icon_url = icon_url + self.endpoint = endpoint + self.endpoint_version = None + self.msa_app_id = msa_app_id + self.configured_channels = None + self.enabled_channels = None + self.developer_app_insight_key = developer_app_insight_key + self.developer_app_insights_api_key = developer_app_insights_api_key + self.developer_app_insights_application_id = developer_app_insights_application_id + self.luis_app_ids = luis_app_ids + self.luis_key = luis_key + + +class CheckNameAvailabilityRequestBody(Model): + """The request body for a request to Bot Service Management to check + availability of a bot name. + + :param name: the name of the bot for which availability needs to be + checked. + :type name: str + :param type: the type of the bot for which availability needs to be + checked + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: + super(CheckNameAvailabilityRequestBody, self).__init__(**kwargs) + self.name = name + self.type = type + + +class CheckNameAvailabilityResponseBody(Model): + """The response body returned for a request to Bot Service Management to check + availability of a bot name. + + :param valid: indicates if the bot name is valid. + :type valid: bool + :param message: additional message from the bot management api showing why + a bot name is not available + :type message: str + """ + + _attribute_map = { + 'valid': {'key': 'valid', 'type': 'bool'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, valid: bool=None, message: str=None, **kwargs) -> None: + super(CheckNameAvailabilityResponseBody, self).__init__(**kwargs) + self.valid = valid + self.message = message + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ConnectionItemName(Model): + """The display name of a connection Item Setting registered with the Bot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Connection Item name that has been added in the API + :vartype name: str + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectionItemName, self).__init__(**kwargs) + self.name = None + + +class ConnectionSetting(Resource): + """Bot channel resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :param properties: The set of properties specific to bot channel resource + :type properties: + ~azure.mgmt.botservice.models.ConnectionSettingProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: + super(ConnectionSetting, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) + self.properties = properties + + +class ConnectionSettingParameter(Model): + """Extra Parameter in a Connection Setting Properties to indicate service + provider specific properties. + + :param key: Key for the Connection Setting Parameter. + :type key: str + :param value: Value associated with the Connection Setting Parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, key: str=None, value: str=None, **kwargs) -> None: + super(ConnectionSettingParameter, self).__init__(**kwargs) + self.key = key + self.value = value + + +class ConnectionSettingProperties(Model): + """Properties for a Connection Setting Item. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param client_id: Client Id associated with the Connection Setting. + :type client_id: str + :ivar setting_id: Setting Id set by the service for the Connection + Setting. + :vartype setting_id: str + :param client_secret: Client Secret associated with the Connection Setting + :type client_secret: str + :param scopes: Scopes associated with the Connection Setting + :type scopes: str + :param service_provider_id: Service Provider Id associated with the + Connection Setting + :type service_provider_id: str + :param service_provider_display_name: Service Provider Display Name + associated with the Connection Setting + :type service_provider_display_name: str + :param parameters: Service Provider Parameters associated with the + Connection Setting + :type parameters: + list[~azure.mgmt.botservice.models.ConnectionSettingParameter] + """ + + _validation = { + 'setting_id': {'readonly': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'setting_id': {'key': 'settingId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': 'str'}, + 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, + 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, + } + + def __init__(self, *, client_id: str=None, client_secret: str=None, scopes: str=None, service_provider_id: str=None, service_provider_display_name: str=None, parameters=None, **kwargs) -> None: + super(ConnectionSettingProperties, self).__init__(**kwargs) + self.client_id = client_id + self.setting_id = None + self.client_secret = client_secret + self.scopes = scopes + self.service_provider_id = service_provider_id + self.service_provider_display_name = service_provider_display_name + self.parameters = parameters + + +class DirectLineChannel(Channel): + """Direct Line channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Direct Line channel + resource + :type properties: + ~azure.mgmt.botservice.models.DirectLineChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DirectLineChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'DirectLineChannel' + + +class DirectLineChannelProperties(Model): + """The parameters to provide for the Direct Line channel. + + :param sites: The list of Direct Line sites + :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] + """ + + _attribute_map = { + 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, + } + + def __init__(self, *, sites=None, **kwargs) -> None: + super(DirectLineChannelProperties, self).__init__(**kwargs) + self.sites = sites + + +class DirectLineSite(Model): + """A site for the Direct Line channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel. + :type is_enabled: bool + :param is_v1_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v1_enabled: bool + :param is_v3_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v3_enabled: bool + :param is_secure_site_enabled: Whether this site is enabled for + authentication with Bot Framework. + :type is_secure_site_enabled: bool + :param trusted_origins: List of Trusted Origin URLs for this site. This + field is applicable only if isSecureSiteEnabled is True. + :type trusted_origins: list[str] + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'is_v1_enabled': {'required': True}, + 'is_v3_enabled': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, + 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, + 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, + } + + def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_v3_enabled: bool, is_secure_site_enabled: bool=None, trusted_origins=None, **kwargs) -> None: + super(DirectLineSite, self).__init__(**kwargs) + self.site_id = None + self.site_name = site_name + self.key = None + self.key2 = None + self.is_enabled = is_enabled + self.is_v1_enabled = is_v1_enabled + self.is_v3_enabled = is_v3_enabled + self.is_secure_site_enabled = is_secure_site_enabled + self.trusted_origins = trusted_origins + + +class DirectLineSpeechChannel(Channel): + """DirectLine Speech channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to DirectLine Speech + channel resource + :type properties: + ~azure.mgmt.botservice.models.DirectLineSpeechChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DirectLineSpeechChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DirectLineSpeechChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'DirectLineSpeechChannel' + + +class DirectLineSpeechChannelProperties(Model): + """The parameters to provide for the DirectLine Speech channel. + + All required parameters must be populated in order to send to Azure. + + :param cognitive_services_subscription_id: Required. The cognitive service + subscription ID to use with this channel registration. + :type cognitive_services_subscription_id: str + :param is_enabled: Whether this channel is enabled or not. + :type is_enabled: bool + :param custom_voice_deployment_id: Custom speech model id (optional). + :type custom_voice_deployment_id: str + :param custom_speech_model_id: Custom voice deployment id (optional). + :type custom_speech_model_id: str + :param is_default_bot_for_cog_svc_account: Make this a default bot for + chosen cognitive service account. + :type is_default_bot_for_cog_svc_account: bool + """ + + _validation = { + 'cognitive_services_subscription_id': {'required': True}, + } + + _attribute_map = { + 'cognitive_services_subscription_id': {'key': 'cognitiveServicesSubscriptionId', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'custom_voice_deployment_id': {'key': 'customVoiceDeploymentId', 'type': 'str'}, + 'custom_speech_model_id': {'key': 'customSpeechModelId', 'type': 'str'}, + 'is_default_bot_for_cog_svc_account': {'key': 'isDefaultBotForCogSvcAccount', 'type': 'bool'}, + } + + def __init__(self, *, cognitive_services_subscription_id: str, is_enabled: bool=None, custom_voice_deployment_id: str=None, custom_speech_model_id: str=None, is_default_bot_for_cog_svc_account: bool=None, **kwargs) -> None: + super(DirectLineSpeechChannelProperties, self).__init__(**kwargs) + self.cognitive_services_subscription_id = cognitive_services_subscription_id + self.is_enabled = is_enabled + self.custom_voice_deployment_id = custom_voice_deployment_id + self.custom_speech_model_id = custom_speech_model_id + self.is_default_bot_for_cog_svc_account = is_default_bot_for_cog_svc_account + + +class EmailChannel(Channel): + """Email channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to email channel + resource + :type properties: ~azure.mgmt.botservice.models.EmailChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(EmailChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'EmailChannel' + + +class EmailChannelProperties(Model): + """The parameters to provide for the Email channel. + + All required parameters must be populated in order to send to Azure. + + :param email_address: Required. The email address + :type email_address: str + :param password: Required. The password for the email address. Value only + returned through POST to the action Channel List API, otherwise empty. + :type password: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'email_address': {'required': True}, + 'password': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, email_address: str, password: str, is_enabled: bool, **kwargs) -> None: + super(EmailChannelProperties, self).__init__(**kwargs) + self.email_address = email_address + self.password = password + self.is_enabled = is_enabled + + +class Error(Model): + """Bot Service error object. + + :param error: The error body. + :type error: ~azure.mgmt.botservice.models.ErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorBody'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.error = error + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) + + +class ErrorBody(Model): + """Bot Service error body. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. error code + :type code: str + :param message: Required. error message + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str, message: str, **kwargs) -> None: + super(ErrorBody, self).__init__(**kwargs) + self.code = code + self.message = message + + +class FacebookChannel(Channel): + """Facebook channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to bot facebook channel + :type properties: ~azure.mgmt.botservice.models.FacebookChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(FacebookChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'FacebookChannel' + + +class FacebookChannelProperties(Model): + """The parameters to provide for the Facebook channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar verify_token: Verify token. Value only returned through POST to the + action Channel List API, otherwise empty. + :vartype verify_token: str + :param pages: The list of Facebook pages + :type pages: list[~azure.mgmt.botservice.models.FacebookPage] + :param app_id: Required. Facebook application id + :type app_id: str + :param app_secret: Required. Facebook application secret. Value only + returned through POST to the action Channel List API, otherwise empty. + :type app_secret: str + :ivar callback_url: Callback Url + :vartype callback_url: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'verify_token': {'readonly': True}, + 'app_id': {'required': True}, + 'app_secret': {'required': True}, + 'callback_url': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'verify_token': {'key': 'verifyToken', 'type': 'str'}, + 'pages': {'key': 'pages', 'type': '[FacebookPage]'}, + 'app_id': {'key': 'appId', 'type': 'str'}, + 'app_secret': {'key': 'appSecret', 'type': 'str'}, + 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, app_id: str, app_secret: str, is_enabled: bool, pages=None, **kwargs) -> None: + super(FacebookChannelProperties, self).__init__(**kwargs) + self.verify_token = None + self.pages = pages + self.app_id = app_id + self.app_secret = app_secret + self.callback_url = None + self.is_enabled = is_enabled + + +class FacebookPage(Model): + """A Facebook page for Facebook channel registration. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Page id + :type id: str + :param access_token: Required. Facebook application access token. Value + only returned through POST to the action Channel List API, otherwise + empty. + :type access_token: str + """ + + _validation = { + 'id': {'required': True}, + 'access_token': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + } + + def __init__(self, *, id: str, access_token: str, **kwargs) -> None: + super(FacebookPage, self).__init__(**kwargs) + self.id = id + self.access_token = access_token + + +class KikChannel(Channel): + """Kik channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Kik channel resource + :type properties: ~azure.mgmt.botservice.models.KikChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(KikChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'KikChannel' + + +class KikChannelProperties(Model): + """The parameters to provide for the Kik channel. + + All required parameters must be populated in order to send to Azure. + + :param user_name: Required. The Kik user name + :type user_name: str + :param api_key: Required. Kik API key. Value only returned through POST to + the action Channel List API, otherwise empty. + :type api_key: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'user_name': {'required': True}, + 'api_key': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'api_key': {'key': 'apiKey', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, user_name: str, api_key: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: + super(KikChannelProperties, self).__init__(**kwargs) + self.user_name = user_name + self.api_key = api_key + self.is_validated = is_validated + self.is_enabled = is_enabled + + +class LineChannel(Channel): + """Line channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to line channel resource + :type properties: ~azure.mgmt.botservice.models.LineChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LineChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(LineChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'LineChannel' + + +class LineChannelProperties(Model): + """The parameters to provide for the Line channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param line_registrations: Required. The list of line channel + registrations + :type line_registrations: + list[~azure.mgmt.botservice.models.LineRegistration] + :ivar callback_url: Callback Url to enter in line registration. + :vartype callback_url: str + :ivar is_validated: Whether this channel is validated for the bot + :vartype is_validated: bool + """ + + _validation = { + 'line_registrations': {'required': True}, + 'callback_url': {'readonly': True}, + 'is_validated': {'readonly': True}, + } + + _attribute_map = { + 'line_registrations': {'key': 'lineRegistrations', 'type': '[LineRegistration]'}, + 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + } + + def __init__(self, *, line_registrations, **kwargs) -> None: + super(LineChannelProperties, self).__init__(**kwargs) + self.line_registrations = line_registrations + self.callback_url = None + self.is_validated = None + + +class LineRegistration(Model): + """The properties corresponding to a line channel registration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar generated_id: Id generated for the line channel registration + :vartype generated_id: str + :param channel_secret: Secret for the line channel registration + :type channel_secret: str + :param channel_access_token: Access token for the line channel + registration + :type channel_access_token: str + """ + + _validation = { + 'generated_id': {'readonly': True}, + } + + _attribute_map = { + 'generated_id': {'key': 'generatedId', 'type': 'str'}, + 'channel_secret': {'key': 'channelSecret', 'type': 'str'}, + 'channel_access_token': {'key': 'channelAccessToken', 'type': 'str'}, + } + + def __init__(self, *, channel_secret: str=None, channel_access_token: str=None, **kwargs) -> None: + super(LineRegistration, self).__init__(**kwargs) + self.generated_id = None + self.channel_secret = channel_secret + self.channel_access_token = channel_access_token + + +class MsTeamsChannel(Channel): + """Microsoft Teams channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Microsoft Teams + channel resource + :type properties: ~azure.mgmt.botservice.models.MsTeamsChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(MsTeamsChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'MsTeamsChannel' + + +class MsTeamsChannelProperties(Model): + """The parameters to provide for the Microsoft Teams channel. + + All required parameters must be populated in order to send to Azure. + + :param enable_calling: Enable calling for Microsoft Teams channel + :type enable_calling: bool + :param calling_web_hook: Webhook for Microsoft Teams channel calls + :type calling_web_hook: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, + 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, is_enabled: bool, enable_calling: bool=None, calling_web_hook: str=None, **kwargs) -> None: + super(MsTeamsChannelProperties, self).__init__(**kwargs) + self.enable_calling = enable_calling + self.calling_web_hook = calling_web_hook + self.is_enabled = is_enabled + + +class OperationDisplayInfo(Model): + """The operation supported by Bot Service Management. + + :param description: The description of the operation. + :type description: str + :param operation: The action that users can perform, based on their + permission level. + :type operation: str + :param provider: Service provider: Microsoft Bot Service. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: + super(OperationDisplayInfo, self).__init__(**kwargs) + self.description = description + self.operation = operation + self.provider = provider + self.resource = resource + + +class OperationEntity(Model): + """The operations supported by Bot Service Management. + + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The operation supported by Bot Service Management. + :type display: ~azure.mgmt.botservice.models.OperationDisplayInfo + :param origin: The origin of the operation. + :type origin: str + :param properties: Additional properties. + :type properties: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: + super(OperationEntity, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.properties = properties + + +class ServiceProvider(Model): + """Service Provider Definition. + + :param properties: The Properties of a Service Provider Object + :type properties: ~azure.mgmt.botservice.models.ServiceProviderProperties + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'ServiceProviderProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(ServiceProvider, self).__init__(**kwargs) + self.properties = properties + + +class ServiceProviderParameter(Model): + """Extra Parameters specific to each Service Provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the Service Provider + :vartype name: str + :ivar type: Type of the Service Provider + :vartype type: str + :ivar display_name: Display Name of the Service Provider + :vartype display_name: str + :ivar description: Description of the Service Provider + :vartype description: str + :ivar help_url: Help Url for the Service Provider + :vartype help_url: str + :ivar default: Default Name for the Service Provider + :vartype default: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'description': {'readonly': True}, + 'help_url': {'readonly': True}, + 'default': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'default': {'key': 'default', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ServiceProviderParameter, self).__init__(**kwargs) + self.name = None + self.type = None + self.display_name = None + self.description = None + self.help_url = None + self.default = None + + +class ServiceProviderProperties(Model): + """The Object used to describe a Service Provider supported by Bot Service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Id for Service Provider + :vartype id: str + :ivar display_name: Display Name of the Service Provider + :vartype display_name: str + :ivar service_provider_name: Display Name of the Service Provider + :vartype service_provider_name: str + :ivar dev_portal_url: Display Name of the Service Provider + :vartype dev_portal_url: str + :ivar icon_url: Display Name of the Service Provider + :vartype icon_url: str + :param parameters: The list of parameters for the Service Provider + :type parameters: + list[~azure.mgmt.botservice.models.ServiceProviderParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'service_provider_name': {'readonly': True}, + 'dev_portal_url': {'readonly': True}, + 'icon_url': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, + 'dev_portal_url': {'key': 'devPortalUrl', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[ServiceProviderParameter]'}, + } + + def __init__(self, *, parameters=None, **kwargs) -> None: + super(ServiceProviderProperties, self).__init__(**kwargs) + self.id = None + self.display_name = None + self.service_provider_name = None + self.dev_portal_url = None + self.icon_url = None + self.parameters = parameters + + +class ServiceProviderResponseList(Model): + """The list of bot service providers response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param next_link: The link used to get the next page of bot service + providers. + :type next_link: str + :ivar value: Gets the list of bot service providers and their properties. + :vartype value: list[~azure.mgmt.botservice.models.ServiceProvider] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServiceProvider]'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(ServiceProviderResponseList, self).__init__(**kwargs) + self.next_link = next_link + self.value = None + + +class SiteInfo(Model): + """Site information for WebChat or DirectLine Channels to identify which site + to regenerate keys for. + + All required parameters must be populated in order to send to Azure. + + :param site_name: Required. The site name + :type site_name: str + :param key: Required. Determines which key is to be regenerated. Possible + values include: 'key1', 'key2' + :type key: str or ~azure.mgmt.botservice.models.Key + """ + + _validation = { + 'site_name': {'required': True}, + 'key': {'required': True}, + } + + _attribute_map = { + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'Key'}, + } + + def __init__(self, *, site_name: str, key, **kwargs) -> None: + super(SiteInfo, self).__init__(**kwargs) + self.site_name = site_name + self.key = key + + +class Sku(Model): + """The SKU of the cognitive services account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The sku name. Possible values include: 'F0', 'S1' + :type name: str or ~azure.mgmt.botservice.models.SkuName + :ivar tier: Gets the sku tier. This is based on the SKU name. Possible + values include: 'Free', 'Standard' + :vartype tier: str or ~azure.mgmt.botservice.models.SkuTier + """ + + _validation = { + 'name': {'required': True}, + 'tier': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, *, name, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = None + + +class SkypeChannel(Channel): + """Skype channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Skype channel + resource + :type properties: ~azure.mgmt.botservice.models.SkypeChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(SkypeChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'SkypeChannel' + + +class SkypeChannelProperties(Model): + """The parameters to provide for the Microsoft Teams channel. + + All required parameters must be populated in order to send to Azure. + + :param enable_messaging: Enable messaging for Skype channel + :type enable_messaging: bool + :param enable_media_cards: Enable media cards for Skype channel + :type enable_media_cards: bool + :param enable_video: Enable video for Skype channel + :type enable_video: bool + :param enable_calling: Enable calling for Skype channel + :type enable_calling: bool + :param enable_screen_sharing: Enable screen sharing for Skype channel + :type enable_screen_sharing: bool + :param enable_groups: Enable groups for Skype channel + :type enable_groups: bool + :param groups_mode: Group mode for Skype channel + :type groups_mode: str + :param calling_web_hook: Calling web hook for Skype channel + :type calling_web_hook: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'enable_messaging': {'key': 'enableMessaging', 'type': 'bool'}, + 'enable_media_cards': {'key': 'enableMediaCards', 'type': 'bool'}, + 'enable_video': {'key': 'enableVideo', 'type': 'bool'}, + 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, + 'enable_screen_sharing': {'key': 'enableScreenSharing', 'type': 'bool'}, + 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, + 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, + 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, is_enabled: bool, enable_messaging: bool=None, enable_media_cards: bool=None, enable_video: bool=None, enable_calling: bool=None, enable_screen_sharing: bool=None, enable_groups: bool=None, groups_mode: str=None, calling_web_hook: str=None, **kwargs) -> None: + super(SkypeChannelProperties, self).__init__(**kwargs) + self.enable_messaging = enable_messaging + self.enable_media_cards = enable_media_cards + self.enable_video = enable_video + self.enable_calling = enable_calling + self.enable_screen_sharing = enable_screen_sharing + self.enable_groups = enable_groups + self.groups_mode = groups_mode + self.calling_web_hook = calling_web_hook + self.is_enabled = is_enabled + + +class SlackChannel(Channel): + """Slack channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Slack channel + resource + :type properties: ~azure.mgmt.botservice.models.SlackChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(SlackChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'SlackChannel' + + +class SlackChannelProperties(Model): + """The parameters to provide for the Slack channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param client_id: Required. The Slack client id + :type client_id: str + :param client_secret: Required. The Slack client secret. Value only + returned through POST to the action Channel List API, otherwise empty. + :type client_secret: str + :param verification_token: Required. The Slack verification token. Value + only returned through POST to the action Channel List API, otherwise + empty. + :type verification_token: str + :param landing_page_url: The Slack landing page Url + :type landing_page_url: str + :ivar redirect_action: The Slack redirect action + :vartype redirect_action: str + :ivar last_submission_id: The Sms auth token + :vartype last_submission_id: str + :ivar register_before_oauth_flow: Whether to register the settings before + OAuth validation is performed. Recommended to True. + :vartype register_before_oauth_flow: bool + :ivar is_validated: Whether this channel is validated for the bot + :vartype is_validated: bool + :param signing_secret: The Slack signing secret. + :type signing_secret: str + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'client_id': {'required': True}, + 'client_secret': {'required': True}, + 'verification_token': {'required': True}, + 'redirect_action': {'readonly': True}, + 'last_submission_id': {'readonly': True}, + 'register_before_oauth_flow': {'readonly': True}, + 'is_validated': {'readonly': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'verification_token': {'key': 'verificationToken', 'type': 'str'}, + 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, + 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, + 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, + 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'signing_secret': {'key': 'signingSecret', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, client_id: str, client_secret: str, verification_token: str, is_enabled: bool, landing_page_url: str=None, signing_secret: str=None, **kwargs) -> None: + super(SlackChannelProperties, self).__init__(**kwargs) + self.client_id = client_id + self.client_secret = client_secret + self.verification_token = verification_token + self.landing_page_url = landing_page_url + self.redirect_action = None + self.last_submission_id = None + self.register_before_oauth_flow = None + self.is_validated = None + self.signing_secret = signing_secret + self.is_enabled = is_enabled + + +class SmsChannel(Channel): + """Sms channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Sms channel resource + :type properties: ~azure.mgmt.botservice.models.SmsChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(SmsChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'SmsChannel' + + +class SmsChannelProperties(Model): + """The parameters to provide for the Sms channel. + + All required parameters must be populated in order to send to Azure. + + :param phone: Required. The Sms phone + :type phone: str + :param account_sid: Required. The Sms account SID. Value only returned + through POST to the action Channel List API, otherwise empty. + :type account_sid: str + :param auth_token: Required. The Sms auth token. Value only returned + through POST to the action Channel List API, otherwise empty. + :type auth_token: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'phone': {'required': True}, + 'account_sid': {'required': True}, + 'auth_token': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'phone': {'key': 'phone', 'type': 'str'}, + 'account_sid': {'key': 'accountSID', 'type': 'str'}, + 'auth_token': {'key': 'authToken', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, phone: str, account_sid: str, auth_token: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: + super(SmsChannelProperties, self).__init__(**kwargs) + self.phone = phone + self.account_sid = account_sid + self.auth_token = auth_token + self.is_validated = is_validated + self.is_enabled = is_enabled + + +class TelegramChannel(Channel): + """Telegram channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Telegram channel + resource + :type properties: ~azure.mgmt.botservice.models.TelegramChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(TelegramChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'TelegramChannel' + + +class TelegramChannelProperties(Model): + """The parameters to provide for the Telegram channel. + + All required parameters must be populated in order to send to Azure. + + :param access_token: Required. The Telegram access token. Value only + returned through POST to the action Channel List API, otherwise empty. + :type access_token: str + :param is_validated: Whether this channel is validated for the bot + :type is_validated: bool + :param is_enabled: Required. Whether this channel is enabled for the bot + :type is_enabled: bool + """ + + _validation = { + 'access_token': {'required': True}, + 'is_enabled': {'required': True}, + } + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + } + + def __init__(self, *, access_token: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: + super(TelegramChannelProperties, self).__init__(**kwargs) + self.access_token = access_token + self.is_validated = is_validated + self.is_enabled = is_enabled + + +class WebChatChannel(Channel): + """Web Chat channel definition. + + All required parameters must be populated in order to send to Azure. + + :param channel_name: Required. Constant filled by server. + :type channel_name: str + :param properties: The set of properties specific to Web Chat channel + resource + :type properties: ~azure.mgmt.botservice.models.WebChatChannelProperties + """ + + _validation = { + 'channel_name': {'required': True}, + } + + _attribute_map = { + 'channel_name': {'key': 'channelName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(WebChatChannel, self).__init__(**kwargs) + self.properties = properties + self.channel_name = 'WebChatChannel' + + +class WebChatChannelProperties(Model): + """The parameters to provide for the Web Chat channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar web_chat_embed_code: Web chat control embed code + :vartype web_chat_embed_code: str + :param sites: The list of Web Chat sites + :type sites: list[~azure.mgmt.botservice.models.WebChatSite] + """ + + _validation = { + 'web_chat_embed_code': {'readonly': True}, + } + + _attribute_map = { + 'web_chat_embed_code': {'key': 'webChatEmbedCode', 'type': 'str'}, + 'sites': {'key': 'sites', 'type': '[WebChatSite]'}, + } + + def __init__(self, *, sites=None, **kwargs) -> None: + super(WebChatChannelProperties, self).__init__(**kwargs) + self.web_chat_embed_code = None + self.sites = sites + + +class WebChatSite(Model): + """A site for the Webchat channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel + :type is_enabled: bool + :param enable_preview: Required. Whether this site is enabled for preview + versions of Webchat + :type enable_preview: bool + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'enable_preview': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, + } + + def __init__(self, *, site_name: str, is_enabled: bool, enable_preview: bool, **kwargs) -> None: + super(WebChatSite, self).__init__(**kwargs) + self.site_id = None + self.site_name = site_name + self.key = None + self.key2 = None + self.is_enabled = is_enabled + self.enable_preview = enable_preview diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py new file mode 100644 index 000000000000..d169551a983b --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class BotPaged(Paged): + """ + A paging container for iterating over a list of :class:`Bot ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Bot]'} + } + + def __init__(self, *args, **kwargs): + + super(BotPaged, self).__init__(*args, **kwargs) +class BotChannelPaged(Paged): + """ + A paging container for iterating over a list of :class:`BotChannel ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BotChannel]'} + } + + def __init__(self, *args, **kwargs): + + super(BotChannelPaged, self).__init__(*args, **kwargs) +class OperationEntityPaged(Paged): + """ + A paging container for iterating over a list of :class:`OperationEntity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OperationEntity]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationEntityPaged, self).__init__(*args, **kwargs) +class ConnectionSettingPaged(Paged): + """ + A paging container for iterating over a list of :class:`ConnectionSetting ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ConnectionSetting]'} + } + + def __init__(self, *args, **kwargs): + + super(ConnectionSettingPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot.py deleted file mode 100644 index 3a43ec5e6e95..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Bot(Resource): - """Bot resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot resource - :type properties: ~azure.mgmt.botservice.models.BotProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BotProperties'}, - } - - def __init__(self, **kwargs): - super(Bot, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel.py deleted file mode 100644 index 3211c236f2cf..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class BotChannel(Resource): - """Bot channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot channel resource - :type properties: ~azure.mgmt.botservice.models.Channel - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Channel'}, - } - - def __init__(self, **kwargs): - super(BotChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_paged.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_paged.py deleted file mode 100644 index 7cf0ca710405..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class BotChannelPaged(Paged): - """ - A paging container for iterating over a list of :class:`BotChannel ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BotChannel]'} - } - - def __init__(self, *args, **kwargs): - - super(BotChannelPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_py3.py deleted file mode 100644 index 430d49a369de..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_channel_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class BotChannel(Resource): - """Bot channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot channel resource - :type properties: ~azure.mgmt.botservice.models.Channel - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Channel'}, - } - - def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: - super(BotChannel, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_paged.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_paged.py deleted file mode 100644 index 410e37eb94b0..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class BotPaged(Paged): - """ - A paging container for iterating over a list of :class:`Bot ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Bot]'} - } - - def __init__(self, *args, **kwargs): - - super(BotPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties.py deleted file mode 100644 index 7a91b2e87f38..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BotProperties(Model): - """The parameters to provide for the Bot. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param display_name: Required. The Name of the bot - :type display_name: str - :param description: The description of the bot - :type description: str - :param icon_url: The Icon Url of the bot - :type icon_url: str - :param endpoint: Required. The bot's endpoint - :type endpoint: str - :ivar endpoint_version: The bot's endpoint version - :vartype endpoint_version: str - :param msa_app_id: Required. Microsoft App Id for the bot - :type msa_app_id: str - :ivar configured_channels: Collection of channels for which the bot is - configured - :vartype configured_channels: list[str] - :ivar enabled_channels: Collection of channels for which the bot is - enabled - :vartype enabled_channels: list[str] - :param developer_app_insight_key: The Application Insights key - :type developer_app_insight_key: str - :param developer_app_insights_api_key: The Application Insights Api Key - :type developer_app_insights_api_key: str - :param developer_app_insights_application_id: The Application Insights App - Id - :type developer_app_insights_application_id: str - :param luis_app_ids: Collection of LUIS App Ids - :type luis_app_ids: list[str] - :param luis_key: The LUIS Key - :type luis_key: str - """ - - _validation = { - 'display_name': {'required': True}, - 'endpoint': {'required': True}, - 'endpoint_version': {'readonly': True}, - 'msa_app_id': {'required': True}, - 'configured_channels': {'readonly': True}, - 'enabled_channels': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, - 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, - 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, - 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, - 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, - 'developer_app_insights_api_key': {'key': 'developerAppInsightsApiKey', 'type': 'str'}, - 'developer_app_insights_application_id': {'key': 'developerAppInsightsApplicationId', 'type': 'str'}, - 'luis_app_ids': {'key': 'luisAppIds', 'type': '[str]'}, - 'luis_key': {'key': 'luisKey', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BotProperties, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.icon_url = kwargs.get('icon_url', None) - self.endpoint = kwargs.get('endpoint', None) - self.endpoint_version = None - self.msa_app_id = kwargs.get('msa_app_id', None) - self.configured_channels = None - self.enabled_channels = None - self.developer_app_insight_key = kwargs.get('developer_app_insight_key', None) - self.developer_app_insights_api_key = kwargs.get('developer_app_insights_api_key', None) - self.developer_app_insights_application_id = kwargs.get('developer_app_insights_application_id', None) - self.luis_app_ids = kwargs.get('luis_app_ids', None) - self.luis_key = kwargs.get('luis_key', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties_py3.py deleted file mode 100644 index d96dbadf231a..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_properties_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BotProperties(Model): - """The parameters to provide for the Bot. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param display_name: Required. The Name of the bot - :type display_name: str - :param description: The description of the bot - :type description: str - :param icon_url: The Icon Url of the bot - :type icon_url: str - :param endpoint: Required. The bot's endpoint - :type endpoint: str - :ivar endpoint_version: The bot's endpoint version - :vartype endpoint_version: str - :param msa_app_id: Required. Microsoft App Id for the bot - :type msa_app_id: str - :ivar configured_channels: Collection of channels for which the bot is - configured - :vartype configured_channels: list[str] - :ivar enabled_channels: Collection of channels for which the bot is - enabled - :vartype enabled_channels: list[str] - :param developer_app_insight_key: The Application Insights key - :type developer_app_insight_key: str - :param developer_app_insights_api_key: The Application Insights Api Key - :type developer_app_insights_api_key: str - :param developer_app_insights_application_id: The Application Insights App - Id - :type developer_app_insights_application_id: str - :param luis_app_ids: Collection of LUIS App Ids - :type luis_app_ids: list[str] - :param luis_key: The LUIS Key - :type luis_key: str - """ - - _validation = { - 'display_name': {'required': True}, - 'endpoint': {'required': True}, - 'endpoint_version': {'readonly': True}, - 'msa_app_id': {'required': True}, - 'configured_channels': {'readonly': True}, - 'enabled_channels': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, - 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, - 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, - 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, - 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, - 'developer_app_insights_api_key': {'key': 'developerAppInsightsApiKey', 'type': 'str'}, - 'developer_app_insights_application_id': {'key': 'developerAppInsightsApplicationId', 'type': 'str'}, - 'luis_app_ids': {'key': 'luisAppIds', 'type': '[str]'}, - 'luis_key': {'key': 'luisKey', 'type': 'str'}, - } - - def __init__(self, *, display_name: str, endpoint: str, msa_app_id: str, description: str=None, icon_url: str=None, developer_app_insight_key: str=None, developer_app_insights_api_key: str=None, developer_app_insights_application_id: str=None, luis_app_ids=None, luis_key: str=None, **kwargs) -> None: - super(BotProperties, self).__init__(**kwargs) - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.endpoint = endpoint - self.endpoint_version = None - self.msa_app_id = msa_app_id - self.configured_channels = None - self.enabled_channels = None - self.developer_app_insight_key = developer_app_insight_key - self.developer_app_insights_api_key = developer_app_insights_api_key - self.developer_app_insights_application_id = developer_app_insights_application_id - self.luis_app_ids = luis_app_ids - self.luis_key = luis_key diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_py3.py deleted file mode 100644 index c68447077439..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/bot_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class Bot(Resource): - """Bot resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot resource - :type properties: ~azure.mgmt.botservice.models.BotProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BotProperties'}, - } - - def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: - super(Bot, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel.py deleted file mode 100644 index fb953483c7d5..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Channel(Model): - """Channel definition. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: FacebookChannel, EmailChannel, MsTeamsChannel, - SkypeChannel, KikChannel, WebChatChannel, DirectLineChannel, - TelegramChannel, SmsChannel, SlackChannel - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - } - - _subtype_map = { - 'channel_name': {'FacebookChannel': 'FacebookChannel', 'EmailChannel': 'EmailChannel', 'MsTeamsChannel': 'MsTeamsChannel', 'SkypeChannel': 'SkypeChannel', 'KikChannel': 'KikChannel', 'WebChatChannel': 'WebChatChannel', 'DirectLineChannel': 'DirectLineChannel', 'TelegramChannel': 'TelegramChannel', 'SmsChannel': 'SmsChannel', 'SlackChannel': 'SlackChannel'} - } - - def __init__(self, **kwargs): - super(Channel, self).__init__(**kwargs) - self.channel_name = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel_py3.py deleted file mode 100644 index a1194366b5b8..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/channel_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Channel(Model): - """Channel definition. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: FacebookChannel, EmailChannel, MsTeamsChannel, - SkypeChannel, KikChannel, WebChatChannel, DirectLineChannel, - TelegramChannel, SmsChannel, SlackChannel - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - } - - _subtype_map = { - 'channel_name': {'FacebookChannel': 'FacebookChannel', 'EmailChannel': 'EmailChannel', 'MsTeamsChannel': 'MsTeamsChannel', 'SkypeChannel': 'SkypeChannel', 'KikChannel': 'KikChannel', 'WebChatChannel': 'WebChatChannel', 'DirectLineChannel': 'DirectLineChannel', 'TelegramChannel': 'TelegramChannel', 'SmsChannel': 'SmsChannel', 'SlackChannel': 'SlackChannel'} - } - - def __init__(self, **kwargs) -> None: - super(Channel, self).__init__(**kwargs) - self.channel_name = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body.py deleted file mode 100644 index ff60cb427088..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityRequestBody(Model): - """The request body for a request to Bot Service Management to check - availability of a bot name. - - :param name: the name of the bot for which availability needs to be - checked. - :type name: str - :param type: the type of the bot for which availability needs to be - checked - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityRequestBody, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body_py3.py deleted file mode 100644 index 809427793ead..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_request_body_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityRequestBody(Model): - """The request body for a request to Bot Service Management to check - availability of a bot name. - - :param name: the name of the bot for which availability needs to be - checked. - :type name: str - :param type: the type of the bot for which availability needs to be - checked - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: - super(CheckNameAvailabilityRequestBody, self).__init__(**kwargs) - self.name = name - self.type = type diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body.py deleted file mode 100644 index 093eef2cc2aa..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityResponseBody(Model): - """The response body returned for a request to Bot Service Management to check - availability of a bot name. - - :param valid: indicates if the bot name is valid. - :type valid: bool - :param message: additional message from the bot management api showing why - a bot name is not available - :type message: str - """ - - _attribute_map = { - 'valid': {'key': 'valid', 'type': 'bool'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityResponseBody, self).__init__(**kwargs) - self.valid = kwargs.get('valid', None) - self.message = kwargs.get('message', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body_py3.py deleted file mode 100644 index 0978b932dd61..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/check_name_availability_response_body_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityResponseBody(Model): - """The response body returned for a request to Bot Service Management to check - availability of a bot name. - - :param valid: indicates if the bot name is valid. - :type valid: bool - :param message: additional message from the bot management api showing why - a bot name is not available - :type message: str - """ - - _attribute_map = { - 'valid': {'key': 'valid', 'type': 'bool'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, valid: bool=None, message: str=None, **kwargs) -> None: - super(CheckNameAvailabilityResponseBody, self).__init__(**kwargs) - self.valid = valid - self.message = message diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name.py deleted file mode 100644 index bcf5c18f0e66..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionItemName(Model): - """The display name of a connection Item Setting registered with the Bot. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Connection Item name that has been added in the API - :vartype name: str - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ConnectionItemName, self).__init__(**kwargs) - self.name = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name_py3.py deleted file mode 100644 index 90a58e610be9..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_item_name_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionItemName(Model): - """The display name of a connection Item Setting registered with the Bot. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Connection Item name that has been added in the API - :vartype name: str - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectionItemName, self).__init__(**kwargs) - self.name = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting.py deleted file mode 100644 index dec1cdc63118..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ConnectionSetting(Resource): - """Bot channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot channel resource - :type properties: - ~azure.mgmt.botservice.models.ConnectionSettingProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, - } - - def __init__(self, **kwargs): - super(ConnectionSetting, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_paged.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_paged.py deleted file mode 100644 index 5708e4ee7ee3..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ConnectionSettingPaged(Paged): - """ - A paging container for iterating over a list of :class:`ConnectionSetting ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ConnectionSetting]'} - } - - def __init__(self, *args, **kwargs): - - super(ConnectionSettingPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter.py deleted file mode 100644 index b0fb3703d0a7..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionSettingParameter(Model): - """Extra Parameter in a Connection Setting Properties to indicate service - provider specific properties. - - :param key: Key for the Connection Setting Parameter. - :type key: str - :param value: Value associated with the Connection Setting Parameter. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ConnectionSettingParameter, self).__init__(**kwargs) - self.key = kwargs.get('key', None) - self.value = kwargs.get('value', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter_py3.py deleted file mode 100644 index 9126c281f852..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_parameter_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionSettingParameter(Model): - """Extra Parameter in a Connection Setting Properties to indicate service - provider specific properties. - - :param key: Key for the Connection Setting Parameter. - :type key: str - :param value: Value associated with the Connection Setting Parameter. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, key: str=None, value: str=None, **kwargs) -> None: - super(ConnectionSettingParameter, self).__init__(**kwargs) - self.key = key - self.value = value diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties.py deleted file mode 100644 index fca31c7edef0..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionSettingProperties(Model): - """Properties for a Connection Setting Item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param client_id: Client Id associated with the Connection Setting. - :type client_id: str - :ivar setting_id: Setting Id set by the service for the Connection - Setting. - :vartype setting_id: str - :param client_secret: Client Secret associated with the Connection Setting - :type client_secret: str - :param scopes: Scopes associated with the Connection Setting - :type scopes: str - :param service_provider_id: Service Provider Id associated with the - Connection Setting - :type service_provider_id: str - :param service_provider_display_name: Service Provider Display Name - associated with the Connection Setting - :type service_provider_display_name: str - :param parameters: Service Provider Parameters associated with the - Connection Setting - :type parameters: - list[~azure.mgmt.botservice.models.ConnectionSettingParameter] - """ - - _validation = { - 'setting_id': {'readonly': True}, - } - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'setting_id': {'key': 'settingId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': 'str'}, - 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, - 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, - } - - def __init__(self, **kwargs): - super(ConnectionSettingProperties, self).__init__(**kwargs) - self.client_id = kwargs.get('client_id', None) - self.setting_id = None - self.client_secret = kwargs.get('client_secret', None) - self.scopes = kwargs.get('scopes', None) - self.service_provider_id = kwargs.get('service_provider_id', None) - self.service_provider_display_name = kwargs.get('service_provider_display_name', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties_py3.py deleted file mode 100644 index 89613382f22a..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_properties_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectionSettingProperties(Model): - """Properties for a Connection Setting Item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param client_id: Client Id associated with the Connection Setting. - :type client_id: str - :ivar setting_id: Setting Id set by the service for the Connection - Setting. - :vartype setting_id: str - :param client_secret: Client Secret associated with the Connection Setting - :type client_secret: str - :param scopes: Scopes associated with the Connection Setting - :type scopes: str - :param service_provider_id: Service Provider Id associated with the - Connection Setting - :type service_provider_id: str - :param service_provider_display_name: Service Provider Display Name - associated with the Connection Setting - :type service_provider_display_name: str - :param parameters: Service Provider Parameters associated with the - Connection Setting - :type parameters: - list[~azure.mgmt.botservice.models.ConnectionSettingParameter] - """ - - _validation = { - 'setting_id': {'readonly': True}, - } - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'setting_id': {'key': 'settingId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': 'str'}, - 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, - 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, - } - - def __init__(self, *, client_id: str=None, client_secret: str=None, scopes: str=None, service_provider_id: str=None, service_provider_display_name: str=None, parameters=None, **kwargs) -> None: - super(ConnectionSettingProperties, self).__init__(**kwargs) - self.client_id = client_id - self.setting_id = None - self.client_secret = client_secret - self.scopes = scopes - self.service_provider_id = service_provider_id - self.service_provider_display_name = service_provider_display_name - self.parameters = parameters diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_py3.py deleted file mode 100644 index 12ab93de6219..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/connection_setting_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ConnectionSetting(Resource): - """Bot channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to bot channel resource - :type properties: - ~azure.mgmt.botservice.models.ConnectionSettingProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, - } - - def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: - super(ConnectionSetting, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel.py deleted file mode 100644 index dc1ed1782c6a..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class DirectLineChannel(Channel): - """Direct Line channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Direct Line channel - resource - :type properties: - ~azure.mgmt.botservice.models.DirectLineChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, - } - - def __init__(self, **kwargs): - super(DirectLineChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'DirectLineChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties.py deleted file mode 100644 index 67bcd592ff78..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DirectLineChannelProperties(Model): - """The parameters to provide for the Direct Line channel. - - :param sites: The list of Direct Line sites - :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] - """ - - _attribute_map = { - 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, - } - - def __init__(self, **kwargs): - super(DirectLineChannelProperties, self).__init__(**kwargs) - self.sites = kwargs.get('sites', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties_py3.py deleted file mode 100644 index a3741aa64ab3..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_properties_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DirectLineChannelProperties(Model): - """The parameters to provide for the Direct Line channel. - - :param sites: The list of Direct Line sites - :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] - """ - - _attribute_map = { - 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, - } - - def __init__(self, *, sites=None, **kwargs) -> None: - super(DirectLineChannelProperties, self).__init__(**kwargs) - self.sites = sites diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_py3.py deleted file mode 100644 index 069885574a54..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_channel_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class DirectLineChannel(Channel): - """Direct Line channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Direct Line channel - resource - :type properties: - ~azure.mgmt.botservice.models.DirectLineChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(DirectLineChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'DirectLineChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site.py deleted file mode 100644 index 2cf60241c4ce..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DirectLineSite(Model): - """A site for the Direct Line channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar site_id: Site Id - :vartype site_id: str - :param site_name: Required. Site name - :type site_name: str - :ivar key: Primary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key: str - :ivar key2: Secondary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key2: str - :param is_enabled: Required. Whether this site is enabled for DirectLine - channel. - :type is_enabled: bool - :param is_v1_enabled: Required. Whether this site is enabled for Bot - Framework V1 protocol. - :type is_v1_enabled: bool - :param is_v3_enabled: Required. Whether this site is enabled for Bot - Framework V1 protocol. - :type is_v3_enabled: bool - :param is_secure_site_enabled: Whether this site is enabled for - authentication with Bot Framework. - :type is_secure_site_enabled: bool - :param trusted_origins: List of Trusted Origin URLs for this site. This - field is applicable only if isSecureSiteEnabled is True. - :type trusted_origins: list[str] - """ - - _validation = { - 'site_id': {'readonly': True}, - 'site_name': {'required': True}, - 'key': {'readonly': True}, - 'key2': {'readonly': True}, - 'is_enabled': {'required': True}, - 'is_v1_enabled': {'required': True}, - 'is_v3_enabled': {'required': True}, - } - - _attribute_map = { - 'site_id': {'key': 'siteId', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'key2': {'key': 'key2', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, - 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, - 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, - 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DirectLineSite, self).__init__(**kwargs) - self.site_id = None - self.site_name = kwargs.get('site_name', None) - self.key = None - self.key2 = None - self.is_enabled = kwargs.get('is_enabled', None) - self.is_v1_enabled = kwargs.get('is_v1_enabled', None) - self.is_v3_enabled = kwargs.get('is_v3_enabled', None) - self.is_secure_site_enabled = kwargs.get('is_secure_site_enabled', None) - self.trusted_origins = kwargs.get('trusted_origins', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site_py3.py deleted file mode 100644 index fc037c203af8..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/direct_line_site_py3.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DirectLineSite(Model): - """A site for the Direct Line channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar site_id: Site Id - :vartype site_id: str - :param site_name: Required. Site name - :type site_name: str - :ivar key: Primary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key: str - :ivar key2: Secondary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key2: str - :param is_enabled: Required. Whether this site is enabled for DirectLine - channel. - :type is_enabled: bool - :param is_v1_enabled: Required. Whether this site is enabled for Bot - Framework V1 protocol. - :type is_v1_enabled: bool - :param is_v3_enabled: Required. Whether this site is enabled for Bot - Framework V1 protocol. - :type is_v3_enabled: bool - :param is_secure_site_enabled: Whether this site is enabled for - authentication with Bot Framework. - :type is_secure_site_enabled: bool - :param trusted_origins: List of Trusted Origin URLs for this site. This - field is applicable only if isSecureSiteEnabled is True. - :type trusted_origins: list[str] - """ - - _validation = { - 'site_id': {'readonly': True}, - 'site_name': {'required': True}, - 'key': {'readonly': True}, - 'key2': {'readonly': True}, - 'is_enabled': {'required': True}, - 'is_v1_enabled': {'required': True}, - 'is_v3_enabled': {'required': True}, - } - - _attribute_map = { - 'site_id': {'key': 'siteId', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'key2': {'key': 'key2', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, - 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, - 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, - 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, - } - - def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_v3_enabled: bool, is_secure_site_enabled: bool=None, trusted_origins=None, **kwargs) -> None: - super(DirectLineSite, self).__init__(**kwargs) - self.site_id = None - self.site_name = site_name - self.key = None - self.key2 = None - self.is_enabled = is_enabled - self.is_v1_enabled = is_v1_enabled - self.is_v3_enabled = is_v3_enabled - self.is_secure_site_enabled = is_secure_site_enabled - self.trusted_origins = trusted_origins diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel.py deleted file mode 100644 index d398a52ffcbe..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class EmailChannel(Channel): - """Email channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to email channel - resource - :type properties: ~azure.mgmt.botservice.models.EmailChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, - } - - def __init__(self, **kwargs): - super(EmailChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'EmailChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties.py deleted file mode 100644 index 3c970507b075..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EmailChannelProperties(Model): - """The parameters to provide for the Email channel. - - All required parameters must be populated in order to send to Azure. - - :param email_address: Required. The email address - :type email_address: str - :param password: Required. The password for the email address. Value only - returned through POST to the action Channel List API, otherwise empty. - :type password: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'email_address': {'required': True}, - 'password': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'email_address': {'key': 'emailAddress', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(EmailChannelProperties, self).__init__(**kwargs) - self.email_address = kwargs.get('email_address', None) - self.password = kwargs.get('password', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties_py3.py deleted file mode 100644 index b4fd0ddcb684..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_properties_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EmailChannelProperties(Model): - """The parameters to provide for the Email channel. - - All required parameters must be populated in order to send to Azure. - - :param email_address: Required. The email address - :type email_address: str - :param password: Required. The password for the email address. Value only - returned through POST to the action Channel List API, otherwise empty. - :type password: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'email_address': {'required': True}, - 'password': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'email_address': {'key': 'emailAddress', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, email_address: str, password: str, is_enabled: bool, **kwargs) -> None: - super(EmailChannelProperties, self).__init__(**kwargs) - self.email_address = email_address - self.password = password - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_py3.py deleted file mode 100644 index 7a9e9af59e74..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class EmailChannel(Channel): - """Email channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to email channel - resource - :type properties: ~azure.mgmt.botservice.models.EmailChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(EmailChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'EmailChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel.py deleted file mode 100644 index 82ace9ff145b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class EnterpriseChannel(Resource): - """Enterprise Channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to an Enterprise Channel - resource. - :type properties: - ~azure.mgmt.botservice.models.EnterpriseChannelProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'EnterpriseChannelProperties'}, - } - - def __init__(self, **kwargs): - super(EnterpriseChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request.py deleted file mode 100644 index 01499b6d32b3..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelCheckNameAvailabilityRequest(Model): - """A request to Bot Service Management to check availability of an Enterprise - Channel name. - - :param name: The name of the Enterprise Channel for which availability - needs to be checked. - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnterpriseChannelCheckNameAvailabilityRequest, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request_py3.py deleted file mode 100644 index 996cf96c1ee9..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_request_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelCheckNameAvailabilityRequest(Model): - """A request to Bot Service Management to check availability of an Enterprise - Channel name. - - :param name: The name of the Enterprise Channel for which availability - needs to be checked. - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, **kwargs) -> None: - super(EnterpriseChannelCheckNameAvailabilityRequest, self).__init__(**kwargs) - self.name = name diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response.py deleted file mode 100644 index 2c063c6f37fc..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelCheckNameAvailabilityResponse(Model): - """A request to Bot Service Management to check availability of an Enterprise - Channel name. - - :param valid: Indicates if the Enterprise Channel name is valid. - :type valid: bool - :param message: Additional information about why a bot name is not - available. - :type message: str - """ - - _attribute_map = { - 'valid': {'key': 'valid', 'type': 'bool'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnterpriseChannelCheckNameAvailabilityResponse, self).__init__(**kwargs) - self.valid = kwargs.get('valid', None) - self.message = kwargs.get('message', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response_py3.py deleted file mode 100644 index d23be097c57c..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_check_name_availability_response_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelCheckNameAvailabilityResponse(Model): - """A request to Bot Service Management to check availability of an Enterprise - Channel name. - - :param valid: Indicates if the Enterprise Channel name is valid. - :type valid: bool - :param message: Additional information about why a bot name is not - available. - :type message: str - """ - - _attribute_map = { - 'valid': {'key': 'valid', 'type': 'bool'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, valid: bool=None, message: str=None, **kwargs) -> None: - super(EnterpriseChannelCheckNameAvailabilityResponse, self).__init__(**kwargs) - self.valid = valid - self.message = message diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node.py deleted file mode 100644 index 44b4bd2578b1..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelNode(Model): - """The properties specific to an Enterprise Channel Node. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Id of Enterprise Channel Node. This is generated by the Bot - Framework. - :vartype id: str - :param state: The current state of the Enterprise Channel Node. Possible - values include: 'Creating', 'CreateFailed', 'Started', 'Starting', - 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', - 'DeleteFailed' - :type state: str or - ~azure.mgmt.botservice.models.EnterpriseChannelNodeState - :param name: Required. The name of the Enterprise Channel Node. - :type name: str - :param azure_sku: Required. The sku of the Enterprise Channel Node. - :type azure_sku: str - :param azure_location: Required. The location of the Enterprise Channel - Node. - :type azure_location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - 'azure_sku': {'required': True}, - 'azure_location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'azure_sku': {'key': 'azureSku', 'type': 'str'}, - 'azure_location': {'key': 'azureLocation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnterpriseChannelNode, self).__init__(**kwargs) - self.id = None - self.state = kwargs.get('state', None) - self.name = kwargs.get('name', None) - self.azure_sku = kwargs.get('azure_sku', None) - self.azure_location = kwargs.get('azure_location', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node_py3.py deleted file mode 100644 index d43c220b0e04..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelNode(Model): - """The properties specific to an Enterprise Channel Node. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Id of Enterprise Channel Node. This is generated by the Bot - Framework. - :vartype id: str - :param state: The current state of the Enterprise Channel Node. Possible - values include: 'Creating', 'CreateFailed', 'Started', 'Starting', - 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', - 'DeleteFailed' - :type state: str or - ~azure.mgmt.botservice.models.EnterpriseChannelNodeState - :param name: Required. The name of the Enterprise Channel Node. - :type name: str - :param azure_sku: Required. The sku of the Enterprise Channel Node. - :type azure_sku: str - :param azure_location: Required. The location of the Enterprise Channel - Node. - :type azure_location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - 'azure_sku': {'required': True}, - 'azure_location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'azure_sku': {'key': 'azureSku', 'type': 'str'}, - 'azure_location': {'key': 'azureLocation', 'type': 'str'}, - } - - def __init__(self, *, name: str, azure_sku: str, azure_location: str, state=None, **kwargs) -> None: - super(EnterpriseChannelNode, self).__init__(**kwargs) - self.id = None - self.state = state - self.name = name - self.azure_sku = azure_sku - self.azure_location = azure_location diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_paged.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_paged.py deleted file mode 100644 index b54c425b681b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class EnterpriseChannelPaged(Paged): - """ - A paging container for iterating over a list of :class:`EnterpriseChannel ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[EnterpriseChannel]'} - } - - def __init__(self, *args, **kwargs): - - super(EnterpriseChannelPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties.py deleted file mode 100644 index 87802c47dac5..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelProperties(Model): - """The parameters to provide for the Enterprise Channel. - - All required parameters must be populated in order to send to Azure. - - :param state: The current state of the Enterprise Channel. Possible values - include: 'Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', - 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed' - :type state: str or ~azure.mgmt.botservice.models.EnterpriseChannelState - :param nodes: Required. The nodes associated with the Enterprise Channel. - :type nodes: list[~azure.mgmt.botservice.models.EnterpriseChannelNode] - """ - - _validation = { - 'nodes': {'required': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'nodes': {'key': 'nodes', 'type': '[EnterpriseChannelNode]'}, - } - - def __init__(self, **kwargs): - super(EnterpriseChannelProperties, self).__init__(**kwargs) - self.state = kwargs.get('state', None) - self.nodes = kwargs.get('nodes', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties_py3.py deleted file mode 100644 index 0093bc6b1d68..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_properties_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EnterpriseChannelProperties(Model): - """The parameters to provide for the Enterprise Channel. - - All required parameters must be populated in order to send to Azure. - - :param state: The current state of the Enterprise Channel. Possible values - include: 'Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', - 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed' - :type state: str or ~azure.mgmt.botservice.models.EnterpriseChannelState - :param nodes: Required. The nodes associated with the Enterprise Channel. - :type nodes: list[~azure.mgmt.botservice.models.EnterpriseChannelNode] - """ - - _validation = { - 'nodes': {'required': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'nodes': {'key': 'nodes', 'type': '[EnterpriseChannelNode]'}, - } - - def __init__(self, *, nodes, state=None, **kwargs) -> None: - super(EnterpriseChannelProperties, self).__init__(**kwargs) - self.state = state - self.nodes = nodes diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_py3.py deleted file mode 100644 index d1b884c6d999..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class EnterpriseChannel(Resource): - """Enterprise Channel resource definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to an Enterprise Channel - resource. - :type properties: - ~azure.mgmt.botservice.models.EnterpriseChannelProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'EnterpriseChannelProperties'}, - } - - def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, **kwargs) -> None: - super(EnterpriseChannel, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, **kwargs) - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error.py deleted file mode 100644 index 5e0c7ee93e3f..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Bot Service error object. - - :param error: The error body. - :type error: ~azure.mgmt.botservice.models.ErrorBody - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorBody'}, - } - - def __init__(self, **kwargs): - super(Error, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body.py deleted file mode 100644 index f10254873280..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorBody(Model): - """Bot Service error body. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. error code - :type code: str - :param message: Required. error message - :type message: str - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorBody, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body_py3.py deleted file mode 100644 index 3b3f878af285..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_body_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorBody(Model): - """Bot Service error body. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. error code - :type code: str - :param message: Required. error message - :type message: str - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str, message: str, **kwargs) -> None: - super(ErrorBody, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_py3.py deleted file mode 100644 index cee9d2eb7904..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/error_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Bot Service error object. - - :param error: The error body. - :type error: ~azure.mgmt.botservice.models.ErrorBody - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorBody'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(Error, self).__init__(**kwargs) - self.error = error - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel.py deleted file mode 100644 index fbb18f5a8cd9..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class FacebookChannel(Channel): - """Facebook channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to bot facebook channel - :type properties: ~azure.mgmt.botservice.models.FacebookChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, - } - - def __init__(self, **kwargs): - super(FacebookChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'FacebookChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties.py deleted file mode 100644 index 934885b5b4f9..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FacebookChannelProperties(Model): - """The parameters to provide for the Facebook channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar verify_token: Verify token. Value only returned through POST to the - action Channel List API, otherwise empty. - :vartype verify_token: str - :param pages: The list of Facebook pages - :type pages: list[~azure.mgmt.botservice.models.FacebookPage] - :param app_id: Required. Facebook application id - :type app_id: str - :param app_secret: Required. Facebook application secret. Value only - returned through POST to the action Channel List API, otherwise empty. - :type app_secret: str - :ivar callback_url: Callback Url - :vartype callback_url: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'verify_token': {'readonly': True}, - 'app_id': {'required': True}, - 'app_secret': {'required': True}, - 'callback_url': {'readonly': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'verify_token': {'key': 'verifyToken', 'type': 'str'}, - 'pages': {'key': 'pages', 'type': '[FacebookPage]'}, - 'app_id': {'key': 'appId', 'type': 'str'}, - 'app_secret': {'key': 'appSecret', 'type': 'str'}, - 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(FacebookChannelProperties, self).__init__(**kwargs) - self.verify_token = None - self.pages = kwargs.get('pages', None) - self.app_id = kwargs.get('app_id', None) - self.app_secret = kwargs.get('app_secret', None) - self.callback_url = None - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties_py3.py deleted file mode 100644 index 3dd59c2216be..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_properties_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FacebookChannelProperties(Model): - """The parameters to provide for the Facebook channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar verify_token: Verify token. Value only returned through POST to the - action Channel List API, otherwise empty. - :vartype verify_token: str - :param pages: The list of Facebook pages - :type pages: list[~azure.mgmt.botservice.models.FacebookPage] - :param app_id: Required. Facebook application id - :type app_id: str - :param app_secret: Required. Facebook application secret. Value only - returned through POST to the action Channel List API, otherwise empty. - :type app_secret: str - :ivar callback_url: Callback Url - :vartype callback_url: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'verify_token': {'readonly': True}, - 'app_id': {'required': True}, - 'app_secret': {'required': True}, - 'callback_url': {'readonly': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'verify_token': {'key': 'verifyToken', 'type': 'str'}, - 'pages': {'key': 'pages', 'type': '[FacebookPage]'}, - 'app_id': {'key': 'appId', 'type': 'str'}, - 'app_secret': {'key': 'appSecret', 'type': 'str'}, - 'callback_url': {'key': 'callbackUrl', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, app_id: str, app_secret: str, is_enabled: bool, pages=None, **kwargs) -> None: - super(FacebookChannelProperties, self).__init__(**kwargs) - self.verify_token = None - self.pages = pages - self.app_id = app_id - self.app_secret = app_secret - self.callback_url = None - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_py3.py deleted file mode 100644 index ec43910d6288..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_channel_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class FacebookChannel(Channel): - """Facebook channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to bot facebook channel - :type properties: ~azure.mgmt.botservice.models.FacebookChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(FacebookChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'FacebookChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page.py deleted file mode 100644 index d166751656d2..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FacebookPage(Model): - """A Facebook page for Facebook channel registration. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Page id - :type id: str - :param access_token: Required. Facebook application access token. Value - only returned through POST to the action Channel List API, otherwise - empty. - :type access_token: str - """ - - _validation = { - 'id': {'required': True}, - 'access_token': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'access_token': {'key': 'accessToken', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FacebookPage, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.access_token = kwargs.get('access_token', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page_py3.py deleted file mode 100644 index a0045ba8c742..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/facebook_page_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FacebookPage(Model): - """A Facebook page for Facebook channel registration. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Page id - :type id: str - :param access_token: Required. Facebook application access token. Value - only returned through POST to the action Channel List API, otherwise - empty. - :type access_token: str - """ - - _validation = { - 'id': {'required': True}, - 'access_token': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'access_token': {'key': 'accessToken', 'type': 'str'}, - } - - def __init__(self, *, id: str, access_token: str, **kwargs) -> None: - super(FacebookPage, self).__init__(**kwargs) - self.id = id - self.access_token = access_token diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel.py deleted file mode 100644 index 491802b33a1e..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class KikChannel(Channel): - """Kik channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Kik channel resource - :type properties: ~azure.mgmt.botservice.models.KikChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, - } - - def __init__(self, **kwargs): - super(KikChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'KikChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties.py deleted file mode 100644 index 63a07f3ee87e..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KikChannelProperties(Model): - """The parameters to provide for the Kik channel. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The Kik user name - :type user_name: str - :param api_key: Required. Kik API key. Value only returned through POST to - the action Channel List API, otherwise empty. - :type api_key: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'user_name': {'required': True}, - 'api_key': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'api_key': {'key': 'apiKey', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(KikChannelProperties, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.api_key = kwargs.get('api_key', None) - self.is_validated = kwargs.get('is_validated', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties_py3.py deleted file mode 100644 index ee17a9af670b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_properties_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KikChannelProperties(Model): - """The parameters to provide for the Kik channel. - - All required parameters must be populated in order to send to Azure. - - :param user_name: Required. The Kik user name - :type user_name: str - :param api_key: Required. Kik API key. Value only returned through POST to - the action Channel List API, otherwise empty. - :type api_key: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'user_name': {'required': True}, - 'api_key': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'api_key': {'key': 'apiKey', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, user_name: str, api_key: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: - super(KikChannelProperties, self).__init__(**kwargs) - self.user_name = user_name - self.api_key = api_key - self.is_validated = is_validated - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_py3.py deleted file mode 100644 index 9cfbff1611bf..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/kik_channel_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class KikChannel(Channel): - """Kik channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Kik channel resource - :type properties: ~azure.mgmt.botservice.models.KikChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(KikChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'KikChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel.py deleted file mode 100644 index 9ae44eaa130b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class MsTeamsChannel(Channel): - """Microsoft Teams channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Microsoft Teams - channel resource - :type properties: ~azure.mgmt.botservice.models.MsTeamsChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, - } - - def __init__(self, **kwargs): - super(MsTeamsChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'MsTeamsChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties.py deleted file mode 100644 index 8662da90b46c..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MsTeamsChannelProperties(Model): - """The parameters to provide for the Microsoft Teams channel. - - All required parameters must be populated in order to send to Azure. - - :param enable_calling: Enable calling for Microsoft Teams channel - :type enable_calling: bool - :param calling_web_hook: Webhook for Microsoft Teams channel calls - :type calling_web_hook: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, - 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MsTeamsChannelProperties, self).__init__(**kwargs) - self.enable_calling = kwargs.get('enable_calling', None) - self.calling_web_hook = kwargs.get('calling_web_hook', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties_py3.py deleted file mode 100644 index 5051297c3e63..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_properties_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MsTeamsChannelProperties(Model): - """The parameters to provide for the Microsoft Teams channel. - - All required parameters must be populated in order to send to Azure. - - :param enable_calling: Enable calling for Microsoft Teams channel - :type enable_calling: bool - :param calling_web_hook: Webhook for Microsoft Teams channel calls - :type calling_web_hook: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, - 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, is_enabled: bool, enable_calling: bool=None, calling_web_hook: str=None, **kwargs) -> None: - super(MsTeamsChannelProperties, self).__init__(**kwargs) - self.enable_calling = enable_calling - self.calling_web_hook = calling_web_hook - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_py3.py deleted file mode 100644 index b683d051282b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/ms_teams_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class MsTeamsChannel(Channel): - """Microsoft Teams channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Microsoft Teams - channel resource - :type properties: ~azure.mgmt.botservice.models.MsTeamsChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(MsTeamsChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'MsTeamsChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info.py deleted file mode 100644 index 33cad37365ce..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplayInfo(Model): - """The operation supported by Bot Service Management. - - :param description: The description of the operation. - :type description: str - :param operation: The action that users can perform, based on their - permission level. - :type operation: str - :param provider: Service provider: Microsoft Bot Service. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplayInfo, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.operation = kwargs.get('operation', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info_py3.py deleted file mode 100644 index b136b8bdccf0..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_display_info_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplayInfo(Model): - """The operation supported by Bot Service Management. - - :param description: The description of the operation. - :type description: str - :param operation: The action that users can perform, based on their - permission level. - :type operation: str - :param provider: Service provider: Microsoft Bot Service. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: - super(OperationDisplayInfo, self).__init__(**kwargs) - self.description = description - self.operation = operation - self.provider = provider - self.resource = resource diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity.py deleted file mode 100644 index bb886b0f762b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationEntity(Model): - """The operations supported by Bot Service Management. - - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The operation supported by Bot Service Management. - :type display: ~azure.mgmt.botservice.models.OperationDisplayInfo - :param origin: The origin of the operation. - :type origin: str - :param properties: Additional properties. - :type properties: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(OperationEntity, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_paged.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_paged.py deleted file mode 100644 index f9016021095d..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationEntityPaged(Paged): - """ - A paging container for iterating over a list of :class:`OperationEntity ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[OperationEntity]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationEntityPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_py3.py deleted file mode 100644 index 95bff1f76590..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/operation_entity_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationEntity(Model): - """The operations supported by Bot Service Management. - - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The operation supported by Bot Service Management. - :type display: ~azure.mgmt.botservice.models.OperationDisplayInfo - :param origin: The origin of the operation. - :type origin: str - :param properties: Additional properties. - :type properties: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: - super(OperationEntity, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource.py deleted file mode 100644 index cf9218331460..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Azure resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.location = kwargs.get('location', None) - self.type = None - self.tags = kwargs.get('tags', None) - self.sku = kwargs.get('sku', None) - self.kind = kwargs.get('kind', None) - self.etag = kwargs.get('etag', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource_py3.py deleted file mode 100644 index ee1377c1ce4b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/resource_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Azure resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Specifies the resource ID. - :vartype id: str - :ivar name: Specifies the name of the resource. - :vartype name: str - :param location: Specifies the location of the resource. - :type location: str - :ivar type: Specifies the type of the resource. - :vartype type: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.location = location - self.type = None - self.tags = tags - self.sku = sku - self.kind = kind - self.etag = etag diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider.py deleted file mode 100644 index cf50bec2ae1f..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProvider(Model): - """Service Provider Definition. - - :param properties: The Properties of a Service Provider Object - :type properties: ~azure.mgmt.botservice.models.ServiceProviderProperties - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'ServiceProviderProperties'}, - } - - def __init__(self, **kwargs): - super(ServiceProvider, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter.py deleted file mode 100644 index e72f95f1b8e8..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderParameter(Model): - """Extra Parameters specific to each Service Provider. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the Service Provider - :vartype name: str - :ivar type: Type of the Service Provider - :vartype type: str - :ivar display_name: Display Name of the Service Provider - :vartype display_name: str - :ivar description: Description of the Service Provider - :vartype description: str - :ivar help_url: Help Url for the Service Provider - :vartype help_url: str - :ivar default: Default Name for the Service Provider - :vartype default: str - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'help_url': {'readonly': True}, - 'default': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'help_url': {'key': 'helpUrl', 'type': 'str'}, - 'default': {'key': 'default', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceProviderParameter, self).__init__(**kwargs) - self.name = None - self.type = None - self.display_name = None - self.description = None - self.help_url = None - self.default = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter_py3.py deleted file mode 100644 index 7d1f5664af8c..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_parameter_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderParameter(Model): - """Extra Parameters specific to each Service Provider. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the Service Provider - :vartype name: str - :ivar type: Type of the Service Provider - :vartype type: str - :ivar display_name: Display Name of the Service Provider - :vartype display_name: str - :ivar description: Description of the Service Provider - :vartype description: str - :ivar help_url: Help Url for the Service Provider - :vartype help_url: str - :ivar default: Default Name for the Service Provider - :vartype default: str - """ - - _validation = { - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'display_name': {'readonly': True}, - 'description': {'readonly': True}, - 'help_url': {'readonly': True}, - 'default': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'help_url': {'key': 'helpUrl', 'type': 'str'}, - 'default': {'key': 'default', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ServiceProviderParameter, self).__init__(**kwargs) - self.name = None - self.type = None - self.display_name = None - self.description = None - self.help_url = None - self.default = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties.py deleted file mode 100644 index 7a60abb7fb29..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderProperties(Model): - """The Object used to describe a Service Provider supported by Bot Service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Id for Service Provider - :vartype id: str - :ivar display_name: Display Name of the Service Provider - :vartype display_name: str - :ivar service_provider_name: Display Name of the Service Provider - :vartype service_provider_name: str - :ivar dev_portal_url: Display Name of the Service Provider - :vartype dev_portal_url: str - :ivar icon_url: Display Name of the Service Provider - :vartype icon_url: str - :param parameters: The list of parameters for the Service Provider - :type parameters: - list[~azure.mgmt.botservice.models.ServiceProviderParameter] - """ - - _validation = { - 'id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'service_provider_name': {'readonly': True}, - 'dev_portal_url': {'readonly': True}, - 'icon_url': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, - 'dev_portal_url': {'key': 'devPortalUrl', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ServiceProviderParameter]'}, - } - - def __init__(self, **kwargs): - super(ServiceProviderProperties, self).__init__(**kwargs) - self.id = None - self.display_name = None - self.service_provider_name = None - self.dev_portal_url = None - self.icon_url = None - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties_py3.py deleted file mode 100644 index 92cf605eb362..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_properties_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderProperties(Model): - """The Object used to describe a Service Provider supported by Bot Service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Id for Service Provider - :vartype id: str - :ivar display_name: Display Name of the Service Provider - :vartype display_name: str - :ivar service_provider_name: Display Name of the Service Provider - :vartype service_provider_name: str - :ivar dev_portal_url: Display Name of the Service Provider - :vartype dev_portal_url: str - :ivar icon_url: Display Name of the Service Provider - :vartype icon_url: str - :param parameters: The list of parameters for the Service Provider - :type parameters: - list[~azure.mgmt.botservice.models.ServiceProviderParameter] - """ - - _validation = { - 'id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'service_provider_name': {'readonly': True}, - 'dev_portal_url': {'readonly': True}, - 'icon_url': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, - 'dev_portal_url': {'key': 'devPortalUrl', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[ServiceProviderParameter]'}, - } - - def __init__(self, *, parameters=None, **kwargs) -> None: - super(ServiceProviderProperties, self).__init__(**kwargs) - self.id = None - self.display_name = None - self.service_provider_name = None - self.dev_portal_url = None - self.icon_url = None - self.parameters = parameters diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_py3.py deleted file mode 100644 index 86ee2d94e5d0..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProvider(Model): - """Service Provider Definition. - - :param properties: The Properties of a Service Provider Object - :type properties: ~azure.mgmt.botservice.models.ServiceProviderProperties - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'ServiceProviderProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(ServiceProvider, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list.py deleted file mode 100644 index 4d2ab214edb0..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderResponseList(Model): - """The list of bot service service providers response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param next_link: The link used to get the next page of bot service - service providers. - :type next_link: str - :ivar value: Gets the list of bot service service providers and their - properties. - :vartype value: list[~azure.mgmt.botservice.models.ServiceProvider] - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceProvider]'}, - } - - def __init__(self, **kwargs): - super(ServiceProviderResponseList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.value = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list_py3.py deleted file mode 100644 index 207afd213bc6..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/service_provider_response_list_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProviderResponseList(Model): - """The list of bot service service providers response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param next_link: The link used to get the next page of bot service - service providers. - :type next_link: str - :ivar value: Gets the list of bot service service providers and their - properties. - :vartype value: list[~azure.mgmt.botservice.models.ServiceProvider] - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServiceProvider]'}, - } - - def __init__(self, *, next_link: str=None, **kwargs) -> None: - super(ServiceProviderResponseList, self).__init__(**kwargs) - self.next_link = next_link - self.value = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku.py deleted file mode 100644 index e06cf94ad50c..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """The SKU of the cognitive services account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The sku name. Possible values include: 'F0', 'S1' - :type name: str or ~azure.mgmt.botservice.models.SkuName - :ivar tier: Gets the sku tier. This is based on the SKU name. Possible - values include: 'Free', 'Standard' - :vartype tier: str or ~azure.mgmt.botservice.models.SkuTier - """ - - _validation = { - 'name': {'required': True}, - 'tier': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku_py3.py deleted file mode 100644 index 76b5c0fc7993..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sku_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """The SKU of the cognitive services account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The sku name. Possible values include: 'F0', 'S1' - :type name: str or ~azure.mgmt.botservice.models.SkuName - :ivar tier: Gets the sku tier. This is based on the SKU name. Possible - values include: 'Free', 'Standard' - :vartype tier: str or ~azure.mgmt.botservice.models.SkuTier - """ - - _validation = { - 'name': {'required': True}, - 'tier': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = None diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel.py deleted file mode 100644 index 4c30e874de49..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class SkypeChannel(Channel): - """Skype channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Skype channel - resource - :type properties: ~azure.mgmt.botservice.models.SkypeChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, - } - - def __init__(self, **kwargs): - super(SkypeChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'SkypeChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties.py deleted file mode 100644 index aa9c20f0b6cd..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SkypeChannelProperties(Model): - """The parameters to provide for the Microsoft Teams channel. - - All required parameters must be populated in order to send to Azure. - - :param enable_messaging: Enable messaging for Skype channel - :type enable_messaging: bool - :param enable_media_cards: Enable media cards for Skype channel - :type enable_media_cards: bool - :param enable_video: Enable video for Skype channel - :type enable_video: bool - :param enable_calling: Enable calling for Skype channel - :type enable_calling: bool - :param enable_screen_sharing: Enable screen sharing for Skype channel - :type enable_screen_sharing: bool - :param enable_groups: Enable groups for Skype channel - :type enable_groups: bool - :param groups_mode: Group mode for Skype channel - :type groups_mode: str - :param calling_web_hook: Calling web hook for Skype channel - :type calling_web_hook: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'enable_messaging': {'key': 'enableMessaging', 'type': 'bool'}, - 'enable_media_cards': {'key': 'enableMediaCards', 'type': 'bool'}, - 'enable_video': {'key': 'enableVideo', 'type': 'bool'}, - 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, - 'enable_screen_sharing': {'key': 'enableScreenSharing', 'type': 'bool'}, - 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, - 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, - 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(SkypeChannelProperties, self).__init__(**kwargs) - self.enable_messaging = kwargs.get('enable_messaging', None) - self.enable_media_cards = kwargs.get('enable_media_cards', None) - self.enable_video = kwargs.get('enable_video', None) - self.enable_calling = kwargs.get('enable_calling', None) - self.enable_screen_sharing = kwargs.get('enable_screen_sharing', None) - self.enable_groups = kwargs.get('enable_groups', None) - self.groups_mode = kwargs.get('groups_mode', None) - self.calling_web_hook = kwargs.get('calling_web_hook', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties_py3.py deleted file mode 100644 index 9cefa0d127ec..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_properties_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SkypeChannelProperties(Model): - """The parameters to provide for the Microsoft Teams channel. - - All required parameters must be populated in order to send to Azure. - - :param enable_messaging: Enable messaging for Skype channel - :type enable_messaging: bool - :param enable_media_cards: Enable media cards for Skype channel - :type enable_media_cards: bool - :param enable_video: Enable video for Skype channel - :type enable_video: bool - :param enable_calling: Enable calling for Skype channel - :type enable_calling: bool - :param enable_screen_sharing: Enable screen sharing for Skype channel - :type enable_screen_sharing: bool - :param enable_groups: Enable groups for Skype channel - :type enable_groups: bool - :param groups_mode: Group mode for Skype channel - :type groups_mode: str - :param calling_web_hook: Calling web hook for Skype channel - :type calling_web_hook: str - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'enable_messaging': {'key': 'enableMessaging', 'type': 'bool'}, - 'enable_media_cards': {'key': 'enableMediaCards', 'type': 'bool'}, - 'enable_video': {'key': 'enableVideo', 'type': 'bool'}, - 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, - 'enable_screen_sharing': {'key': 'enableScreenSharing', 'type': 'bool'}, - 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, - 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, - 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, is_enabled: bool, enable_messaging: bool=None, enable_media_cards: bool=None, enable_video: bool=None, enable_calling: bool=None, enable_screen_sharing: bool=None, enable_groups: bool=None, groups_mode: str=None, calling_web_hook: str=None, **kwargs) -> None: - super(SkypeChannelProperties, self).__init__(**kwargs) - self.enable_messaging = enable_messaging - self.enable_media_cards = enable_media_cards - self.enable_video = enable_video - self.enable_calling = enable_calling - self.enable_screen_sharing = enable_screen_sharing - self.enable_groups = enable_groups - self.groups_mode = groups_mode - self.calling_web_hook = calling_web_hook - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_py3.py deleted file mode 100644 index e14a4d01fffb..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/skype_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class SkypeChannel(Channel): - """Skype channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Skype channel - resource - :type properties: ~azure.mgmt.botservice.models.SkypeChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(SkypeChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'SkypeChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel.py deleted file mode 100644 index 102b7c5c4860..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class SlackChannel(Channel): - """Slack channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Slack channel - resource - :type properties: ~azure.mgmt.botservice.models.SlackChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, - } - - def __init__(self, **kwargs): - super(SlackChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'SlackChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties.py deleted file mode 100644 index f9ff04d41cf8..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SlackChannelProperties(Model): - """The parameters to provide for the Slack channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param client_id: Required. The Slack client id - :type client_id: str - :param client_secret: Required. The Slack client secret. Value only - returned through POST to the action Channel List API, otherwise empty. - :type client_secret: str - :param verification_token: Required. The Slack verification token. Value - only returned through POST to the action Channel List API, otherwise - empty. - :type verification_token: str - :param landing_page_url: The Slack landing page Url - :type landing_page_url: str - :ivar redirect_action: The Slack redirect action - :vartype redirect_action: str - :ivar last_submission_id: The Sms auth token - :vartype last_submission_id: str - :ivar register_before_oauth_flow: Whether to register the settings before - OAuth validation is performed. Recommended to True. - :vartype register_before_oauth_flow: bool - :ivar is_validated: Whether this channel is validated for the bot - :vartype is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'client_id': {'required': True}, - 'client_secret': {'required': True}, - 'verification_token': {'required': True}, - 'redirect_action': {'readonly': True}, - 'last_submission_id': {'readonly': True}, - 'register_before_oauth_flow': {'readonly': True}, - 'is_validated': {'readonly': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'verification_token': {'key': 'verificationToken', 'type': 'str'}, - 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, - 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, - 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, - 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(SlackChannelProperties, self).__init__(**kwargs) - self.client_id = kwargs.get('client_id', None) - self.client_secret = kwargs.get('client_secret', None) - self.verification_token = kwargs.get('verification_token', None) - self.landing_page_url = kwargs.get('landing_page_url', None) - self.redirect_action = None - self.last_submission_id = None - self.register_before_oauth_flow = None - self.is_validated = None - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties_py3.py deleted file mode 100644 index 424ed52760fa..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_properties_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SlackChannelProperties(Model): - """The parameters to provide for the Slack channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param client_id: Required. The Slack client id - :type client_id: str - :param client_secret: Required. The Slack client secret. Value only - returned through POST to the action Channel List API, otherwise empty. - :type client_secret: str - :param verification_token: Required. The Slack verification token. Value - only returned through POST to the action Channel List API, otherwise - empty. - :type verification_token: str - :param landing_page_url: The Slack landing page Url - :type landing_page_url: str - :ivar redirect_action: The Slack redirect action - :vartype redirect_action: str - :ivar last_submission_id: The Sms auth token - :vartype last_submission_id: str - :ivar register_before_oauth_flow: Whether to register the settings before - OAuth validation is performed. Recommended to True. - :vartype register_before_oauth_flow: bool - :ivar is_validated: Whether this channel is validated for the bot - :vartype is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'client_id': {'required': True}, - 'client_secret': {'required': True}, - 'verification_token': {'required': True}, - 'redirect_action': {'readonly': True}, - 'last_submission_id': {'readonly': True}, - 'register_before_oauth_flow': {'readonly': True}, - 'is_validated': {'readonly': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'verification_token': {'key': 'verificationToken', 'type': 'str'}, - 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, - 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, - 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, - 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, client_id: str, client_secret: str, verification_token: str, is_enabled: bool, landing_page_url: str=None, **kwargs) -> None: - super(SlackChannelProperties, self).__init__(**kwargs) - self.client_id = client_id - self.client_secret = client_secret - self.verification_token = verification_token - self.landing_page_url = landing_page_url - self.redirect_action = None - self.last_submission_id = None - self.register_before_oauth_flow = None - self.is_validated = None - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_py3.py deleted file mode 100644 index 0b3f5af0c1fc..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/slack_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class SlackChannel(Channel): - """Slack channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Slack channel - resource - :type properties: ~azure.mgmt.botservice.models.SlackChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(SlackChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'SlackChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel.py deleted file mode 100644 index 9a4f908ab007..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class SmsChannel(Channel): - """Sms channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Sms channel resource - :type properties: ~azure.mgmt.botservice.models.SmsChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, - } - - def __init__(self, **kwargs): - super(SmsChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'SmsChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py deleted file mode 100644 index 4a094296451a..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SmsChannelProperties(Model): - """The parameters to provide for the Sms channel. - - All required parameters must be populated in order to send to Azure. - - :param phone: Required. The Sms phone - :type phone: str - :param account_sid: Required. The Sms account SID. Value only returned - through POST to the action Channel List API, otherwise empty. - :type account_sid: str - :param auth_token: Required. The Sms auth token. Value only returned - through POST to the action Channel List API, otherwise empty. - :type auth_token: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'phone': {'required': True}, - 'account_sid': {'required': True}, - 'auth_token': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'phone': {'key': 'phone', 'type': 'str'}, - 'account_sid': {'key': 'accountSID', 'type': 'str'}, - 'auth_token': {'key': 'authToken', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(SmsChannelProperties, self).__init__(**kwargs) - self.phone = kwargs.get('phone', None) - self.account_sid = kwargs.get('account_sid', None) - self.auth_token = kwargs.get('auth_token', None) - self.is_validated = kwargs.get('is_validated', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties_py3.py deleted file mode 100644 index 60d8e2329989..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SmsChannelProperties(Model): - """The parameters to provide for the Sms channel. - - All required parameters must be populated in order to send to Azure. - - :param phone: Required. The Sms phone - :type phone: str - :param account_sid: Required. The Sms account SID. Value only returned - through POST to the action Channel List API, otherwise empty. - :type account_sid: str - :param auth_token: Required. The Sms auth token. Value only returned - through POST to the action Channel List API, otherwise empty. - :type auth_token: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'phone': {'required': True}, - 'account_sid': {'required': True}, - 'auth_token': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'phone': {'key': 'phone', 'type': 'str'}, - 'account_sid': {'key': 'accountSID', 'type': 'str'}, - 'auth_token': {'key': 'authToken', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, phone: str, account_sid: str, auth_token: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: - super(SmsChannelProperties, self).__init__(**kwargs) - self.phone = phone - self.account_sid = account_sid - self.auth_token = auth_token - self.is_validated = is_validated - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_py3.py deleted file mode 100644 index 2e5589ec2dba..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class SmsChannel(Channel): - """Sms channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Sms channel resource - :type properties: ~azure.mgmt.botservice.models.SmsChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(SmsChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'SmsChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel.py deleted file mode 100644 index 5b13451c4b06..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class TelegramChannel(Channel): - """Telegram channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Telegram channel - resource - :type properties: ~azure.mgmt.botservice.models.TelegramChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, - } - - def __init__(self, **kwargs): - super(TelegramChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'TelegramChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties.py deleted file mode 100644 index 368bfe11b06d..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TelegramChannelProperties(Model): - """The parameters to provide for the Telegram channel. - - All required parameters must be populated in order to send to Azure. - - :param access_token: Required. The Telegram access token. Value only - returned through POST to the action Channel List API, otherwise empty. - :type access_token: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'access_token': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(TelegramChannelProperties, self).__init__(**kwargs) - self.access_token = kwargs.get('access_token', None) - self.is_validated = kwargs.get('is_validated', None) - self.is_enabled = kwargs.get('is_enabled', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties_py3.py deleted file mode 100644 index d9db39e8d283..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TelegramChannelProperties(Model): - """The parameters to provide for the Telegram channel. - - All required parameters must be populated in order to send to Azure. - - :param access_token: Required. The Telegram access token. Value only - returned through POST to the action Channel List API, otherwise empty. - :type access_token: str - :param is_validated: Whether this channel is validated for the bot - :type is_validated: bool - :param is_enabled: Required. Whether this channel is enabled for the bot - :type is_enabled: bool - """ - - _validation = { - 'access_token': {'required': True}, - 'is_enabled': {'required': True}, - } - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - } - - def __init__(self, *, access_token: str, is_enabled: bool, is_validated: bool=None, **kwargs) -> None: - super(TelegramChannelProperties, self).__init__(**kwargs) - self.access_token = access_token - self.is_validated = is_validated - self.is_enabled = is_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_py3.py deleted file mode 100644 index 8928c50d2958..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/telegram_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class TelegramChannel(Channel): - """Telegram channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Telegram channel - resource - :type properties: ~azure.mgmt.botservice.models.TelegramChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(TelegramChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'TelegramChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel.py deleted file mode 100644 index 15b28e507c8d..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel import Channel - - -class WebChatChannel(Channel): - """Web Chat channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Web Chat channel - resource - :type properties: ~azure.mgmt.botservice.models.WebChatChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, - } - - def __init__(self, **kwargs): - super(WebChatChannel, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - self.channel_name = 'WebChatChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties.py deleted file mode 100644 index e1984da8ad00..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WebChatChannelProperties(Model): - """The parameters to provide for the Web Chat channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar web_chat_embed_code: Web chat control embed code - :vartype web_chat_embed_code: str - :param sites: The list of Web Chat sites - :type sites: list[~azure.mgmt.botservice.models.WebChatSite] - """ - - _validation = { - 'web_chat_embed_code': {'readonly': True}, - } - - _attribute_map = { - 'web_chat_embed_code': {'key': 'webChatEmbedCode', 'type': 'str'}, - 'sites': {'key': 'sites', 'type': '[WebChatSite]'}, - } - - def __init__(self, **kwargs): - super(WebChatChannelProperties, self).__init__(**kwargs) - self.web_chat_embed_code = None - self.sites = kwargs.get('sites', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties_py3.py deleted file mode 100644 index 5a59da35bf19..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_properties_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WebChatChannelProperties(Model): - """The parameters to provide for the Web Chat channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar web_chat_embed_code: Web chat control embed code - :vartype web_chat_embed_code: str - :param sites: The list of Web Chat sites - :type sites: list[~azure.mgmt.botservice.models.WebChatSite] - """ - - _validation = { - 'web_chat_embed_code': {'readonly': True}, - } - - _attribute_map = { - 'web_chat_embed_code': {'key': 'webChatEmbedCode', 'type': 'str'}, - 'sites': {'key': 'sites', 'type': '[WebChatSite]'}, - } - - def __init__(self, *, sites=None, **kwargs) -> None: - super(WebChatChannelProperties, self).__init__(**kwargs) - self.web_chat_embed_code = None - self.sites = sites diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_py3.py deleted file mode 100644 index dd3564eac32b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_channel_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .channel_py3 import Channel - - -class WebChatChannel(Channel): - """Web Chat channel definition. - - All required parameters must be populated in order to send to Azure. - - :param channel_name: Required. Constant filled by server. - :type channel_name: str - :param properties: The set of properties specific to Web Chat channel - resource - :type properties: ~azure.mgmt.botservice.models.WebChatChannelProperties - """ - - _validation = { - 'channel_name': {'required': True}, - } - - _attribute_map = { - 'channel_name': {'key': 'channelName', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(WebChatChannel, self).__init__(**kwargs) - self.properties = properties - self.channel_name = 'WebChatChannel' diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site.py deleted file mode 100644 index 4b7beef1d6e7..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WebChatSite(Model): - """A site for the Webchat channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar site_id: Site Id - :vartype site_id: str - :param site_name: Required. Site name - :type site_name: str - :ivar key: Primary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key: str - :ivar key2: Secondary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key2: str - :param is_enabled: Required. Whether this site is enabled for DirectLine - channel - :type is_enabled: bool - :param enable_preview: Required. Whether this site is enabled for preview - versions of Webchat - :type enable_preview: bool - """ - - _validation = { - 'site_id': {'readonly': True}, - 'site_name': {'required': True}, - 'key': {'readonly': True}, - 'key2': {'readonly': True}, - 'is_enabled': {'required': True}, - 'enable_preview': {'required': True}, - } - - _attribute_map = { - 'site_id': {'key': 'siteId', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'key2': {'key': 'key2', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(WebChatSite, self).__init__(**kwargs) - self.site_id = None - self.site_name = kwargs.get('site_name', None) - self.key = None - self.key2 = None - self.is_enabled = kwargs.get('is_enabled', None) - self.enable_preview = kwargs.get('enable_preview', None) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site_py3.py deleted file mode 100644 index a35ecac57f8b..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/web_chat_site_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WebChatSite(Model): - """A site for the Webchat channel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar site_id: Site Id - :vartype site_id: str - :param site_name: Required. Site name - :type site_name: str - :ivar key: Primary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key: str - :ivar key2: Secondary key. Value only returned through POST to the action - Channel List API, otherwise empty. - :vartype key2: str - :param is_enabled: Required. Whether this site is enabled for DirectLine - channel - :type is_enabled: bool - :param enable_preview: Required. Whether this site is enabled for preview - versions of Webchat - :type enable_preview: bool - """ - - _validation = { - 'site_id': {'readonly': True}, - 'site_name': {'required': True}, - 'key': {'readonly': True}, - 'key2': {'readonly': True}, - 'is_enabled': {'required': True}, - 'enable_preview': {'required': True}, - } - - _attribute_map = { - 'site_id': {'key': 'siteId', 'type': 'str'}, - 'site_name': {'key': 'siteName', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'key2': {'key': 'key2', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, - } - - def __init__(self, *, site_name: str, is_enabled: bool, enable_preview: bool, **kwargs) -> None: - super(WebChatSite, self).__init__(**kwargs) - self.site_id = None - self.site_name = site_name - self.key = None - self.key2 = None - self.is_enabled = is_enabled - self.enable_preview = enable_preview diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py index 42d85b8ebd4a..892f8e5743d7 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py @@ -9,16 +9,16 @@ # regenerated. # -------------------------------------------------------------------------- -from .bots_operations import BotsOperations -from .channels_operations import ChannelsOperations -from .operations import Operations -from .bot_connection_operations import BotConnectionOperations -from .enterprise_channels_operations import EnterpriseChannelsOperations +from ._bots_operations import BotsOperations +from ._channels_operations import ChannelsOperations +from ._direct_line_operations import DirectLineOperations +from ._operations import Operations +from ._bot_connection_operations import BotConnectionOperations __all__ = [ 'BotsOperations', 'ChannelsOperations', + 'DirectLineOperations', 'Operations', 'BotConnectionOperations', - 'EnterpriseChannelsOperations', ] diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bot_connection_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py similarity index 97% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bot_connection_operations.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py index d532a6e8e937..75d25ef3beb5 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bot_connection_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py @@ -18,11 +18,13 @@ class BotConnectionOperations(object): """BotConnectionOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-07-12". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-12" + self.api_version = "2020-06-02" self.config = config @@ -80,7 +82,6 @@ def list_service_providers( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceProviderResponseList', response) @@ -101,7 +102,7 @@ def list_with_secrets( :param resource_name: The name of the Bot resource. :type resource_name: str :param connection_name: The name of the Bot Service Connection Setting - resource + resource. :type connection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -119,7 +120,7 @@ def list_with_secrets( path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -146,7 +147,6 @@ def list_with_secrets( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ConnectionSetting', response) @@ -167,7 +167,7 @@ def create( :param resource_name: The name of the Bot resource. :type resource_name: str :param connection_name: The name of the Bot Service Connection Setting - resource + resource. :type connection_name: str :param parameters: The parameters to provide for creating the Connection Setting. @@ -188,7 +188,7 @@ def create( path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -219,7 +219,6 @@ def create( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ConnectionSetting', response) if response.status_code == 201: @@ -242,7 +241,7 @@ def update( :param resource_name: The name of the Bot resource. :type resource_name: str :param connection_name: The name of the Bot Service Connection Setting - resource + resource. :type connection_name: str :param parameters: The parameters to provide for updating the Connection Setting. @@ -263,7 +262,7 @@ def update( path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -294,7 +293,6 @@ def update( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ConnectionSetting', response) if response.status_code == 201: @@ -317,7 +315,7 @@ def get( :param resource_name: The name of the Bot resource. :type resource_name: str :param connection_name: The name of the Bot Service Connection Setting - resource + resource. :type connection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -335,7 +333,7 @@ def get( path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -362,7 +360,6 @@ def get( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ConnectionSetting', response) @@ -383,7 +380,7 @@ def delete( :param resource_name: The name of the Bot resource. :type resource_name: str :param connection_name: The name of the Bot Service Connection Setting - resource + resource. :type connection_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -400,7 +397,7 @@ def delete( path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -451,8 +448,7 @@ def list_by_bot_service( :raises: :class:`ErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_bot_service.metadata['url'] @@ -483,6 +479,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -491,12 +492,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ConnectionSettingPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ConnectionSettingPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ConnectionSettingPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_bot_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bots_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py similarity index 97% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bots_operations.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py index e9041d0cb11a..5c083ba1aa78 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/bots_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py @@ -18,11 +18,13 @@ class BotsOperations(object): """BotsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-07-12". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-12" + self.api_version = "2020-06-02" self.config = config @@ -94,7 +96,6 @@ def create( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Bot', response) if response.status_code == 201: @@ -177,7 +178,6 @@ def update( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Bot', response) if response.status_code == 201: @@ -294,7 +294,6 @@ def get( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Bot', response) @@ -324,8 +323,7 @@ def list_by_resource_group( :raises: :class:`ErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -355,6 +353,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -363,12 +366,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BotPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BotPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.BotPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices'} @@ -389,8 +390,7 @@ def list( :raises: :class:`ErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -419,6 +419,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -427,12 +432,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BotPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BotPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.BotPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices'} @@ -491,7 +494,6 @@ def get_check_name_availability( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CheckNameAvailabilityResponseBody', response) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/channels_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py similarity index 94% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/channels_operations.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py index 036204f3602b..21d1a766a01d 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/channels_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py @@ -18,11 +18,13 @@ class ChannelsOperations(object): """ChannelsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-07-12". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-12" + self.api_version = "2020-06-02" self.config = config @@ -46,9 +48,10 @@ def create( :param resource_name: The name of the Bot resource. :type resource_name: str :param channel_name: The name of the Channel resource. Possible values - include: 'FacebookChannel', 'EmailChannel', 'KikChannel', - 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', 'SkypeChannel', - 'WebChatChannel', 'DirectLineChannel', 'SmsChannel' + include: 'AlexaChannel', 'FacebookChannel', 'EmailChannel', + 'KikChannel', 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', + 'SkypeChannel', 'WebChatChannel', 'DirectLineChannel', 'SmsChannel', + 'LineChannel', 'DirectLineSpeechChannel' :type channel_name: str or ~azure.mgmt.botservice.models.ChannelName :param parameters: The parameters to provide for the created bot. :type parameters: ~azure.mgmt.botservice.models.BotChannel @@ -99,7 +102,6 @@ def create( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BotChannel', response) if response.status_code == 201: @@ -122,9 +124,10 @@ def update( :param resource_name: The name of the Bot resource. :type resource_name: str :param channel_name: The name of the Channel resource. Possible values - include: 'FacebookChannel', 'EmailChannel', 'KikChannel', - 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', 'SkypeChannel', - 'WebChatChannel', 'DirectLineChannel', 'SmsChannel' + include: 'AlexaChannel', 'FacebookChannel', 'EmailChannel', + 'KikChannel', 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', + 'SkypeChannel', 'WebChatChannel', 'DirectLineChannel', 'SmsChannel', + 'LineChannel', 'DirectLineSpeechChannel' :type channel_name: str or ~azure.mgmt.botservice.models.ChannelName :param location: Specifies the location of the resource. :type location: str @@ -189,7 +192,6 @@ def update( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BotChannel', response) if response.status_code == 201: @@ -312,7 +314,6 @@ def get( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BotChannel', response) @@ -333,9 +334,10 @@ def list_with_keys( :param resource_name: The name of the Bot resource. :type resource_name: str :param channel_name: The name of the Channel resource. Possible values - include: 'FacebookChannel', 'EmailChannel', 'KikChannel', - 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', 'SkypeChannel', - 'WebChatChannel', 'DirectLineChannel', 'SmsChannel' + include: 'AlexaChannel', 'FacebookChannel', 'EmailChannel', + 'KikChannel', 'TelegramChannel', 'SlackChannel', 'MsTeamsChannel', + 'SkypeChannel', 'WebChatChannel', 'DirectLineChannel', 'SmsChannel', + 'LineChannel', 'DirectLineSpeechChannel' :type channel_name: str or ~azure.mgmt.botservice.models.ChannelName :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -380,7 +382,6 @@ def list_with_keys( raise models.ErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BotChannel', response) @@ -412,8 +413,7 @@ def list_by_resource_group( :raises: :class:`ErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -444,6 +444,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -452,12 +457,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BotChannelPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BotChannelPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.BotChannelPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py new file mode 100644 index 000000000000..3612cf149b5a --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class DirectLineOperations(object): + """DirectLineOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2020-06-02" + + self.config = config + + def regenerate_keys( + self, resource_group_name, resource_name, channel_name, site_name, key, custom_headers=None, raw=False, **operation_config): + """Regenerates secret keys and returns them for the DirectLine Channel of + a particular BotService resource. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param channel_name: The name of the Channel resource for which keys + are to be regenerated. Possible values include: 'WebChatChannel', + 'DirectLineChannel' + :type channel_name: str or + ~azure.mgmt.botservice.models.RegenerateKeysChannelName + :param site_name: The site name + :type site_name: str + :param key: Determines which key is to be regenerated. Possible values + include: 'key1', 'key2' + :type key: str or ~azure.mgmt.botservice.models.Key + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BotChannel or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.botservice.models.BotChannel or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + parameters = models.SiteInfo(site_name=site_name, key=key) + + # Construct URL + url = self.regenerate_keys.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'channelName': self._serialize.url("channel_name", channel_name, 'RegenerateKeysChannelName') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SiteInfo') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BotChannel', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + regenerate_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py similarity index 88% rename from sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/operations.py rename to sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py index 8dc578d119eb..ef4b7fc7caf9 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py @@ -19,11 +19,13 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-07-12". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-12" + self.api_version = "2020-06-02" self.config = config @@ -51,8 +53,7 @@ def list( ~azure.mgmt.botservice.models.OperationEntityPaged[~azure.mgmt.botservice.models.OperationEntity] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.BotService/operations'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/enterprise_channels_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/enterprise_channels_operations.py deleted file mode 100644 index 9e7190a2a59a..000000000000 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/enterprise_channels_operations.py +++ /dev/null @@ -1,535 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class EnterpriseChannelsOperations(object): - """EnterpriseChannelsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2018-07-12". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-07-12" - - self.config = config - - def check_name_availability( - self, name=None, custom_headers=None, raw=False, **operation_config): - """Check whether an Enterprise Channel name is available. - - :param name: The name of the Enterprise Channel for which availability - needs to be checked. - :type name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: EnterpriseChannelCheckNameAvailabilityResponse or - ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.botservice.models.EnterpriseChannelCheckNameAvailabilityResponse - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorException` - """ - parameters = models.EnterpriseChannelCheckNameAvailabilityRequest(name=name) - - # Construct URL - url = self.check_name_availability.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'EnterpriseChannelCheckNameAvailabilityRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EnterpriseChannelCheckNameAvailabilityResponse', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_name_availability.metadata = {'url': '/providers/Microsoft.BotService/checkEnterpriseChannelNameAvailability'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Returns all the resources of a particular type belonging to a resource - group. - - :param resource_group_name: The name of the Bot resource group in the - user subscription. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of EnterpriseChannel - :rtype: - ~azure.mgmt.botservice.models.EnterpriseChannelPaged[~azure.mgmt.botservice.models.EnterpriseChannel] - :raises: - :class:`ErrorException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.EnterpriseChannelPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.EnterpriseChannelPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/enterpriseChannels'} - - - def _create_initial( - self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'EnterpriseChannel') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EnterpriseChannel', response) - if response.status_code == 201: - deserialized = self._deserialize('EnterpriseChannel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates an Enterprise Channel. - - :param resource_group_name: The name of the Bot resource group in the - user subscription. - :type resource_group_name: str - :param resource_name: The name of the Bot resource. - :type resource_name: str - :param parameters: The parameters to provide for the new Enterprise - Channel. - :type parameters: ~azure.mgmt.botservice.models.EnterpriseChannel - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns EnterpriseChannel or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.botservice.models.EnterpriseChannel] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.botservice.models.EnterpriseChannel]] - :raises: - :class:`ErrorException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('EnterpriseChannel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/enterpriseChannels/{resourceName}'} - - - def _update_initial( - self, resource_group_name, resource_name, location=None, tags=None, sku=None, kind=None, etag=None, properties=None, custom_headers=None, raw=False, **operation_config): - parameters = models.EnterpriseChannel(location=location, tags=tags, sku=sku, kind=kind, etag=etag, properties=properties) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'EnterpriseChannel') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EnterpriseChannel', response) - if response.status_code == 201: - deserialized = self._deserialize('EnterpriseChannel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, resource_name, location=None, tags=None, sku=None, kind=None, etag=None, properties=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Updates an Enterprise Channel. - - :param resource_group_name: The name of the Bot resource group in the - user subscription. - :type resource_group_name: str - :param resource_name: The name of the Bot resource. - :type resource_name: str - :param location: Specifies the location of the resource. - :type location: str - :param tags: Contains resource tags defined as key/value pairs. - :type tags: dict[str, str] - :param sku: Gets or sets the SKU of the resource. - :type sku: ~azure.mgmt.botservice.models.Sku - :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' - :type kind: str or ~azure.mgmt.botservice.models.Kind - :param etag: Entity Tag - :type etag: str - :param properties: The set of properties specific to an Enterprise - Channel resource. - :type properties: - ~azure.mgmt.botservice.models.EnterpriseChannelProperties - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns EnterpriseChannel or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.botservice.models.EnterpriseChannel] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.botservice.models.EnterpriseChannel]] - :raises: - :class:`ErrorException` - """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - location=location, - tags=tags, - sku=sku, - kind=kind, - etag=etag, - properties=properties, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('EnterpriseChannel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/enterpriseChannels/{resourceName}'} - - - def _delete_initial( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an Enterprise Channel from the resource group. - - :param resource_group_name: The name of the Bot resource group in the - user subscription. - :type resource_group_name: str - :param resource_name: The name of the Bot resource. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/enterpriseChannels/{resourceName}'} - - def get( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - """Returns an Enterprise Channel specified by the parameters. - - :param resource_group_name: The name of the Bot resource group in the - user subscription. - :type resource_group_name: str - :param resource_name: The name of the Bot resource. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: EnterpriseChannel or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.botservice.models.EnterpriseChannel or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EnterpriseChannel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/enterpriseChannels/{resourceName}'} diff --git a/sdk/botservice/azure-mgmt-botservice/setup.py b/sdk/botservice/azure-mgmt-botservice/setup.py index 8981ce4c3c86..72d3ba0a7e57 100644 --- a/sdk/botservice/azure-mgmt-botservice/setup.py +++ b/sdk/botservice/azure-mgmt-botservice/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) @@ -64,10 +66,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', ], zip_safe=False,