Exemplo n.º 1
0
    def test_msteams_channel(self, resource_group):
        from azure.mgmt.botservice.models import MsTeamsChannel, MsTeamsChannelProperties
        self.resource_group_name = resource_group.name
        channel = MsTeamsChannel(
            properties=MsTeamsChannelProperties(is_enabled=True, ))

        self.validateCreateGetAndDeleteChannel(channel_name='MsTeamsChannel',
                                               channel_properties=channel,
                                               run_exist_check=False)
Exemplo n.º 2
0
def msteams_create(client, resource_group_name, resource_name, is_disabled=None,
                   enable_calling=None, calling_web_hook=None):
    from azure.mgmt.botservice.models import MsTeamsChannel, MsTeamsChannelProperties
    channel = MsTeamsChannel(
        properties=MsTeamsChannelProperties(
            is_enabled=not is_disabled,
            enable_calling=enable_calling,
            calling_web_hook=calling_web_hook
        )
    )
    return create_channel(client, channel, 'MsTeamsChannel', resource_group_name, resource_name)