1111
1212from msrest .service_client import SDKClient
1313from msrest import Serializer , Deserializer
14- from msrestazure import AzureConfiguration
15- from .version import VERSION
16- from .operations .bots_operations import BotsOperations
17- from .operations .channels_operations import ChannelsOperations
18- from .operations .operations import Operations
19- from .operations .bot_connection_operations import BotConnectionOperations
20- from .operations .enterprise_channels_operations import EnterpriseChannelsOperations
21- from . import models
22-
23-
24- class AzureBotServiceConfiguration (AzureConfiguration ):
25- """Configuration for AzureBotService
26- Note that all parameters used to create this instance are saved as instance
27- attributes.
28-
29- :param credentials: Credentials needed for the client to connect to Azure.
30- :type credentials: :mod:`A msrestazure Credentials
31- object<msrestazure.azure_active_directory>`
32- :param subscription_id: Azure Subscription ID.
33- :type subscription_id: str
34- :param str base_url: Service URL
35- """
36-
37- def __init__ (
38- self , credentials , subscription_id , base_url = None ):
39-
40- if credentials is None :
41- raise ValueError ("Parameter 'credentials' must not be None." )
42- if subscription_id is None :
43- raise ValueError ("Parameter 'subscription_id' must not be None." )
44- if not base_url :
45- base_url = 'https://management.azure.com'
4614
47- super ( AzureBotServiceConfiguration , self ). __init__ ( base_url )
48-
49- self . add_user_agent ( 'azure-mgmt-botservice/{}' . format ( VERSION ))
50- self . add_user_agent ( 'Azure-SDK-For-Python' )
51-
52- self . credentials = credentials
53- self . subscription_id = subscription_id
15+ from . _configuration import AzureBotServiceConfiguration
16+ from . operations import BotsOperations
17+ from . operations import ChannelsOperations
18+ from . operations import DirectLineOperations
19+ from . operations import Operations
20+ from . operations import BotConnectionOperations
21+ from . import models
5422
5523
5624class AzureBotService (SDKClient ):
@@ -63,12 +31,12 @@ class AzureBotService(SDKClient):
6331 :vartype bots: azure.mgmt.botservice.operations.BotsOperations
6432 :ivar channels: Channels operations
6533 :vartype channels: azure.mgmt.botservice.operations.ChannelsOperations
34+ :ivar direct_line: DirectLine operations
35+ :vartype direct_line: azure.mgmt.botservice.operations.DirectLineOperations
6636 :ivar operations: Operations operations
6737 :vartype operations: azure.mgmt.botservice.operations.Operations
6838 :ivar bot_connection: BotConnection operations
6939 :vartype bot_connection: azure.mgmt.botservice.operations.BotConnectionOperations
70- :ivar enterprise_channels: EnterpriseChannels operations
71- :vartype enterprise_channels: azure.mgmt.botservice.operations.EnterpriseChannelsOperations
7240
7341 :param credentials: Credentials needed for the client to connect to Azure.
7442 :type credentials: :mod:`A msrestazure Credentials
@@ -85,17 +53,17 @@ def __init__(
8553 super (AzureBotService , self ).__init__ (self .config .credentials , self .config )
8654
8755 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
88- self .api_version = '2018-07-12 '
56+ self .api_version = '2020-06-02 '
8957 self ._serialize = Serializer (client_models )
9058 self ._deserialize = Deserializer (client_models )
9159
9260 self .bots = BotsOperations (
9361 self ._client , self .config , self ._serialize , self ._deserialize )
9462 self .channels = ChannelsOperations (
9563 self ._client , self .config , self ._serialize , self ._deserialize )
64+ self .direct_line = DirectLineOperations (
65+ self ._client , self .config , self ._serialize , self ._deserialize )
9666 self .operations = Operations (
9767 self ._client , self .config , self ._serialize , self ._deserialize )
9868 self .bot_connection = BotConnectionOperations (
9969 self ._client , self .config , self ._serialize , self ._deserialize )
100- self .enterprise_channels = EnterpriseChannelsOperations (
101- self ._client , self .config , self ._serialize , self ._deserialize )
0 commit comments