From 389afb998a21acf90b26dcbea8eeb9ca94cae958 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 10 Jan 2023 03:16:23 +0000 Subject: [PATCH] CodeGen from PR 22077 in Azure/azure-rest-api-specs Merge e62997b09169e9c8f04a251119955760492a727b into 38e580acd81dbb904d048a23d805dd58b8699d93 --- ...sourceManager.BotService.netstandard2.0.cs | 74 +++++- .../src/Generated/BotChannelData.cs | 4 +- ...BotServicePrivateEndpointConnectionData.cs | 8 +- .../Models/AcsChatChannel.Serialization.cs | 83 +++++++ .../src/Generated/Models/AcsChatChannel.cs | 32 +++ .../Models/BotProperties.Serialization.cs | 16 +- ...ateEndpointConnectionData.Serialization.cs | 29 ++- .../Generated/Models/Channel.Serialization.cs | 5 + .../src/Generated/Models/Channel.cs | 2 +- .../src/Generated/Models/ChannelName.cs | 9 + .../Models/ChannelSettings.Serialization.cs | 28 ++- .../src/Generated/Models/ChannelSettings.cs | 10 +- ...eAvailabilityResponseBody.Serialization.cs | 8 +- .../CheckNameAvailabilityResponseBody.cs | 6 +- ...nnectionSettingProperties.Serialization.cs | 24 +- .../Models/ConnectionSettingProperties.cs | 10 +- ...rectLineChannelProperties.Serialization.cs | 10 + .../Models/DirectLineChannelProperties.cs | 4 +- .../Models/DirectLineSite.Serialization.cs | 35 ++- .../src/Generated/Models/DirectLineSite.cs | 6 +- .../Models/ListChannelWithKeysResponse.cs | 8 +- .../Models/M365Extensions.Serialization.cs | 83 +++++++ .../src/Generated/Models/M365Extensions.cs | 32 +++ .../Models/Omnichannel.Serialization.cs | 83 +++++++ .../src/Generated/Models/Omnichannel.cs | 32 +++ .../Models/SearchAssistant.Serialization.cs | 83 +++++++ .../src/Generated/Models/SearchAssistant.cs | 32 +++ .../Models/ServiceProviderProperties.cs | 12 +- .../Generated/Models/Site.Serialization.cs | 35 ++- .../src/Generated/Models/Site.cs | 14 +- .../Models/TelephonyChannel.Serialization.cs | 99 ++++++++ .../src/Generated/Models/TelephonyChannel.cs | 37 +++ ...elephonyChannelProperties.Serialization.cs | 190 ++++++++++++++ .../Models/TelephonyChannelProperties.cs | 57 +++++ ...lResourceApiConfiguration.Serialization.cs | 155 ++++++++++++ ...elephonyChannelResourceApiConfiguration.cs | 48 ++++ .../TelephonyPhoneNumbers.Serialization.cs | 235 ++++++++++++++++++ .../Generated/Models/TelephonyPhoneNumbers.cs | 64 +++++ .../Models/WebChatSite.Serialization.cs | 35 ++- .../src/Generated/Models/WebChatSite.cs | 6 +- .../BotConnectionRestOperations.cs | 2 +- .../RestOperations/BotsRestOperations.cs | 2 +- .../RestOperations/ChannelsRestOperations.cs | 2 +- .../DirectLineRestOperations.cs | 2 +- .../RestOperations/EmailRestOperations.cs | 2 +- .../HostSettingsRestOperations.cs | 2 +- .../OperationResultsRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinkResourcesRestOperations.cs | 2 +- .../QnAMakerEndpointKeysRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 51 files changed, 1681 insertions(+), 84 deletions(-) create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.Serialization.cs create mode 100644 sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.cs diff --git a/sdk/botservice/Azure.ResourceManager.BotService/api/Azure.ResourceManager.BotService.netstandard2.0.cs b/sdk/botservice/Azure.ResourceManager.BotService/api/Azure.ResourceManager.BotService.netstandard2.0.cs index d4a865cffc4e..9aa31cdee7ea 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/api/Azure.ResourceManager.BotService.netstandard2.0.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/api/Azure.ResourceManager.BotService.netstandard2.0.cs @@ -146,6 +146,7 @@ public partial class BotServicePrivateEndpointConnectionData : Azure.ResourceMan { public BotServicePrivateEndpointConnectionData() { } public Azure.ResourceManager.BotService.Models.BotServicePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } } + public System.Collections.Generic.IList GroupIds { get { throw null; } } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } public Azure.ResourceManager.BotService.Models.BotServicePrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } } @@ -212,6 +213,10 @@ protected ConnectionSettingResource() { } } namespace Azure.ResourceManager.BotService.Models { + public partial class AcsChatChannel : Azure.ResourceManager.BotService.Models.Channel + { + public AcsChatChannel() { } + } public partial class AlexaChannel : Azure.ResourceManager.BotService.Models.Channel { public AlexaChannel() { } @@ -393,6 +398,7 @@ protected Channel() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ChannelName(string value) { throw null; } + public static Azure.ResourceManager.BotService.Models.ChannelName AcsChatChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName AlexaChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName DirectLineChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName DirectLineSpeechChannel { get { throw null; } } @@ -400,9 +406,11 @@ protected Channel() { } public static Azure.ResourceManager.BotService.Models.ChannelName FacebookChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName KikChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName LineChannel { get { throw null; } } + public static Azure.ResourceManager.BotService.Models.ChannelName M365Extensions { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName MsTeamsChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName Omnichannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName OutlookChannel { get { throw null; } } + public static Azure.ResourceManager.BotService.Models.ChannelName SearchAssistant { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName SkypeChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName SlackChannel { get { throw null; } } public static Azure.ResourceManager.BotService.Models.ChannelName SmsChannel { get { throw null; } } @@ -427,9 +435,10 @@ public ChannelSettings() { } public string ChannelDisplayName { get { throw null; } set { } } public string ChannelId { get { throw null; } set { } } public bool? DisableLocalAuth { get { throw null; } set { } } - public string ExtensionKey1 { get { throw null; } } - public string ExtensionKey2 { get { throw null; } } + public string ExtensionKey1 { get { throw null; } set { } } + public string ExtensionKey2 { get { throw null; } set { } } public bool? IsEnabled { get { throw null; } set { } } + public bool? RequireTermsAgreement { get { throw null; } set { } } public System.Collections.Generic.IList Sites { get { throw null; } } } public partial class CheckNameAvailabilityRequestBody @@ -441,6 +450,7 @@ public CheckNameAvailabilityRequestBody() { } public partial class CheckNameAvailabilityResponseBody { internal CheckNameAvailabilityResponseBody() { } + public string AbsCode { get { throw null; } } public string Message { get { throw null; } } public bool? Valid { get { throw null; } } } @@ -455,8 +465,6 @@ public partial class ConnectionSettingProperties public ConnectionSettingProperties() { } public string ClientId { get { throw null; } set { } } public string ClientSecret { get { throw null; } set { } } - public string Id { get { throw null; } set { } } - public string Name { get { throw null; } set { } } public System.Collections.Generic.IList Parameters { get { throw null; } } public string ProvisioningState { get { throw null; } set { } } public string Scopes { get { throw null; } set { } } @@ -480,8 +488,8 @@ public partial class DirectLineChannelProperties { public DirectLineChannelProperties() { } public string DirectLineEmbedCode { get { throw null; } set { } } - public string ExtensionKey1 { get { throw null; } } - public string ExtensionKey2 { get { throw null; } } + public string ExtensionKey1 { get { throw null; } set { } } + public string ExtensionKey2 { get { throw null; } set { } } public System.Collections.Generic.IList Sites { get { throw null; } } } public partial class DirectLineSite : Azure.ResourceManager.BotService.Models.Site @@ -607,6 +615,10 @@ public ListChannelWithKeysResponse(Azure.Core.AzureLocation location) : base (de public Azure.ResourceManager.BotService.Models.BotServiceSku Sku { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList Zones { get { throw null; } } } + public partial class M365Extensions : Azure.ResourceManager.BotService.Models.Channel + { + public M365Extensions() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MsaAppType : System.IEquatable { @@ -641,6 +653,10 @@ public MsTeamsChannelProperties(bool isEnabled) { } public string IncomingCallRoute { get { throw null; } set { } } public bool IsEnabled { get { throw null; } set { } } } + public partial class Omnichannel : Azure.ResourceManager.BotService.Models.Channel + { + public Omnichannel() { } + } public partial class OperationResultsDescription { internal OperationResultsDescription() { } @@ -711,6 +727,10 @@ public enum RegenerateKeysChannelName WebChatChannel = 0, DirectLineChannel = 1, } + public partial class SearchAssistant : Azure.ResourceManager.BotService.Models.Channel + { + public SearchAssistant() { } + } public partial class ServiceProvider { internal ServiceProvider() { } @@ -752,10 +772,12 @@ public Site(string siteName, bool isEnabled) { } public bool? IsV1Enabled { get { throw null; } set { } } public bool? IsV3Enabled { get { throw null; } set { } } public bool? IsWebchatPreviewEnabled { get { throw null; } set { } } + public bool? IsWebChatSpeechEnabled { get { throw null; } set { } } public string Key { get { throw null; } } public string Key2 { get { throw null; } } public string SiteId { get { throw null; } } public string SiteName { get { throw null; } set { } } + public System.Guid? TenantId { get { throw null; } set { } } public System.Collections.Generic.IList TrustedOrigins { get { throw null; } } } public partial class SiteContent @@ -829,6 +851,46 @@ public TelegramChannelProperties(bool isEnabled) { } public bool IsEnabled { get { throw null; } set { } } public bool? IsValidated { get { throw null; } set { } } } + public partial class TelephonyChannel : Azure.ResourceManager.BotService.Models.Channel + { + public TelephonyChannel() { } + public Azure.ResourceManager.BotService.Models.TelephonyChannelProperties Properties { get { throw null; } set { } } + } + public partial class TelephonyChannelProperties + { + public TelephonyChannelProperties() { } + public System.Collections.Generic.IList ApiConfigurations { get { throw null; } } + public string CognitiveServiceRegion { get { throw null; } set { } } + public string CognitiveServiceSubscriptionKey { get { throw null; } set { } } + public string DefaultLocale { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public System.Collections.Generic.IList PhoneNumbers { get { throw null; } } + public string PremiumSKU { get { throw null; } set { } } + } + public partial class TelephonyChannelResourceApiConfiguration + { + public TelephonyChannelResourceApiConfiguration() { } + public string CognitiveServiceRegion { get { throw null; } set { } } + public string CognitiveServiceResourceId { get { throw null; } set { } } + public string CognitiveServiceSubscriptionKey { get { throw null; } set { } } + public string DefaultLocale { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string ProviderName { get { throw null; } set { } } + } + public partial class TelephonyPhoneNumbers + { + public TelephonyPhoneNumbers() { } + public string AcsEndpoint { get { throw null; } set { } } + public string AcsResourceId { get { throw null; } set { } } + public string AcsSecret { get { throw null; } set { } } + public string CognitiveServiceRegion { get { throw null; } set { } } + public string CognitiveServiceResourceId { get { throw null; } set { } } + public string CognitiveServiceSubscriptionKey { get { throw null; } set { } } + public string DefaultLocale { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + public string OfferType { get { throw null; } set { } } + public string PhoneNumber { get { throw null; } set { } } + } public partial class WebChatChannel : Azure.ResourceManager.BotService.Models.Channel { public WebChatChannel() { } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.cs index c2f369fa7222..2e54444917fc 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.cs @@ -33,7 +33,7 @@ public BotChannelData(AzureLocation location) : base(location) /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// /// Gets or sets the SKU of the resource. /// Required. Gets or sets the Kind of the resource. @@ -51,7 +51,7 @@ internal BotChannelData(ResourceIdentifier id, string name, ResourceType resourc /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// public Channel Properties { get; set; } /// Gets or sets the SKU of the resource. diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionData.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionData.cs index 48831b90c2f6..e57098cae474 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionData.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionData.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.BotService.Models; using Azure.ResourceManager.Models; @@ -18,6 +19,7 @@ public partial class BotServicePrivateEndpointConnectionData : ResourceData /// Initializes a new instance of BotServicePrivateEndpointConnectionData. public BotServicePrivateEndpointConnectionData() { + GroupIds = new ChangeTrackingList(); } /// Initializes a new instance of BotServicePrivateEndpointConnectionData. @@ -28,11 +30,13 @@ public BotServicePrivateEndpointConnectionData() /// The resource of private end point. /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. - internal BotServicePrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, BotServicePrivateLinkServiceConnectionState connectionState, BotServicePrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData) + /// Group ids. + internal BotServicePrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, BotServicePrivateLinkServiceConnectionState connectionState, BotServicePrivateEndpointConnectionProvisioningState? provisioningState, IList groupIds) : base(id, name, resourceType, systemData) { PrivateEndpoint = privateEndpoint; ConnectionState = connectionState; ProvisioningState = provisioningState; + GroupIds = groupIds; } /// The resource of private end point. @@ -47,5 +51,7 @@ public ResourceIdentifier PrivateEndpointId public BotServicePrivateLinkServiceConnectionState ConnectionState { get; set; } /// The provisioning state of the private endpoint connection resource. public BotServicePrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + /// Group ids. + public IList GroupIds { get; } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.Serialization.cs new file mode 100644 index 000000000000..c71d6ce160f1 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.Serialization.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class AcsChatChannel : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("channelName"); + writer.WriteStringValue(ChannelName); + if (Optional.IsDefined(ETag)) + { + if (ETag != null) + { + writer.WritePropertyName("etag"); + writer.WriteStringValue(ETag.ToString()); + } + else + { + writer.WriteNull("etag"); + } + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location.Value); + } + writer.WriteEndObject(); + } + + internal static AcsChatChannel DeserializeAcsChatChannel(JsonElement element) + { + string channelName = default; + Optional etag = default; + Optional provisioningState = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("channelName")) + { + channelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + etag = null; + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new AcsChatChannel(channelName, Optional.ToNullable(etag), provisioningState.Value, Optional.ToNullable(location)); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.cs new file mode 100644 index 000000000000..e43b28feaae2 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AcsChatChannel.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// AcsChat channel definition. + public partial class AcsChatChannel : Channel + { + /// Initializes a new instance of AcsChatChannel. + public AcsChatChannel() + { + ChannelName = "AcsChatChannel"; + } + + /// Initializes a new instance of AcsChatChannel. + /// The channel name. + /// Entity Tag of the resource. + /// Provisioning state of the resource. + /// Specifies the location of the resource. + internal AcsChatChannel(string channelName, ETag? etag, string provisioningState, AzureLocation? location) : base(channelName, etag, provisioningState, location) + { + ChannelName = channelName ?? "AcsChatChannel"; + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.Serialization.cs index 34f2e479ff88..10b2ecdd7c3b 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.Serialization.cs @@ -145,8 +145,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } if (Optional.IsDefined(SchemaTransformationVersion)) { - writer.WritePropertyName("schemaTransformationVersion"); - writer.WriteStringValue(SchemaTransformationVersion); + if (SchemaTransformationVersion != null) + { + writer.WritePropertyName("schemaTransformationVersion"); + writer.WriteStringValue(SchemaTransformationVersion); + } + else + { + writer.WriteNull("schemaTransformationVersion"); + } } if (Optional.IsDefined(StorageResourceId)) { @@ -457,6 +464,11 @@ internal static BotProperties DeserializeBotProperties(JsonElement element) } if (property.NameEquals("schemaTransformationVersion")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + schemaTransformationVersion = null; + continue; + } schemaTransformationVersion = property.Value.GetString(); continue; } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionData.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionData.Serialization.cs index b8c0b4f64a99..b17c7fd5f4e0 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionData.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.BotService.Models; @@ -30,6 +31,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("privateLinkServiceConnectionState"); writer.WriteObjectValue(ConnectionState); } + if (Optional.IsCollectionDefined(GroupIds)) + { + writer.WritePropertyName("groupIds"); + writer.WriteStartArray(); + foreach (var item in GroupIds) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -43,6 +54,7 @@ internal static BotServicePrivateEndpointConnectionData DeserializeBotServicePri Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; Optional provisioningState = default; + Optional> groupIds = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -109,11 +121,26 @@ internal static BotServicePrivateEndpointConnectionData DeserializeBotServicePri provisioningState = new BotServicePrivateEndpointConnectionProvisioningState(property0.Value.GetString()); continue; } + if (property0.NameEquals("groupIds")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + groupIds = array; + continue; + } } continue; } } - return new BotServicePrivateEndpointConnectionData(id, name, type, systemData.Value, privateEndpoint, privateLinkServiceConnectionState.Value, Optional.ToNullable(provisioningState)); + return new BotServicePrivateEndpointConnectionData(id, name, type, systemData.Value, privateEndpoint, privateLinkServiceConnectionState.Value, Optional.ToNullable(provisioningState), Optional.ToList(groupIds)); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.Serialization.cs index 2b9096feaa3a..ab08a59637c4 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.Serialization.cs @@ -43,6 +43,7 @@ internal static Channel DeserializeChannel(JsonElement element) { switch (discriminator.GetString()) { + case "AcsChatChannel": return AcsChatChannel.DeserializeAcsChatChannel(element); case "AlexaChannel": return AlexaChannel.DeserializeAlexaChannel(element); case "DirectLineChannel": return DirectLineChannel.DeserializeDirectLineChannel(element); case "DirectLineSpeechChannel": return DirectLineSpeechChannel.DeserializeDirectLineSpeechChannel(element); @@ -50,12 +51,16 @@ internal static Channel DeserializeChannel(JsonElement element) case "FacebookChannel": return FacebookChannel.DeserializeFacebookChannel(element); case "KikChannel": return KikChannel.DeserializeKikChannel(element); case "LineChannel": return LineChannel.DeserializeLineChannel(element); + case "M365Extensions": return M365Extensions.DeserializeM365Extensions(element); case "MsTeamsChannel": return MsTeamsChannel.DeserializeMsTeamsChannel(element); + case "Omnichannel": return Omnichannel.DeserializeOmnichannel(element); case "OutlookChannel": return OutlookChannel.DeserializeOutlookChannel(element); + case "SearchAssistant": return SearchAssistant.DeserializeSearchAssistant(element); case "SkypeChannel": return SkypeChannel.DeserializeSkypeChannel(element); case "SlackChannel": return SlackChannel.DeserializeSlackChannel(element); case "SmsChannel": return SmsChannel.DeserializeSmsChannel(element); case "TelegramChannel": return TelegramChannel.DeserializeTelegramChannel(element); + case "TelephonyChannel": return TelephonyChannel.DeserializeTelephonyChannel(element); case "WebChatChannel": return WebChatChannel.DeserializeWebChatChannel(element); } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.cs index 74084728b253..60a48907f4f4 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Channel.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.BotService.Models /// /// Channel definition /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// public abstract partial class Channel { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelName.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelName.cs index 7f3521d56d48..688b61c91784 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelName.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelName.cs @@ -38,6 +38,9 @@ public ChannelName(string value) private const string OutlookChannelValue = "OutlookChannel"; private const string OmnichannelValue = "Omnichannel"; private const string TelephonyChannelValue = "TelephonyChannel"; + private const string AcsChatChannelValue = "AcsChatChannel"; + private const string SearchAssistantValue = "SearchAssistant"; + private const string M365ExtensionsValue = "M365Extensions"; /// AlexaChannel. public static ChannelName AlexaChannel { get; } = new ChannelName(AlexaChannelValue); @@ -71,6 +74,12 @@ public ChannelName(string value) public static ChannelName Omnichannel { get; } = new ChannelName(OmnichannelValue); /// TelephonyChannel. public static ChannelName TelephonyChannel { get; } = new ChannelName(TelephonyChannelValue); + /// AcsChatChannel. + public static ChannelName AcsChatChannel { get; } = new ChannelName(AcsChatChannelValue); + /// SearchAssistant. + public static ChannelName SearchAssistant { get; } = new ChannelName(SearchAssistantValue); + /// M365Extensions. + public static ChannelName M365Extensions { get; } = new ChannelName(M365ExtensionsValue); /// Determines if two values are the same. public static bool operator ==(ChannelName left, ChannelName right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.Serialization.cs index a075183f8df5..02e7b2f0be2b 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.Serialization.cs @@ -17,6 +17,16 @@ public partial class ChannelSettings : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(ExtensionKey1)) + { + writer.WritePropertyName("extensionKey1"); + writer.WriteStringValue(ExtensionKey1); + } + if (Optional.IsDefined(ExtensionKey2)) + { + writer.WritePropertyName("extensionKey2"); + writer.WriteStringValue(ExtensionKey2); + } if (Optional.IsCollectionDefined(Sites)) { writer.WritePropertyName("sites"); @@ -57,6 +67,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("disableLocalAuth"); writer.WriteBooleanValue(DisableLocalAuth.Value); } + if (Optional.IsDefined(RequireTermsAgreement)) + { + writer.WritePropertyName("requireTermsAgreement"); + writer.WriteBooleanValue(RequireTermsAgreement.Value); + } writer.WriteEndObject(); } @@ -71,6 +86,7 @@ internal static ChannelSettings DeserializeChannelSettings(JsonElement element) Optional botIconUrl = default; Optional isEnabled = default; Optional disableLocalAuth = default; + Optional requireTermsAgreement = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("extensionKey1")) @@ -143,8 +159,18 @@ internal static ChannelSettings DeserializeChannelSettings(JsonElement element) disableLocalAuth = property.Value.GetBoolean(); continue; } + if (property.NameEquals("requireTermsAgreement")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + requireTermsAgreement = property.Value.GetBoolean(); + continue; + } } - return new ChannelSettings(extensionKey1.Value, extensionKey2.Value, Optional.ToList(sites), channelId.Value, channelDisplayName.Value, botId.Value, botIconUrl.Value, Optional.ToNullable(isEnabled), Optional.ToNullable(disableLocalAuth)); + return new ChannelSettings(extensionKey1.Value, extensionKey2.Value, Optional.ToList(sites), channelId.Value, channelDisplayName.Value, botId.Value, botIconUrl.Value, Optional.ToNullable(isEnabled), Optional.ToNullable(disableLocalAuth), Optional.ToNullable(requireTermsAgreement)); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.cs index d945d09af2be..6efaad1053a5 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelSettings.cs @@ -30,7 +30,8 @@ public ChannelSettings() /// The bot icon url. /// Whether this channel is enabled for the bot. /// Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication. - internal ChannelSettings(string extensionKey1, string extensionKey2, IList sites, string channelId, string channelDisplayName, string botId, Uri botIconUri, bool? isEnabled, bool? disableLocalAuth) + /// Whether customer needs to agree to new terms. + internal ChannelSettings(string extensionKey1, string extensionKey2, IList sites, string channelId, string channelDisplayName, string botId, Uri botIconUri, bool? isEnabled, bool? disableLocalAuth, bool? requireTermsAgreement) { ExtensionKey1 = extensionKey1; ExtensionKey2 = extensionKey2; @@ -41,12 +42,13 @@ internal ChannelSettings(string extensionKey1, string extensionKey2, IList BotIconUri = botIconUri; IsEnabled = isEnabled; DisableLocalAuth = disableLocalAuth; + RequireTermsAgreement = requireTermsAgreement; } /// The extensionKey1. - public string ExtensionKey1 { get; } + public string ExtensionKey1 { get; set; } /// The extensionKey2. - public string ExtensionKey2 { get; } + public string ExtensionKey2 { get; set; } /// The list of sites. public IList Sites { get; } /// The channel id. @@ -61,5 +63,7 @@ internal ChannelSettings(string extensionKey1, string extensionKey2, IList public bool? IsEnabled { get; set; } /// Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication. public bool? DisableLocalAuth { get; set; } + /// Whether customer needs to agree to new terms. + public bool? RequireTermsAgreement { get; set; } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.Serialization.cs index 63fd13ec3205..3a61a8d8287f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.Serialization.cs @@ -16,6 +16,7 @@ internal static CheckNameAvailabilityResponseBody DeserializeCheckNameAvailabili { Optional valid = default; Optional message = default; + Optional absCode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("valid")) @@ -33,8 +34,13 @@ internal static CheckNameAvailabilityResponseBody DeserializeCheckNameAvailabili message = property.Value.GetString(); continue; } + if (property.NameEquals("absCode")) + { + absCode = property.Value.GetString(); + continue; + } } - return new CheckNameAvailabilityResponseBody(Optional.ToNullable(valid), message.Value); + return new CheckNameAvailabilityResponseBody(Optional.ToNullable(valid), message.Value, absCode.Value); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.cs index fc6384fa4852..bc62eb84d19f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/CheckNameAvailabilityResponseBody.cs @@ -18,15 +18,19 @@ internal CheckNameAvailabilityResponseBody() /// Initializes a new instance of CheckNameAvailabilityResponseBody. /// indicates if the bot name is valid. /// additional message from the bot management api showing why a bot name is not available. - internal CheckNameAvailabilityResponseBody(bool? valid, string message) + /// response code from ABS. + internal CheckNameAvailabilityResponseBody(bool? valid, string message, string absCode) { Valid = valid; Message = message; + AbsCode = absCode; } /// indicates if the bot name is valid. public bool? Valid { get; } /// additional message from the bot management api showing why a bot name is not available. public string Message { get; } + /// response code from ABS. + public string AbsCode { get; } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.Serialization.cs index 467062862d9e..4970f1f33c52 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.Serialization.cs @@ -16,16 +16,6 @@ public partial class ConnectionSettingProperties : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(Name); - } if (Optional.IsDefined(ClientId)) { writer.WritePropertyName("clientId"); @@ -71,8 +61,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static ConnectionSettingProperties DeserializeConnectionSettingProperties(JsonElement element) { - Optional id = default; - Optional name = default; Optional clientId = default; Optional settingId = default; Optional clientSecret = default; @@ -83,16 +71,6 @@ internal static ConnectionSettingProperties DeserializeConnectionSettingProperti Optional provisioningState = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("id")) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } if (property.NameEquals("clientId")) { clientId = property.Value.GetString(); @@ -144,7 +122,7 @@ internal static ConnectionSettingProperties DeserializeConnectionSettingProperti continue; } } - return new ConnectionSettingProperties(id.Value, name.Value, clientId.Value, settingId.Value, clientSecret.Value, scopes.Value, serviceProviderId.Value, serviceProviderDisplayName.Value, Optional.ToList(parameters), provisioningState.Value); + return new ConnectionSettingProperties(clientId.Value, settingId.Value, clientSecret.Value, scopes.Value, serviceProviderId.Value, serviceProviderDisplayName.Value, Optional.ToList(parameters), provisioningState.Value); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.cs index dd44d0f92b9f..536f06411323 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingProperties.cs @@ -20,8 +20,6 @@ public ConnectionSettingProperties() } /// Initializes a new instance of ConnectionSettingProperties. - /// Id associated with the Connection Setting. - /// Name associated with the Connection Setting. /// Client Id associated with the Connection Setting. /// Setting Id set by the service for the Connection Setting. /// Client Secret associated with the Connection Setting. @@ -30,10 +28,8 @@ public ConnectionSettingProperties() /// Service Provider Display Name associated with the Connection Setting. /// Service Provider Parameters associated with the Connection Setting. /// Provisioning state of the resource. - internal ConnectionSettingProperties(string id, string name, string clientId, string settingId, string clientSecret, string scopes, string serviceProviderId, string serviceProviderDisplayName, IList parameters, string provisioningState) + internal ConnectionSettingProperties(string clientId, string settingId, string clientSecret, string scopes, string serviceProviderId, string serviceProviderDisplayName, IList parameters, string provisioningState) { - Id = id; - Name = name; ClientId = clientId; SettingId = settingId; ClientSecret = clientSecret; @@ -44,10 +40,6 @@ internal ConnectionSettingProperties(string id, string name, string clientId, st ProvisioningState = provisioningState; } - /// Id associated with the Connection Setting. - public string Id { get; set; } - /// Name associated with the Connection Setting. - public string Name { get; set; } /// Client Id associated with the Connection Setting. public string ClientId { get; set; } /// Setting Id set by the service for the Connection Setting. diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.Serialization.cs index 43c21d59f998..371f38cb349a 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.Serialization.cs @@ -26,6 +26,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(ExtensionKey1)) + { + writer.WritePropertyName("extensionKey1"); + writer.WriteStringValue(ExtensionKey1); + } + if (Optional.IsDefined(ExtensionKey2)) + { + writer.WritePropertyName("extensionKey2"); + writer.WriteStringValue(ExtensionKey2); + } if (Optional.IsDefined(DirectLineEmbedCode)) { writer.WritePropertyName("DirectLineEmbedCode"); diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs index c71c5f68f279..4716379a7193 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs @@ -35,9 +35,9 @@ internal DirectLineChannelProperties(IList sites, string extensi /// The list of Direct Line sites. public IList Sites { get; } /// The extensionKey1. - public string ExtensionKey1 { get; } + public string ExtensionKey1 { get; set; } /// The extensionKey2. - public string ExtensionKey2 { get; } + public string ExtensionKey2 { get; set; } /// Direct Line embed code of the resource. public string DirectLineEmbedCode { get; set; } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.Serialization.cs index 1d095c6f60cf..55b7c66ecd57 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure; @@ -17,6 +18,11 @@ public partial class DirectLineSite : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(TenantId)) + { + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId.Value); + } writer.WritePropertyName("siteName"); writer.WriteStringValue(SiteName); writer.WritePropertyName("isEnabled"); @@ -83,6 +89,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(IsWebChatSpeechEnabled)) + { + writer.WritePropertyName("isWebChatSpeechEnabled"); + writer.WriteBooleanValue(IsWebChatSpeechEnabled.Value); + } if (Optional.IsDefined(IsWebchatPreviewEnabled)) { writer.WritePropertyName("isWebchatPreviewEnabled"); @@ -93,6 +104,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static DirectLineSite DeserializeDirectLineSite(JsonElement element) { + Optional tenantId = default; Optional siteId = default; string siteName = default; Optional key = default; @@ -109,9 +121,20 @@ internal static DirectLineSite DeserializeDirectLineSite(JsonElement element) Optional isV3Enabled = default; Optional isSecureSiteEnabled = default; Optional> trustedOrigins = default; + Optional isWebChatSpeechEnabled = default; Optional isWebchatPreviewEnabled = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("tenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } if (property.NameEquals("siteId")) { siteId = property.Value.GetString(); @@ -247,6 +270,16 @@ internal static DirectLineSite DeserializeDirectLineSite(JsonElement element) trustedOrigins = array; continue; } + if (property.NameEquals("isWebChatSpeechEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isWebChatSpeechEnabled = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("isWebchatPreviewEnabled")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -258,7 +291,7 @@ internal static DirectLineSite DeserializeDirectLineSite(JsonElement element) continue; } } - return new DirectLineSite(siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebchatPreviewEnabled)); + return new DirectLineSite(Optional.ToNullable(tenantId), siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebChatSpeechEnabled), Optional.ToNullable(isWebchatPreviewEnabled)); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.cs index e1bb37ec2082..5c87744613e4 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineSite.cs @@ -25,6 +25,7 @@ public DirectLineSite(string siteName, bool isEnabled) : base(siteName, isEnable } /// Initializes a new instance of DirectLineSite. + /// Tenant Id. /// Site Id. /// Site name. /// Primary key. Value only returned through POST to the action Channel List API, otherwise empty. @@ -38,11 +39,12 @@ public DirectLineSite(string siteName, bool isEnabled) : base(siteName, isEnable /// Entity Tag. /// DirectLine application id. /// Whether this site is enabled for Bot Framework V1 protocol. - /// Whether this site is enabled for Bot Framework V1 protocol. + /// Whether this site is enabled for Bot Framework V3 protocol. /// Whether this site is enabled for authentication with Bot Framework. /// List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. + /// Whether this site is enabled for Webchat Speech. /// Whether this site is enabled for preview versions of Webchat. - internal DirectLineSite(string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebchatPreviewEnabled) : base(siteId, siteName, key, key2, isEnabled, isTokenEnabled, isEndpointParametersEnabled, isDetailedLoggingEnabled, isBlockUserUploadEnabled, isNoStorageEnabled, etag, appId, isV1Enabled, isV3Enabled, isSecureSiteEnabled, trustedOrigins, isWebchatPreviewEnabled) + internal DirectLineSite(Guid? tenantId, string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebChatSpeechEnabled, bool? isWebchatPreviewEnabled) : base(tenantId, siteId, siteName, key, key2, isEnabled, isTokenEnabled, isEndpointParametersEnabled, isDetailedLoggingEnabled, isBlockUserUploadEnabled, isNoStorageEnabled, etag, appId, isV1Enabled, isV3Enabled, isSecureSiteEnabled, trustedOrigins, isWebChatSpeechEnabled, isWebchatPreviewEnabled) { } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ListChannelWithKeysResponse.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ListChannelWithKeysResponse.cs index 57e63929b7b5..f5ab59689358 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ListChannelWithKeysResponse.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ListChannelWithKeysResponse.cs @@ -32,7 +32,7 @@ public ListChannelWithKeysResponse(AzureLocation location) : base(location) /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// /// Channel settings. /// Provisioning state of the resource. @@ -41,7 +41,7 @@ public ListChannelWithKeysResponse(AzureLocation location) : base(location) /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// /// Gets or sets the SKU of the resource. /// Required. Gets or sets the Kind of the resource. @@ -64,7 +64,7 @@ internal ListChannelWithKeysResponse(ResourceIdentifier id, string name, Resourc /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// public Channel Resource { get; set; } /// Channel settings. @@ -78,7 +78,7 @@ internal ListChannelWithKeysResponse(ResourceIdentifier id, string name, Resourc /// /// The set of properties specific to bot channel resource /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , and . /// public Channel Properties { get; set; } /// Gets or sets the SKU of the resource. diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.Serialization.cs new file mode 100644 index 000000000000..8069fb189e56 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.Serialization.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class M365Extensions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("channelName"); + writer.WriteStringValue(ChannelName); + if (Optional.IsDefined(ETag)) + { + if (ETag != null) + { + writer.WritePropertyName("etag"); + writer.WriteStringValue(ETag.ToString()); + } + else + { + writer.WriteNull("etag"); + } + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location.Value); + } + writer.WriteEndObject(); + } + + internal static M365Extensions DeserializeM365Extensions(JsonElement element) + { + string channelName = default; + Optional etag = default; + Optional provisioningState = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("channelName")) + { + channelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + etag = null; + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new M365Extensions(channelName, Optional.ToNullable(etag), provisioningState.Value, Optional.ToNullable(location)); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.cs new file mode 100644 index 000000000000..34f8e1ba0f7a --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/M365Extensions.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// M365 Extensions definition. + public partial class M365Extensions : Channel + { + /// Initializes a new instance of M365Extensions. + public M365Extensions() + { + ChannelName = "M365Extensions"; + } + + /// Initializes a new instance of M365Extensions. + /// The channel name. + /// Entity Tag of the resource. + /// Provisioning state of the resource. + /// Specifies the location of the resource. + internal M365Extensions(string channelName, ETag? etag, string provisioningState, AzureLocation? location) : base(channelName, etag, provisioningState, location) + { + ChannelName = channelName ?? "M365Extensions"; + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.Serialization.cs new file mode 100644 index 000000000000..db639119ce7e --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.Serialization.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class Omnichannel : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("channelName"); + writer.WriteStringValue(ChannelName); + if (Optional.IsDefined(ETag)) + { + if (ETag != null) + { + writer.WritePropertyName("etag"); + writer.WriteStringValue(ETag.ToString()); + } + else + { + writer.WriteNull("etag"); + } + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location.Value); + } + writer.WriteEndObject(); + } + + internal static Omnichannel DeserializeOmnichannel(JsonElement element) + { + string channelName = default; + Optional etag = default; + Optional provisioningState = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("channelName")) + { + channelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + etag = null; + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new Omnichannel(channelName, Optional.ToNullable(etag), provisioningState.Value, Optional.ToNullable(location)); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.cs new file mode 100644 index 000000000000..7e4579c5afe5 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Omnichannel.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// Omnichannel channel definition. + public partial class Omnichannel : Channel + { + /// Initializes a new instance of Omnichannel. + public Omnichannel() + { + ChannelName = "Omnichannel"; + } + + /// Initializes a new instance of Omnichannel. + /// The channel name. + /// Entity Tag of the resource. + /// Provisioning state of the resource. + /// Specifies the location of the resource. + internal Omnichannel(string channelName, ETag? etag, string provisioningState, AzureLocation? location) : base(channelName, etag, provisioningState, location) + { + ChannelName = channelName ?? "Omnichannel"; + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.Serialization.cs new file mode 100644 index 000000000000..cf6c965081ae --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.Serialization.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class SearchAssistant : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("channelName"); + writer.WriteStringValue(ChannelName); + if (Optional.IsDefined(ETag)) + { + if (ETag != null) + { + writer.WritePropertyName("etag"); + writer.WriteStringValue(ETag.ToString()); + } + else + { + writer.WriteNull("etag"); + } + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location.Value); + } + writer.WriteEndObject(); + } + + internal static SearchAssistant DeserializeSearchAssistant(JsonElement element) + { + string channelName = default; + Optional etag = default; + Optional provisioningState = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("channelName")) + { + channelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + etag = null; + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new SearchAssistant(channelName, Optional.ToNullable(etag), provisioningState.Value, Optional.ToNullable(location)); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.cs new file mode 100644 index 000000000000..6e7ac22e6957 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/SearchAssistant.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// SearchAssistant definition. + public partial class SearchAssistant : Channel + { + /// Initializes a new instance of SearchAssistant. + public SearchAssistant() + { + ChannelName = "SearchAssistant"; + } + + /// Initializes a new instance of SearchAssistant. + /// The channel name. + /// Entity Tag of the resource. + /// Provisioning state of the resource. + /// Specifies the location of the resource. + internal SearchAssistant(string channelName, ETag? etag, string provisioningState, AzureLocation? location) : base(channelName, etag, provisioningState, location) + { + ChannelName = channelName ?? "SearchAssistant"; + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderProperties.cs index cae54d788659..c4584e3a5374 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderProperties.cs @@ -23,9 +23,9 @@ internal ServiceProviderProperties() /// Initializes a new instance of ServiceProviderProperties. /// Id for Service Provider. /// Display Name of the Service Provider. - /// Display Name of the Service Provider. - /// Display Name of the Service Provider. - /// Display Name of the Service Provider. + /// Name of the Service Provider. + /// URL of Dev Portal. + /// The URL of icon. /// The list of parameters for the Service Provider. internal ServiceProviderProperties(string id, string displayName, string serviceProviderName, Uri devPortalUri, Uri iconUri, IReadOnlyList parameters) { @@ -41,11 +41,11 @@ internal ServiceProviderProperties(string id, string displayName, string service public string Id { get; } /// Display Name of the Service Provider. public string DisplayName { get; } - /// Display Name of the Service Provider. + /// Name of the Service Provider. public string ServiceProviderName { get; } - /// Display Name of the Service Provider. + /// URL of Dev Portal. public Uri DevPortalUri { get; } - /// Display Name of the Service Provider. + /// The URL of icon. public Uri IconUri { get; } /// The list of parameters for the Service Provider. public IReadOnlyList Parameters { get; } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.Serialization.cs index 66c034195478..7a1049d4db89 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure; @@ -17,6 +18,11 @@ public partial class Site : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(TenantId)) + { + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId.Value); + } writer.WritePropertyName("siteName"); writer.WriteStringValue(SiteName); writer.WritePropertyName("isEnabled"); @@ -83,6 +89,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(IsWebChatSpeechEnabled)) + { + writer.WritePropertyName("isWebChatSpeechEnabled"); + writer.WriteBooleanValue(IsWebChatSpeechEnabled.Value); + } if (Optional.IsDefined(IsWebchatPreviewEnabled)) { writer.WritePropertyName("isWebchatPreviewEnabled"); @@ -93,6 +104,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static Site DeserializeSite(JsonElement element) { + Optional tenantId = default; Optional siteId = default; string siteName = default; Optional key = default; @@ -109,9 +121,20 @@ internal static Site DeserializeSite(JsonElement element) Optional isV3Enabled = default; Optional isSecureSiteEnabled = default; Optional> trustedOrigins = default; + Optional isWebChatSpeechEnabled = default; Optional isWebchatPreviewEnabled = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("tenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } if (property.NameEquals("siteId")) { siteId = property.Value.GetString(); @@ -247,6 +270,16 @@ internal static Site DeserializeSite(JsonElement element) trustedOrigins = array; continue; } + if (property.NameEquals("isWebChatSpeechEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isWebChatSpeechEnabled = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("isWebchatPreviewEnabled")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -258,7 +291,7 @@ internal static Site DeserializeSite(JsonElement element) continue; } } - return new Site(siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebchatPreviewEnabled)); + return new Site(Optional.ToNullable(tenantId), siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebChatSpeechEnabled), Optional.ToNullable(isWebchatPreviewEnabled)); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.cs index 67b5ebe72d6e..82f85774a69f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/Site.cs @@ -29,6 +29,7 @@ public Site(string siteName, bool isEnabled) } /// Initializes a new instance of Site. + /// Tenant Id. /// Site Id. /// Site name. /// Primary key. Value only returned through POST to the action Channel List API, otherwise empty. @@ -42,12 +43,14 @@ public Site(string siteName, bool isEnabled) /// Entity Tag. /// DirectLine application id. /// Whether this site is enabled for Bot Framework V1 protocol. - /// Whether this site is enabled for Bot Framework V1 protocol. + /// Whether this site is enabled for Bot Framework V3 protocol. /// Whether this site is enabled for authentication with Bot Framework. /// List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. + /// Whether this site is enabled for Webchat Speech. /// Whether this site is enabled for preview versions of Webchat. - internal Site(string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebchatPreviewEnabled) + internal Site(Guid? tenantId, string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebChatSpeechEnabled, bool? isWebchatPreviewEnabled) { + TenantId = tenantId; SiteId = siteId; SiteName = siteName; Key = key; @@ -64,9 +67,12 @@ internal Site(string siteId, string siteName, string key, string key2, bool isEn IsV3Enabled = isV3Enabled; IsSecureSiteEnabled = isSecureSiteEnabled; TrustedOrigins = trustedOrigins; + IsWebChatSpeechEnabled = isWebChatSpeechEnabled; IsWebchatPreviewEnabled = isWebchatPreviewEnabled; } + /// Tenant Id. + public Guid? TenantId { get; set; } /// Site Id. public string SiteId { get; } /// Site name. @@ -93,12 +99,14 @@ internal Site(string siteId, string siteName, string key, string key2, bool isEn public string AppId { get; set; } /// Whether this site is enabled for Bot Framework V1 protocol. public bool? IsV1Enabled { get; set; } - /// Whether this site is enabled for Bot Framework V1 protocol. + /// Whether this site is enabled for Bot Framework V3 protocol. public bool? IsV3Enabled { get; set; } /// Whether this site is enabled for authentication with Bot Framework. public bool? IsSecureSiteEnabled { get; set; } /// List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. public IList TrustedOrigins { get; } + /// Whether this site is enabled for Webchat Speech. + public bool? IsWebChatSpeechEnabled { get; set; } /// Whether this site is enabled for preview versions of Webchat. public bool? IsWebchatPreviewEnabled { get; set; } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.Serialization.cs new file mode 100644 index 000000000000..fddda0b3eba0 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.Serialization.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class TelephonyChannel : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + writer.WritePropertyName("channelName"); + writer.WriteStringValue(ChannelName); + if (Optional.IsDefined(ETag)) + { + if (ETag != null) + { + writer.WritePropertyName("etag"); + writer.WriteStringValue(ETag.ToString()); + } + else + { + writer.WriteNull("etag"); + } + } + if (Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location.Value); + } + writer.WriteEndObject(); + } + + internal static TelephonyChannel DeserializeTelephonyChannel(JsonElement element) + { + Optional properties = default; + string channelName = default; + Optional etag = default; + Optional provisioningState = default; + Optional location = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = TelephonyChannelProperties.DeserializeTelephonyChannelProperties(property.Value); + continue; + } + if (property.NameEquals("channelName")) + { + channelName = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + etag = null; + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + } + return new TelephonyChannel(channelName, Optional.ToNullable(etag), provisioningState.Value, Optional.ToNullable(location), properties.Value); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.cs new file mode 100644 index 000000000000..a2ff802f71b1 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannel.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// Telephony channel definition. + public partial class TelephonyChannel : Channel + { + /// Initializes a new instance of TelephonyChannel. + public TelephonyChannel() + { + ChannelName = "TelephonyChannel"; + } + + /// Initializes a new instance of TelephonyChannel. + /// The channel name. + /// Entity Tag of the resource. + /// Provisioning state of the resource. + /// Specifies the location of the resource. + /// The set of properties specific to Telephony channel resource. + internal TelephonyChannel(string channelName, ETag? etag, string provisioningState, AzureLocation? location, TelephonyChannelProperties properties) : base(channelName, etag, provisioningState, location) + { + Properties = properties; + ChannelName = channelName ?? "TelephonyChannel"; + } + + /// The set of properties specific to Telephony channel resource. + public TelephonyChannelProperties Properties { get; set; } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.Serialization.cs new file mode 100644 index 000000000000..e2c196422334 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.Serialization.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class TelephonyChannelProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(PhoneNumbers)) + { + writer.WritePropertyName("phoneNumbers"); + writer.WriteStartArray(); + foreach (var item in PhoneNumbers) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ApiConfigurations)) + { + writer.WritePropertyName("apiConfigurations"); + writer.WriteStartArray(); + foreach (var item in ApiConfigurations) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(CognitiveServiceSubscriptionKey)) + { + if (CognitiveServiceSubscriptionKey != null) + { + writer.WritePropertyName("cognitiveServiceSubscriptionKey"); + writer.WriteStringValue(CognitiveServiceSubscriptionKey); + } + else + { + writer.WriteNull("cognitiveServiceSubscriptionKey"); + } + } + if (Optional.IsDefined(CognitiveServiceRegion)) + { + if (CognitiveServiceRegion != null) + { + writer.WritePropertyName("cognitiveServiceRegion"); + writer.WriteStringValue(CognitiveServiceRegion); + } + else + { + writer.WriteNull("cognitiveServiceRegion"); + } + } + if (Optional.IsDefined(DefaultLocale)) + { + if (DefaultLocale != null) + { + writer.WritePropertyName("defaultLocale"); + writer.WriteStringValue(DefaultLocale); + } + else + { + writer.WriteNull("defaultLocale"); + } + } + if (Optional.IsDefined(PremiumSKU)) + { + if (PremiumSKU != null) + { + writer.WritePropertyName("premiumSKU"); + writer.WriteStringValue(PremiumSKU); + } + else + { + writer.WriteNull("premiumSKU"); + } + } + if (Optional.IsDefined(IsEnabled)) + { + writer.WritePropertyName("isEnabled"); + writer.WriteBooleanValue(IsEnabled.Value); + } + writer.WriteEndObject(); + } + + internal static TelephonyChannelProperties DeserializeTelephonyChannelProperties(JsonElement element) + { + Optional> phoneNumbers = default; + Optional> apiConfigurations = default; + Optional cognitiveServiceSubscriptionKey = default; + Optional cognitiveServiceRegion = default; + Optional defaultLocale = default; + Optional premiumSKU = default; + Optional isEnabled = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("phoneNumbers")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TelephonyPhoneNumbers.DeserializeTelephonyPhoneNumbers(item)); + } + phoneNumbers = array; + continue; + } + if (property.NameEquals("apiConfigurations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TelephonyChannelResourceApiConfiguration.DeserializeTelephonyChannelResourceApiConfiguration(item)); + } + apiConfigurations = array; + continue; + } + if (property.NameEquals("cognitiveServiceSubscriptionKey")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceSubscriptionKey = null; + continue; + } + cognitiveServiceSubscriptionKey = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceRegion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceRegion = null; + continue; + } + cognitiveServiceRegion = property.Value.GetString(); + continue; + } + if (property.NameEquals("defaultLocale")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + defaultLocale = null; + continue; + } + defaultLocale = property.Value.GetString(); + continue; + } + if (property.NameEquals("premiumSKU")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + premiumSKU = null; + continue; + } + premiumSKU = property.Value.GetString(); + continue; + } + if (property.NameEquals("isEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isEnabled = property.Value.GetBoolean(); + continue; + } + } + return new TelephonyChannelProperties(Optional.ToList(phoneNumbers), Optional.ToList(apiConfigurations), cognitiveServiceSubscriptionKey.Value, cognitiveServiceRegion.Value, defaultLocale.Value, premiumSKU.Value, Optional.ToNullable(isEnabled)); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs new file mode 100644 index 000000000000..1c95515a9864 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + /// The parameters to provide for the Direct Line channel. + public partial class TelephonyChannelProperties + { + /// Initializes a new instance of TelephonyChannelProperties. + public TelephonyChannelProperties() + { + PhoneNumbers = new ChangeTrackingList(); + ApiConfigurations = new ChangeTrackingList(); + } + + /// Initializes a new instance of TelephonyChannelProperties. + /// The list of Telephony phone numbers. + /// The list of Telephony api configuration. + /// The extensionKey1. + /// The extensionKey2. + /// The default locale of the channel. + /// The premium SKU applied to the channel. + /// Whether the channel is enabled. + internal TelephonyChannelProperties(IList phoneNumbers, IList apiConfigurations, string cognitiveServiceSubscriptionKey, string cognitiveServiceRegion, string defaultLocale, string premiumSKU, bool? isEnabled) + { + PhoneNumbers = phoneNumbers; + ApiConfigurations = apiConfigurations; + CognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey; + CognitiveServiceRegion = cognitiveServiceRegion; + DefaultLocale = defaultLocale; + PremiumSKU = premiumSKU; + IsEnabled = isEnabled; + } + + /// The list of Telephony phone numbers. + public IList PhoneNumbers { get; } + /// The list of Telephony api configuration. + public IList ApiConfigurations { get; } + /// The extensionKey1. + public string CognitiveServiceSubscriptionKey { get; set; } + /// The extensionKey2. + public string CognitiveServiceRegion { get; set; } + /// The default locale of the channel. + public string DefaultLocale { get; set; } + /// The premium SKU applied to the channel. + public string PremiumSKU { get; set; } + /// Whether the channel is enabled. + public bool? IsEnabled { get; set; } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.Serialization.cs new file mode 100644 index 000000000000..1c80c59ec954 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.Serialization.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class TelephonyChannelResourceApiConfiguration : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(ProviderName)) + { + if (ProviderName != null) + { + writer.WritePropertyName("providerName"); + writer.WriteStringValue(ProviderName); + } + else + { + writer.WriteNull("providerName"); + } + } + if (Optional.IsDefined(CognitiveServiceSubscriptionKey)) + { + if (CognitiveServiceSubscriptionKey != null) + { + writer.WritePropertyName("cognitiveServiceSubscriptionKey"); + writer.WriteStringValue(CognitiveServiceSubscriptionKey); + } + else + { + writer.WriteNull("cognitiveServiceSubscriptionKey"); + } + } + if (Optional.IsDefined(CognitiveServiceRegion)) + { + if (CognitiveServiceRegion != null) + { + writer.WritePropertyName("cognitiveServiceRegion"); + writer.WriteStringValue(CognitiveServiceRegion); + } + else + { + writer.WriteNull("cognitiveServiceRegion"); + } + } + if (Optional.IsDefined(CognitiveServiceResourceId)) + { + if (CognitiveServiceResourceId != null) + { + writer.WritePropertyName("cognitiveServiceResourceId"); + writer.WriteStringValue(CognitiveServiceResourceId); + } + else + { + writer.WriteNull("cognitiveServiceResourceId"); + } + } + if (Optional.IsDefined(DefaultLocale)) + { + if (DefaultLocale != null) + { + writer.WritePropertyName("defaultLocale"); + writer.WriteStringValue(DefaultLocale); + } + else + { + writer.WriteNull("defaultLocale"); + } + } + writer.WriteEndObject(); + } + + internal static TelephonyChannelResourceApiConfiguration DeserializeTelephonyChannelResourceApiConfiguration(JsonElement element) + { + Optional id = default; + Optional providerName = default; + Optional cognitiveServiceSubscriptionKey = default; + Optional cognitiveServiceRegion = default; + Optional cognitiveServiceResourceId = default; + Optional defaultLocale = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("providerName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + providerName = null; + continue; + } + providerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceSubscriptionKey")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceSubscriptionKey = null; + continue; + } + cognitiveServiceSubscriptionKey = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceRegion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceRegion = null; + continue; + } + cognitiveServiceRegion = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceResourceId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceResourceId = null; + continue; + } + cognitiveServiceResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("defaultLocale")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + defaultLocale = null; + continue; + } + defaultLocale = property.Value.GetString(); + continue; + } + } + return new TelephonyChannelResourceApiConfiguration(id.Value, providerName.Value, cognitiveServiceSubscriptionKey.Value, cognitiveServiceRegion.Value, cognitiveServiceResourceId.Value, defaultLocale.Value); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.cs new file mode 100644 index 000000000000..3e07793b3468 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelResourceApiConfiguration.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.BotService.Models +{ + /// A resource Api configuration for the Telephony channel. + public partial class TelephonyChannelResourceApiConfiguration + { + /// Initializes a new instance of TelephonyChannelResourceApiConfiguration. + public TelephonyChannelResourceApiConfiguration() + { + } + + /// Initializes a new instance of TelephonyChannelResourceApiConfiguration. + /// The id of config. + /// The provider name. + /// The cognitive service subscription key. + /// The cognitive service region. + /// The cognitive service resourceId. + /// The default locale. + internal TelephonyChannelResourceApiConfiguration(string id, string providerName, string cognitiveServiceSubscriptionKey, string cognitiveServiceRegion, string cognitiveServiceResourceId, string defaultLocale) + { + Id = id; + ProviderName = providerName; + CognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey; + CognitiveServiceRegion = cognitiveServiceRegion; + CognitiveServiceResourceId = cognitiveServiceResourceId; + DefaultLocale = defaultLocale; + } + + /// The id of config. + public string Id { get; set; } + /// The provider name. + public string ProviderName { get; set; } + /// The cognitive service subscription key. + public string CognitiveServiceSubscriptionKey { get; set; } + /// The cognitive service region. + public string CognitiveServiceRegion { get; set; } + /// The cognitive service resourceId. + public string CognitiveServiceResourceId { get; set; } + /// The default locale. + public string DefaultLocale { get; set; } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.Serialization.cs new file mode 100644 index 000000000000..3ffbc550369a --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.Serialization.cs @@ -0,0 +1,235 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.BotService.Models +{ + public partial class TelephonyPhoneNumbers : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(PhoneNumber)) + { + writer.WritePropertyName("phoneNumber"); + writer.WriteStringValue(PhoneNumber); + } + if (Optional.IsDefined(AcsEndpoint)) + { + if (AcsEndpoint != null) + { + writer.WritePropertyName("acsEndpoint"); + writer.WriteStringValue(AcsEndpoint); + } + else + { + writer.WriteNull("acsEndpoint"); + } + } + if (Optional.IsDefined(AcsSecret)) + { + if (AcsSecret != null) + { + writer.WritePropertyName("acsSecret"); + writer.WriteStringValue(AcsSecret); + } + else + { + writer.WriteNull("acsSecret"); + } + } + if (Optional.IsDefined(AcsResourceId)) + { + if (AcsResourceId != null) + { + writer.WritePropertyName("acsResourceId"); + writer.WriteStringValue(AcsResourceId); + } + else + { + writer.WriteNull("acsResourceId"); + } + } + if (Optional.IsDefined(CognitiveServiceSubscriptionKey)) + { + if (CognitiveServiceSubscriptionKey != null) + { + writer.WritePropertyName("cognitiveServiceSubscriptionKey"); + writer.WriteStringValue(CognitiveServiceSubscriptionKey); + } + else + { + writer.WriteNull("cognitiveServiceSubscriptionKey"); + } + } + if (Optional.IsDefined(CognitiveServiceRegion)) + { + if (CognitiveServiceRegion != null) + { + writer.WritePropertyName("cognitiveServiceRegion"); + writer.WriteStringValue(CognitiveServiceRegion); + } + else + { + writer.WriteNull("cognitiveServiceRegion"); + } + } + if (Optional.IsDefined(CognitiveServiceResourceId)) + { + if (CognitiveServiceResourceId != null) + { + writer.WritePropertyName("cognitiveServiceResourceId"); + writer.WriteStringValue(CognitiveServiceResourceId); + } + else + { + writer.WriteNull("cognitiveServiceResourceId"); + } + } + if (Optional.IsDefined(DefaultLocale)) + { + if (DefaultLocale != null) + { + writer.WritePropertyName("defaultLocale"); + writer.WriteStringValue(DefaultLocale); + } + else + { + writer.WriteNull("defaultLocale"); + } + } + if (Optional.IsDefined(OfferType)) + { + if (OfferType != null) + { + writer.WritePropertyName("offerType"); + writer.WriteStringValue(OfferType); + } + else + { + writer.WriteNull("offerType"); + } + } + writer.WriteEndObject(); + } + + internal static TelephonyPhoneNumbers DeserializeTelephonyPhoneNumbers(JsonElement element) + { + Optional id = default; + Optional phoneNumber = default; + Optional acsEndpoint = default; + Optional acsSecret = default; + Optional acsResourceId = default; + Optional cognitiveServiceSubscriptionKey = default; + Optional cognitiveServiceRegion = default; + Optional cognitiveServiceResourceId = default; + Optional defaultLocale = default; + Optional offerType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("phoneNumber")) + { + phoneNumber = property.Value.GetString(); + continue; + } + if (property.NameEquals("acsEndpoint")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acsEndpoint = null; + continue; + } + acsEndpoint = property.Value.GetString(); + continue; + } + if (property.NameEquals("acsSecret")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acsSecret = null; + continue; + } + acsSecret = property.Value.GetString(); + continue; + } + if (property.NameEquals("acsResourceId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + acsResourceId = null; + continue; + } + acsResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceSubscriptionKey")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceSubscriptionKey = null; + continue; + } + cognitiveServiceSubscriptionKey = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceRegion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceRegion = null; + continue; + } + cognitiveServiceRegion = property.Value.GetString(); + continue; + } + if (property.NameEquals("cognitiveServiceResourceId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + cognitiveServiceResourceId = null; + continue; + } + cognitiveServiceResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("defaultLocale")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + defaultLocale = null; + continue; + } + defaultLocale = property.Value.GetString(); + continue; + } + if (property.NameEquals("offerType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + offerType = null; + continue; + } + offerType = property.Value.GetString(); + continue; + } + } + return new TelephonyPhoneNumbers(id.Value, phoneNumber.Value, acsEndpoint.Value, acsSecret.Value, acsResourceId.Value, cognitiveServiceSubscriptionKey.Value, cognitiveServiceRegion.Value, cognitiveServiceResourceId.Value, defaultLocale.Value, offerType.Value); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.cs new file mode 100644 index 000000000000..faff79f8299e --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyPhoneNumbers.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.BotService.Models +{ + /// A telephone number for the Telephony channel. + public partial class TelephonyPhoneNumbers + { + /// Initializes a new instance of TelephonyPhoneNumbers. + public TelephonyPhoneNumbers() + { + } + + /// Initializes a new instance of TelephonyPhoneNumbers. + /// The element id. + /// The phone number. + /// The endpoint of ACS. + /// The secret of ACS. + /// The resource id of ACS. + /// The subscription key of cognitive service. + /// The service region of cognitive service. + /// The resource id of cognitive service. + /// The default locale of the phone number. + /// Optional Property that will determine the offering type of the phone. + internal TelephonyPhoneNumbers(string id, string phoneNumber, string acsEndpoint, string acsSecret, string acsResourceId, string cognitiveServiceSubscriptionKey, string cognitiveServiceRegion, string cognitiveServiceResourceId, string defaultLocale, string offerType) + { + Id = id; + PhoneNumber = phoneNumber; + AcsEndpoint = acsEndpoint; + AcsSecret = acsSecret; + AcsResourceId = acsResourceId; + CognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey; + CognitiveServiceRegion = cognitiveServiceRegion; + CognitiveServiceResourceId = cognitiveServiceResourceId; + DefaultLocale = defaultLocale; + OfferType = offerType; + } + + /// The element id. + public string Id { get; set; } + /// The phone number. + public string PhoneNumber { get; set; } + /// The endpoint of ACS. + public string AcsEndpoint { get; set; } + /// The secret of ACS. + public string AcsSecret { get; set; } + /// The resource id of ACS. + public string AcsResourceId { get; set; } + /// The subscription key of cognitive service. + public string CognitiveServiceSubscriptionKey { get; set; } + /// The service region of cognitive service. + public string CognitiveServiceRegion { get; set; } + /// The resource id of cognitive service. + public string CognitiveServiceResourceId { get; set; } + /// The default locale of the phone number. + public string DefaultLocale { get; set; } + /// Optional Property that will determine the offering type of the phone. + public string OfferType { get; set; } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.Serialization.cs index dfaf8f32df0c..1092425fb35b 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.Serialization.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure; @@ -17,6 +18,11 @@ public partial class WebChatSite : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(TenantId)) + { + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId.Value); + } writer.WritePropertyName("siteName"); writer.WriteStringValue(SiteName); writer.WritePropertyName("isEnabled"); @@ -83,6 +89,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(IsWebChatSpeechEnabled)) + { + writer.WritePropertyName("isWebChatSpeechEnabled"); + writer.WriteBooleanValue(IsWebChatSpeechEnabled.Value); + } if (Optional.IsDefined(IsWebchatPreviewEnabled)) { writer.WritePropertyName("isWebchatPreviewEnabled"); @@ -93,6 +104,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static WebChatSite DeserializeWebChatSite(JsonElement element) { + Optional tenantId = default; Optional siteId = default; string siteName = default; Optional key = default; @@ -109,9 +121,20 @@ internal static WebChatSite DeserializeWebChatSite(JsonElement element) Optional isV3Enabled = default; Optional isSecureSiteEnabled = default; Optional> trustedOrigins = default; + Optional isWebChatSpeechEnabled = default; Optional isWebchatPreviewEnabled = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("tenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } if (property.NameEquals("siteId")) { siteId = property.Value.GetString(); @@ -247,6 +270,16 @@ internal static WebChatSite DeserializeWebChatSite(JsonElement element) trustedOrigins = array; continue; } + if (property.NameEquals("isWebChatSpeechEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isWebChatSpeechEnabled = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("isWebchatPreviewEnabled")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -258,7 +291,7 @@ internal static WebChatSite DeserializeWebChatSite(JsonElement element) continue; } } - return new WebChatSite(siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebchatPreviewEnabled)); + return new WebChatSite(Optional.ToNullable(tenantId), siteId.Value, siteName, key.Value, key2.Value, isEnabled, Optional.ToNullable(isTokenEnabled), Optional.ToNullable(isEndpointParametersEnabled), Optional.ToNullable(isDetailedLoggingEnabled), Optional.ToNullable(isBlockUserUploadEnabled), Optional.ToNullable(isNoStorageEnabled), Optional.ToNullable(eTag), appId.Value, Optional.ToNullable(isV1Enabled), Optional.ToNullable(isV3Enabled), Optional.ToNullable(isSecureSiteEnabled), Optional.ToList(trustedOrigins), Optional.ToNullable(isWebChatSpeechEnabled), Optional.ToNullable(isWebchatPreviewEnabled)); } } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.cs index 5fcbd661dbb1..5246ad65474a 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatSite.cs @@ -25,6 +25,7 @@ public WebChatSite(string siteName, bool isEnabled) : base(siteName, isEnabled) } /// Initializes a new instance of WebChatSite. + /// Tenant Id. /// Site Id. /// Site name. /// Primary key. Value only returned through POST to the action Channel List API, otherwise empty. @@ -38,11 +39,12 @@ public WebChatSite(string siteName, bool isEnabled) : base(siteName, isEnabled) /// Entity Tag. /// DirectLine application id. /// Whether this site is enabled for Bot Framework V1 protocol. - /// Whether this site is enabled for Bot Framework V1 protocol. + /// Whether this site is enabled for Bot Framework V3 protocol. /// Whether this site is enabled for authentication with Bot Framework. /// List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. + /// Whether this site is enabled for Webchat Speech. /// Whether this site is enabled for preview versions of Webchat. - internal WebChatSite(string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebchatPreviewEnabled) : base(siteId, siteName, key, key2, isEnabled, isTokenEnabled, isEndpointParametersEnabled, isDetailedLoggingEnabled, isBlockUserUploadEnabled, isNoStorageEnabled, etag, appId, isV1Enabled, isV3Enabled, isSecureSiteEnabled, trustedOrigins, isWebchatPreviewEnabled) + internal WebChatSite(Guid? tenantId, string siteId, string siteName, string key, string key2, bool isEnabled, bool? isTokenEnabled, bool? isEndpointParametersEnabled, bool? isDetailedLoggingEnabled, bool? isBlockUserUploadEnabled, bool? isNoStorageEnabled, ETag? etag, string appId, bool? isV1Enabled, bool? isV3Enabled, bool? isSecureSiteEnabled, IList trustedOrigins, bool? isWebChatSpeechEnabled, bool? isWebchatPreviewEnabled) : base(tenantId, siteId, siteName, key, key2, isEnabled, isTokenEnabled, isEndpointParametersEnabled, isDetailedLoggingEnabled, isBlockUserUploadEnabled, isNoStorageEnabled, etag, appId, isV1Enabled, isV3Enabled, isSecureSiteEnabled, trustedOrigins, isWebChatSpeechEnabled, isWebchatPreviewEnabled) { } } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs index 295a634a70e3..920d01e029a2 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotConnectionRestOperations.cs @@ -33,7 +33,7 @@ public BotConnectionRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs index 0292c2dc40e7..c1fd6a10f04a 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/BotsRestOperations.cs @@ -33,7 +33,7 @@ public BotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs index 0fa6dae21a2d..a0d3637328d3 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/ChannelsRestOperations.cs @@ -33,7 +33,7 @@ public ChannelsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs index aa6431d9ee1a..ba78e3ff4e26 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/DirectLineRestOperations.cs @@ -33,7 +33,7 @@ public DirectLineRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs index 849ba8a49999..02498abb23f1 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/EmailRestOperations.cs @@ -33,7 +33,7 @@ public EmailRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs index 10babad2b56b..02abdcb10961 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/HostSettingsRestOperations.cs @@ -33,7 +33,7 @@ public HostSettingsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/OperationResultsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/OperationResultsRestOperations.cs index b835514b24c0..fa6797cc7aa7 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/OperationResultsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/OperationResultsRestOperations.cs @@ -31,7 +31,7 @@ public OperationResultsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index d4be31b70ecc..0112a65a5157 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 37399e99372e..ee98df70822f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs index e8b750586074..0e2e2cbae1db 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/RestOperations/QnAMakerEndpointKeysRestOperations.cs @@ -33,7 +33,7 @@ public QnAMakerEndpointKeysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-06-15-preview"; + _apiVersion = apiVersion ?? "2022-09-15"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/autorest.md b/sdk/botservice/Azure.ResourceManager.BotService/src/autorest.md index ee726f9e662f..926ea93c66a3 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/autorest.md +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/autorest.md @@ -9,7 +9,7 @@ csharp: true library-name: BotService namespace: Azure.ResourceManager.BotService # default tag is a preview version -require: https://github.com/Azure/azure-rest-api-specs/blob/af1be2677e619e483210064ff658e62ec25053aa/specification/botservice/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/botservice/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true