Skip to content

Commit

Permalink
CodeGen from PR 18149 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 38843de1d56a4dffd772d09ade0643a36fcf825a into 9aff6fbac1975af94f6a3bc415be84f67d3311ee
  • Loading branch information
SDKAuto committed Mar 15, 2022
1 parent 14ff5a8 commit e114ebe
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion sdk/botservice/azure-mgmt-botservice/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "d8242e83bad59e45d5bb1dad769a185504f5fde3",
"commit": "fe0c0657fd6374fc0ac9efff0c426aa0c01fe8f6",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/botservice/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/botservice/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0b1"
VERSION = "0.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ChannelName(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
SMS_CHANNEL = "SmsChannel"
LINE_CHANNEL = "LineChannel"
DIRECT_LINE_SPEECH_CHANNEL = "DirectLineSpeechChannel"
OUTLOOK_CHANNEL = "OutlookChannel"

class Key(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Determines which key is to be regenerated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
**kwargs
):
"""
Expand Down Expand Up @@ -106,7 +106,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["AlexaChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -501,6 +501,8 @@ class BotProperties(msrest.serialization.Model):
'msa_app_id': {'required': True},
'configured_channels': {'readonly': True},
'enabled_channels': {'readonly': True},
'cmek_encryption_status': {'readonly': True},
'is_developer_app_insights_api_key_set': {'readonly': True},
'migration_token': {'readonly': True},
'private_endpoint_connections': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand Down Expand Up @@ -564,10 +566,8 @@ def __init__(
luis_key: Optional[str] = None,
is_cmek_enabled: Optional[bool] = None,
cmek_key_vault_url: Optional[str] = None,
cmek_encryption_status: Optional[str] = None,
public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = "Enabled",
is_streaming_supported: Optional[bool] = None,
is_developer_app_insights_api_key_set: Optional[bool] = None,
is_streaming_supported: Optional[bool] = False,
disable_local_auth: Optional[bool] = None,
schema_transformation_version: Optional[str] = None,
storage_resource_id: Optional[str] = None,
Expand Down Expand Up @@ -614,16 +614,11 @@ def __init__(
:paramtype is_cmek_enabled: bool
:keyword cmek_key_vault_url: The CMK Url.
:paramtype cmek_key_vault_url: str
:keyword cmek_encryption_status: The CMK encryption status.
:paramtype cmek_encryption_status: str
:keyword public_network_access: Whether the bot is in an isolated network. Possible values
include: "Enabled", "Disabled". Default value: "Enabled".
:paramtype public_network_access: str or ~azure.mgmt.botservice.models.PublicNetworkAccess
:keyword is_streaming_supported: Whether the bot is streaming supported.
:paramtype is_streaming_supported: bool
:keyword is_developer_app_insights_api_key_set: Whether the bot is developerAppInsightsApiKey
set.
:paramtype is_developer_app_insights_api_key_set: bool
:keyword disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be
used exclusively for authentication.
:paramtype disable_local_auth: bool
Expand Down Expand Up @@ -662,10 +657,10 @@ def __init__(
self.luis_key = luis_key
self.is_cmek_enabled = is_cmek_enabled
self.cmek_key_vault_url = cmek_key_vault_url
self.cmek_encryption_status = cmek_encryption_status
self.cmek_encryption_status = None
self.public_network_access = public_network_access
self.is_streaming_supported = is_streaming_supported
self.is_developer_app_insights_api_key_set = is_developer_app_insights_api_key_set
self.is_developer_app_insights_api_key_set = None
self.migration_token = None
self.disable_local_auth = disable_local_auth
self.schema_transformation_version = schema_transformation_version
Expand Down Expand Up @@ -1199,7 +1194,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["DirectLineChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -1383,7 +1378,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["DirectLineSpeechChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -1509,7 +1504,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["EmailChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -1674,7 +1669,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["FacebookChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -1913,7 +1908,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["KikChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -2021,7 +2016,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["LineChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -2153,6 +2148,12 @@ class ListChannelWithKeysResponse(BotChannel):
:vartype resource: ~azure.mgmt.botservice.models.Channel
:ivar setting: Channel settings.
:vartype setting: ~azure.mgmt.botservice.models.ChannelSettings
:ivar provisioning_state: Provisioning state of the resource.
:vartype provisioning_state: str
:ivar entity_tag: Entity tag of the resource.
:vartype entity_tag: str
:ivar changed_time: Changed time of the resource.
:vartype changed_time: str
"""

_validation = {
Expand All @@ -2175,6 +2176,9 @@ class ListChannelWithKeysResponse(BotChannel):
'properties': {'key': 'properties', 'type': 'Channel'},
'resource': {'key': 'resource', 'type': 'Channel'},
'setting': {'key': 'setting', 'type': 'ChannelSettings'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'entity_tag': {'key': 'entityTag', 'type': 'str'},
'changed_time': {'key': 'changedTime', 'type': 'str'},
}

def __init__(
Expand All @@ -2188,6 +2192,9 @@ def __init__(
properties: Optional["Channel"] = None,
resource: Optional["Channel"] = None,
setting: Optional["ChannelSettings"] = None,
provisioning_state: Optional[str] = None,
entity_tag: Optional[str] = None,
changed_time: Optional[str] = None,
**kwargs
):
"""
Expand All @@ -2208,10 +2215,19 @@ def __init__(
:paramtype resource: ~azure.mgmt.botservice.models.Channel
:keyword setting: Channel settings.
:paramtype setting: ~azure.mgmt.botservice.models.ChannelSettings
:keyword provisioning_state: Provisioning state of the resource.
:paramtype provisioning_state: str
:keyword entity_tag: Entity tag of the resource.
:paramtype entity_tag: str
:keyword changed_time: Changed time of the resource.
:paramtype changed_time: str
"""
super(ListChannelWithKeysResponse, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, properties=properties, **kwargs)
self.resource = resource
self.setting = setting
self.provisioning_state = provisioning_state
self.entity_tag = entity_tag
self.changed_time = changed_time


class MsTeamsChannel(Channel):
Expand Down Expand Up @@ -2250,7 +2266,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["MsTeamsChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -3307,7 +3323,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["SkypeChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -3454,7 +3470,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["SlackChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -3607,7 +3623,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["SmsChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -3725,7 +3741,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["TelegramChannelProperties"] = None,
**kwargs
):
Expand Down Expand Up @@ -3825,7 +3841,7 @@ def __init__(
self,
*,
etag: Optional[str] = None,
location: Optional[str] = None,
location: Optional[str] = "global",
properties: Optional["WebChatChannelProperties"] = None,
**kwargs
):
Expand Down

0 comments on commit e114ebe

Please sign in to comment.