Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/botservice/azure-mgmt-botservice/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/botservice/azure-mgmt-botservice/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "38910991e30eb2ab469e7b780ec458cca17bd82a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/botservice/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/botservice/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
from .operations import DirectLineOperations
from .operations import Operations
from .operations import BotConnectionOperations
from .operations import HostSettingsOperations
from .operations import OperationResultsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from . import models


Expand All @@ -37,6 +41,14 @@ class AzureBotService(SDKClient):
:vartype operations: azure.mgmt.botservice.operations.Operations
:ivar bot_connection: BotConnection operations
:vartype bot_connection: azure.mgmt.botservice.operations.BotConnectionOperations
:ivar host_settings: HostSettings operations
:vartype host_settings: azure.mgmt.botservice.operations.HostSettingsOperations
:ivar operation_results: OperationResults operations
:vartype operation_results: azure.mgmt.botservice.operations.OperationResultsOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.botservice.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.botservice.operations.PrivateLinkResourcesOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -53,7 +65,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 = '2020-06-02'
self.api_version = '2021-05-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -67,3 +79,11 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.bot_connection = BotConnectionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.host_settings = HostSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from ._models_py3 import FacebookChannel
from ._models_py3 import FacebookChannelProperties
from ._models_py3 import FacebookPage
from ._models_py3 import HostSettingsResponse
from ._models_py3 import KikChannel
from ._models_py3 import KikChannelProperties
from ._models_py3 import LineChannel
Expand All @@ -43,6 +44,13 @@
from ._models_py3 import MsTeamsChannelProperties
from ._models_py3 import OperationDisplayInfo
from ._models_py3 import OperationEntity
from ._models_py3 import OperationResultsDescription
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourceBase
from ._models_py3 import PrivateLinkResourceListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import Resource
from ._models_py3 import ServiceProvider
from ._models_py3 import ServiceProviderParameter
Expand Down Expand Up @@ -86,6 +94,7 @@
from ._models import FacebookChannel
from ._models import FacebookChannelProperties
from ._models import FacebookPage
from ._models import HostSettingsResponse
from ._models import KikChannel
from ._models import KikChannelProperties
from ._models import LineChannel
Expand All @@ -95,6 +104,13 @@
from ._models import MsTeamsChannelProperties
from ._models import OperationDisplayInfo
from ._models import OperationEntity
from ._models import OperationResultsDescription
from ._models import PrivateEndpoint
from ._models import PrivateEndpointConnection
from ._models import PrivateLinkResource
from ._models import PrivateLinkResourceBase
from ._models import PrivateLinkResourceListResult
from ._models import PrivateLinkServiceConnectionState
from ._models import Resource
from ._models import ServiceProvider
from ._models import ServiceProviderParameter
Expand All @@ -117,11 +133,15 @@
from ._paged_models import BotPaged
from ._paged_models import ConnectionSettingPaged
from ._paged_models import OperationEntityPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._azure_bot_service_enums import (
SkuName,
SkuTier,
Kind,
Key,
OperationResultStatus,
PrivateEndpointConnectionProvisioningState,
PrivateEndpointServiceConnectionStatus,
ChannelName,
RegenerateKeysChannelName,
)
Expand Down Expand Up @@ -151,6 +171,7 @@
'FacebookChannel',
'FacebookChannelProperties',
'FacebookPage',
'HostSettingsResponse',
'KikChannel',
'KikChannelProperties',
'LineChannel',
Expand All @@ -160,6 +181,13 @@
'MsTeamsChannelProperties',
'OperationDisplayInfo',
'OperationEntity',
'OperationResultsDescription',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateLinkResource',
'PrivateLinkResourceBase',
'PrivateLinkResourceListResult',
'PrivateLinkServiceConnectionState',
'Resource',
'ServiceProvider',
'ServiceProviderParameter',
Expand All @@ -182,10 +210,14 @@
'BotChannelPaged',
'OperationEntityPaged',
'ConnectionSettingPaged',
'PrivateEndpointConnectionPaged',
'SkuName',
'SkuTier',
'Kind',
'Key',
'OperationResultStatus',
'PrivateEndpointConnectionProvisioningState',
'PrivateEndpointServiceConnectionStatus',
'ChannelName',
'RegenerateKeysChannelName',
]
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Kind(str, Enum):
designer = "designer"
bot = "bot"
function = "function"
azurebot = "azurebot"


class Key(str, Enum):
Expand All @@ -38,6 +39,30 @@ class Key(str, Enum):
key2 = "key2"


class OperationResultStatus(str, Enum):

canceled = "Canceled"
succeeded = "Succeeded"
failed = "Failed"
requested = "Requested"
running = "Running"


class PrivateEndpointConnectionProvisioningState(str, Enum):

succeeded = "Succeeded"
creating = "Creating"
deleting = "Deleting"
failed = "Failed"


class PrivateEndpointServiceConnectionStatus(str, Enum):

pending = "Pending"
approved = "Approved"
rejected = "Rejected"


class ChannelName(str, Enum):

alexa_channel = "AlexaChannel"
Expand Down
Loading