File: bot_properties.py

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (93 lines) | stat: -rw-r--r-- 4,180 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 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)