Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-botservice] Adding xms-ids for Botservice #8893

Closed
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": "a05f464c93248ea78509805abaeecb1376b1e8bb",
"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 --use=@microsoft.azure/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 @@ -16,6 +16,7 @@
from ._models_py3 import BotChannel
from ._models_py3 import BotProperties
from ._models_py3 import Channel
from ._models_py3 import ChannelSettings
from ._models_py3 import CheckNameAvailabilityRequestBody
from ._models_py3 import CheckNameAvailabilityResponseBody
from ._models_py3 import ConnectionItemName
Expand All @@ -34,20 +35,32 @@
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
from ._models_py3 import LineChannelProperties
from ._models_py3 import LineRegistration
from ._models_py3 import ListChannelWithKeysResponse
from ._models_py3 import MsTeamsChannel
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
from ._models_py3 import ServiceProviderParameterMetadata
from ._models_py3 import ServiceProviderParameterMetadataConstraints
from ._models_py3 import ServiceProviderProperties
from ._models_py3 import ServiceProviderResponseList
from ._models_py3 import Site
from ._models_py3 import SiteInfo
from ._models_py3 import Sku
from ._models_py3 import SkypeChannel
Expand All @@ -68,6 +81,7 @@
from ._models import BotChannel
from ._models import BotProperties
from ._models import Channel
from ._models import ChannelSettings
from ._models import CheckNameAvailabilityRequestBody
from ._models import CheckNameAvailabilityResponseBody
from ._models import ConnectionItemName
Expand All @@ -86,20 +100,32 @@
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
from ._models import LineChannelProperties
from ._models import LineRegistration
from ._models import ListChannelWithKeysResponse
from ._models import MsTeamsChannel
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
from ._models import ServiceProviderParameterMetadata
from ._models import ServiceProviderParameterMetadataConstraints
from ._models import ServiceProviderProperties
from ._models import ServiceProviderResponseList
from ._models import Site
from ._models import SiteInfo
from ._models import Sku
from ._models import SkypeChannel
Expand All @@ -117,11 +143,17 @@
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,
MsaAppType,
PublicNetworkAccess,
PrivateEndpointServiceConnectionStatus,
PrivateEndpointConnectionProvisioningState,
Key,
OperationResultStatus,
ChannelName,
RegenerateKeysChannelName,
)
Expand All @@ -133,6 +165,7 @@
'BotChannel',
'BotProperties',
'Channel',
'ChannelSettings',
'CheckNameAvailabilityRequestBody',
'CheckNameAvailabilityResponseBody',
'ConnectionItemName',
Expand All @@ -151,20 +184,32 @@
'FacebookChannel',
'FacebookChannelProperties',
'FacebookPage',
'HostSettingsResponse',
'KikChannel',
'KikChannelProperties',
'LineChannel',
'LineChannelProperties',
'LineRegistration',
'ListChannelWithKeysResponse',
'MsTeamsChannel',
'MsTeamsChannelProperties',
'OperationDisplayInfo',
'OperationEntity',
'OperationResultsDescription',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateLinkResource',
'PrivateLinkResourceBase',
'PrivateLinkResourceListResult',
'PrivateLinkServiceConnectionState',
'Resource',
'ServiceProvider',
'ServiceProviderParameter',
'ServiceProviderParameterMetadata',
'ServiceProviderParameterMetadataConstraints',
'ServiceProviderProperties',
'ServiceProviderResponseList',
'Site',
'SiteInfo',
'Sku',
'SkypeChannel',
Expand All @@ -182,10 +227,16 @@
'BotChannelPaged',
'OperationEntityPaged',
'ConnectionSettingPaged',
'PrivateEndpointConnectionPaged',
'SkuName',
'SkuTier',
'Kind',
'MsaAppType',
'PublicNetworkAccess',
'PrivateEndpointServiceConnectionStatus',
'PrivateEndpointConnectionProvisioningState',
'Key',
'OperationResultStatus',
'ChannelName',
'RegenerateKeysChannelName',
]
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,35 @@ class Kind(str, Enum):
designer = "designer"
bot = "bot"
function = "function"
azurebot = "azurebot"


class MsaAppType(str, Enum):

user_assigned_msi = "UserAssignedMSI"
single_tenant = "SingleTenant"
multi_tenant = "MultiTenant"


class PublicNetworkAccess(str, Enum):

enabled = "Enabled"
disabled = "Disabled"


class PrivateEndpointServiceConnectionStatus(str, Enum):

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


class PrivateEndpointConnectionProvisioningState(str, Enum):

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


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


class OperationResultStatus(str, Enum):

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


class ChannelName(str, Enum):

alexa_channel = "AlexaChannel"
Expand Down
Loading